From bf07047f09cd3d55b1d0ef405bc4efc45585fdf2 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 17 Nov 2024 09:39:33 +0100 Subject: [PATCH] assignDomNodeClasses method also for SimpleEngine --- core/modules/editor/engines/simple.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/editor/engines/simple.js b/core/modules/editor/engines/simple.js index 809dc58ea..7ff4c3691 100644 --- a/core/modules/editor/engines/simple.js +++ b/core/modules/editor/engines/simple.js @@ -68,6 +68,10 @@ function SimpleEngine(options) { this.widget.domNodes.push(this.domNode); } +SimpleEngine.prototype.assignDomNodeClasses = function() { + this.domNode.className = this.widget.getAttribute("class",""); +}; + /* Set the text of the engine if it doesn't currently have focus */