mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
f11fbee278
Add a parentDoc parameter to the MWReferenceModel constructor and use it to inherit language, direction and HTML document. Remove getLang(), setLang(), getDir() and setDir() whose only purpose was to propagate the language and direction from the parent document in a hacky way. This causes ReferenceModel documents to always have an HTML document for URL resolution. Previously, this worked when editing existing references because the newFromReferenceNode() code path calls cloneFromRange() which propagates the HTML document, but it didn't work when creating new references. Bug: T109599 Change-Id: I5d9d34d4343be8428318fa0b795fa54c110e34f4 |
||
---|---|---|
.. | ||
ve.ui.MWBetaWelcomeDialog.js | ||
ve.ui.MWCancelConfirmDialog.js | ||
ve.ui.MWCitationDialog.js | ||
ve.ui.MWCommandHelpDialog.js | ||
ve.ui.MWMediaDialog.js | ||
ve.ui.MWMetaDialog.js | ||
ve.ui.MWMobileSaveDialog.js | ||
ve.ui.MWReferenceDialog.js | ||
ve.ui.MWReferencesListDialog.js | ||
ve.ui.MWRequiredParamBlankConfirmDialog.js | ||
ve.ui.MWSaveDialog.js | ||
ve.ui.MWTemplateDialog.js | ||
ve.ui.MWTransclusionDialog.js | ||
ve.ui.MWWikitextSwitchConfirmDialog.js |