Ext.define("MyApp.base.BaseTextArea", {
    extend: "Ext.form.field.TextArea",
    xtype: "BaseTextArea",
    
    editor: null,
    
    initComponent: function() {
        this.callParent();
        this.on("afterrender", this.handlerAfterrender);
    },
    
    handlerAfterrender: function(txa, eOpts) {
        var editor = CKEDITOR.replace(txa.getInputId());  
        CKFinder.setupCKEditor(editor,'/ckeditor/');
        txa.editor = editor;
    },
    
    getSubmitValue: function() {
        this.editor.updateElement();
        return this.callParent();
    }
});

 

相关文章:

  • 2021-10-18
  • 2021-10-20
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-05-06
猜你喜欢
  • 2022-01-16
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-04-22
相关资源
相似解决方案