Last active
January 26, 2017 13:43
-
-
Save bjoerntx/fc3fcac3e47993009dab71b544c08dca 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
function subTextPartEnteredHandler(e) { | |
if (e.name == "protected") | |
TXTextControl.editMode = TXTextControl.EditMode.ReadAndSelect; | |
} | |
function subTextPartLeftHandler(e) { | |
TXTextControl.editMode = TXTextControl.EditMode.Edit; | |
} | |
TXTextControl.addEventListener("subTextPartEntered", subTextPartEnteredHandler); | |
TXTextControl.addEventListener("subTextPartLeft", subTextPartLeftHandler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment