@@ -5,6 +5,8 @@ import org.wordpress.aztec.spans.AztecListItemSpan
55import org.wordpress.aztec.spans.AztecListSpan
66import org.wordpress.aztec.spans.AztecOrderedListSpan
77import org.wordpress.aztec.spans.AztecOrderedListSpanAligned
8+ import org.wordpress.aztec.spans.AztecTaskListSpan
9+ import org.wordpress.aztec.spans.AztecTaskListSpanAligned
810import org.wordpress.aztec.spans.AztecUnorderedListSpan
911import org.wordpress.aztec.spans.AztecUnorderedListSpanAligned
1012import org.wordpress.aztec.spans.IAztecBlockSpan
@@ -96,6 +98,14 @@ class ListFormatter(editor: AztecText) : AztecFormatter(editor) {
9698 is AztecOrderedListSpan -> AztecOrderedListSpan (updatedNestingLevel, attributes, listStyle)
9799 is AztecUnorderedListSpanAligned -> AztecUnorderedListSpanAligned (updatedNestingLevel, attributes, listStyle, alignment)
98100 is AztecUnorderedListSpan -> AztecUnorderedListSpan (updatedNestingLevel, attributes, listStyle)
101+ is AztecTaskListSpanAligned -> {
102+ val context = getContext() ? : return null
103+ AztecTaskListSpanAligned (updatedNestingLevel, attributes, context, listStyle, alignment)
104+ }
105+ is AztecTaskListSpan -> {
106+ val context = getContext() ? : return null
107+ AztecTaskListSpan (updatedNestingLevel, attributes, context, listStyle)
108+ }
99109 else -> null
100110 }
101111 }
0 commit comments