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

TinyMCE - oneTimeClick, changes the target of the floatpanel query #1754

Closed
wants to merge 1 commit into from

Conversation

leekelleher
Copy link
Member

As outlined in ticket U4-9524, if the "Formats" dropdown on the TinyMCE editor used, then the RTE is destroyed, the "floatpanel" element still exists in the DOM.

If the RTE is re-created, and the "Formats" dropdown selected again, this will force the editor control to close (and not apply the formatting).

This fix is to workaround the orphaned "floatpanel" elements in the DOM, by changing the target of the jQuery selector from el to event.target.

e.g. el would equal the tag-name ("span"), bit too generic,, whereas event.target would be the "Formats" menu item element.

As outlined in ticket U4-9524, if the "Formats" dropdown on the TinyMCE editor used, then the RTE is destroyed, the "floatpanel" element still exists in the DOM.
If the RTE is re-created, and the "Formats" dropdown selected again, this will force the editor control to close (and not apply the formatting).

This fix is to workaround the orphaned "floatpanel" elements in the DOM, by changing the target of the jQuery selector from `el` to `event.target`.
e.g. `el` would equal the tag-name ("span"), _bit too generic_,, whereas `event.target` would be the "Formats" menu item element.

ref: http://issues.umbraco.org/issue/U4-9524
@leekelleher
Copy link
Member Author

Closing this PR, already appears to have been fixed in PR #1793 (commit fc92d40; issue U4-8418).

@leekelleher leekelleher deleted the issue/U4-9524 branch March 25, 2017 11:18
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.

None yet

1 participant