PDA

View Full Version : [OPEN] [FIXED]HtmlEditor available yet?



htammen
23 Feb 2011, 8:41 AM
Is HtmlEditor already available and should it work?
If yes, I get the following error:

Uncaught TypeError: Cannot read property 'length' of undefined
in line 79666 of ext-all-debug.js
v is undefined.


/**
* Protected method that will not generally be called directly. Pushes the value of the textarea
* into the iframe editor.
*/
pushValue : function(){
if(this.initialized){
var v = this.el.dom.value;
--> if(!this.activated && v.length < 1){
v = this.defaultValue;
}
if(this.fireEvent('beforepush', this, v) !== false){
this.getEditorBody().innerHTML = v;


This is my HtmlEditor code:

{
xtype: 'htmleditor',
anchor: '100%',
height: 150,
fieldLabel: 'Label',
name: 'comment'
}

evant
13 Mar 2011, 5:38 PM
It will be in the next release.