Repository navigation
@openpresentation/opf-editor 0.25.1
·
5 commits
to main
since this release
- RR-98: opening a document no longer forks its catalog records. Loading an example over another (a host's example menu), File > Open, the gallery handoff and restoring a stored copy replaced the document with an
applyPatchthat the fork-on-edit rule read as an edit of thecatalogs.defaultrecords the two documents share, so slide layouts becamecover-custom,text-customand so on and the picker showed "Current draft". The session has a first-classeditor.replaceDocument(input, meta?)(one undoable change that is never read as a catalog edit) and the source pane haspane.replaceDocument(document, { source, name }), which keeps the opened JSON as written and brings each document's text back exactly on Undo and Redo, also in YAML and Markdown. The playground's Open as a presentation, the gallery handoff andcreatePersistence'srestore()use it.applyPatchstill forks an edited record.