mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-12 08:16:06 +01:00
Fixed inizialiation flag for editors so they can't get initialized again
This commit is contained in:
@@ -217,6 +217,7 @@
|
||||
});*/
|
||||
|
||||
MDEditors.editors[this.element.attr('name')] = this;
|
||||
this.element.data('mdeditor_initialized', true);
|
||||
|
||||
|
||||
// Methods
|
||||
@@ -544,7 +545,7 @@
|
||||
editor = $(editor);
|
||||
|
||||
var mdeditor;
|
||||
if (!editor.data('mededitor')) {
|
||||
if (!editor.data('mdeditor_initialized')) {
|
||||
mdeditor = new MDEditor(editor, JSON.parse(editor.attr('data-grav-mdeditor') || '{}'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user