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:
Cory McWilliams 2024-01-28 20:59:46 +00:00
parent 8cfe0fb7d2
commit 542162c78a

View File

@ -435,8 +435,10 @@ async function edit() {
document.getElementById('viewPane').style.display = is_edit_only() ? 'none' : 'flex';
try {
if (!gEditor) {
cm6 = await import('/codemirror/cm6.js');
gEditor = cm6.TildeFriendsEditorView(document.getElementById("editor"));
}
gEditor.onDocChange = updateFiles;
await load();
} catch (error) {