Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 3, 2015 12:10
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/6cfc4614cd55dfa169bb to your computer and use it in GitHub Desktop.
Save bjoerntx/6cfc4614cd55dfa169bb to your computer and use it in GitHub Desktop.
TXTextControl.addEventListener("ribbonTabsLoaded", function (e) {
addAction();
});
function addAction() {
document.getElementById("fileMnuItemOpen").addEventListener("click",
function (e) {
document.getElementById('fileinput').click();
e.cancelBubble = true;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment