【发布时间】:2012-11-10 20:32:00
【问题描述】:
网站内容区域的 ckeditor 编辑器窗口具有与网站匹配的蓝色背景,以便客户在添加内容时看到网站的真实表示。
When "show blocks" is selected the blocks border displayed is barely visible on the blue background. 那么,哪里可以将显示块边框的颜色改成较深的颜色呢?
【问题讨论】:
标签: ckeditor
网站内容区域的 ckeditor 编辑器窗口具有与网站匹配的蓝色背景,以便客户在添加内容时看到网站的真实表示。
When "show blocks" is selected the blocks border displayed is barely visible on the blue background. 那么,哪里可以将显示块边框的颜色改成较深的颜色呢?
【问题讨论】:
标签: ckeditor
很遗憾,块显示的边框颜色不可自定义。样式化它们的 CSS 是由 JS 生成的。你可以在这里找到它http://dev.ckeditor.com/browser/CKEditor/trunk/_source/plugins/showblocks/plugin.js#L28
我猜你正在使用 CKEditor 的编译版本,所以源代码被缩小了。您必须打开 ckeditor.js 文件并找到此片段并手动更改它。
或者您可以尝试克隆 CKEditor 4(下周二发布的新版本),在此处更改此值 https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/showblocks/plugin.js#L48,然后编译您的 CKEditor 构建(您可以在此处找到说明 https://github.com/ckeditor/ckeditor-dev)。但要做到这一点,您需要 Mac 或 Linux,因为构建脚本是用 Bash 编写的。
【讨论】:
【讨论】: