diff options
author | bobzel <zzzman@gmail.com> | 2024-09-19 20:27:33 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-09-19 20:27:33 -0400 |
commit | 988e80e4b8529a02015564f0a16114a3b16aa08f (patch) | |
tree | a1df300fc2a7d34db81bbf652947727684478db1 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 0268a524540ff36bf007744eff6709dfcdedec96 (diff) | |
parent | 302b9ab98001a50ca2117df823216a99b7c25869 (diff) |
merged with master -- updated filtering from cardView branch
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index a281479f1..c8e020192 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -277,6 +277,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB ele.append(contents); } this._selectionHTML = ele?.innerHTML; + // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (e) { /* empty */ } @@ -564,7 +565,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB const draggedDoc = dragData.droppedDocuments.lastElement(); let added: Opt<boolean>; const dropAction = dragData.dropAction || dragData.userDropAction; - if ([AclEdit, AclAdmin, AclSelfEdit].includes(effectiveAcl)) { + if ([AclEdit, AclAdmin, AclSelfEdit].includes(effectiveAcl) && !dragData.draggedDocuments.includes(this.Document)) { // replace text contents when dragging with Alt if (de.altKey) { const fieldKey = Doc.LayoutFieldKey(draggedDoc); |