diff options
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 7 | ||||
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index a2fbe96d2..565deb145 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -120,6 +120,7 @@ export class CollectionFreeFormDocumentView extends DocumentView { document.removeEventListener("pointerup", this.onPointerUp) document.addEventListener("pointerup", this.onPointerUp); } + } onPointerMove = (e: PointerEvent): void => { @@ -137,11 +138,17 @@ export class CollectionFreeFormDocumentView extends DocumentView { dragData["xOffset"] = e.x - rect.left; dragData["yOffset"] = e.y - rect.top; DragManager.StartDrag(this._mainCont.current, dragData, { + handlers: { dragComplete: this.dragComplete, }, hideSource: true + }) + //remove preview cursor from collection + if (this.props.ContainingCollectionView != undefined && this.props.ContainingCollectionView instanceof CollectionFreeFormView) { + this.props.ContainingCollectionView.hidePreviewCursor(); + } } } e.stopPropagation(); diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 4bec129e5..887a377b5 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -71,7 +71,6 @@ export class FormattedTextBox extends React.Component<FieldViewProps> { let state: EditorState; const { doc, fieldKey } = this.props; const config = { - doc: new Node(), schema, plugins: [ history(), |
