@@ -144,6 +144,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
diff --git a/ts/editor/FocusTrap.svelte b/ts/editor/FocusTrap.svelte
new file mode 100644
index 000000000..2b9b4e792
--- /dev/null
+++ b/ts/editor/FocusTrap.svelte
@@ -0,0 +1,37 @@
+
+
+
+
+
+
diff --git a/ts/editor/FrameElement.svelte b/ts/editor/FrameElement.svelte
new file mode 100644
index 000000000..15b08adcd
--- /dev/null
+++ b/ts/editor/FrameElement.svelte
@@ -0,0 +1,20 @@
+
+
diff --git a/ts/editor/MathjaxElement.svelte b/ts/editor/MathjaxElement.svelte
new file mode 100644
index 000000000..8e6794248
--- /dev/null
+++ b/ts/editor/MathjaxElement.svelte
@@ -0,0 +1,15 @@
+
+
diff --git a/ts/editor/OldEditorAdapter.svelte b/ts/editor/OldEditorAdapter.svelte
index 306b86b3a..fd88db316 100644
--- a/ts/editor/OldEditorAdapter.svelte
+++ b/ts/editor/OldEditorAdapter.svelte
@@ -57,6 +57,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { MathjaxHandle } from "./mathjax-overlay";
import { ImageHandle } from "./image-overlay";
import PlainTextInput from "./PlainTextInput.svelte";
+ import MathjaxElement from "./MathjaxElement.svelte";
+ import FrameElement from "./FrameElement.svelte";
import RichTextBadge from "./RichTextBadge.svelte";
import PlainTextBadge from "./PlainTextBadge.svelte";
@@ -279,39 +281,41 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{/if}
- {#each fieldsData as field, index}
- {
- $currentField = fields[index];
- bridgeCommand(`focus:${index}`);
- }}
- on:focusout={() => {
- $currentField = null;
- bridgeCommand(
- `blur:${index}:${getNoteId()}:${get(fieldStores[index])}`,
- );
- }}
- --label-color={cols[index] === "dupe"
- ? "var(--flag1-bg)"
- : "transparent"}
- >
-
- {#if cols[index] === "dupe"}
-
- {/if}
-
-
- {#if stickies}
-
- {/if}
-
+
+ {#each fieldsData as field, index}
+ {
+ $currentField = fields[index];
+ bridgeCommand(`focus:${index}`);
+ }}
+ on:focusout={() => {
+ $currentField = null;
+ bridgeCommand(
+ `blur:${index}:${getNoteId()}:${get(
+ fieldStores[index],
+ )}`,
+ );
+ }}
+ --label-color={cols[index] === "dupe"
+ ? "var(--flag1-bg)"
+ : "transparent"}
+ >
+
+ {#if cols[index] === "dupe"}
+
+ {/if}
+
+
+ {#if stickies}
+
+ {/if}
+
-
-
+
{
@@ -340,10 +344,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}}
bind:this={plainTextInputs[index]}
/>
-
-
-
- {/each}
+
+
+ {/each}
+
+
+
+
diff --git a/ts/editor/PlainTextInput.svelte b/ts/editor/PlainTextInput.svelte
index efb0474e4..146d62393 100644
--- a/ts/editor/PlainTextInput.svelte
+++ b/ts/editor/PlainTextInput.svelte
@@ -12,6 +12,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
toggle(): boolean;
getEditor(): CodeMirror.Editor;
}
+
+ export const parsingInstructions: string[] = [];
-
-
+
+
+
-
- {#await Promise.all([richTextPromise, stylesPromise]) then [container, styles]}
-
-
-
- {/await}
-
-
+
+ {#await Promise.all( [richTextPromise, stylesPromise], ) then [container, styles]}
+
+
+
+ {/await}
+
+
+