WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
TinyMCE editor not loading after installing plugin (8 posts)

  1. ebol
    Member
    Posted 1 year ago #

    Hello,

    I've installed crayon on my wordpress 3.1.4, but after this, tinyMCE editor in not loading at all, I'm only getting buttons for toggling between wysiwyg and html editing mode. If I try to edit an existing post, its content kinda missing - the text is the same color as the background.

    Btw, I'm ussing TinyMCE Advanced (http://wordpress.org/extend/plugins/tinymce-advanced/) but disabling it still doesn't change anything, so i think we can rule that one out.

    Any ideas? Thx

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    I suspect the older version of WordPress is the reason. Can you update to 3.5? I'll investigate the issue in any case.

  3. ebol
    Member
    Posted 1 year ago #

    To be honest, that was also my first idea, sadly at the moment I can't invest the time to update the site, since it would not be just a simple pure update, some of crucial 'look and feel' plugins are not compatible with latest WordPress version. But it seems I'm just delaying the inevitable. Thx!

  4. jeepdon
    Member
    Posted 1 year ago #

    I'm having the same problem. With the TinyMCE enabled in bbPress, and with Crayon installed, the Visual editor loses the toolbar entirely and loads existing text as white. The Text editor continues to work, and shows the Crayon button.

    WP3.5.1, bbPress 2.3, Crayon 2.2.0.

    http://powershell.org/wp/forums - you'll need to create an account, and note that the menu bar FORUMS item doesn't go to that spot yet. You'll need to use that URL.

    Any suggestions?

  5. jeepdon
    Member
    Posted 1 year ago #

    Follow-up: I'm incorrect; it isn't loading the TinyMCE with white text. It doesn't appear to be loading TinyMCE at all. I get the Text editor, but nothing in the Visual tab - can't even type. The HTML is definitely in the source - I can see all the buttons' <input> tags - but nothing is rendering.

    On loading the page. tinymce_register.js is spewing "Can't find variable v48fv."

    I also got a failed to load resource from tiny_mce.js, attempting to load /crayon-syntax-highlighter/util/tag-editor/langs/en.js.

    And finally, a "refused to display document because of display forbidden by X-Frame-Options," /crayon-syntax-highlighter/langs/en.js.

    Hmm. You know, we use MaxCDN and CloudFlare. I'm strongly wondering if that has something to do with this, because it sees your script coming from a different URL. Let me investigate a bit - in the meantime, any suggestions appreciated.

  6. jeepdon
    Member
    Posted 1 year ago #

    Yeah, confirmed. It's the CDN. I just need to figure out how to stop your code from being rewritten to the CDN URLs. This is something you'll probably want to document or FAQ, if you're not able to create a workaround for it.

  7. jeepdon
    Member
    Posted 1 year ago #

    As a further note: Using W3 Total Cache plugin, you will have a default "wp-content/plugins/*.js" item int he Custom Files List under the CDN configuration. This cases all plugin JS files to be rewritten to the CDN. If you add "wp-content/plugins/crayon-syntax-highlighter/*" to the Rejected Files list, the JS files will STILL be rewritten to the CDN. I was able to make this work by removing "wp-content/plugins/*.js" from the Custom Files List. I realize this means many of my other plugin JS files are no longer in the CDN, but this seems like the only short-term workaround.

  8. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    W3 Total Cache plugin shouldn't be required anymore, the resources are minified now. I've updated the docs to reflect it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.