Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

unbind refresh event when tinymce element removed #272

Closed
wants to merge 3 commits into from

Conversation

renkaixin
Copy link

Problem: I need to trigger '$tinymce:refresh' event to rebuild the editor when I sort a list of editors looped by ng-repeat directive. When '$tinymce:refresh' event triggered, listener in uiTinymce received it and create a clone-editor without unbind event listener. This will cause a horrible result when I sort editors frequently.

Reproduce: Click moveUp or moveDown button 2 times then tinymce received 9 event.Plunker

@renkaixin renkaixin changed the title unbind efresh event when tinymce element removed unbind refresh event when tinymce element removed Jun 29, 2016
@renkaixin renkaixin closed this Jun 29, 2016
@renkaixin renkaixin reopened this Jun 29, 2016
@deeg
Copy link
Contributor

deeg commented Jul 14, 2016

Thanks, sorry for the late response.

I will look at this today and get it merged.

@madflow madflow mentioned this pull request Jul 7, 2017
@deeg deeg closed this in 30434e2 Jul 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants