keyinhong 2015-07-28 09:41 采纳率: 0%
浏览 1754
已结题

extjs集成fckeditor取不到值

我在这个地址http://down.51cto.com/data/549347 找到个例子,按照方法已经将fckeditor在页面显示,但是在提交的时候总提示最后的变量editorInstance未定义,我提到最前面就提示为空或者不是对象,又谁集成成功过,帮个忙,extjs 自带的editor太水了
var editorInstance;

/**

  • FCKEditor初始化完成将调用此方法
  • @param {Object} editorInstance
    */
    function FCKeditor_OnComplete( instance ) {
    editorInstance= instance;
    }; 我只有一个金币了,能解决问题就十分感谢了
  • 写回答

1条回答 默认 最新

  • keyinhong 2015-07-28 09:48
    关注

    {
    xtype : "textarea",

    name : "content",
    anchor : '97%',
    height : 400,
    id : "content",
    fieldLabel : "内容",
    listeners : {
    "render" : function(f) {
    fckEditor = new FCKeditor("content");
    fckEditor.Height = 400;
    fckEditor.Width = 530;

    fckEditor.BasePath = "/test/fckeditor/";
    fckEditor.Config['CustomConfigurationsPath'] = "/fckeditor/fckconfig.js"
    fckEditor.ReplaceTextarea();
    }
    }
    }

                                        通过 Ext.getCmp('content').getValue()能得到值吗?
    
    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改