-
11 Feb 2013 5:51 AM #11
Formatted code is here
Formatted code is here
Thanks for this code.

Formatted one is here:
Code:Ext.define('Ext.ux.CKeditor', { extend : 'Ext.form.field.TextArea', alias : 'widget.ckeditor', xtype: 'ckeditor', initComponent : function(){ this.callParent(arguments); this.on('afterrender', function(){ Ext.apply(this.CKConfig ,{ height : this.getHeight() }); this.editor = CKEDITOR.replace(this.inputEl.id,this.CKConfig); this.editorId =this.editor.id; },this); }, onRender : function(ct, position){ if(!this.el){ this.defaultAutoCreate ={ tag : 'textarea', autocomplete : 'off' }; } this.callParent(arguments) }, setValue : function(value){ this.callParent(arguments); if(this.editor){ this.editor.setData(value); } }, getRawValue: function(){ if(this.editor){ return this.editor.getData() }else{ return'' } } }); CKEDITOR.on('instanceReady',function(e){ var o = Ext.ComponentQuery.query('ckeditor[editorId="'+ e.editor.id +'"]'), comp = o[0]; e.editor.resize(comp.getWidth(), comp.getHeight()) comp.on('resize',function(c,adjWidth,adjHeight){ c.editor.resize(adjWidth, adjHeight) }) });
-
22 Apr 2013 5:40 AM #12
Hi all,
Can someone give me a simple sample to integrate cke please ?
Thank in advance.
I'm french
-
23 Apr 2013 2:56 AM #13
Hi all,
That s ok for now.
I'm using sencha architect and ckeditor 4. Works perfectly ....
Similar Threads
-
CKEditor Extension
By iosoftgame in forum Ext 3.x: User Extensions and PluginsReplies: 39Last Post: 5 Sep 2012, 9:16 AM -
ExtJs 3.x and CKEditor 3.5 causing problems
By johnmmr in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 26 Apr 2011, 12:03 PM -
CKEditor-GWT FitLayout
By elirov in forum Community DiscussionReplies: 4Last Post: 16 Feb 2011, 3:57 AM -
CkEditor and (Sencha) Extjs
By russall1985 in forum Community DiscussionReplies: 0Last Post: 10 Feb 2011, 7:15 AM -
Initialize panel as disabled with embedded ckeditor
By ChrisR in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 10 Jan 2011, 1:44 PM


Reply With Quote