aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-03 18:57:23 -0400
committerbob <bcz@cs.brown.edu>2019-09-03 18:57:23 -0400
commit4921ef0121818381e4139137c0d204d41cb64a20 (patch)
treedd0a8a7e5b03b83154b51bc393400493db00699a /src/client/views/nodes
parent2d3de245e31e0c45c1e64720816c3d6d219efcd3 (diff)
reverted back to semi-working version of outline mode
Diffstat (limited to 'src/client/views/nodes')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index b46502c1d..4cb52ec78 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -813,10 +813,11 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe
e.stopPropagation();
if (e.key === "Tab" || e.key === "Enter") { // bullets typically change "levels" when tab or enter is used. sometimes backspcae, so maybe that should be added. e.preventDefault();
e.preventDefault();
- setTimeout(() => { // force re-rendering of bullet numbers that may have had their bullet labels change. (Our prosemirrior code re-"marks" the changed bullets, but nothing causes the Dom to be re-rendered which is where the nubering takes place)
- SelectionManager.DeselectAll();
- SelectionManager.SelectDoc(DocumentManager.Instance.getDocumentView(this.props.Document, this.props.ContainingCollectionView)!, false);
- }, 0);
+ // bcz: if we use this, it fixes some problesm with bullet numbers but kills undo/redo
+ // setTimeout(() => { // force re-rendering of bullet numbers that may have had their bullet labels change. (Our prosemirrior code re-"marks" the changed bullets, but nothing causes the Dom to be re-rendered which is where the nubering takes place)
+ // SelectionManager.DeselectAll();
+ // SelectionManager.SelectDoc(DocumentManager.Instance.getDocumentView(this.props.Document, this.props.ContainingCollectionView)!, false);
+ // }, 0);
}
function timenow() {
var now = new Date();