Skip to content

v3.10.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 09:41
· 12 commits to main since this release

Added

  • Images in Markdown: The built-in image node (resizableImage) now serializes to ![alt](src "title") and reads it back, for both tiptap-markdown (storage.markdown) and the official @tiptap/markdown (renderMarkdown / parseMarkdown), so apps that store documents as Markdown no longer need their own image node. width and height have no Markdown representation and are not kept across a round trip. Without a Markdown extension nothing changes. (#100)
  • AteResizableImage Export: AteResizableImage and its AteResizableImageOptions / AteResizableImageStorage types are exported from the public API, to extend or reuse the image node. (#100)
  • setContent Options: setContent(content, options?) on the component, AteEditorRef and AteEditorCommandsService accepts { emitUpdate, preserveSelection, preserveScroll, resetHistory } (AteSetContentOptions). preserveSelection keeps the selection clamped to the new document, preserveScroll restores the scroll position of the editor and resetHistory drops the undo/redo history, so an external refresh of the content no longer needs private ProseMirror internals. The boolean form setContent(content, false) keeps working. (#101)

Fixed

  • Stale Counters After External Content: The character and word counters were only recomputed on update events, so they stayed stale after the content was replaced without emitting one: a change of the content input, setContent(content, false) or a form control value. They now follow every document change, including those. (#101)