tinyMCE problem when ACF and ABT plugins are active
-
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
- The topic ‘tinyMCE problem when ACF and ABT plugins are active’ is closed to new replies.