Revision 4fd1ae85
Added by Tomer Brisker over 8 years ago
app/assets/javascripts/provisioning_template.js | ||
---|---|---|
Editor.renderer.setShowGutter(false);
|
||
$(document).on('resize','#editor1', function(){Editor.resize()});
|
||
if (item.is(':disabled')) {
|
||
$('.ace_text-input').attr('disabled', true)
|
||
Editor.setReadOnly(true);
|
||
}
|
||
}
|
||
|
||
... | ... | |
function set_edit_mode(item){
|
||
if( Editor == undefined) return;
|
||
Editor.setTheme("ace/theme/twilight");
|
||
Editor.setReadOnly(false);
|
||
if (!item.is(':disabled')) {
|
||
Editor.setReadOnly(false);
|
||
}
|
||
var session = Editor.getSession();
|
||
session.setMode("ace/mode/ruby");
|
||
|
Also available in: Unified diff
Fixes #11432 - Allow copying from ACE editor