- Calling Convention:
The element you want to select the contents of. This will be performed using either
window.getSelectionas appropriate to the browser in use.
This function is meant for internal use by _.nodeAddSelectButton but is exposed for public access as who knows, somebody migth find it useful.
var sampleCode = document.getElementById('sampleCode'); _.nodeSelect(sampleCode);
The contents of #sampleCode will behave as if you selected them with the mouse.