Added new mooncore js dependencies. Added ace editor build

This commit is contained in:
2025-02-05 16:50:35 +01:00
parent b6b488edf6
commit 2e5d0dcd73
432 changed files with 3530 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
window.moonCoreCodeEditor = {
instances: new Map(),
attach: function (id, options) {
const editor = ace.edit(id, options);
this.instances.set(id, editor);
},
updateOptions: function (id, options) {
const editor = this.instances.get(id);
editor.setOptions(options);
},
getValue: function (id) {
const editor = this.instances.get(id);
return editor.getValue();
},
destroy: function (id){
const editor = this.instances.get(id);
editor.destroy();
editor.container.remove();
}
}