Replace Ace Editor with ToastUi editor in the ExecutionEnvironments form
Drop unused code related to the Ace markdown editor.
This commit is contained in:

committed by
Dominic Sauer

parent
17a4485ce2
commit
f10bcb96a6
@ -1,7 +0,0 @@
|
||||
$(document).on('turbolinks:load', function() {
|
||||
if ($.isController('execution_environments')) {
|
||||
if ($('.edit_execution_environment, .new_execution_environment').isPresent()) {
|
||||
new MarkdownEditor('#execution_environment_help');
|
||||
}
|
||||
}
|
||||
});
|
@ -1,14 +0,0 @@
|
||||
(function() {
|
||||
window.MarkdownEditor = function(selector) {
|
||||
var editor = ace.edit($(selector).next()[0]);
|
||||
editor.on('change', function() {
|
||||
$(selector).val(editor.getValue());
|
||||
});
|
||||
editor.setShowPrintMargin(false);
|
||||
editor.setTheme(CodeOceanEditor.THEME);
|
||||
var session = editor.getSession();
|
||||
session.setMode('ace/mode/markdown');
|
||||
session.setUseWrapMode(true);
|
||||
session.setValue($(selector).val());
|
||||
};
|
||||
})();
|
@ -125,10 +125,6 @@ html[data-bs-theme="light"] {
|
||||
}
|
||||
}
|
||||
|
||||
.markdown {
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
Reference in New Issue
Block a user