commit 8a6511cf5ea045b52423ebb4cb843011b474fb3f
parent 34c026f6037a8a6cdcae6218be53243400c209e8
Author: Jan Dankert <develop@jandankert.de>
Date: Wed, 1 Jun 2022 01:14:46 +0200
Fix: Multiple SimpleMDE editors on 1 page.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/template_engine/components/html/component_editor/editor.js b/modules/template_engine/components/html/component_editor/editor.js
@@ -175,7 +175,7 @@ export default function(element ) {
let mde = new SimpleMDE(
{
- element: $(this)[0],
+ element: this,
toolbar: toolbar,
autoDownloadFontAwesome: false
}
diff --git a/modules/template_engine/components/html/component_editor/editor.min.js b/modules/template_engine/components/html/component_editor/editor.min.js
@@ -131,7 +131,7 @@ title: "Howto markdown",
];
let mde = new SimpleMDE(
{
-element: $(this)[0],
+element: this,
toolbar: toolbar,
autoDownloadFontAwesome: false
}