This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid error on editorDestroy and editorSetup (#310)
In my case I share one instance of MediumEditor between différent DOM elements and some of these elements have the InsertPlugin initialized and others don't. So when you destroy/setup the MediumEditor instance, it fails at disabling/enabling the InsertPlugin for the elements that don't have the plugin initialized ($(el).data('plugin_' + pluginName) is undefined).
- Loading branch information