Esanders has uploaded a new change for review.
https://gerrit.wikimedia.org/r/110960
Change subject: Implement surface paste rules for media/ref dialogs
......................................................................
Implement surface paste rules for media/ref dialogs
Currently they have unrestricted paste, so give them the same rules
as the parent surface.
Change-Id: I952f98477219a55d25a2bd817344bde58a4862d4
---
M lib/ve
M modules/ve-mw/ui/dialogs/ve.ui.MWMediaEditDialog.js
M modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js
3 files changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/60/110960/1
diff --git a/lib/ve b/lib/ve
index 5092503..9e674cb 160000
--- a/lib/ve
+++ b/lib/ve
-Subproject commit 5092503046c4232ff4b50e046b3605e94ea8dffa
+Subproject commit 9e674cbdfda39869dfe4f41df74c83901e93eea9
diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWMediaEditDialog.js
b/modules/ve-mw/ui/dialogs/ve.ui.MWMediaEditDialog.js
index 53cbd56..837bfb7 100644
--- a/modules/ve-mw/ui/dialogs/ve.ui.MWMediaEditDialog.js
+++ b/modules/ve-mw/ui/dialogs/ve.ui.MWMediaEditDialog.js
@@ -257,7 +257,8 @@
{
'$': this.$,
'tools': this.constructor.static.toolbarGroups,
- 'commands': this.constructor.static.surfaceCommands
+ 'commands': this.constructor.static.surfaceCommands,
+ 'pasteRules':
ve.init.mw.ViewPageTarget.static.pasteRules
}
);
diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js
b/modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js
index ff5814c..b1a3fad 100644
--- a/modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js
+++ b/modules/ve-mw/ui/dialogs/ve.ui.MWReferenceDialog.js
@@ -156,7 +156,8 @@
{
'$': this.$,
'tools': this.constructor.static.toolbarGroups,
- 'commands': this.constructor.static.surfaceCommands
+ 'commands': this.constructor.static.surfaceCommands,
+ 'pasteRules':
ve.init.mw.ViewPageTarget.static.pasteRules
}
);
--
To view, visit https://gerrit.wikimedia.org/r/110960
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I952f98477219a55d25a2bd817344bde58a4862d4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits