如何在CKEditor中使用行高插件?

Ali*_*rra 5 javascript css jquery plugins ckeditor4.x

我尝试在 CKEditor 4.5.3 上使用行高插件,但它不起作用。

CKEditor 甚至无法打开。我在应该在的地方出现了一个空白。

有人可以帮我吗?

这是我的 CKEditor 版本的链接:链接

我的控制台是这样说的:

Uncaught TypeError: Cannot read property 'title' of undefined
Run Code Online (Sandbox Code Playgroud)

它指向此代码行(plugin.js:70):

addCombo( editor, 'lineheight', 'size', editor.lang.lineheight.title, config.line_height, editor.lang.lineheight.title, config.lineHeight_style, 40 );
Run Code Online (Sandbox Code Playgroud)

以下是一些有助于澄清的图像:

错误

代码

PS:已安装 Rich Combo,这是 Line Height 工作所需的插件。

小智 3

我遇到了同样的问题,这是我使用的语言中的一个错误。

在文件中:

ckeditor/plugins/lineheight/lang/pt.js
Run Code Online (Sandbox Code Playgroud)

它的以下内容引用了语言“af”,因为它应该是“pt”

CKEDITOR.plugins.setLang('lineheight','af', {
    title: 'linha Altura'
});
Run Code Online (Sandbox Code Playgroud)

更正为:

CKEDITOR.plugins.setLang('lineheight','pt', {
    title: 'linha Altura'
});
Run Code Online (Sandbox Code Playgroud)