小编Ali*_*rra的帖子

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

我尝试在 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 工作所需的插件。

javascript css jquery plugins ckeditor4.x

5
推荐指数
1
解决办法
3097
查看次数

另一种将包含字符串的ArrayList转换为Java中的字符串数组的方法?

我检查了以下stackoverflow源来解决我的问题:

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[].

有解决方案吗

谢谢!

java arrays string arraylist type-conversion

1
推荐指数
1
解决办法
75
查看次数