Skip to content

0.2.0 - Tables, images, find and replace

Choose a tag to compare

@kojak8791 kojak8791 released this 16 Oct 08:54
· 55 commits to main since this release
Immutable release. Only release title and notes can be modified.

Second preview release. No breaking changes: with defaultExtensions() the new features are on as soon as you update.

Added

  • Tables: insert from a grid, merge and split cells, header row and column, resizable columns, handles on rows and columns that select them and open their menu.
  • Images: paste an image or a screenshot (embedded in the HTML, up to 5 MB by default), resize with side handles.
  • Checklists, with the [ ] and [x] Markdown shortcuts.
  • Code blocks, with an optional language (class="language-js").
  • Find and replace, with match case, whole word and an exact count of the matches.
  • Word and character count: getWordCount() and an optional status bar (createStatusBar).
  • Font family and font size in the toolbar.
  • Text alignment and line spacing of paragraphs and headings.
  • Text case: UPPERCASE, lowercase, Title Case, Sentence case, tOGGLE cASE.
  • Paste from Word and Google Docs: real lists, column widths of tables kept, the body font, size and color dropped.

Changed

  • defaultExtensions() includes the new extensions. Each one can be turned off with false, e.g. defaultExtensions({ table: false }).
  • New dependency: prosemirror-search.

Fixed

  • setHTML / setJSON were slow on large documents while the selection was inside the editor.
  • Changes to every block of a large document (text case, replace all) took quadratic time.
  • The # heading shortcuts dropped the alignment and the line spacing.