PDA

View Full Version : save htmleditor roweditor



jamesjara
25 Sep 2009, 4:31 PM
Hi people thanks for the help
i am trying to save the html data of a html field in a grid with roweditor and autosave writer

i cant get the data with :

setValue : function(v){
Ext.form.HtmlEditor.superclass.setValue.call(this, Ext.util.Format.htmlDecode(v));
this.pushValue();
}but
How i make to send the data in html entities ?
i have all in autosave writer
i think the code is not necessary because all is in AUTOSAVE STORE


var ColumnModel_template = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), {
more code*****
{
id: 'C',
header: 'Datos',
dataIndex: 'C',
width: 200,
hideMode: 'offsets',
editor: {
xtype: 'htmleditor',
allowBlank: false,
hideMode: 'offsets',
setValue : function(v){
//PARSE THE HTML TO VISUALIZE
Ext.form.HtmlEditor.superclass.setValue.call(this, Ext.util.Format.htmlDecode(v));
this.pushValue();
}
}
}
]);

MORE CODE****

var RowEditor_template = new Ext.ux.grid.RowEditor({
clicksToEdit: 1,
errorSummary: false

listeners: {
// MAYBE HERE the code to send the values html, but remember i have the configuration in autosave so i cant send individual vars
}

});
thanks


help please

jamesjara
26 Sep 2009, 10:47 AM
please some help i now this will be work to many people