Showing
1 changed file
with
4 additions
and
2 deletions
@@ -18,7 +18,7 @@ CKEDITOR.plugins.add('artecode', { | @@ -18,7 +18,7 @@ CKEDITOR.plugins.add('artecode', { | ||
18 | 18 | ||
19 | editor.addCommand('insertHTML', { | 19 | editor.addCommand('insertHTML', { |
20 | exec: function (editor) { | 20 | exec: function (editor) { |
21 | - editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-html">Amazing HTML5 code</code></pre>'); | 21 | + editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-twig">Amazing HTML5/TWIG code</code></pre>'); |
22 | } | 22 | } |
23 | }); | 23 | }); |
24 | editor.ui.addButton('insertHTML', { | 24 | editor.ui.addButton('insertHTML', { |
@@ -29,7 +29,7 @@ CKEDITOR.plugins.add('artecode', { | @@ -29,7 +29,7 @@ CKEDITOR.plugins.add('artecode', { | ||
29 | 29 | ||
30 | editor.addCommand('insertCSS', { | 30 | editor.addCommand('insertCSS', { |
31 | exec: function (editor) { | 31 | exec: function (editor) { |
32 | - editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-css">Amazing CSS3 code</code></pre>'); | 32 | + editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-less">Amazing CSS3/LESS code</code></pre>'); |
33 | } | 33 | } |
34 | }); | 34 | }); |
35 | editor.ui.addButton('insertCSS', { | 35 | editor.ui.addButton('insertCSS', { |
@@ -64,6 +64,8 @@ CKEDITOR.plugins.add('artecode', { | @@ -64,6 +64,8 @@ CKEDITOR.plugins.add('artecode', { | ||
64 | 64 | ||
65 | 65 | ||
66 | CKEDITOR.editorConfig = function (config) { | 66 | CKEDITOR.editorConfig = function (config) { |
67 | + config.extraPlugins = 'artecode'; | ||
68 | + | ||
67 | config.toolbar = [ | 69 | config.toolbar = [ |
68 | {name: 'document', groups: ['mode', 'document', 'doctools', 'clipboard', 'undo'], items: ['Source', '-', 'Save', '-', 'Templates', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, | 70 | {name: 'document', groups: ['mode', 'document', 'doctools', 'clipboard', 'undo'], items: ['Source', '-', 'Save', '-', 'Templates', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, |
69 | {name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, | 71 | {name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, |
-
Please register or login to post a comment