mirror of
https://github.com/docmost/docmost.git
synced 2026-05-08 15:23:07 +08:00
fix
This commit is contained in:
@@ -280,9 +280,10 @@ export class PageService {
|
||||
const fragment = doc.getXmlFragment('default');
|
||||
|
||||
if (operation === 'replace') {
|
||||
while (fragment.length > 0) {
|
||||
fragment.delete(0, 1);
|
||||
if (fragment.length > 0) {
|
||||
fragment.delete(0, fragment.length);
|
||||
}
|
||||
|
||||
const newDoc = TiptapTransformer.toYdoc(
|
||||
prosemirrorJson,
|
||||
'default',
|
||||
|
||||
Reference in New Issue
Block a user