如何使用jQuery适配器传递配置信息到CKEditor? [英] How do I pass in config info to CKEditor using the jQuery adapter?

查看:196
本文介绍了如何使用jQuery适配器传递配置信息到CKEditor?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用最新的 CKeditor jQuery adapter

我已经成功地让它工作,并显示。

I have successfully got it to work, and display.

但是,由于我对 CKeditor 完全陌生,如何使用 jQuery 方法传递配置变量

However, as I am completely new to CKeditor, how do I pass in config variables using the jQuery method?

这是我得到的

$( '#input-content' ).ckeditor('', {
    toolbar: 'basic'
});

我认为从我读到的,第一个参数是一个回调,第二个配置。但这样做并没有改变编辑器。

I think from what I've read, the first argument is meant to be a callback, and the 2nd the config. But doing this has not changed the editor at all.

如何使用这些配置属性等使用 jQuery 适配器?

How do I use these config properties etc using the jQuery adapter?

推荐答案

我传递了一个空函数...

I passed an empty function...

$('textarea#my').ckeditor($.noop, {
    property: 'value'
});

这篇关于如何使用jQuery适配器传递配置信息到CKEditor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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