jquery.textSelection: Add setContents function
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Sat, 26 Jul 2014 13:47:03 +0000 (15:47 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Sat, 26 Jul 2014 14:09:37 +0000 (16:09 +0200)
commit35d38efa4ae1c0a66937ff1a8c8200d24ae4f96b
treead45c6c463c97152533a487b9cf80763a7ac8d75
parent0afc858296811d447370855c372489a5e1e0ae5e
jquery.textSelection: Add setContents function

This function is specified in the commands handler below, but did not
have an implementation for the plain textarea case.

Better we make this work. A user wanted this api call so his JS
cleanup script could work consistently on both plain textarea and the
CodeEditor

Change-Id: Ib3afc505037a5b12269e55b4b130a38a3fac7823
resources/src/jquery/jquery.textSelection.js
tests/qunit/suites/resources/jquery/jquery.textSelection.test.js