mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Update VE core submodule to master (ac24b50)
New changes: 0b7e689 FindAndReplaceDialog: don't use tabindex 17b10a5 Localisation updates from https://translatewiki.net. a4133e4 [BREAKING CHANGE] Make whitespaceHtmlCharacters a real static property Local changes: * MWEntityNode: Fix lookup of whitespaceHtmlCharacters Property is now in 'static', and use registry to look up TextNode by symbolic name. Change-Id: Ied8c0c6feb69141c7c53fc4cc790774dee2cb63c Depends-On: I7537b46a9fd58dfb2bd18dc4ed469aa221b96e86
This commit is contained in:
parent
115bf4b3d2
commit
62d16e5a8a
2
lib/ve
2
lib/ve
|
@ -1 +1 @@
|
|||
Subproject commit 6b85afc55e840c3f3ea0c70a2a2f93e572b36d75
|
||||
Subproject commit ac24b50f9e37736f60b92e1d688b15efc05f685d
|
|
@ -48,11 +48,13 @@ ve.ce.MWEntityNode.static.name = 'mwEntity';
|
|||
ve.ce.MWEntityNode.prototype.onUpdate = function () {
|
||||
var
|
||||
chr = this.model.getAttribute( 'character' ),
|
||||
whitespaceHtmlChars = ve.ce.TextNode.whitespaceHtmlCharacters,
|
||||
whitespaceHtmlChars = ve.ce.nodeFactory.lookup( 'text' ).static.whitespaceHtmlCharacters,
|
||||
significantWhitespace = this.getModel().getParent().hasSignificantWhitespace();
|
||||
|
||||
if ( !significantWhitespace && Object.prototype.hasOwnProperty.call( whitespaceHtmlChars, chr ) ) {
|
||||
chr = whitespaceHtmlChars[ chr ];
|
||||
}
|
||||
|
||||
this.$element.text( chr );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue