Need help with configuration
Hi,
I have recently installed WYSIWYG 1.7.0( modified a lot by me because it was not working at all) on MW 1.19.1
I've done the two customizations by modifying config.js(WYSIWYG/ckeditor/config.js) what you are looking for
1.set up default collapse toolbar to be set up in expanded mode
I'm not sure which config.js and what you have modified but in my case i just commented the below line.
// Make sure advanced toolbars initially collapsed //editor.execCommand( '_toolbarCollapse' );
2.Ability to modified some tool (remove from panel if I don't need them)
I've removed some semantic toolbars by commenting few options like
config.toolbar_Wiki = [ ['SaveAndContinue', 'SaveAndExit', 'MoveWikiPage'], ['Format','Font','FontSize'], ['Bold','Italic','Underline'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['NumberedList','BulletedList'], ['Link','Unlink'], ['TextColor','BGColor'], ['Maximize'], '/', ['Source'], ['PasteText','PasteFromWord', '-','Find','Replace'], ['Strike', 'Subscript','Superscript', '-', 'Blockquote', 'RemoveFormat'], ['Undo','Redo'], ['Image', /*rmButton, */'Table', 'HorizontalRule', 'SpecialChar'], ['MWSpecialTags', 'MWTemplate', 'MWSignature'], [qiButton, wsButton/*, '-', 'SMWtoolbar','SMWAddProperty', 'SMWAddCategory'*/], ['About'] ];
If you have any concerns feel free to ask me.
Cheers
Thanks. I have one problem. If I change anything in config.js the rich editor just turn off and I have only basic editor. For example when I added your part with toolbar_wiki - the editor is just dead?? Any idea? Thanks PS I have mediawiki 1.17.5
I don't have setup with MW-1.17.x but you can try to debug if you are getting any JavaScript errors which may be preventing the further loading of WYSIWYG editor. You can use URL parameter debug=true to load all script and style files as normal ( as they get loaded as merged & minified by MW Resource loader ) and then you may use the break points to enhance your debugging. You may need to clear your browser cache while debugging.
Let me know if you need any help.