aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/RichTextSchema.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-31 00:13:33 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-31 00:13:33 -0400
commitea25f19b08fba66b1ec281afdadf719ae6a6ed54 (patch)
tree09122ee57c0001eb1e36486f882b4d6f663aa511 /src/client/util/RichTextSchema.tsx
parent6aee8e71c50f363ec8c7eb2a2fc5b136295319d2 (diff)
fixed some hacks so that undo/redo works for ordered lists
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r--src/client/util/RichTextSchema.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx
index c74881680..3161467b8 100644
--- a/src/client/util/RichTextSchema.tsx
+++ b/src/client/util/RichTextSchema.tsx
@@ -573,6 +573,14 @@ export class ImageResizeView {
}
}
+export class OrderedListView {
+ constructor(node: any, view: any, getPos: any) { }
+
+ update(node: any) {
+ return false; // if attr's of an ordered_list (e.g., bulletStyle) change, return false forces the dom node to be recreated which is necessary for the bullet labels to update
+ }
+}
+
export class SummarizedView {
// TODO: highlight text that is summarized. to find end of region, walk along mark
_collapsed: HTMLElement;