AFFiNE/packages
EYHN 89537e6892
refactor(core): separate editor & doc mode (#7873)
doc.mode -> primaryMode
(*new) editor.mode

New Service:
editor service

Change Mode:

```
const editor = useService(EditorService).editor;
editor.setMode('page')
```

Change primary mode

```
const editor = useService(EditorService).editor;
editor.doc.setPrimaryMode('page')
```
2024-08-14 11:43:03 +00:00
..
backend feat: improve prompt management (#7853) 2024-08-14 08:38:36 +00:00
common refactor(core): separate editor & doc mode (#7873) 2024-08-14 11:43:03 +00:00
frontend refactor(core): separate editor & doc mode (#7873) 2024-08-14 11:43:03 +00:00