-
30 Sep 2009 1:57 AM #11
-
6 Oct 2009 8:21 AM #12
How to fix the height of ckeditor?
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
-
28 Oct 2009 3:42 AM #13
Thanks a lot for this extension.
That works perfect, but I have a little problem.
I would like change the content HTLM with a ajax fonction.
My code :
When I select a value in my combo, I have the error "CKEDITOR.instances.contenu is undefined" with :Code:{ xtype: 'combo', fieldLabel: 'Template', store: ds_template, displayField:'LibelleTemplate', valueField: 'IdTemplate', hiddenName: 'IdTemplate', typeAhead: true, mode: 'local', triggerAction: 'all', emptyText: 'Select...', selectOnFocus: true, forceSelection: true, editable: false, allowBlank: false, listeners: { select: function(combo){ Ext.Ajax.request({ url: '/ajaxInfoTemplate.php', method: 'POST', params: { IdTemplate: this.getValue() }, success: function(response, options){ CKEDITOR.instances.contenu.setData(response.responseText); } }); } } },{ xtype: 'ckeditor', fieldLabel: 'Contenu HTML', name: 'contenu', CKConfig: { customConfig : '/ckeditor/config.php', toolbar: 'TEST', height : 400, width: 650 } }
Code:CKEDITOR.instances.contenu.setData(response.responseText);


Can you help me please ?
Thanks
ps : sorry for my very bad english
-
4 Dec 2009 2:19 AM #14
I have been playing with CKEditor and Ext JS. I stripped down the FCKEditor example.
seems not to work applyTo.
any ideas?
thanks
My example:
index.html:
example.js:Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>CKEditor Form</title> <link rel="stylesheet" type="text/css" href="ext-3.0.0/resources/css/ext-all.css"/> <!-- GC --> <!-- LIBS --> <script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script> <!-- ENDLIBS --> <script type="text/javascript" src="ext-3.0.0/ext-all-debug.js"></script> <!-- Load CKEditor Library --> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <!-- Load EXTJS CKEditor Extension --> <script type="text/javascript" src="ckeditor.js"></script> <!-- Load Example Code --> <script type="text/javascript" src="example.js"></script> <body> <!-- EXAMPLES --> <h1>Example of CKEditor in a Form.</h1> <textarea id="desc" name="desc" rows="2" cols="20"></textarea> </body> </html>
Code:Ext.onReady(function(){ new Ext.form.CKEditor({ applyTo: 'desc', CKConfig: { height : 200, width: 250 } }); });
-
12 Jan 2010 9:56 AM #15
Ckeditor, with destroy Instance
Ckeditor, with destroy Instance
Hello,
good job, thanks !
I just put this modified code with the destroy instance :
Have a good day.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);
And sorry for my English, I'm french
Damien.
-
18 Jan 2010 9:46 AM #16
i have own file browser(design by ext3.1),how adding to ckeditor
-
18 Jan 2010 10:54 AM #17
Hi panyi1982 ,
Just read that :
http://docs.cksource.com/CKEditor_3....%28Uploader%29
All is explicated.
I do the same work. But my media browser not finish, so i can't help you for ck editor now.
Have a good Day !
And always sorry for my verry bad english.
-
25 Jan 2010 1:29 PM #18
if this extension is used in form with trackResetOnLoad: true it doesnt seem to respect the isDirty concept. Anyone have a clue how to fix it?
-
3 Mar 2010 5:55 AM #19
CKEditor doesnt display while trying to remove and add it in a panel
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
-
4 Mar 2010 9:12 PM #20
Excellent extension
Excellent extension
Good job



.
Reply With Quote