diff --git a/fleet/andel/srcCommonMain/andel/editor/MutableEditor.kt b/fleet/andel/srcCommonMain/andel/editor/MutableEditor.kt index 429db79396ad..04e949b59ff9 100644 --- a/fleet/andel/srcCommonMain/andel/editor/MutableEditor.kt +++ b/fleet/andel/srcCommonMain/andel/editor/MutableEditor.kt @@ -150,6 +150,8 @@ interface EditorLayout { interface MutableEditorLayout : EditorLayout { fun unfold(affectedFolds: List>) + + fun toggleFolds(add: List>, remove: List>, isConfirm: Boolean = false) } // Order is significant: the greater index, the more specific is the command type diff --git a/fleet/andel/srcCommonMain/andel/editor/SimpleEditor.kt b/fleet/andel/srcCommonMain/andel/editor/SimpleEditor.kt index d9eaf2d8f6a5..7ce50dc12122 100644 --- a/fleet/andel/srcCommonMain/andel/editor/SimpleEditor.kt +++ b/fleet/andel/srcCommonMain/andel/editor/SimpleEditor.kt @@ -120,6 +120,8 @@ data class SimpleEditorLayout( } override fun unfold(affectedFolds: List>) {} + + override fun toggleFolds(add: List>, remove: List>, isConfirm: Boolean) {} } class SimpleEditorLayoutComponent(var state: SimpleEditorLayout) : DocumentComponent {