Thread:Extension talk:WYSIWYG/Toolbar of WikiEditor (MW 1.22) conflicts with toolbar of WYSIWYG editor

Environment: MW 1.22, PHP 5.5.6, MySQL 5.6.14, Apache 2.4.7 (XAMPP for Linux 1.8.3-2) Browsers: IE11 and FireFox v26.0


 * 1) Version of WYSIWYG files were taken intially for MW 1.21 from here: https://docs.google.com/file/d/0B-aiZzKTmWI2bG8yVzBCOWNLamM/view?pli=1 (WYSIWYG_MW_v1.20.2.zip)
 * 2) Some modifications have been adapted into it from here: https://drive.google.com/file/d/0B-aiZzKTmWI2Q0wyd3FMRVpuZWM/view?pli=1 (WYSIWYG_MV_v1.22.0.zip).
 * 3) Additional modification like: reference by Varlin taken from here http://wikirouge.net/nowiki/mediawiki/WYSIWYG/ and some modifications made by me: category, image etc.

=> '''WikiEditor of MW 1.22 did not work together with WYSIWYG editor in abowe environment. Toolbar of WikiEditor was visible at same time with toolbar of WYSIWYG.'''

By some trial and error and by spying modifications made by Ciges (https://github.com/Ciges/CKEditor_in_MediaWiki ...quite many files of this package are not identical at all with files from abowe WYSIWYG_MW_v1.20.2.zip and WYSIWYG_MV_v1.22.0.zip) I was able to make WikiEditor and WYSIWYG work together.

I had to make modifications with these files:
 * ./LocalSettings.php
 * ./extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js
 * ./extensions/WYSIWYG/CKeditor.body.php

I tested modification with IE11 and FireFox v26.0, it seems to work. However, I am not an expert on this field so there may have been smarter way to do this and there still may be some issues left which I did not notice with my test. Feedback is always appreciated.

LocalSettings.php

./extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js

-to disable WikiEditor at load if WYSIWYG is enabled

./extensions/WYSIWYG/CKeditor.body.php


 * there are modifications in 5 places to hide/show toolbars of WikiEditor/WYSIWYG modes based on selected editing mode
 * main problem with IE was to get link text of disabling WYSIWYG mode to be visible at time when edit mode of WYSIWYG was entered, I suspect text was behind the ckTools section '#ckTools' or then it was not displayed at all with IE (anyhow, it was not vivisble on screen), with FireFox it worked. Solution was to place link text before the form "#editform" in WYSIWYG mode.