[wp-trac] Re: [WordPress Trac] #8506: 2.7 makes it impossible to
completely remove TinyMCE
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 31 00:36:07 GMT 2009
#8506: 2.7 makes it impossible to completely remove TinyMCE
--------------------------+-------------------------------------------------
Reporter: futurix | Owner: markjaquith
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.8
Component: UI | Version: 2.7
Severity: minor | Keywords: tinymce
--------------------------+-------------------------------------------------
Changes (by sivel):
* cc: matt@… (added)
Comment:
-1
I'm not sure I agree. I think removing the files to disable TinyMCE is
not one of the more elegant solutions to achieve this.
One line of code in a plugin or a themes functions.php can effectively
disable TinyMCE without modifying the core code by way of removing files.
{{{
add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return
false;' ) );
}}}
I have actually written a plugin called 'Easy Disable Visual Editor' which
has been in the wp.org repos for some time now that achieves this with
little to no effort. Albeit this does not remove the option from showing
in the users profile. Perhaps a filter can be added to make this a more
seamless global disabling. I still, in no way, agree that removing the
files is the way to go to disable TinyMCE.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8506#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list