I am using ACE editor for the first time. I have the below questions related to it.
ACE
How do I find the instance of ACE
var editor = AceEditor.getCurrentFileEditor("MyEditor");
This would return the current editor object
var code = editor.getValue();
This would return the text within the editor.