Detect Visual and Text Mode in WordPress TinyMCE Editor
Source : Detect Visual and Text Mode in WordPress TinyMCE Editor
Published On : January 09, 2015 at 02:30PM
By : Agbonghama Collins
For reason(s) best known to you, you might want to check if WordPress TinyMCE Editor is in visual (rich text) or text mode. The variable is_tinymce_active returns true if TinyMCE is in visual mode and false otherwise. var is_tinymce_active = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden(); Alternatively, simply check if tinymce is undefined […]

For More Go to : w3guy - Diary of a Geek
Published On : January 09, 2015 at 02:30PM
By : Agbonghama Collins
For reason(s) best known to you, you might want to check if WordPress TinyMCE Editor is in visual (rich text) or text mode. The variable is_tinymce_active returns true if TinyMCE is in visual mode and false otherwise. var is_tinymce_active = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden(); Alternatively, simply check if tinymce is undefined […]
For More Go to : w3guy - Diary of a Geek
Labels: Tech4Sky
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home