我试着在CKEditor 4.5.3上使用线高插件,但是它不能工作。
CKEditor甚至都打不开。我得到了一个空白处。
有人能帮帮我吗?
下面是指向我的CKEditor构建的链接:链接
我的控制台是这样说的:
Uncaught TypeError: Cannot read property 'title' of undefined它指向以下代码行(plugin.js:70):
addCombo( editor, 'lineheight', 'size', editor.lang.lineheight.title, config.line_height, editor.lang.lineheight.title, config.lineHeight_style, 40 );以下是一些有助于澄清的图片:


PS: Rich是安装了行高所需的插件。
发布于 2019-04-30 00:35:58
我也经历过同样的问题,这是我所使用的语言中的一个错误。
在档案中:
ckeditor/plugins/lineheight/lang/pt.js它的以下内容引用了语言af,即它应该是'pt‘。
CKEDITOR.plugins.setLang('lineheight','af', {
title: 'linha Altura'
});更正为:
CKEDITOR.plugins.setLang('lineheight','pt', {
title: 'linha Altura'
});发布于 2016-06-23 09:09:54
除了Rich插件之外,行高插件还需要4个插件作为依赖项:
在你的config.js里
config.extraPlugins = 'lineheight,richcombo,floatpanel,panel,listblock,button';https://stackoverflow.com/questions/32259550
复制相似问题