HomePhabricator

Disallow typing newlines in the edit summary

Authored by matmarex.

Description

Disallow typing newlines in the edit summary

Prevent typing newlines by pressing the 'Enter' key on the keyboard,
like in a single-line <input type=text />; and filter newlines from
pasted / IME'd text.

Also:

  • Use 'classes' config rather than .$element.addClass()
  • Remove no-op 'tabIndex' setting (this is the default already)

Bug: T106325
Change-Id: I42d18f51f5ca989818577d6f045f6a516bb5b121

Details

Committed
matmarexJul 20 2015, 11:57 AM
Parents
rEVED307c1825697e: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
I42d18f51f5ca989818577d6f045f6a516bb5b121