typograph-editor-documentation
    Preparing search index...

    Release Notes - Version 1.0.0-20261022.4

    A point release after 20261022.3: a preview whose host page took away part of its markup now opens its document instead of failing.

    • "The preview could not be loaded" (TYP-994). On the shop's personalise page, opening a document could fail with TypeError: Cannot read properties of null (reading 'style'): the canvas container had lost the start screen and the undo/redo widget the canvas built inside it, and the canvas looked them up again and assumed they were there. A missing element is now skipped, so the document opens and typograph_setup_ready and typograph_document_opened still fire. This applies to the editor and the viewer alike.
    • Two viewers on one page no longer find each other's elements. The second viewer used the first one's <canvas> and skipped its own scrollbars; its undo widget, zoom box, page bar and rich-text clicks now stay with its own canvas.
    • No more debug lines in the browser console, such as NO problem cmyk2rgb for every colour conversion.
    • Nothing to change. A host that empties or detaches the viewer's container after setup no longer breaks open_document(); what canvas built there is simply not updated any more.
    • Undo/redo buttons a host points the canvas at (set_undo_id() / set_redo_id(), as the editor's and viewer's toolbars do) are still looked up in the whole page.
    • Canvas pin 8abb6be (from 0b96170): canvas #208 (TYP-994). Nothing else landed on canvas master in that range.
    • TYP-994, canvas: the document holds its container (get_container()) and finds its own chrome in it (chrome_element(id), src/dom.ts); Startupscreen, UndoManager and PageBar look in the container they were built in. PageElementRichText.getMousePos() maps through canvas_rect(). The dialog manager finds a dialog's buttons in that dialog. Still page-wide: the content of the editor's own dialogs (clip, auto-layout, text edit, template list). Vitest tests/missing_chrome.test.ts: 7.
    • canvas-service pins the same commit; deploy it with this release. Layouts do not change.