diff options
author | bob <bcz@cs.brown.edu> | 2019-03-18 12:57:36 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-03-18 12:57:36 -0400 |
commit | be117e38a63a558684baa69f719787f11dfc3be3 (patch) | |
tree | 8275d70be6aa728de3fea9af76b9422464143227 /src/client/views/InkingControl.tsx | |
parent | 8acbb6e31d913982e06b8498078b90bf99c18600 (diff) | |
parent | 861614569c2d72e0ee9a6a698f3978f609a3b2bc (diff) |
Merge branch 'master' into authentication
Diffstat (limited to 'src/client/views/InkingControl.tsx')
-rw-r--r-- | src/client/views/InkingControl.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/InkingControl.tsx b/src/client/views/InkingControl.tsx index 6616f68d8..ad6bbd476 100644 --- a/src/client/views/InkingControl.tsx +++ b/src/client/views/InkingControl.tsx @@ -11,6 +11,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faPen, faHighlighter, faEraser, faBan } from '@fortawesome/free-solid-svg-icons'; import { SelectionManager } from "../util/SelectionManager"; import { KeyStore } from "../../fields/KeyStore"; +import { TextField } from "../../fields/TextField"; library.add(faPen, faHighlighter, faEraser, faBan); @@ -39,7 +40,7 @@ export class InkingControl extends React.Component { if (SelectionManager.SelectedDocuments().length == 1) { var sdoc = SelectionManager.SelectedDocuments()[0]; if (sdoc.props.ContainingCollectionView && sdoc.props.ContainingCollectionView) { - sdoc.props.Document.SetText(KeyStore.BackgroundColor, color.hex); + sdoc.props.Document.SetOnPrototype(KeyStore.BackgroundColor, new TextField(color.hex)); } } } |