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