How to fix the height of ckeditor?
@disfusion - thx very much for your work, it´s nice
Unfortunately the ckeditor-component does not respect the layout of the parent container. If the parent conatiner has layout set to 'fit' the ckeditor's height is not fitting. Also on resize. The width is always perfect.
Do you have some Idea how to fix this?
thx
Ckeditor, with destroy Instance
Hello,
good job, thanks !
I just put this modified code with the destroy instance :
Code:
/****************************************************
* CKEditor Extension
*****************************************************/
Ext.form.CKEditor = function(config){
this.config = config;
Ext.form.CKEditor.superclass.constructor.call(this, config);
};
Ext.extend(Ext.form.CKEditor, Ext.form.TextArea, {
onRender : function(ct, position){
if(!this.el){
this.defaultAutoCreate = {
tag: "textarea",
autocomplete: "off"
};
}
Ext.form.TextArea.superclass.onRender.call(this, ct, position);
CKEDITOR.replace(this.id, this.config.CKConfig);
},
setValue : function(value){
Ext.form.TextArea.superclass.setValue.apply(this,[value]);
CKEDITOR.instances[this.id].setData( value );
},
getValue : function(){
CKEDITOR.instances[this.id].updateElement();
return Ext.form.TextArea.superclass.getValue(this);
},
getRawValue : function(){
CKEDITOR.instances[this.id].updateElement();
return Ext.form.TextArea.superclass.getRawValue(this);
}
,onDestroy: function(){
if (CKEDITOR.instances[this.id]) {
delete CKEDITOR.instances[this.id]; // This destroy the instance
}
}
});
Ext.reg('ckeditor', Ext.form.CKEditor);
Have a good day.
And sorry for my English, I'm french
Damien.
CKEditor doesnt display while trying to remove and add it in a panel
Great job done on ckeditor.
A small issue when using.
When i try to remove and add a ckeditor inside a panel the second which is getting added will not display.
Can any one help.
Thanksin advance