Thread:Extension talk:WYSIWYG/Create Category Button?/reply (8)

I created another more advanced dialog where you will get list of existing categories on selection list, it is based on dialogs/link.js. However there are few issues:
 * 1) I do not understand all the old code of "onShow" trigger :) so I am not sure if something must be still commented out or restored back into use. There are also some other places in code which I am not 100% how code should be modified. I tried to remove all replace functions of characters anyway.
 * 2) Updating list of categories immediatedly when dialog is entered is accomplished by adding trigger "onChange: OnCategoryChange" into "id: 'categoryValue'". If existing category element is double clicked, list will contain same value as is in categoryValue -box. When dialog is opened, is there a way to call function to update list with all category values? ...I could not find a way to do it :(
 * 3) I have modified funtion wfSajaxSearchCategoryCKeditor in file CKeditorSajax.body.php to support input parameter.  ...was this editing allowed? In my MW, function was not called anywhere at all before.

WYSIWYG/CKeditorSajax.body.php:

WYSIWYG/ckeditor/plugins/mediawiki/plugin.js:

Code of WYSIWYG/ckeditor/plugins/mediawiki/dialogs/category.js with selection list of existing categories (it works but may require some fine tunig based on issues listed abowe):