* 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,
+
+ /**
+ * @cfg {Array} blacklist of css styles style attributes (blacklist overrides whitelist)
+ *
+ */
+ cblack: false,
+ /**
+ * @cfg {Array} whitelist of css styles style attributes (blacklist overrides whitelist)
+ *
+ */
+ cwhite: false,
+
+ /**
+ * @cfg {Array} blacklist of html tags - in addition to standard blacklist.
+ *
+ */
+ black: false,
+ /**
+ * @cfg {Array} whitelist of html tags - in addition to statndard whitelist
+ *
+ */
+ white: false,
// id of frame..
frameId: false,
initialized : false,
activated : false,
-// onFocus : Roo.emptyFn,
+ onFocus : Roo.emptyFn,
iframePad:3,
hideMode:'offsets',
+ actionMode : 'container', // defaults to hiding it...
+
defaultAutoCreate : { // modified by initCompnoent..
tag: "textarea",
style:"width:500px;height:300px;",
*/
firstfocus: true,
/**
- * @event focus
- * Fires when this field receives input focus.
+ * @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
*/
- focus : true
+ savedpreview: true
});
this.defaultAutoCreate = {
tag: "textarea",
autocomplete: "off"
};
},
-
+
/**
* Protected method that will not generally be called directly. It
* is called when the editor creates its toolbar. Override this method if you need to
// should trigger onReize..
}
-// if(this.autosave){
+// if(this.autosave && this.w){
// this.autoSaveFn = setInterval(this.autosave, 1000);
// }
},
syncValue : function()
{
this.editorcore.syncValue();
+ },
+
+ pushValue : function()
+ {
+ this.editorcore.pushValue();
}