@@ -85,7 +85,7 @@ define([
8585 }
8686
8787 until ( isAttached ( this . $el ) ) . then ( function ( ) {
88- this . editor = CKEDITOR . replace ( this . $el [ 0 ] , {
88+ this . editor = CKEDITOR . create ( this . $el [ 0 ] , {
8989 dataIndentationChars : '' ,
9090 disableNativeSpellChecker : false ,
9191 enterMode : CKEDITOR [ Origin . constants . ckEditorEnterMode ] ,
@@ -112,24 +112,45 @@ define([
112112 elements . forEach ( function ( element ) { writer . setRules ( element , rules ) ; } ) ;
113113 }
114114 } ,
115- toolbar : [
116- { name : 'document' , groups : [ 'mode' , 'document' , 'doctools' ] , items : [ 'Source' , '-' , 'ShowBlocks' ] } ,
117- { name : 'clipboard' , groups : [ 'clipboard' , 'undo' ] , items : [ 'PasteText' , 'PasteFromWord' , '-' , 'Undo' , 'Redo' ] } ,
118- { name : 'editing' , groups : [ 'find' , 'selection' , 'spellchecker' ] , items : [ 'Find' , 'Replace' , '-' , 'SelectAll' ] } ,
119- { name : 'paragraph' , groups : [ 'list' , 'indent' , 'blocks' , 'align' , 'bidi' ] , items : [ 'NumberedList' , 'BulletedList' , '-' , 'Outdent' , 'Indent' , '-' , 'Blockquote' , 'CreateDiv' ] } ,
120- { name : 'direction' , items : [ 'BidiLtr' , 'BidiRtl' ] } ,
121- '/' ,
122- { name : 'basicstyles' , groups : [ 'basicstyles' , 'cleanup' ] , items : [ 'Bold' , 'Italic' , 'Underline' , 'Strike' , 'Subscript' , 'Superscript' , '-' , 'RemoveFormat' ] } ,
123- { name : 'styles' , items : [ 'JustifyLeft' , 'JustifyCenter' , 'JustifyRight' , 'JustifyBlock' ] } ,
124- { name : 'links' , items : [ 'Link' , 'Unlink' ] } ,
125- { name : 'colors' , items : [ 'TextColor' , 'BGColor' ] } ,
126- { name : 'insert' , items : [ 'SpecialChar' , 'Table' ] } ,
127- { name : 'tools' , items : [ ] } ,
128- { name : 'others' , items : [ '-' ] }
129- ]
115+ plugins : window . CKEDITOR . pluginsConfig ,
116+ toolbar : {
117+ items : [
118+ 'sourceEditing' ,
119+ 'showBlocks' ,
120+ 'undo' ,
121+ 'redo' ,
122+ '|' ,
123+ 'findAndReplace' ,
124+ 'selectAll' ,
125+ '|' ,
126+ 'numberedList' ,
127+ 'bulletedList' ,
128+ 'blockQuote' ,
129+ 'indent' ,
130+ 'outdent' ,
131+ '|' ,
132+ 'heading' ,
133+ '|' ,
134+ 'bold' ,
135+ 'italic' ,
136+ 'underline' ,
137+ 'strikethrough' ,
138+ 'subscript' ,
139+ 'superscript' ,
140+ 'alignment' ,
141+ 'removeFormat' ,
142+ '|' ,
143+ 'link' ,
144+ 'fontColor' ,
145+ 'fontBackgroundColor' ,
146+ '|' ,
147+ 'specialCharacters' ,
148+ 'insertTable'
149+ ] ,
150+ shouldNotGroupWhenFull : true
151+ }
130152 } ) ;
131153 } . bind ( this ) ) ;
132-
133154 return this ;
134155 } ;
135156
0 commit comments