*/
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
* @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));
+
};