• Hi,
    I am using both the Advanced Custom Fields (ACF) and the Academic Blogger’s Toolkit (ABT) plugin. However, when I switch to the Customizr theme, the meta box from the ABT doesn’t work anymore when editing pages or posts.

    The console spits out the following error:
    TypeError tinyMCE.activeEditor.dom.addStyle is not defined

    which stems from customizr/inc/admin/class-fire-admin_init.php line 255.

    This error only shows up with the Customizr theme and both ACF and ABT activated (possibly triggered by other plugins as well that use tinyMCE editors). Using Twentysixteen, or deactivating ACF has ABT work as expected.

    The developer of ABT figured out that the Customizr theme expects the active tinyMCE editor to be “content”. However, when it encounters the “acf_settings” editor, it throws an uncaught exception, crashing the ABT plugin, which is loaded afterwards. (thread here)

    He suggested to show you the corresponding line in his code (here), where he checks in his plugin that the editor he’s working with is the correct one. Would that be easy to implement in Customizr? I’d try it myself, but not knowing exactly what the code does, I’m afraid to break more than I fix.

    Thanks so much for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Flagging to developers.

    I have exactly this issue.
    I use ACF, and everything was working fine, but now any custom field that requires the wysiwyg editor is broken. The editor controls are missing & the edit field itself can’t be selected.

    I’m pretty sure I updated the Customizr theme last week. The site’s only existed for a few months so I should imagine, looking at the dates, that the version replaced was the one before current.

    The error I get in the console is:
    post-new.php:3305 Uncaught TypeError: Cannot read property ‘addStyle’ of undefined
    (anonymous function) @ post-new.php:3305
    i @ wp-tinymce.php?c=1&ver=4401-20160726:9
    fire @ wp-tinymce.php?c=1&ver=4401-20160726:9
    initContentBody @ wp-tinymce.php?c=1&ver=4401-20160726:12
    init @ wp-tinymce.php?c=1&ver=4401-20160726:12
    (anonymous function) @ wp-tinymce.php?c=1&ver=4401-20160726:12
    (anonymous function) @ wp-tinymce.php?c=1&ver=4401-20160726:5
    n @ wp-tinymce.php?c=1&ver=4401-20160726:4
    p @ wp-tinymce.php?c=1&ver=4401-20160726:5
    loadScripts @ wp-tinymce.php?c=1&ver=4401-20160726:5
    loadQueue @ wp-tinymce.php?c=1&ver=4401-20160726:5
    t @ wp-tinymce.php?c=1&ver=4401-20160726:12
    render @ wp-tinymce.php?c=1&ver=4401-20160726:12
    execCommand @ wp-tinymce.php?c=1&ver=4401-20160726:13
    init @ input.min.js?ver=4.4.8:2
    (anonymous function) @ input.min.js?ver=4.4.8:2
    each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    each @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:2
    (anonymous function) @ input.min.js?ver=4.4.8:2

    I thought it was ACF causing the issue, but their support said that it looks like ‘assets in your theme’ are causing the isssue.

    Theme Author presscustomizr

    (@nikeo)

    Hi @fba @paulio, we’re working on it.
    thanks for reporting the problem.
    https://github.com/presscustomizr/customizr/issues/626

    Theme Author presscustomizr

    (@nikeo)

    Hi, the problem should be fixed in the latest version v3.4.22 now published on www.remarpro.com.
    Please let me know if you’re still having trouble about this.
    Thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tinyMCE problem when ACF and ABT plugins are active’ is closed to new replies.