Remove maxLength from new section title in NWE

MediaWiki doesn't have such a limitation. This might have been copied
from the edit summary code, which used to be limited to 255 bytes.

Change-Id: I4afe9b1cde0663c47c0c2502b6e32116b912208b
This commit is contained in:
Bartosz Dziewoński 2020-11-26 00:21:58 +01:00
parent e46f4aa644
commit c49f919d90

View file

@ -507,7 +507,6 @@ ve.init.mw.DesktopArticleTarget.prototype.setupNewSection = function ( surface )
this.sectionTitle = new OO.ui.TextInputWidget( {
$element: $( '<h2>' ),
classes: [ 've-ui-init-desktopArticleTarget-sectionTitle' ],
maxLength: 255,
placeholder: ve.msg( 'visualeditor-section-title-placeholder' ),
spellcheck: true
} );