Sunday, 15 July 2012

javascript - TinyMCE Enable button while in read only mode -



javascript - TinyMCE Enable button while in read only mode -

i have tinymce 4.x instance text should in read mode. still have buttons want have enabled. example, 1 button provide character count part of text i've selected. when turn on read mode tinymce buttons disabled. can enable buttons while still retaining read mode?

i couldn't find easy way this. simplest way remove contenteditable attribute iframe body instead , substitute read toolbar set. means people still able re-create content editor.

$("iframe").contents().find("body").removeattr("contenteditable");

javascript tinymce

No comments:

Post a Comment