Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Wed, 16 Mar 2022 06:14:19 +0000 (14:14 +0800)
committerAlan <alan@roojs.com>
Wed, 16 Mar 2022 06:14:19 +0000 (14:14 +0800)
Roo/HtmlEditorCore.js

index c7cfbcc..ff6ff0d 100644 (file)
@@ -355,7 +355,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         //Roo.log("HtmlEditorCore:syncValue (EDITOR->TEXT)");
         if(this.initialized){
             
-            this.undoManager.addEvent();
+            if (this.undoManager) {
+                this.undoManager.addEvent();
+            }
 
             
             var bd = (this.doc.body || this.doc.documentElement);