Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wysiwyg-editor-broken-after-wordpress-update #626

Nikeo opened this issue Aug 23, 2016 · 0 comments · Fixed by #627


Copy link

commented Aug 23, 2016

As reported on the forum

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

Customizr seems to have an issue with the current WP version that maifests as a broken wysiwyg editor on any custom fields (ACF) that require it when creating a new post.
The issue goes away if I use any other theme.
I have tried dropping back to the previous version of Customizr (I'm sure I allowed an update on it last week) but the issue persists.

At about the same time I allowed the update to the latest version of WP.
(Did not have this issue prior to last week)

This is a huge issue for me as the site relies on the layout Customizr allows, and at the moment the only way I can create new posts is to swap themes, post, then swap back.
Luckily the site isn't live yet, but I was hoping to make it so this week.

`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 have seen someone else reporting this issue. Do you have any idea of the cause yet please?
(Please don't just 'referred to developers' this one)

Many thanks,

Required setup info:




THEME | VERSION : customizr | v3.4.21# WP VERSION : 4.6



Active Directory Integration: 1.1.8
Advanced Custom Fields: 4.4.8
Advanced Custom Fields: Categories:
All-in-One Event Calendar by 2.5.10
bbPress: 2.5.10
Bookly Lite: 7.6.1
BuddyPress: 2.6.2
Collapsing category list: 0.4.1
Custom Menu Wizard: 3.3.0
Display Widgets: 2.05
Invite Anyone: 1.3.11
Posts Table Pro: 1.2.1
Restrict Author Posting: 2.1.4
SiteOrigin Widgets Bundle: 1.6.5
Wp Mail Bank: 1.45

PHP Version: 5.6.19
MySQL Version: 5.6.29
Web Server Info: Apache

WordPress Memory Limit: 40MB
PHP Safe Mode: No
PHP Memory Limit: 256M
PHP Upload Max Size: 40M
PHP Post Max Size: 40M
PHP Upload Max Filesize: 40M
PHP Time Limit: 120
PHP Max Input Vars: 1000
PHP Arg Separator: &
PHP Allow URL File Open: Yes
WP_DEBUG: Disabled

Show On Front: page
Page On Front: TIAA Intranet Homepage (#5)
Page For Posts: (#0)`

@Nikeo Nikeo added bug Urgent labels Aug 23, 2016
@Nikeo Nikeo added this to the v3.4.22 milestone Aug 23, 2016
eri-trabiccolo added a commit to eri-trabiccolo/customizr that referenced this issue Aug 23, 2016
@Nikeo Nikeo added the fixed label Aug 23, 2016
@Nikeo Nikeo closed this Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.