Edit warning should get value from editors
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Thu, 27 Mar 2014 23:33:23 +0000 (00:33 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 28 Jul 2014 19:59:18 +0000 (19:59 +0000)
commit0a8f8595f4c44b08db97bb16e02e10062af3f504
treee9f1f580272e331a03491855a02b4547c1f9d83e
parentc65ddeddc76e66c0669a41b145a8c01b9a475ecc
Edit warning should get value from editors

Editwarning needs to make sure that any editor that uses something
other than wpTextbox1 to keep the value of the form, is able to write
this into the form before we are allowed to leave the page.

This is already supported by the textSelection api, so use that to
retrieve the value instead of plain .val()

Bug: 61117
Change-Id: I24d7096929c4eed36376ef9089d7f1b72a0b6682
resources/Resources.php
resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js