diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-08-31 00:13:33 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-08-31 00:13:33 -0400 |
commit | ea25f19b08fba66b1ec281afdadf719ae6a6ed54 (patch) | |
tree | 09122ee57c0001eb1e36486f882b4d6f663aa511 /src/client/util/RichTextSchema.tsx | |
parent | 6aee8e71c50f363ec8c7eb2a2fc5b136295319d2 (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.tsx | 8 |
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; |