Set Default Editor Mode (TinyMCE / HTML) in WordPress
Source : Set Default Editor Mode (TinyMCE / HTML) in WordPress
Published On : March 25, 2015 at 06:35PM
By : Agbonghama Collins
I recently built a plugin where I needed WordPress to by default always set its editor to Text (HTML) mode and not tinyMCE. This is achievable using the undocumented filer wp_default_editor. To make TinyMCE always display by default, use the code below. function set_default_editor() { $r = 'tinymce'; return $r; } add_filter( 'wp_default_editor', 'set_default_editor' ); […]

For More Go to : w3guy - Diary of a Geek
Published On : March 25, 2015 at 06:35PM
By : Agbonghama Collins
I recently built a plugin where I needed WordPress to by default always set its editor to Text (HTML) mode and not tinyMCE. This is achievable using the undocumented filer wp_default_editor. To make TinyMCE always display by default, use the code below. function set_default_editor() { $r = 'tinymce'; return $r; } add_filter( 'wp_default_editor', 'set_default_editor' ); […]
For More Go to : w3guy - Diary of a Geek
Labels: Tech4Sky
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home