aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-03-16 21:48:13 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-03-16 21:48:13 -0400
commit88b175395307e31ce713ff66c3e2ae9c62e1a369 (patch)
tree4b428d49840060242d17908a18ab261daa9cdda3 /src/client/views/collections/CollectionFreeFormView.tsx
parent3101134e8e579a6f9202d552c46d2a8bd70fda79 (diff)
Everything but the actual template works
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 => {