• Resolved immanence

    (@immanence)


    I know others have referenced this issue, but I thought I’d include my Console report.

    Uncaught TypeError: Cannot call method 'getLength' of null editor_template.js:1
    h.create._createStyleSelecteditor_template.js:1
    h.create.createControleditor_template.js:1
    h.create._addControlseditor_template.js:1
    c.eachtiny_mce.js:1
    h.create._addControlseditor_template.js:1
    h.create._addToolbarseditor_template.js:1
    h.create._simpleLayouteditor_template.js:1
    h.create.renderUIeditor_template.js:1
    k.create.inittiny_mce.js:1
    k.create.rendertiny_mce.js:1
    a.dom.ScriptLoader.loadScripts.d.lengthtiny_mce.js:1
    c.eachtiny_mce.js:1
    a.dom.ScriptLoader.loadScripts.otiny_mce.js:1
    a.dom.ScriptLoader.loadScripts.d.lengthtiny_mce.js:1
    ptiny_mce.js:1

    The result is that TinyMCE doesn’t load in my theme. But it does load in TwentyTwelve. I’ve tried with all other plugins deactivated, but TinyMCE won’t load.

    So while it is a theme problem, I wonder if you can pinpoint what it is, because the theme developer is unsure.

    Maybe this is an error output you’ve seen before.

    Many thanks

    http://wordpress.org/plugins/ultimate-tinymce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Josh

    (@josh401)

    What is the theme you are using?

    Does it modify the style select dropdown box?

    What I mean… with the theme active… does the style select box appear in the editor buttons?

    Thread Starter immanence

    (@immanence)

    I’m using Slyde, by Playnethemes, on Themeforest.

    With the theme activated and your plugin deactivated, there is a Style dropdown menu in the Visual mode, yes. There’s only one entry in it: Page Title.

    (Thanks for your rapid response)

    Plugin Author Josh

    (@josh401)

    Certainly!

    Okay… so install my plugin.. go to it’s settings page… and then make sure the “Style Select” dropdown button is NOT enabled.

    Now, check again to see if the editor loads.

    Thread Starter immanence

    (@immanence)

    That solved it! Thanks so much for the great and speedy support!

    Plugin Author Josh

    (@josh401)

    My pleasure.

    The reason:

    The “Style Select” button is the most commonly ‘tweaked’ button by plugins and themes. It is the easiest, and offers much flexibility.

    If two plugins (or a theme and a plugin) both attempt to add the ‘Style Select’ button to the editor… it will break.

    Us developers need to come up with a better method of checking the existence of that button first.. and then add the styles to it if it exists.. and if not, create it new.

    I’ll check my code to see if it’s possible 🙂

    Thanks!!

    Thread Starter immanence

    (@immanence)

    🙂 1000 thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TinyMCE buttons not appearing’ is closed to new replies.