From dc9cf6624ab6485c8b2f8e6bcc56b025b603509b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Wed, 11 Dec 2024 11:12:48 +0000 Subject: [PATCH] Update VE core submodule to master (5c98d9b41) New changes: 5c98d9b41 Keep track of recently used symbols Added i18n keys: - visualeditor-specialcharacter-recentlyused Local changes: Register preference for SpecialCharacterDialog recently-used list Implement `canUseUserConfig` platform method Bug: T110722 Change-Id: Ie869ccd4292f87354222af6648d7ea0e5ae50387 --- extension.json | 1 + includes/Hooks.php | 1 + lib/ve | 2 +- modules/ve-mw/init/ve.init.mw.Platform.js | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/extension.json b/extension.json index 7a2e5db03e..83c1dc617b 100644 --- a/extension.json +++ b/extension.json @@ -1382,6 +1382,7 @@ "visualeditor-shortcuts-text-style", "visualeditor-slug-insert", "visualeditor-specialcharacter-button-tooltip", + "visualeditor-specialcharacter-recentlyused", "visualeditor-table-context-col", "visualeditor-table-context-row", "visualeditor-table-contextitem-properties", diff --git a/includes/Hooks.php b/includes/Hooks.php index c8561c24a1..f592a0dff5 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -1021,6 +1021,7 @@ class Hooks implements $preferences['visualeditor-findAndReplace-regex'] = $api; $preferences['visualeditor-findAndReplace-matchCase'] = $api; $preferences['visualeditor-findAndReplace-word'] = $api; + $preferences['visualeditor-symbolList-recentlyUsed-specialCharacters'] = $api; } /** diff --git a/lib/ve b/lib/ve index d210240a07..5c98d9b418 160000 --- a/lib/ve +++ b/lib/ve @@ -1 +1 @@ -Subproject commit d210240a0761fe0c4fb4f4bb819564b3364503f8 +Subproject commit 5c98d9b418bb40352e40daae108424bb591f9f01 diff --git a/modules/ve-mw/init/ve.init.mw.Platform.js b/modules/ve-mw/init/ve.init.mw.Platform.js index 70ab00a23f..56b88fb5c9 100644 --- a/modules/ve-mw/init/ve.init.mw.Platform.js +++ b/modules/ve-mw/init/ve.init.mw.Platform.js @@ -177,6 +177,11 @@ ve.init.mw.Platform.prototype.setUserConfig = function ( keyOrValueMap, value ) } }; +/** + * @inheritdoc + */ +ve.init.mw.Platform.prototype.canUseUserConfig = mw.user.isNamed; + ve.init.mw.Platform.prototype.createLocalStorage = function () { return this.createConflictableStorage( mw.storage ); };