Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 附加后的ckeditor即时加载_Php_Javascript_Jquery_Ckeditor - Fatal编程技术网

Php 附加后的ckeditor即时加载

Php 附加后的ckeditor即时加载,php,javascript,jquery,ckeditor,Php,Javascript,Jquery,Ckeditor,我使用这种方式在php页面中使用class方法加载ckeditor:- <script type="text/javascript" src="../ckeditor.js"></script> <textarea class="ckeditor" name="editor0_en"><?=$name;?>hellohello</textarea> 你好 对于初始文本区域,它可以正常工作。然后,我在点击一个按钮后,尝试在同一个类

我使用这种方式在php页面中使用class方法加载ckeditor:-

<script type="text/javascript" src="../ckeditor.js"></script>

<textarea class="ckeditor" name="editor0_en"><?=$name;?>hellohello</textarea>

你好
对于初始文本区域,它可以正常工作。然后,我在点击一个按钮后,尝试在同一个类中附加更多的textarea,但是,这一次,我只能附加一个裸露的textarea,而不使用ckeditor加载


在附加之后,我是否可以加载ckeditor外观?谢谢

在附加textarea后使用

CKEDITOR.replace(element);
它用CKEditor实例替换textarea或DOM元素(DIV)