diff options
author | laurawilsonri <laura_wilson@brown.edu> | 2019-02-16 15:34:20 -0500 |
---|---|---|
committer | laurawilsonri <laura_wilson@brown.edu> | 2019-02-16 15:34:20 -0500 |
commit | c835f47a32336c12e6ad7497b72694bb06dc2487 (patch) | |
tree | 0fc567d0d3c30c6e2e89e7a71747aff543bf1caf /src/client/views/nodes/CollectionFreeFormDocumentView.tsx | |
parent | 9f8653ab3d7f82a5d82b925bf339bef8d6723f5c (diff) |
added blinking preview text cursor on click
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index a183db828..bb8dea53b 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -10,6 +10,7 @@ import { ContextMenu } from "../ContextMenu"; import "./NodeView.scss"; import React = require("react"); import { DocumentView, DocumentViewProps } from "./DocumentView"; +var FontAwesomeIcon = require('react-fontawesome'); @observer @@ -17,6 +18,7 @@ export class CollectionFreeFormDocumentView extends DocumentView { private _contextMenuCanOpen = false; private _downX: number = 0; private _downY: number = 0; + //determines whether the blinking cursor for indicating whether a text will be made on key down is visible constructor(props: DocumentViewProps) { super(props); @@ -205,6 +207,7 @@ export class CollectionFreeFormDocumentView extends DocumentView { render() { var freestyling = this.props.ContainingCollectionView instanceof CollectionFreeFormView; + return ( <div className="node" ref={this._mainCont} style={{ transformOrigin: "left top", |