diff options
author | bobzel <zzzman@gmail.com> | 2021-02-15 15:01:06 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-15 15:01:06 -0500 |
commit | bd5ca49636c5ff0d480003f9479cf40a562b4589 (patch) | |
tree | 8b1295e153af765970f3adb4cc6bb4b8f30ae8b6 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | ddf37d997ded0faa87c844b02f4df1b98989fd2e (diff) |
cleaned up showTitle and showAudio stuff just a bit.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 9e9be74f3..779da91e6 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -258,13 +258,9 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp _lastText = ""; dispatchTransaction = (tx: Transaction) => { - let timeStamp; - clearTimeout(timeStamp); if (this._editorView) { - const metadata = tx.selection.$from.marks().find((m: Mark) => m.type === schema.marks.metadata); if (metadata) { - const range = tx.selection.$from.blockRange(tx.selection.$to); let text = range ? tx.doc.textBetween(range.start, range.end) : ""; let textEndSelection = tx.selection.to; |