Edit stash: Support CodeEditor
authorFomafix <fomafix@googlemail.com>
Thu, 23 Jun 2016 11:31:00 +0000 (11:31 +0000)
committerLegoktm <legoktm.wikipedia@gmail.com>
Fri, 24 Jun 2016 12:36:06 +0000 (12:36 +0000)
commitebe7205c63482a79940245f81fede4ea9906a894
tree9d52c69d6bf9cedc62e3d765b6d5e4b1533458af
parente3abbc8f68d45db080dbe0cf9fbaf55e13f492b4
Edit stash: Support CodeEditor

Use .textSelection( 'getContents' ) instead of .val() for '#wpTextbox1' and '#wpSummary'.

Then the normalization of line endings and dependency on 'jquery.getAttrs' is not necessary.

Bug: T137861
Change-Id: I26f7021a2a02cf719c9e5f44787b95cfc3239959
resources/Resources.php
resources/src/mediawiki.action/mediawiki.action.edit.stash.js