我无法让ckeditor在现有代码上运行并运行

时间:2017-07-21 23:51:11

标签: ckeditor

我创建的每个自定义构建都无法运行"未捕获的TypeError:a.addContentsCss不是函数"或者一些类似的投诉 - 我已经尝试过几十个自定义版本。必须存在一些配置程序未强制执行的依赖项。不情愿地,我开始使用由config.js修改的FULL构建。即使我指定了自定义路径,config.js也会被忽略。它只是在内联时才被尊重。即使在这一点上,编辑器仍然没有通过myField.value = "something"识别输入,或者在编组输入以发送到后端时没有从myField.value返回任何内容。显然,我在这里遗漏了一些明显的东西。帮助

使用简单的 javascript jQuery jQuery UI ckeditor 4.x 创建单页应用,以上所有的最新版本,没有"框架"。

创建与以下内容对应的ckeditor的自定义版本:

{
toolbarGroups : [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
{ name: 'tools', groups: [ 'tools' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'colors', groups: [ 'colors' ] },
'/',
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'insert', groups: [ 'insert' ] },
{ name: 'links', groups: [ 'links' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
'/',
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
],
removeButtons : 
'Source,Save,NewPage,Preview,Print,Templates,SelectAll,Form,Checkbox,' +
'Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,' +
'CreateDiv,Blockquote,Language,BidiRtl,BidiLtr,Anchor,Image,Flash,' +
'PageBreak,ShowBlocks,About'
}

使用CKEDITOR.replace("sometextareaid");的一个实例运行代码并获取以下错误之一,具体取决于您花费数小时尝试的百万个自定义版本或完整版本中的哪一个: 一个。除非将其置于内联中,否则将忽略config - 即使您为其设置了自定义URL,config.js似乎也未读。 湾看起来很好,但是以编程方式插入的数据(myTextara.value = "some words";)没有显示出来。 C。看起来很好,显示以前已经存在于textarea中的数据,但是其他用户输入会回复为""当您尝试发送someField.value发送到后端时。 d。无法运行,说某些东西不是其他东西的功能,因自定义构建而异。看起来像依赖项违规,但没有迹象表明我包含哪些内容需要我没有包含的内容。

任何破坏的东西通常都是因为知情人士的愚蠢而明显的结果。我错过了什么?

0 个答案:

没有答案