Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update init.jquery.js #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update init.jquery.js #233

wants to merge 1 commit into from

Conversation

nallias
Copy link

@nallias nallias commented Oct 2, 2018

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
}

In order to correctly use the `selector` parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants