• I moved my wp-content folder outside of the core wordpress folder on a subdomain. Basically, my site is at blog.mysite.com, my wordpress files are at blog.mysite.com/wp/ and my content and plugins are at assets.mysite.com/content/.

    Now the styles I created don’t load.

    I discovered that it’s a cross domain issue. The text editor is on one domain and using javascript to try to load the css file from another domain.

    I changed line 63 in tinymce-advanced.php from:

    return $wp .= ‘,’ . WP_PLUGIN_URL . ‘/tinymce-advanced/css/tadv-mce.css’;

    to

    return $wp .= ‘,’ . get_bloginfo(‘wpurl’) . ‘/wp-content/plugins/tinymce-advanced/css/tadv-mce.css’;

    Now it points to my old file and it works. Is there any way to fix this? I hate to hack up the plugin because now I can’t stay up to date with it.

    Is there something I can add to my header to allow javascript to pull in files across domains? How about making a place in the plugin’s options to allow manually entering a list of css classes rather than keeping them in the tadv-mce.css file?

    Thanks,
    GG

    https://www.ads-software.com/extend/plugins/tinymce-advanced/

  • The topic ‘[Plugin: TinyMCE Advanced] Styles don’t load when wp-content is on a different domain or subdomain’ is closed to new replies.