CKEDITOR.editorConfig = function(config) { config.language = MyApp.config.LOCALE; config.allowedContent = true; config.fontSize_sizes = '8/8pt;9/9pt;10/10pt;11/11pt;12/12pt;14/14pt;'; config.font_names = 'Times New Roman'; config.fillEmptyBlocks = true; config.ignoreEmptyParagraph = false; config.enterMode = CKEDITOR.ENTER_DIV; config.forcePasteAsPlainText = false; config.extraPlugins = 'customActions,customPageBreak'; config.removePlugins = 'flash,iframe,forms'; // Document toolbar config.toolbar_MyApp_Document = [ { name : 'clipboard', items : [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] }, { name : 'editing', items : [ 'Find', 'Replace', '-', 'SelectAll' ] }, { name : 'styles', items : [ 'Font', 'FontSize' ] }, { name : 'tools', items : [ 'Maximize' ] }, { name : 'customActions', items : [ 'CustomSave', 'CustomCancel' ] }, '/', { name : 'textFormat', items : [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] }, { name : 'paragraph', items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'CustomPageBreak' ] }, { name : 'insert', items : [ 'Table' ] }, { name : 'links', items : [ 'Link', 'Unlink' ] } ]; // Document duplicata toolbar config.toolbar_MyApp_Duplicata = [ { name : 'clipboard', items : [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] }, { name : 'editing', items : [ 'Find', 'Replace', '-', 'SelectAll' ] }, { name : 'styles', items : [ 'Font', 'FontSize' ] }, { name : 'tools', items : [ 'Maximize' ] }, { name : 'customActions', items : [ 'CustomGeneratePDF', 'CustomClose' ] }, '/', { name : 'textFormat', items : [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] }, { name : 'paragraph', items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'CustomPageBreak' ] }, { name : 'insert', items : [ 'Table' ] }, { name : 'links', items : [ 'Link', 'Unlink' ] } ]; // Deliberation and proposition toolbar config.toolbar_MyApp_Delib_Prop = [ { name : 'clipboard', items : [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] }, { name : 'editing', items : [ 'Find', 'Replace', '-', 'SelectAll' ] }, { name : 'styles', items : [ 'Font', 'FontSize' ] }, { name : 'colors', items : [ 'TextColor', 'BGColor' ] }, { name : 'tools', items : [ 'Maximize', 'Source' ] }, { name : 'customActions', items : [ 'CustomSave', 'CustomCancel', 'CustomCloseAfterError' ] }, '/', { name : 'textFormat', items : [ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'RemoveFormat' ] }, { name : 'paragraph', items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'CustomPageBreak' ] }, { name : 'insert', items : [ 'Table' ] }, { name : 'links', items : [ 'Link', 'Unlink' ] } ]; };