I want to try the Ext.form.HtmlEditor in Ext.grid.EditorGrid, and I just change the Editor Grid Example (in ExtJS 1.1.1) with the following code:
// the column model has information about grid columns
// dataIndex maps the column to the specific data field in
// the data store (created below)
var cm = new Ext.grid.ColumnModel([{
header: "Common Name",
dataIndex: 'common',
width: 220,
//editor: new Ed(new fm.TextField({
// allowBlank: false
//}))
// change the editor form textField to HtmlEditor
editor: new Ed(new fm.HtmlEditor({
allowBlank: false, width: 400, height: 300
}))
After the change , when I double click one cell of the first column to edit , I get the following screens
I use IE7, Firefox 2.0.0.6 and Opera 9.23
[edit]
OP should be using ext-base.js if editing the examples that ship with the Ext 1.1.1 download.
Thanks, I know how to popup the html editor in a dialog too, but an inline html editor in the editor grid will be very cool then popup a dialog!;)
8887
Thanks, mystix, I have changed my post, sorry for I'm fresh to ExtJS Forum.
I have tried but HtmlEditor doesn't play well in the grid. I have an idea to open it in a separate dialog on edit start. I'll investigate if and how it can be done...
I will try this tomorrow as I need HtmlEditor in grid too. I'll let you know then.
Allergies.. no relief?!?
Religion in the workplace? |