更改CKEditor实例的配置选项 [英] Changing configuration options of a CKEditor instance

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

问题描述

我有一个连接到 textarea 的CKEditor实例.我希望能够在创建此实例后更改其其他配置选项,具体取决于另一个表单字段的值.

I have a CKEditor instance attached to a textarea. I would like to be able change some configuration options of this instance after its creation, depending on the value of another form field.

是否可以执行此操作,否则是否有必要使用新选项销毁该实例并附加另一个实例?我已经检查了CKEditor文档,但未找到与此主题相关的任何内容.

Is it possible to do this, or else it's necessary to destroy the instance and attach another one, with the new options? I've checked in the CKEditor docs, but found nothing about this subject.

预先感谢

推荐答案

通常,配置选项仅在创建时才起作用.您也许可以执行一些技巧,因此可以选择一些以后使用的方法,但这通常会更加困难.

Usually the configuration options will work only upon creation. You might be able to perform some tricks and so get some of the options to work at a later time, but that's usually more difficult.

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

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