+ var view = $(sandbox.getTemplate('main')());\r
+ var isDirty = false;\r
+ \r
+ var editor = ace.edit(view.find('#rng-sourceEditor-editor')[0]);\r
+ editor.setTheme("ace/theme/chrome");\r
+ editor.getSession().setMode("ace/mode/xml");\r
+ $('textarea', view).on('keyup', function() {\r
+ isDirty = true;\r
+ });\r
+ \r
+ editor.getSession().on('change', function() {\r
+ isDirty = true;\r
+ })\r