-
9 Mar 2010 8:10 AM #21
Return an error if CKeditor field is rendered in a tabpanel not yet activate.Code:getRawValue : function(){ CKEDITOR.instances[this.id].updateElement(); return Ext.form.TextArea.superclass.getRawValue(this); }
TabPanel has deferredRender set to default value (true).

-
11 Mar 2010 3:04 AM #22
CKEditor Extension, getValue() undefined
CKEditor Extension, getValue() undefined
hi
Thanks for CKEditor Extension.
using well, but i have little problem.
code
Code: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(); alert(document.getElementById(this.id).value); => valid alert(Ext.form.TextArea.superclass.getValue(this)); => undefined return Ext.form.TextArea.superclass.getValue(this); //return CKEDITOR.instances[this.id].getData(); } ... });Code:items: { xtype: 'ckeditor', fieldLabel: 'Editor', name: 'htmlcode', CKConfig: { customConfig : '/_sys/_plugin/ckeditor/config.js', toolbar: 'Full', skin: 'kama', height: this.getInnerHeight() - 10 } }
"Ext.form.TextArea.superclass.getValue(this)"
why? return value is undefined. i don't know

please, help me?
thx.
-
11 Mar 2010 6:04 PM #23
understand my English is poor.

I found the answer is shown below. Right?
Code:getValue : function(){ CKEDITOR.instances[this.id].updateElement(); var value=CKEDITOR.instances[this.id].getData(); Ext.form.TextArea.superclass.setValue.apply(this,[value]); return Ext.form.TextArea.superclass.getValue.apply(this); },
-
14 Mar 2010 8:57 AM #24
-
14 Mar 2010 5:16 PM #25
Yeah. It’s good to be yourself. Same with you, I will try to do something. So I support your decision!
I have been looking for mbt shoes, I often use the bad results will often buy a new.
-
24 Mar 2010 5:41 AM #26
Multiple CKEditors on different tabs
Multiple CKEditors on different tabs
Hi, I am using multiple CKEditors placed on different tabs in a tabpanel. I noticed they did not get hidden correctly when changing tabs.
This helped me:
onHide: function(){
var el = CKEDITOR.instances[this.id].container.$;
el.style.display = 'none';
},
onShow: function(){
var el = CKEDITOR.instances[this.id].container.$;
el.style.display = '';
}
-
26 May 2010 10:07 AM #27
Anyone ever get keyup/keydown/keypress events working for CKEditor extension?
-
30 Jun 2010 6:39 AM #28
CkEditor caching problem
CkEditor caching problem
Hi Guys,
I have ran into a problem. In IE(Any version), I am getting a caching issue with ckEditor. After using it couple of times, the form always submits the old data. Any new updated data, which is entered into the editor, is not returned by the getValue method.
Here goes the extension code I am using:
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);
if(this.editor){
this.editor.destroy();
}
this.editor = 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 CKEDITOR.instances[this.id].getData();
},
getRawValue: function(){
CKEDITOR.instances[this.id].updateElement();
return CKEDITOR.instances[this.id].getData();
},
destroyInstance: function(){
if (CKEDITOR.instances[this.id]) {
delete CKEDITOR.instances[this.id];
}
}
});
Ext.reg('ckeditor', Ext.form.CKEditor);
This is how is use it in the form:
{
xtype: 'ckeditor',
name: 'emailBody',
id: 'ckeditor',
fieldLabel: this.eMailBodyText,
CKConfig: {
height: 270,
width: '96%'
}
}
I am using Ext JS 2.2.1. At this point I cannot upgrade the system also. Please suggest.
Can you please kindly help? Am I doing something wrong?
Thanks in advance for help.
-
22 Sep 2010 3:38 PM #29
Hi Thanks for Extension
One bug has been founded - If put CKEditor into COLLAPSIBE panel - when you collapse it:
1. Destoy All data from from texarea(I think shouldnt be so =))
2. CKEDITOR go inactive - but it push SOURSE - then CKEDIOR go into active mode and I can redact again. But all the data was cleared.
Thanks.
Yeah my english is ...
... not So good as yours=)
-
23 Sep 2010 1:29 PM #30
What you're proposing a module for managing files, images, etc? (Except CKFinder)
Regards



Reply With Quote