mediawiki.action.edit.preview: Use .textSelection( 'getContents' )
authorFomafix <fomafix@googlemail.com>
Thu, 1 Jan 2015 12:59:46 +0000 (12:59 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Thu, 1 Jan 2015 12:59:46 +0000 (12:59 +0000)
commit84be4f8a9db64435894e59943146b94a9dc9b81f
tree1b1cb57db58387842cd47181023accd0d090e983
parent4316c8c48bece51347088783f60b8959bdf6b5d2
mediawiki.action.edit.preview: Use .textSelection( 'getContents' )

Replace .val() by .textSelection( 'getContents' )
for '#wpTextbox1' and '#wpSummary'.
This is already supported by extension CodeEditor.

$( mw ).trigger( 'LivePreviewPrepare' ) is not needed anymore.

Bug: T78838
Change-Id: I30bd709d8b4778f45f3d5f395201e0ca6ce18891
resources/Resources.php
resources/src/mediawiki.action/mediawiki.action.edit.preview.js