-
Notifications
You must be signed in to change notification settings - Fork 17
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
Works with multiple WYSIWYG boxes and Content Fields? #7
Comments
Dear ryan, thank's for your report. please try to apply this patch: https://wordpress.org/support/topic/switching-between-visualtext-editor-is-broken-loading-code#post-6254328 what do you mean with "i hide the body" ? best regards, Andi |
Hi Andi! In the Custom Fields plugin has an option to hide other fields on the page, including the content body, excerpt, all other meta boxes etc. I was just describing my setup incase you're aware of it. I'll try the patch,
|
Some feedback after replacing the file: The page loads but there is no toolbar. config: { If I enable line numbers, this breaks the WYSIWYG editors being loaded and there are js errors with TinyMCE.js: Uncaught TypeError: Cannot read property 'disabled' of null
|
Oh that's really a bad bug... i will fix it as soon as possible! |
Bug is fixed in v2.4 - and should not appear again Please tell me if it's working in your case - then i will update the plugin on WordPress.org |
Thanks Andi, Still some errors when multiple WYSIWYG editors on the page. The PHP warning appears on all. The plugin works on a single page ie. When there is a normal TinyMCE editor as the body. e.g. Adding a new post. The plugin doesnt work with multiple WYSIWYG editors added through Custom Fields plugin. PHP: JS: // show hide edit menu button
|
Understood on the cache - wasn't too worried. For multiple editors, you can replicate by installing Custom Fields plugin - https://wordpress.org/plugins/advanced-custom-fields/ https://wordpress.org/plugins/advanced-custom-fields/ and creating a WYSIWYG field: Basically it's a common plugin. To see an example of it working, it works on Crayon syntax highlighter ;) Thanks for your help anyway,
|
It seems to work now in my setup (second wysiwyg editor) - i've added an additional check to ensure that the "Enlighter Edit Button" is available Please try the updated release. https://github.com/AndiDittrich/WordPress.Enlighter/releases/tag/v2.4 |
I have multiple WYSIWYG fields added via Content Fields plugin, and I hide the body.
The text was updated successfully, but these errors were encountered: