From c68cc74f393991bebe622a39fdc855fc93a8aafc Mon Sep 17 00:00:00 2001 From: David Chan Date: Sun, 17 Jan 2016 18:28:48 +0800 Subject: [PATCH] Remove disablement of jQuery.IME on VisualEditor surfaces The compositionstart trigger in ContentEditableEntry#replaceTextAtSelection causes ve.ce.Surface#handleInsertion to run, and this appears to be all the VisualEditor integration we need. But if we later decide we need custom TextEntry class, see the earlier revision at https://gerrit.wikimedia.org/r/#/c/264577/3 . Change-Id: Iad6a6eccccdf2ec9822cf7df0f0ace7a95b6bea8 --- UniversalLanguageSelector.php | 2 +- extension.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UniversalLanguageSelector.php b/UniversalLanguageSelector.php index 995e26f2..437daf83 100644 --- a/UniversalLanguageSelector.php +++ b/UniversalLanguageSelector.php @@ -162,7 +162,7 @@ $wgULSImeSelectors = array( * * @since 2013.07 */ -$wgULSNoImeSelectors = array( '#wpCaptchaWord', '.ve-ce-surface *' ); +$wgULSNoImeSelectors = array( '#wpCaptchaWord' ); /** * Array of jQuery selectors of elements on which webfonts must not be applied. diff --git a/extension.json b/extension.json index f5925d3e..c6dfd9bc 100644 --- a/extension.json +++ b/extension.json @@ -80,7 +80,7 @@ ], "@ULSNoImeSelectors": "Array of jQuery selectors of elements on which IME must not be enabled. @since 2013.07", "ULSNoImeSelectors": [ - "#wpCaptchaWord", ".ve-ce-surface *" + "#wpCaptchaWord" ], "@ULSNoWebfontsSelectors": "Array of jQuery selectors of elements on which webfonts must not be applied. By default exclude elements with .autonym because that style set font as Autonym @since 2013.09", "ULSNoWebfontsSelectors": [