Last active
January 27, 2021 22:56
-
-
Save bjoerntx/ca9f213bb6f0da7a65f3bf1db7dea199 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; | |
sel.getStart( function( start ) { | |
sel.getLength( function( length ) { | |
TXTextControl.editableRegions.add( "user@textcontrol.com", 1, start + 1, length ); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment