New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wysiwyg does not work with MW1.26.xx (fix available in branch wysiwyg_mw126_rsl) #81
Comments
There are two problems: B. Problem when wiki page is reopened in wysiwyg, see #82 |
From an outside perspective, this extension's tech debt seems to have piled up in a very dramatic way. Just my 2 cents. |
Could you point out what these tech debts are and if possible the preferable way to fix them ? It will most likely be so that I do not have enough expertese to fix them all but to get a list of them would be at least a good start point. |
You need someone who is experienced with both MW and this extension. |
Seems that there are not so many that kind of persons available or then they are just silent or do not want to share they knowledge :) .... I had to try to study this myself and seems like I was able to fix this. I am not sure if I did everything by the book because once again this was done more by trial and error than clear vision about the solution... few beers also helped me at most desperate times :). Pile of tech debt with this extension is not so huge anymore I hope. There are still some style information injected into page directly without resourceloader because I could not figure out how resourceloader could be used, because styles seems to be somehow user specific. Branch wysiwyg_mw126_rsl contains latest modification for wysiwyg using MW1.26 and resourceloader (Version 1.5.6_0 [B551+26.03.2016]). |
Source- mode of CKeditor works (branch wysiwyg_mw126_rsl, Version 1.5.6_0 [B551+17.04.2016]), but so far I have been unable to make it work using resourceloader. Workaround requires usage of variables |
Installed this branch on MediaWiki 1.26.2 and enabled it in LocalSettings.php. MediaWiki failed to start and there is a message in httpd/error.log as below:
Added '' to enclose [] for workaround temporarily: It works but I don't know if this is the right fix. |
Thanks for posting the solution. I think single quotes is the right way to fix it. |
|
Related php code is creating javascript varibles using MW function $wgOut->addJsConfigVars ( array(
....
'fck_mv_plg_strtr_span' => '[]',
....
) Variable |
It seems that $wgOut->addJsConfigVars ( array(
....
'fck_mv_plg_strtr_span' => array(),
....
) ); |
Thanks, I have included this in Version 1.5.6_0 [B551+04.06.2016]. |
Could it be that the main reason to problems of wysiwyg with MW 1.26.x is this:
BREAKING CHANGE: mediawiki.legacy.ajax has been removed, following a lengthy deprecation period (see details here). There seems to be ajax related calls in programs of wysiwyg. If this is the problem, does anybody have any idea how this could be fixed? .... this page has some related information. Or am I on wrong tracks here?
The text was updated successfully, but these errors were encountered: