1 | var ts_base_toolbar = [ |
---|
2 | { |
---|
3 | name: 'document', |
---|
4 | items: ['Source'] |
---|
5 | }, { |
---|
6 | name: 'tools', |
---|
7 | items: ['Maximize'] |
---|
8 | }, { |
---|
9 | name: 'clipboard', |
---|
10 | items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] |
---|
11 | }, { |
---|
12 | name: 'editing', |
---|
13 | items: ['Find', 'Replace', 'SelectAll'] |
---|
14 | }, { |
---|
15 | name: 'forms', |
---|
16 | items: ['Form', 'Checkbox', 'Radio', 'TextField', 'TextArea', 'Select', 'Button', 'ImageButton', 'HiddenField'] |
---|
17 | }, '/', { |
---|
18 | name: 'basicstyles', |
---|
19 | items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] |
---|
20 | }, { |
---|
21 | name: 'paragraph', |
---|
22 | items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] |
---|
23 | }, { |
---|
24 | name: 'links', |
---|
25 | items: ['Link', 'Unlink', 'Anchor'] |
---|
26 | }, { |
---|
27 | name: 'insert', |
---|
28 | items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak', 'Iframe'] |
---|
29 | }, '/', { |
---|
30 | name: 'styles', |
---|
31 | items: ['Styles', 'Format', 'Font', 'FontSize', 'TextColor', 'BGColor'] |
---|
32 | } |
---|
33 | ]; |
---|
34 | |
---|
35 | CKEDITOR.editorConfig = function(config) { |
---|
36 | config.fullPage = true; |
---|
37 | config.uiColor = '#f5f5f5'; |
---|
38 | config.skin = 'moonocolor'; |
---|
39 | config.toolbar = ts_base_toolbar; |
---|
40 | config.enterMode = CKEDITOR.ENTER_BR; |
---|
41 | config.pasteFromWordRemoveFontStyles = false; |
---|
42 | config.autoParagraph = false; |
---|
43 | config.font_names = "Calibri/Calibri, Verdana, Geneva, sans-serif;" + "Arial/Arial, Helvetica, sans-serif;" + "Comic Sans MS/Comic Sans MS, cursive;" + "Courier New/Courier New, Courier, monospace;" + "Georgia/Georgia, serif;" + "Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;" + "Tahoma/Tahoma, Geneva, sans-serif;" + "Times New Roman/Times New Roman, Times, serif;" + "Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;" + "Verdana/Verdana, Geneva, sans-serif;"; |
---|
44 | }; |
---|