我尝试在 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 工作所需的插件。
我检查了以下stackoverflow源来解决我的问题:
但是,在应用顶级解决方案时,我仍然会收到错误,如下所示:
我的清单在这里定义:
List linhaInicial = new ArrayList();
Run Code Online (Sandbox Code Playgroud)
我的转换是在这里做的:
String[] convertido = linhaInicial.toArray(new String[linhaInicial.size()]);
Run Code Online (Sandbox Code Playgroud)
问题是我仍然收到以下错误:
Error:(86, 59) java: incompatible types
required: java.lang.String[]
found: java.lang.Object[]
Run Code Online (Sandbox Code Playgroud)
Object[]当它现在应该返回时,我的转换仍然以某种方式返回String[].
有解决方案吗
谢谢!
arraylist ×1
arrays ×1
ckeditor4.x ×1
css ×1
java ×1
javascript ×1
jquery ×1
plugins ×1
string ×1