如何完全删除 Wordpress 中的 TinyMCE? [英] How can I completely remove TinyMCE in Wordpress?
本文介绍了如何完全删除 Wordpress 中的 TinyMCE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我说移除"时,我的意思是为所有人永久移除,永远."我想要的只是一个普通的文本框来粘贴 HTML,我正在本地编辑它.
When I say "remove," I mean "permanently remove, forever, for everybody." All I want is a plain vanilla text box to paste HTML into, which I am editing locally.
推荐答案
没有什么是真正永久的,因为它是核心的一部分,更新可能会在某个时候重新启用它.
Nothing can be really be permanent as it's part of the core and updates will likely re-enable it at some point.
您可以尝试将 add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
添加到您的 functions.php 文件中.
You can try adding add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
to your functions.php file.
这篇关于如何完全删除 Wordpress 中的 TinyMCE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文