Changeset 0.28.3 (#187)
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
// editor.isModified('src/main.go'); // → false
|
||||
// await editor.saveAll();
|
||||
// editor.destroy();
|
||||
//
|
||||
// Exports: window.CodeEditor
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
const CodeEditor = {
|
||||
...createComponentRegistry('CodeEditor'),
|
||||
@@ -324,3 +329,7 @@ function _ceDetectLanguage(path) {
|
||||
};
|
||||
return map[ext] || 'text';
|
||||
}
|
||||
|
||||
// ── Exports ─────────────────────────────────
|
||||
window.CodeEditor = CodeEditor;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user