Arek Wtykło

arteCode dla CKEditora

... ... @@ -18,7 +18,7 @@ CKEDITOR.plugins.add('artecode', {
editor.addCommand('insertHTML', {
exec: function (editor) {
editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-html">Amazing HTML5 code</code></pre>');
editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-twig">Amazing HTML5/TWIG code</code></pre>');
}
});
editor.ui.addButton('insertHTML', {
... ... @@ -29,7 +29,7 @@ CKEDITOR.plugins.add('artecode', {
editor.addCommand('insertCSS', {
exec: function (editor) {
editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-css">Amazing CSS3 code</code></pre>');
editor.insertHtml('<p><br/></p><pre><code class="line-numbers language-less">Amazing CSS3/LESS code</code></pre>');
}
});
editor.ui.addButton('insertCSS', {
... ... @@ -64,6 +64,8 @@ CKEDITOR.plugins.add('artecode', {
CKEDITOR.editorConfig = function (config) {
config.extraPlugins = 'artecode';
config.toolbar = [
{name: 'document', groups: ['mode', 'document', 'doctools', 'clipboard', 'undo'], items: ['Source', '-', 'Save', '-', 'Templates', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']},
{name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']},
... ...