};
/**
- * @class Ext.form.HtmlEditor
- * @extends Ext.form.Field
+ * @class Roo.form.HtmlEditor
+ * @extends Roo.form.Field
* Provides a lightweight HTML Editor component.
*
* This has been tested on Fireforx / Chrome.. IE may not be so great..
* any element that has display set to 'none' can cause problems in Safari and Firefox.<br/><br/>
*/
Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
+ /**
+ * @cfg {Boolean} clearUp
+ */
+ clearUp : true,
/**
* @cfg {Array} toolbars Array of toolbars. - defaults to just the Standard one
*/
*/
stylesheets: false,
- autosave : false,
-
// id of frame..
frameId: false,
* Fires when on first focus - needed by toolbars..
* @param {HtmlEditor} this
*/
- firstfocus: true
+ firstfocus: true,
+ /**
+ * @event autosave
+ * Auto save the htmlEditor value as a file into Events
+ * @param {HtmlEditor} this
+ */
+ autosave: true,
+ /**
+ * @event savedpreview
+ * preview the saved version of htmlEditor
+ * @param {HtmlEditor} this
+ */
+ savedpreview: true
});
this.defaultAutoCreate = {
tag: "textarea",
this.resizeEl.resizeTo.defer(100, this.resizeEl,[ this.width,this.height ] );
// should trigger onReize..
}
+
+// if(this.autosave && this.w){
+// this.autoSaveFn = setInterval(this.autosave, 1000);
+// }
},
// private
// doc'ed in Field
focus : function(){
- Roo.log('focus ????????????????????????!!!!!!!!!!!!!!!!!!!!!!!!')
this.editorcore.focus();
},
syncValue : function()
{
this.editorcore.syncValue();
+ },
+
+ pushValue : function()
+ {
+ this.editorcore.pushValue();
}