aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections/CollectionFreeFormView.tsx')
-rw-r--r--src/client/views/collections/CollectionFreeFormView.tsx22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx
index 79ea77c77..0a4b57ffb 100644
--- a/src/client/views/collections/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/CollectionFreeFormView.tsx
@@ -209,27 +209,7 @@ export class CollectionFreeFormView extends CollectionViewBase {
@action
onDrop = (e: React.DragEvent): void => {
var pt = this.getTransform().transformPoint(e.pageX, e.pageY);
-
- let text = e.dataTransfer.getData("text/plain");
- let start = text.startsWith("<div")
- if (start) {
- console.log(e.target);
- console.log(this.props.Document.GetData(KeyStore.Layout, TextField, new String))
- var children = this.props.Document.GetList<Document>(KeyStore.Data, []);
- console.log(children);
- if (children) {
- children.forEach(f => {
- console.log(f.GetData(KeyStore.Layout, TextField, new String));
- });
- }
- // let xx = this.props.Document.GetT(KeyStore.Thumbnail, ImageField)
- // if (xx) {
- // console.log(xx.toString())
- // }
- this.props.Document.SetData(KeyStore.Layout, text, TextField);
- e.stopPropagation();
- }
- else { super.onDrop(e, { x: pt[0], y: pt[1] }); }
+ super.onDrop(e, { x: pt[0], y: pt[1] });
}
onDragOver = (): void => {