1. #21
    Sencha User
    Join Date
    May 2007
    Posts
    26
    Vote Rating
    0
    damsfx is on a distinguished road

      0  

    Default


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

  2. #22
    Ext JS Premium Member
    Join Date
    Nov 2009
    Posts
    2
    Vote Rating
    1
    Kevin Park is on a distinguished road

      0  

    Default 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.

  3. #23
    Ext JS Premium Member
    Join Date
    Nov 2009
    Posts
    2
    Vote Rating
    1
    Kevin Park is on a distinguished road

      1  

    Default


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

  4. #24
    Sencha User edykstra's Avatar
    Join Date
    Feb 2009
    Posts
    98
    Vote Rating
    2
    edykstra is on a distinguished road

      0  

    Default CKEditor-component does not respect the layout of the parent container.

    CKEditor-component does not respect the layout of the parent container.


    Quote Originally Posted by armagedon View Post
    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.
    @armagedon,

    Did you ever figure this out? I have the exact same issue.

    Thanks

  5. #25
    Ext User
    Join Date
    Mar 2010
    Posts
    1
    Vote Rating
    0
    cuinan is on a distinguished road

      0  

    Default


    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.

  6. #26
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    1
    Vote Rating
    0
    uffe_w is on a distinguished road

      0  

    Default 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 = '';
    }

  7. #27
    Sencha User
    Join Date
    Mar 2010
    Posts
    28
    Vote Rating
    0
    Shane F is on a distinguished road

      0  

    Default


    Anyone ever get keyup/keydown/keypress events working for CKEditor extension?

  8. #28
    Sencha User
    Join Date
    Aug 2008
    Posts
    8
    Vote Rating
    0
    arnab_ghosh is on a distinguished road

      0  

    Default 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.

  9. #29
    Sencha User
    Join Date
    Aug 2010
    Posts
    9
    Vote Rating
    0
    growler is on a distinguished road

      0  

    Default


    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=)

  10. #30
    Sencha User demon222's Avatar
    Join Date
    Jan 2008
    Location
    Poland, Warsaw
    Posts
    132
    Vote Rating
    4
    demon222 is on a distinguished road

      0  

    Default


    What you're proposing a module for managing files, images, etc? (Except CKFinder)
    Regards

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi