mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 13:51:08 +10:00
editor improvements
* add callout, youtube embed, image, video, table, detail, math * fix attachments module * other fixes
This commit is contained in:
@ -77,7 +77,13 @@ export class PersistenceExtension implements Extension {
|
||||
const tiptapJson = TiptapTransformer.fromYdoc(document, 'default');
|
||||
const ydocState = Buffer.from(Y.encodeStateAsUpdate(document));
|
||||
|
||||
const textContent = jsonToText(tiptapJson);
|
||||
let textContent = null;
|
||||
|
||||
try {
|
||||
textContent = jsonToText(tiptapJson);
|
||||
} catch (err) {
|
||||
this.logger.warn('jsonToText' + err?.['message']);
|
||||
}
|
||||
|
||||
try {
|
||||
let page = null;
|
||||
|
||||
Reference in New Issue
Block a user