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

avoid error on editorDestroy and editorSetup #310

Merged
merged 1 commit into from
Apr 12, 2016
Merged

avoid error on editorDestroy and editorSetup #310

merged 1 commit into from
Apr 12, 2016

Conversation

acekat
Copy link
Contributor

@acekat acekat commented Apr 12, 2016

In my case I share one instance of MediumEditor between different 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).

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).
@linkesch
Copy link
Owner

👍

@linkesch linkesch merged commit cfd3009 into linkesch:master Apr 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants