Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active March 19, 2020 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/4075beec6c08d784c5fcba95d515f05f to your computer and use it in GitHub Desktop.
Save bjoerntx/4075beec6c08d784c5fcba95d515f05f to your computer and use it in GitHub Desktop.
TXTextControl.selection.getStart(function(curSelStart) {
curSel.getLength(function(curSelLength) {
TXTextControl.subTextParts.add(
"txmb_myMergeBlock", 0, curSelStart + 1, curSelLength);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment