instructure-react / react-tinymce

React TinyMCE component
181 stars 115 forks source link

use EditorManager to remove instances #4

Closed meirish closed 9 years ago

meirish commented 9 years ago

I think tinymce.remove(id) was the api for v3 - it didn't appear to be working in our app which was causing some weirdness with event handlers. v4 moved remove to the EditorManager object which is what I used here. In our app this change keeps tinymce.editors.length to 1.