in Radii8Designer/src/js/Radiate.js [199:236]
Radiate.prototype.createEditor = function (editorName, flashID) {
ace_editor = ace.edit(editorName);
ace_editor.setTheme("ace/theme/crimson_editor");
ace_editor.getSession().setMode("ace/mode/html");
ace_editor.setShowFoldWidgets(false);
ace_editor.setShowPrintMargin(false);
ace_editor.renderer.setShowGutter(false);
ace_editor.getSession().setUseWrapMode(true);
// in firefox on mac editor stops working after placing cursor
// in different location with mouse (second time)
// clicking on flash object then clicking back into editor
// allows typing again until placing cursor in another location
// and you must click the flash object again. works in safari.
//ace_editor.onFocus = function() { ace_editor.setReadOnly(false);};
/*
ace_editor.__defineGetter__("$readOnly", function(){return false})
ace_editor.__defineSetter__("$readOnly", function(val){
console.log("read only changed!!!");
})
ace_editor.setReadOnly(false);
ace_editor.setReadOnly(true);*/
ace_editor.setReadOnly(false);
ace_editor.getSession().on('change', function(e) {
editorChange(flashID);
});
//ace_editor.getSession().selection.on('changeCursor', function(e) {
// cursorChange(flashID);
//});
//ace_editor.renderer.$keepTextAreaAtCursor = false;
return "created";
}