ckeditor所需文件未加载 [英] ckeditor required files does not load

查看:260
本文介绍了ckeditor所需文件未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中使用了ckeditor4。我有一个页面(page1),该ckeditor已加载。此页面已装入模态组件(实现)。当我单击源页面(第2页)上的按钮时,第1页以模式加载(在php中加载并将数据返回给客户端),并且ckeditor正常工作。然后我关闭了page1(模式),然后再次单击源页面上的按钮以加载page1(模式)。但是这一次,ckeditor无法正常工作。我检查这个问题。第一次加载所有ckeditor文件,但是第二次加载ckeditor.js。

I use the ckeditor4 in my project. I have a page (page1) that the ckeditor is loaded its. this page is loaded in modal components (materialize). when i click to a button on source page (page2), page1 is loaded in modal (loaded in php and return data to client) and ckeditor working without problem. then i closed page1 (modal) and i click to button again on source page for loading page1 (in modal). but this time, ckeditor not working. i check this problem. in first time, load all of ckeditor files, but in second time, just load ckeditor.js .

首次加载文件:

第二次,只是ckediror.js load:

and second time, just ckediror.js load :

推荐答案

我找到了解决此问题的方法。我使用 replace 方法在加载页面事件中生成ckeditor:

I found a solution for this problem. i used replace method for generate ckeditor in load page event:

CKEDITOR.replace( 'name_of_textarea' );

这篇关于ckeditor所需文件未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆