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
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