Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix editor

dominik-zeglen7bd0c238e7b8
diff --git a/saleor/static/dashboard/js/components/editor.js b/saleor/static/dashboard/js/components/editor.js
index dafce9089a..bf0e23892c 100644
--- a/saleor/static/dashboard/js/components/editor.js
+++ b/saleor/static/dashboard/js/components/editor.js
@@ -1,6 +1,7 @@
import MediumEditor from 'medium-editor';
-MediumEditor('.rich-text-editor', {
+// eslint-disable
+const editor = new MediumEditor('.rich-text-editor', {
toolbar: {
buttons: [
{