blob: 7c9259fd445516b10a65038d3a3bc1db3efa3293 [file] [log] [blame]
var _editorComponent;
// Loads and configures the objects that the editor needs
dojo.addOnLoad(function() {
_editorComponent = new bespin.editor.Component('editor', {
syntax: "xml",
loadfromdiv: true
});
});
function submitRoute() {
dojo.byId('route').value = _editorComponent.getContent();
document.forms["routeForm"].submit();
}