1. #11
    Sencha User alekseyyp's Avatar
    Join Date
    Jul 2008
    Posts
    8
    Vote Rating
    0
    alekseyyp is on a distinguished road

      0  

    Default 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)
        })
    });

  2. #12
    Ext JS Premium Member
    Join Date
    Jun 2008
    Location
    Martinique
    Posts
    10
    Vote Rating
    0
    la_spi_man is on a distinguished road

      0  

    Default


    Hi all,
    Can someone give me a simple sample to integrate cke please ?

    Thank in advance.

    I'm french

  3. #13
    Ext JS Premium Member
    Join Date
    Jun 2008
    Location
    Martinique
    Posts
    10
    Vote Rating
    0
    la_spi_man is on a distinguished road

      0  

    Default


    Hi all,
    That s ok for now.
    I'm using sencha architect and ckeditor 4. Works perfectly ....

Similar Threads

  1. CKEditor Extension
    By iosoftgame in forum Ext 3.x: User Extensions and Plugins
    Replies: 39
    Last Post: 5 Sep 2012, 9:16 AM
  2. ExtJs 3.x and CKEditor 3.5 causing problems
    By johnmmr in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 26 Apr 2011, 12:03 PM
  3. CKEditor-GWT FitLayout
    By elirov in forum Community Discussion
    Replies: 4
    Last Post: 16 Feb 2011, 3:57 AM
  4. CkEditor and (Sencha) Extjs
    By russall1985 in forum Community Discussion
    Replies: 0
    Last Post: 10 Feb 2011, 7:15 AM
  5. Initialize panel as disabled with embedded ckeditor
    By ChrisR in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 10 Jan 2011, 1:44 PM