One editor at a time.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4810 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
8cfe0fb7d2
commit
542162c78a
@ -435,8 +435,10 @@ async function edit() {
|
||||
document.getElementById('viewPane').style.display = is_edit_only() ? 'none' : 'flex';
|
||||
|
||||
try {
|
||||
cm6 = await import('/codemirror/cm6.js');
|
||||
gEditor = cm6.TildeFriendsEditorView(document.getElementById("editor"));
|
||||
if (!gEditor) {
|
||||
cm6 = await import('/codemirror/cm6.js');
|
||||
gEditor = cm6.TildeFriendsEditorView(document.getElementById("editor"));
|
||||
}
|
||||
gEditor.onDocChange = updateFiles;
|
||||
await load();
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user