Skip to content

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

Solve an auto-resize conflict between Materialize and medium-editor

Andreas Donig41f2148da45a
diff --git a/saleor/static/dashboard/js/components/editor.js b/saleor/static/dashboard/js/components/editor.js
index 0d565535a0..586ae7f25b 100644
--- a/saleor/static/dashboard/js/components/editor.js
+++ b/saleor/static/dashboard/js/components/editor.js
@@ -12,6 +12,9 @@ import formatClear from '../../images/editor/format_clear.svg';
import doneIcon from '../../images/done.svg';
import closeIcon from '../../images/close.svg';
+// Solve an auto-resize conflict between Materialize and medium-editor.
+$('.rich-text-editor').removeClass('materialize-textarea');
+
// eslint-disable-next-line
const editor = new MediumEditor('.rich-text-editor', {
paste: {