Files
outline/app
codegen-sh[bot] 9121d5e972 Fix template application adding empty linebreaks
When applying a template to a document, the replaceSelectionWith method
was incorrectly trying to insert a document node into the existing
document, which caused the template content to be added after existing
content (like empty paragraphs) rather than replacing it entirely.

This fix changes the approach to replace the entire document content
with the template content using tr.replace(), ensuring that templates
are applied cleanly without extra linebreaks.

Fixes #10508
2025-10-31 00:34:26 +00:00
..