Skip to content

Commit

Permalink
fix(inline): skpell checker itself will delete text
Browse files Browse the repository at this point in the history
  • Loading branch information
fourdim committed Jul 30, 2024
1 parent cf30e2c commit a4b9687
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/framework/inline/src/utils/transform-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function handleInsertReplacementText<TextAttributes extends BaseTextAttributes>(
editor.getDeltasByInlineRange(inlineRange).forEach(deltaEntry => {
attributes = { ...deltaEntry[0].attributes, ...attributes };
});
editor.deleteText(inlineRange);
if (data) {
editor.insertText(inlineRange, data, attributes);
editor.setInlineRange({
Expand Down

0 comments on commit a4b9687

Please sign in to comment.