删除所有CKEditor实例 [英] Remove all CKEditor instances

查看:154
本文介绍了删除所有CKEditor实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单,其中我有CKEditor替换我的< textarea> s(multiple)。我想在提交表单之前从页面中删除所有CKEditor实例。如何完成此操作?

I have a form in which I have CKEditor replacing my <textarea>s (multiple). I want to remove all CKEditor instances from the page before submitting the form. How can I accomplish this?

我看过

I've looked at Remove CKEdit Instance but it didn't help me at all.

注意:我所有的CKEditor都有一个类ckedit

NOTE: All my CKEditors have a class "ckedit"

推荐答案

这将破坏页面上的所有CKEDITOR实例:

This will destroy all CKEDITOR instances on a page:

for(name in CKEDITOR.instances)
{
    CKEDITOR.instances[name].destroy(true);
}

这篇关于删除所有CKEditor实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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