typograph-editor-documentation
    Preparing search index...

    Release Notes - Version 1.0.0-20260811

    • Selected text delete bug in overflow (child) PageElementRichText resolved
    • Font, style and size now apply to a selection in an overflow (child) PageElementRichText; the change was previously discarded when the text reflowed
    • Word selection (double click) works in text after a table, and in text with mixed line heights
    • Hyphenation and spell check now apply to a whole text flow: setting either on any frame of an overflow chain sets it for every frame
    • The hyphenation toolbar button is now the on/off switch itself, like spell check. Switching it on opens the before/after/limit options; the options are no longer reachable without toggling
    • Long font family name is now shortend so popup title is not broken
    • Shift rotate 15° steps
    • The editor bundle is now self-sufficient: a page that loads editor.js gets a working editor with no markup to author. The 31 element ids that index.html used to supply are generated by the bundle, and the stylesheet and webfont are loaded by it. Pages still carrying the old markup keep working unchanged.
    • The editor can be mounted inside a host container instead of taking over the page: new Typograph.Editor({ container: '#app' }); Accepts a CSS selector, a bare element id, or an HTMLElement. The container must have a height — see the Embedding section in the documentation.
    • Editor instance methods: get_document() returns the canvas document, destroy() removes the editor's DOM and styles again. Re-mounting after destroy() is not supported yet (the canvas document has no teardown).
    • New documentation: Embedding — what to load, where the editor mounts, and the container contract.
    • Element edit permissions now actually apply. Every element saved from the editor used to carry a full set of "everything allowed" permissions, which meant the viewer's restrictions never took effect on a real template. New saves no longer write them, and existing documents are handled on load: a permission block that forbids nothing is treated as absent. Elements that genuinely restrict something are honoured exactly as before.
    • NEW: the viewer. A second bundle, viewer.js, mounted the same way as the editor: new Typograph.Viewer({ container: '#app' }); No menu bar, content bar or parameter bar; a floating toolbar that follows the selection and can be dragged where you want it; text editing and image content edits allowed, frame move/resize/rotate refused unless the template grants them. Options: show_rulers, and page_bar { visible, show_name, show_page_number, show_add_page }. See the Embedding section in the documentation, which now covers both products.
    • The empty strip above the menu bar, where a host puts its logo, can now be removed or resized: new Typograph.Editor({ container: '#app', header_space: false }); Accepts false, or a height in pixels. Everything below moves with it. Omit it and nothing changes.
    • Viewer: swatches can only be chosen, not created, edited or deleted. Filling in a template works from the palette it was designed with; changing the palette is authoring, and stays in the editor.
    • npm run build now type-checks before bundling, so a type error fails the build (and the CDN deploy) instead of shipping. npm run typecheck runs it on its own.