CKEditor如何创建自定义样式下拉? [英] CKEditor how to create custom styles drop down?

查看:516
本文介绍了CKEditor如何创建自定义样式下拉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么方法可以在Ckeditor中创建自定义样式下拉菜单?

Is there any way to create custom Styles drop down in Ckeditor?

屏幕截图:

从截图中可以看出,我想要能够创建一个新的下拉列表(例如Styles下拉菜单)来包含这些黄色和绿色标记以及可能的其他我想要的标记。

As can be seen in screenshot, I want to be able to create a new dropdown (like Styles dropdown) to contain these yellow and green markers and possibly others that I want.

我看过文档,但他们只显示如何创建自定义按钮添加到工具栏,但我不知道如何添加自定义下拉菜单到工具栏的样式。

I have seen docs but they only show how to create custom buttons to add to toolbar but I dont know how to add a custom dropdown with styles to toolbar.

任何帮助将非常感谢。感谢您的帮助

Any help will be greatly appreciated. Thanks for your help

推荐答案

我相信您需要创建一个插件才能使这项工作。一个例子可以在这里找到:
http:// ckeditor。 com / forums / CKEditor-3.x /自定义下拉

I believe you will need to create a plugin to make this work. An example can be found here: http://ckeditor.com/forums/CKEditor-3.x/Custom-drop-down

此外,CKeditor的addOn位于这里:
< a href =http://ckeditor.com/addon/strinsert =nofollow> http://ckeditor.com/addon/strinsert

Additionally there seems to be addOn for CKeditor located here: http://ckeditor.com/addon/strinsert

这个addOn添加字符串到你的内容,但你可以看看代码,并计算如何使它添加样式。

This addOn adds strings to your content but you may be able to look at the code and figure how to make it add stylings.

这篇关于CKEditor如何创建自定义样式下拉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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