HomePhabricator

mediawiki.action.edit.preview: Use .textSelection( 'getContents' )

Tags
None
Referenced Files
None
Subscribers
None

Description

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

Details

Provenance
FomafixAuthored on
[[mw:User:Fomafix]]Committed on Jan 1 2015, 12:59 PM
Parents
rMW4316c8c48bec: Implement support for a minimum log level in $wgDebugLogGroups
Branches
Unknown
Tags
Unknown
ChangeId
I30bd709d8b4778f45f3d5f395201e0ca6ce18891

Event Timeline