-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: further fixed ckeditor to be quicker
- Loading branch information
Showing
8 changed files
with
308 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,85 @@ | ||
/** | ||
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or http://ckeditor.com/license | ||
*/ | ||
/* | ||
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.md or http://ckeditor.com/license | ||
*/ | ||
CKEDITOR.editorConfig = function (a) { | ||
|
||
a.plugins = "a11ychecker,dialogui,dialog,a11yhelp,about,xml,ajax,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,codemirror,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,copyformatting,dialogadvtab,div,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,horizontalrule,htmlwriter,iframe,image,indent,indentblock,indentlist,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,removeformat,resize,save,scayt,selectall,showblocks,showborders,smiley,sourcearea,sourcedialog,specialchar,stylescombo,tab,table,tabletools,undo,videodetector,wsc,wysiwygarea,lineutils,widgetselection,widget,html5video,markdown"; | ||
|
||
a.filebrowserBrowseUrl = CKEDITOR.basePath + "../../../third_party/kcfinder/browse.php?type\x3dfiles"; | ||
a.filebrowserImageBrowseUrl = CKEDITOR.basePath + "../../../third_party/kcfinder/browse.php?type\x3dimages"; | ||
a.filebrowserFlashBrowseUrl = CKEDITOR.basePath + "../../../third_party/kcfinder/browse.php?type\x3dflash"; | ||
a.filebrowserUploadUrl = CKEDITOR.basePath + "../../../third_party/kcfinder/upload.php?type\x3dfiles"; | ||
a.filebrowserImageUploadUrl = CKEDITOR.basePath + "../../../third_party/kcfinder/upload.php?type\x3dimages"; | ||
a.filebrowserFlashUploadUrl = CKEDITOR.basePath + "../../../third_party/kcfinder/upload.php?type\x3dflash"; | ||
a.removeDialogTabs = "link:upload;image:Upload"; | ||
a.image_prefillDimensions = !1; | ||
a.image2_prefillDimensions = !1; | ||
a.allowedContent = !0; | ||
a.skin = "bootstrapck"; | ||
a.autoParagraph = !1; | ||
a.basicEntities = !1; | ||
a.entities = !1; | ||
a.uiColor = "#f1f1f1"; | ||
|
||
CKEDITOR.editorConfig = function( config ) { | ||
|
||
// %REMOVE_START% | ||
// The configuration options below are needed when running CKEditor from source files. | ||
config.skin = 'bootstrapck'; | ||
config.plugins = 'a11ychecker,dialogui,dialog,a11yhelp,about,xml,ajax,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,codemirror,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,copyformatting,dialogadvtab,div,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,horizontalrule,htmlwriter,iframe,image,indent,indentblock,indentlist,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,removeformat,resize,save,scayt,selectall,showblocks,showborders,smiley,sourcearea,sourcedialog,specialchar,stylescombo,tab,table,tabletools,undo,videodetector,wsc,wysiwygarea,lineutils,widgetselection,widget,html5video,markdown'; | ||
config.allowedContent = true; | ||
// %REMOVE_END% | ||
|
||
// Define changes to default configuration here. For example: | ||
// config.language = 'fr'; | ||
//config.uiColor = '#EEF6EF'; | ||
}; | ||
"rtl" == $("html").attr("dir") && (a.contentsLangDirection = "rtl"); | ||
a.toolbar_popup = [ | ||
["Save", "Source", "Createlimereplacementfields"], | ||
["Cut", "Copy", "Paste", "PasteText", "PasteFromWord"], "Undo Redo - Find Replace - SelectAll RemoveFormat".split(" "), | ||
"Image VideoDetector Flash Table HorizontalRule Smiley SpecialChar".split(" "), "/", "Bold Italic Underline Strike - Subscript Superscript".split(" "), | ||
"NumberedList BulletedList - Outdent Indent Blockquote CreateDiv".split(" "), ["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"], | ||
["BidiLtr", "BidiRtl"], | ||
["Link", "Unlink", "Anchor", "Iframe"], "/", ["Styles", "Format", "Font", "FontSize"], | ||
["TextColor", "BGColor"], | ||
["ShowBlocks", "Templates"] | ||
]; | ||
a.toolbar_inline = [ | ||
["Source", "Createlimereplacementfields"], | ||
["Cut", | ||
"Copy", "Paste", "PasteText", "PasteFromWord" | ||
], "Undo Redo - Find Replace - SelectAll RemoveFormat".split(" "), ["Image", "VideoDetector", "Flash"], | ||
["Table", "HorizontalRule", "Smiley", "SpecialChar"], | ||
["Bold", "Italic", "Underline", "Strike"], | ||
["Subscript", "Superscript"], | ||
["NumberedList", "BulletedList"], | ||
["Outdent", "Indent", "Blockquote", "CreateDiv"], | ||
["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"], | ||
["BidiLtr", "BidiRtl"], | ||
["ShowBlocks", "Templates"], | ||
["Link", "Unlink"], | ||
["Styles", "Format", "Font", "FontSize"], | ||
["Anchor", "Iframe"], | ||
["TextColor", "BGColor"] | ||
]; | ||
a.toolbar_inline2 = [ | ||
["Maximize", "Createlimereplacementfields"], | ||
["Bold", "Italic", "Underline"], | ||
["NumberedList", "BulletedList", "-", "Outdent", "Indent"], | ||
["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"], | ||
["Link", "Unlink", "Image"], | ||
["Source"] | ||
]; | ||
|
||
a.toolbar = [ | ||
["Source", "Createlimereplacementfields"], | ||
["Cut", | ||
"Copy", "Paste", "PasteText", "PasteFromWord" | ||
], "Undo Redo - Find Replace - SelectAll RemoveFormat".split(" "), ["Image", "VideoDetector", "Flash"], | ||
["Table", "HorizontalRule", "Smiley", "SpecialChar"], | ||
["Bold", "Italic", "Underline", "Strike"], | ||
["Subscript", "Superscript"], | ||
["NumberedList", "BulletedList"], | ||
["Outdent", "Indent", "Blockquote", "CreateDiv"], | ||
["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"], | ||
["BidiLtr", "BidiRtl"], | ||
["ShowBlocks", "Templates"], | ||
["Link", "Unlink"], | ||
["Styles", "Format", "Font", "FontSize"], | ||
["Anchor", "Iframe"], | ||
["TextColor", "BGColor"] | ||
]; | ||
a.extraPlugins = "limereplacementfields,codemirror,sourcedialog"; | ||
a.removePlugins = 'sourcearea'; | ||
|
||
}; | ||
|
Oops, something went wrong.