Created
December 23, 2016 19:01
-
-
Save bjoerntx/f106b0d1b4e351faae0340b8a3588081 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sel = TXTextControl.selection | |
var bounds = { "start":5,"length":2 } | |
sel.setBounds(bounds) | |
var html = "New text"; | |
var encoded = btoa(html); | |
sel.load(TXTextControl.StreamType.PlainText, encoded); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment