diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-26 00:40:49 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-26 00:40:49 -0400 |
commit | 8d774b6dd81d77294c438bb2951e04cf778dc38e (patch) | |
tree | 7101ee6a7ef3a83c636ec44ba5262a3147e4e325 /src/client/views/PreviewCursor.tsx | |
parent | 9d92f68750c943d82baa99dc26c29cdd58417e56 (diff) |
fixed highlighting text anchors in text notes. fixed pasting fragements of PDFs to create back links inside blockquotes.
Diffstat (limited to 'src/client/views/PreviewCursor.tsx')
-rw-r--r-- | src/client/views/PreviewCursor.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx index e27f6b95a..1ab99881d 100644 --- a/src/client/views/PreviewCursor.tsx +++ b/src/client/views/PreviewCursor.tsx @@ -9,6 +9,7 @@ import { Transform } from "../util/Transform"; import { DocServer } from '../DocServer'; import { undoBatch } from '../util/UndoManager'; import { NumCast } from '../../fields/Types'; +import { FormattedTextBox } from './nodes/formattedText/FormattedTextBox'; @observer export class PreviewCursor extends React.Component<{}> { @@ -81,6 +82,7 @@ export class PreviewCursor extends React.Component<{}> { e.stopPropagation(); } else { // creates text document + FormattedTextBox.PasteOnLoad = e; undoBatch(() => PreviewCursor._addLiveTextDoc(Docs.Create.TextDocument("", { _width: 500, limitHeight: 400, |