SyntaxError: unterminated string literal in plugin for CKEDITOR 4.2.0
Closed this issue · 1 comments
I just started over with CKEDITOR 4.2.0. I downloaded it using the download builder from the CKEDITOR site. It comes up with a unterminated string literal error. Firefox points its arrow tot he quote character after "r=". As you can see below, it happens in the ace.js library.
Timestamp: 27.08.2013 14:45:31
Error: SyntaxError: unterminated string literal
Source file: http://localhost:8080/webapp/resources/ckeditor_4_2_custom/plugins/pbckcode/dialogs/ace/ace.js
Row: 25, Column: 60
Source:
this,g)+d}return b.parse.apply(this,arguments)},c}(Date));r="\t\n\x0B \r
My config.js looks like this:
CKEDITOR.editorConfig = function(config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.enterMode = CKEDITOR.ENTER_BR;
config.shiftEnterMode = CKEDITOR.ENTER_P;
config.toolbarGroups = [
// shows the source button
{
name : 'document',
groups : [ 'mode' ]
},
// shows the pbckcode button
{
name : 'pbckcode'
} ];
config.extraPlugins = 'pbckcode';
};
These are the plugins I selected with for the custom download of 4.2.0. However, even downloading the minimum of CKEDITOR plugins inklusive bpckcode resulted in the same error. So I don't assume it's due to other plugins.
var CKBUILDER_CONFIG = {
skin: 'moono',
preset: 'full',
ignore: [
'dev',
'.gitignore',
'.gitattributes',
'README.md',
'.mailmap',
],
plugins : {
'about' : 1,
'a11yhelp' : 1,
'dialogadvtab' : 1,
'basicstyles' : 1,
'bidi' : 1,
'blockquote' : 1,
'clipboard' : 1,
'colorbutton' : 1,
'colordialog' : 1,
'templates' : 1,
'contextmenu' : 1,
'div' : 1,
'resize' : 1,
'toolbar' : 1,
'elementspath' : 1,
'enterkey' : 1,
'entities' : 1,
'filebrowser' : 1,
'find' : 1,
'flash' : 1,
'floatingspace' : 1,
'font' : 1,
'forms' : 1,
'format' : 1,
'horizontalrule' : 1,
'htmlwriter' : 1,
'iframe' : 1,
'wysiwygarea' : 1,
'image' : 1,
'indentblock' : 1,
'indentlist' : 1,
'smiley' : 1,
'justify' : 1,
'link' : 1,
'list' : 1,
'liststyle' : 1,
'magicline' : 1,
'maximize' : 1,
'newpage' : 1,
'pagebreak' : 1,
'pastetext' : 1,
'pastefromword' : 1,
'preview' : 1,
'print' : 1,
'removeformat' : 1,
'save' : 1,
'selectall' : 1,
'showblocks' : 1,
'showborders' : 1,
'sourcearea' : 1,
'specialchar' : 1,
'scayt' : 1,
'stylescombo' : 1,
'tab' : 1,
'table' : 1,
'tabletools' : 1,
'undo' : 1,
'wsc' : 1,
'dialog' : 1,
'dialogui' : 1,
'panelbutton' : 1,
'button' : 1,
'floatpanel' : 1,
'panel' : 1,
'menu' : 1,
'popup' : 1,
'fakeobjects' : 1,
'richcombo' : 1,
'listblock' : 1,
'indent' : 1,
'menubutton' : 1,
'pbckcode' : 1,
'eqneditor' : 1,
'docprops' : 1,
'symbol' : 1,
'slideshow' : 1,
'uicolor' : 1,
'youtube' : 1,
'imagebrowser' : 1,
'confighelper' : 1,
'wordcount' : 1
},
languages : {
'en' : 1,
}
};
fixed in the v1.2.0