Roo/bootstrap/form/HtmlEditor.js
authorAlan <alan@roojs.com>
Fri, 17 Feb 2023 06:11:00 +0000 (14:11 +0800)
committerAlan <alan@roojs.com>
Fri, 17 Feb 2023 06:11:00 +0000 (14:11 +0800)
Roo/bootstrap/form/HtmlEditor.js

index b39ceec..448413e 100644 (file)
  */
 
 Roo.bootstrap.form.HtmlEditor = function(config){
-    Roo.bootstrap.form.HtmlEditor.superclass.constructor.call(this, config);
-    if (!this.toolbars) {
-        this.toolbars = [];
-    }
-    
-    this.editorcore = new Roo.HtmlEditorCore(Roo.apply({ owner : this} , config));
+
     this.addEvents({
             /**
              * @event initialize
@@ -113,24 +108,30 @@ Roo.bootstrap.form.HtmlEditor = function(config){
             * @event imageadd
             * Fires when on any editor when an image is added (excluding paste)
             * @param {Roo.bootstrap.form.HtmlEditor} this
-            * @param {DomElement} img could also be a figure if blocks are enabled
             */
            imageadd: true ,
             /**
             * @event imageupdated
             * Fires when on any editor when an image is changed (excluding paste)
             * @param {Roo.bootstrap.form.HtmlEditor} this
-            * @param {DomElement} img could also be a figure if blocks are enabled
+            * @param {HTMLElement} img could also be a figure if blocks are enabled
             */
            imageupdate: true ,
            /**
             * @event imagedelete
             * Fires when on any editor when an image is deleted
             * @param {Roo.bootstrap.form.HtmlEditor} this
-            * @param {DomElement} img could also be a figure if blocks are enabled
+            * @param {HTMLElement} img could also be a figure if blocks are enabled
             */
            imagedelete: true  
-        });
+    });
+    Roo.bootstrap.form.HtmlEditor.superclass.constructor.call(this, config);
+    if (!this.toolbars) {
+        this.toolbars = [];
+    }
+    
+    this.editorcore = new Roo.HtmlEditorCore(Roo.apply({ owner : this} , config));
+    
 };