AFFiNE/packages/frontend
akumatus 5823353733
fix: edgeless note preview on the editor settings is editable (#8735)
Fix issue [BS-1779](https://linear.app/affine-design/issue/BS-1779).

The attribute `contenteditable` will be `true` if the document is not read-only. In this case, the note preview can be focused on and users can edit the note content.

But we can not simply make the document read-only. If the user changes the editor settings, we also need to update the document model, which requires that the document is not read-only.

Thus following code sets the document editable before the model updates and resets the document to read-only after the model is updated.
2024-11-08 08:39:09 +00:00
..
admin chore: bump up all non-major dependencies (#8410) 2024-11-05 15:20:21 +00:00
apps fix(electron): deep link handling in macos (#8713) 2024-11-06 02:02:56 +00:00
component fix(mobile): adjust mobile UI (#8719) 2024-11-08 00:48:31 +00:00
core fix: edgeless note preview on the editor settings is editable (#8735) 2024-11-08 08:39:09 +00:00
electron-api refactor(electron): move electron-api to framework (#8601) 2024-10-30 09:16:20 +00:00
graphql chore: bump up all non-major dependencies (#8410) 2024-11-05 15:20:21 +00:00
i18n chore(core): adjust billing payment methods copywriting, close AF-1638 (#8733) 2024-11-07 07:37:05 +00:00
native chore: bump up all non-major dependencies (#8410) 2024-11-05 15:20:21 +00:00
templates chore: bump base version to 0.17.0 2024-09-20 15:48:21 +08:00
track feat: use custom @ import dialog (#8723) 2024-11-08 01:53:29 +00:00