Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(edit-docs): remove data-list-item-id
Elian Dorand2c6081537ff
diff --git a/apps/edit-docs/src/edit-docs.ts b/apps/edit-docs/src/edit-docs.tsindex 8cb6b898dd..40163330d0 100644--- a/apps/edit-docs/src/edit-docs.ts+++ b/apps/edit-docs/src/edit-docs.ts@@ -185,6 +185,9 @@ async function exportData(noteId: string, format: ExportFormat, outputPath: strireturn components.join("/");});+ // Remove data-list-item-id created by CKEditor for lists+ content = content.replace(/ data-list-item-id="[^"]*"/g, "");+return content;function findAttachment(targetAttachmentId: string) {