Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #296 from darkwing/replace-editor-toolbar-766658
Browse files Browse the repository at this point in the history
fix bug 766658 - Customized editor toolbar to Sheppy's liking
  • Loading branch information
lmorchard committed Jun 22, 2012
2 parents 1d6bb67 + 4eb2897 commit ce7dec3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
20 changes: 7 additions & 13 deletions apps/wiki/templates/wiki/ckeditor_config.js
Expand Up @@ -28,21 +28,15 @@ CKEDITOR.editorConfig = function(config) {

config.extraPlugins = 'autogrow,definitionlist,mdn-buttons,mdn-link,mdn-syntaxhighlighter';
config.removePlugins = 'link';

config.toolbar_MDN = [
['Source','-','mdnSave','mdnNewPage','mdnPreview'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','DefinitionList','DefinitionTerm','DefinitionDescription','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['BidiLtr', 'BidiRtl' ],
['Link','Unlink','Anchor'],
['Image','Table','HorizontalRule','SpecialChar','Iframe'],
['h1Button', 'h2Button', 'h3Button', 'preButton', 'mdn-syntaxhighlighter', 'codeButton', '-', 'Styles'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
['Source', 'mdnPreview', '-', 'PasteText', 'PasteFromWord', '-', 'SpellChecker', 'Scayt', '-', 'Find', 'Replace', '-', 'ShowBlocks'],
['BulletedList', 'NumberedList', 'DefinitionList', 'DefinitionTerm', '-', 'Outdent', 'Indent', 'Blockquote', '-', 'Image', 'Table', '-', 'TextColor', 'BGColor', '-', 'BidiLtr', 'BidiRtl'],
'/',
['h1Button', 'h2Button', 'h3Button', 'h4Button', 'h5Button', 'h6Button', '-', 'preButton', 'mdn-syntaxhighlighter', 'Styles'],
['Link', 'Unlink', 'Anchor', '-', 'Bold', 'Italic', 'Underline', 'codeButton', 'Strike', 'Superscript', 'RemoveFormat', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyLeft']
];

config.skin = 'kuma';
config.startupFocus = true;
config.toolbar = 'MDN';
Expand Down
2 changes: 1 addition & 1 deletion media/ckeditor/plugins/mdn-buttons/plugin.js
@@ -1,7 +1,7 @@
// See: http://blog.lystor.org.ua/2010/11/ckeditor-plugin-and-toolbar-button-for.html

// the plugin automatically creates button commands for these tags
CKEDITOR.config.mdnButtons_tags = ['pre', 'code', 'h1', 'h2', 'h3'];
CKEDITOR.config.mdnButtons_tags = ['pre', 'code', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];

(function(){

Expand Down
9 changes: 6 additions & 3 deletions media/ckeditor/skins/kuma/editor.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified media/img/markup.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ce7dec3

Please sign in to comment.