Last modified: 2014-10-27 00:22:45 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 T71108, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69108 - LivePreview doesn't allow interaction with page content outside of #wikiPreview (it is not passed to mw.hook)
LivePreview doesn't allow interaction with page content outside of #wikiPrevi...
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 30713
Blocks: 39272 51029
  Show dependency treegraph
 
Reported: 2014-08-04 14:49 UTC by Helder
Modified: 2014-10-27 00:22 UTC (History)
4 users (show)

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


Attachments

Description Helder 2014-08-04 14:49:29 UTC
Currently, LivePreview only passes the $wikiPreview to the hook
https://github.com/wikimedia/mediawiki-core/blob/master/resources/src/mediawiki.action/mediawiki.action.edit.preview.js#L101
but the script changes the page content in many other places:
https://github.com/wikimedia/mediawiki-core/blob/master/resources/src/mediawiki.action/mediawiki.action.edit.preview.js#L31-L43
The new content for these parts should also be made available to the user, by passing them to the hook (as VisualEditor does, for example
https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/ccdc215a9882d6bb3e079ca822f64c9089c0d363/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js#L1574
).

This would allow scripts like
https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-featured-articles-links.js&oldid=619815637
to update the modifications of the language links after the user makes some changes and use the live preview (in the example, the "badges" for featured/good articles in other languages).

Also, this is likely what UniversalLanguageSelector needs in order to fix bug 51029.

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


Navigation
Links