mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): in page mode, AI replace selection did not correctly replace the selected text (#9179)
Fix issue [BS-1980](https://linear.app/affine-design/issue/BS-1980).
This commit is contained in:
@@ -105,6 +105,7 @@ export const replace = async (
|
||||
);
|
||||
|
||||
if (textSelection) {
|
||||
host.std.command.exec('deleteText', { textSelection });
|
||||
const { snapshot, job } = await markdownToSnapshot(content, host);
|
||||
await job.snapshotToSlice(
|
||||
snapshot,
|
||||
|
||||
Reference in New Issue
Block a user