textSelection: Use execcommand to replace text
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Sun, 18 Nov 2018 00:48:56 +0000 (01:48 +0100)
committerTheDJ <hartman.wiki@gmail.com>
Thu, 29 Nov 2018 20:42:58 +0000 (20:42 +0000)
commit4ba80ca7f5472dbdbccc1afa9ebf3549700f2778
tree0928ff7209cd27dba6e42aea39ae79ab50ea69e2
parent4d8b27e93ce2441b81d7e941f77a70dab39190f6
textSelection: Use execcommand to replace text

This preserves the undo history.
Should be supported by all browsers but Firefox.

Bug: T33780
Change-Id: I857965141e8e3aeabacf505d6cfce798f88a9711
resources/src/jquery/jquery.textSelection.js