diff --git a/frontend/app_flowy/packages/flowy_editor/lib/src/editor_state.dart b/frontend/app_flowy/packages/flowy_editor/lib/src/editor_state.dart index 31a321a3c0..4b387afd9e 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/src/editor_state.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/src/editor_state.dart @@ -26,6 +26,15 @@ enum CursorUpdateReason { others, } +/// The state of the editor. +/// +/// The state including: +/// - The document to render +/// - The state of the selection. +/// +/// [EditorState] also includes the services of the editor: +/// - Selection service +/// - Scroll service class EditorState { final StateTree document;