WYSIWYG Editor - 'HTML' is disabled/inactive? - Wordpress Solution
[Solved] - WYSIWYG Editor - 'HTML' is disabled/inactive? - Wordpress Solution |
---|
Try following codes |
Hi,
I am having an issue with the WYSIWYG editor for pages/posts. The Visual editor works fine but the 'HTML' button seems to be disabled. I am unable to switch to HTML view.
Any help is greatly appreciated.
Cheers.
Solution - 1I think you have loaded jquery 1.4.2 on admin side. To load it only on the front-end use this :
Solution - 2
That should do it. Solution - 3I can't give you exact answer without seeing what's going on, but if you can't switch editors, you have JavaScript error on the page. When you fix that, it will work again. Use Firefox and Firebug to see it. Solution - 4install TinyMCE advances it has way more options Solution - 5Hi try this. Please note that is_admin() is a function, to check whether it is admin or not. And secondly you got it correct by registering jquery after deregistering. As for other scripts, you need to register them all, before enqueuing them into the of web page. And please note, you do not need to enqueue jQuery before enqueuing other scripts, As the code already states that the new scripts are dependent on jQuery. So WordPress will load jQuery first follow by other scripts you registered and enqueued. My script may have syntax error, as I did not verify on my computer. Hope this helps. Thanks. |
Date: 2022-10-21 05:20:53 |
Category: Wordpress |