I am creating my own custom ribbon button using this article as reference. My code in the file Elements.xml
goes something like this:
<CommandUIHandler
Command="NewRibbonButtonCommand"
CommandAction="javascript: MULTIPLE
LINES
OF
JAVASCRIPT
CODE">
Is there a better way to edit the JavaScript code in CommandAction
attribute, such as it would have IntelliSense at least for basic JavaScript objects like document
? As of now I am using XML Editor which is pretty basic. Other editors like Source Code Editor and HTML Editor don't help either. Even the Toolbox is empty when I am editing Elements.xml
and I am unable to figure out which all tags are available to me for Elements.xml
.
I am using Visual Studio 2012.