Last modified: 2014-09-01 13:44:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26041, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24041 - WikiEditor: Don't load the editor for js/css pages (unless CodeEditor is enabled)
WikiEditor: Don't load the editor for js/css pages (unless CodeEditor is enab...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 24713 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-19 08:26 UTC by Liangent
Modified: 2014-09-01 13:44 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2010-06-19 08:26:19 UTC
ie. no WikiEditor for all MediaWiki namespace pages for code (js/css).
Comment 1 Bugmeister Bot 2011-08-19 19:12:52 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 2 shi zhao 2012-05-08 13:57:11 UTC
yes, WikiEditor can't load on any Gadget, only load on [[user:YourUserName/common.js]]. 

Plese fix it!
Comment 3 Liangent 2012-05-08 15:19:50 UTC
(In reply to comment #2)
> yes, WikiEditor can't load on any Gadget, only load on
> [[user:YourUserName/common.js]]. 
> 
> Plese fix it!

Restoring original values. Seems you misunderstood the original bug report.
Comment 4 Derk-Jan Hartman 2013-09-03 08:33:21 UTC
We now show the CodeEditor on JS pages, which relies on the WikiEditor. This makes this bug less noticeable in WMF deploys, but it still exists.
Comment 5 Gerrit Notification Bot 2014-06-22 14:36:01 UTC
Change 141296 had a related patch set uploaded by TheDJ:
Only add WikiEditor for content model WikiText

https://gerrit.wikimedia.org/r/141296
Comment 6 Gerrit Notification Bot 2014-07-31 03:51:16 UTC
Change 141296 merged by jenkins-bot:
Only add WikiEditor for content model WikiText

https://gerrit.wikimedia.org/r/141296
Comment 7 George Orwell III 2014-08-03 07:07:20 UTC
Does the above merge mean the patch is now applied on https://test2.wikipedia.org  ?

If so, then I'm guessing the fact the Page: namespace having a content-model of 'proofread-page' screwed something up and the toolbar buttons related to the Page: namespace are no longer coming up.

Compare...
* https://test2.wikipedia.org/w/index.php?title=Page:The_book_of_try_and_learn.djvu/3&action=edit

with...
* https://en.wikisource.org/w/index.php?title=Page:The_book_of_try_and_learn.djvu/3&action=edit

...to see what I mean.
Comment 8 George Orwell III 2014-08-03 07:18:38 UTC
Scratch Comment 7 - it seems the test2 testbed is not completely configured for the ProofReading extension as a default and the issue lies there. Sorry.
Comment 9 Helder 2014-08-03 13:05:29 UTC
(In reply to George Orwell III from comment #7)

Copying from https://gerrit.wikimedia.org/r/#/c/141296/ :
I was worried that WikiEditor customizations like [
https://en.wiktionary.org/wiki/MediaWiki:Gadget-DeveloperEditorTweaks.js and https://pt.wikibooks.org/wiki/User:Helder.wiki/Tools/CodingToolbar.js
] will stop working in every wiki were CodeEditor is not used (because in this case there will be no WikiEditor on JS pages). Fortunately, I just checked and it won't break as long as the code uses "mw.loader.using( 'ext.wikiEditor.toolbar', ... )" to add WikiEditor before interacting with it.

I think the same applies to the ProofreadPage extension. It seems the extension can force the toolbar to be loaded on any page it wants by just loading the appropriate RL module.

However I think it makes sense to allow extensions to configure the list of content models against which $editPage->contentModel is tested. That is, something like
if ( in_array( $editPage->contentModel, array( CONTENT_MODEL_WIKITEXT, ... ) ) ) {
instead of
if ( $editPage->contentModel !== CONTENT_MODEL_WIKITEXT ) {
where "..." could be set by other extensions which rely on WikiEditor.
Comment 10 Andre Klapper 2014-09-01 12:43:07 UTC
All patches mentioned in this report were merged or abandoned - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?
Comment 11 Krinkle 2014-09-01 13:44:20 UTC
*** Bug 24713 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links