stfalcon / TinymceBundle

Bundle for connecting TinyMCE (WYSIWYG editor) to your Symfony2 project
259 stars 154 forks source link

Update init.jquery.js #233

Open nallias opened 5 years ago

nallias commented 5 years ago

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
}