TinymceBundle icon indicating copy to clipboard operation
TinymceBundle copied to clipboard

Update init.jquery.js

Open nallias opened this issue 6 years ago • 0 comments

Hi all, In order to correctly use the selector parameter.

This is particularly important when dealing with the inline attribute, which enforces to replace textarea with a div (or something else) in order to avoid the <br data-mce-bogus="1">.

As a side note, if tinyMCE_init is triggered while some are already there, the inline ones would get a visibility="hidden" for some reason. To fix it use the init callback:

function callback_tinymce_init(editor) {
    $('#'+editor.id).css('visibility','') //fix inline editors
}

nallias avatar Oct 02 '18 15:10 nallias