Skip to content

Releases: siamahnaf/ritext

v@2.0.1

Choose a tag to compare

@siamahnaf siamahnaf released this 01 Mar 12:21
  • A small css fix

v@2.0.0

Choose a tag to compare

@siamahnaf siamahnaf released this 01 Mar 12:09

Changelog

All notable changes to ritext are documented here.


Added

  • SlashCommand component — standalone slash-command menu (type / to trigger). Accepts a mixed items prop: Array<SlashCommandItem | string> where strings become group headers.
  • SlashItems — pre-built item dictionary (SlashItems.Paragraph, SlashItems.Heading1–Heading6, SlashItems.BulletList, SlashItems.OrderedList, SlashItems.TaskList, SlashItems.BlockQuote, SlashItems.Image, SlashItems.Table, SlashItems.HorizontalRule).
  • SlashCommandItem type — exported from the package. Supports an optional panel / panelAsDialog for items that open a sub-UI (e.g. Image opens the existing ImageDialog).
  • SlashItems.Image — opens the ImageDialog (with upload/URL tabs) automatically, reading the Image extension's upload, maxSize, enableAlt, and aspect options from the editor.
  • SlashItems.Table — inserts a 3 × 3 table directly.
  • Keyboard navigation in SlashCommand: ↑ / ↓ to move, Enter to select, Escape to dismiss. Active item scrolls into view automatically.
  • Floating UI positioning in SlashCommand — uses @floating-ui/react with autoUpdate so the menu follows the cursor on scroll/resize (no manual scroll listener needed). useDismiss handles click-outside.
  • borderRadius node attribute on the Image extension — persisted to HTML via data-border-radius / inline style so it survives serialisation and re-hydration.

Fixed

  • SlashCommand insertion position — content is now always inserted at a clean top-level paragraph. When the triggering block was a heading, nested list item, or blockquote that only contained the slash query, the entire block is atomically replaced with a fresh paragraph before the command runs, preventing content from landing inside the wrong node type.
  • RiDragHandler "+" button — the slash paragraph is now inserted after the block the drag handle is hovering over (tracked via onNodeChange), not after the block where the editor cursor happens to be.

[1.2.11] — Previous Release

  • ImageView floating toolbar with border-radius presets, resize handles, and alignment controls.
  • BubbleMenu component refactored from internal_com to top-level lib/.
  • Surface / order system for controlling which extensions appear in toolbar vs bubble menu and in what order.
  • Full extension set: Bold, Italic, Underline, Strike, Subscript, Superscript, SubAndSuperscript, ClearFormat, Heading, FontFamily, FontSize, Color, BackgroundColor, LineHeight, BulletList, OrderedList, TaskList, TextAlign, IndentOutdent, History, HardBreak, Link, Image, Table, Emoji, BlockQuote, HorizontalRule.

v@1.2.9

Choose a tag to compare

@siamahnaf siamahnaf released this 03 Feb 07:20

Playground:

  • Added default content for example

Editors-

  1. Editor now accept all div HTML Props.

v@1.2.12

Choose a tag to compare

@siamahnaf siamahnaf released this 03 Feb 08:29

-fix: Renderer Component Issue

v@1.2.10

Choose a tag to compare

@siamahnaf siamahnaf released this 03 Feb 07:42

Added following props on Editor Component-

  • onFocus return editor and focus event
  • onBlur return editor and focus event
  • onClick return editor and click event
  • onKeyDown return editor and keyboard event

@1.2.11

Choose a tag to compare

@siamahnaf siamahnaf released this 03 Feb 08:09

Added data-ignore-outside-clicks to all floating item and portal div, so that you can ignore this div when you apply outside click.

v@1.2.6

Choose a tag to compare

@siamahnaf siamahnaf released this 02 Feb 19:55

Fixes-

Emoji Extensions

  • Jump into top of the page issues
  • Key-mapping not working issues
  • Added virtualization on list rendering

Link Component

  • Added placeholder on text
  • Resolve jump issue

Bubble Menu

  • Disable opening on node selections

v@1.2.5

Choose a tag to compare

@siamahnaf siamahnaf released this 02 Feb 17:55

Docs: Updated docs part

v@1.2.4

Choose a tag to compare

@siamahnaf siamahnaf released this 02 Feb 16:17

Stable Release!! Waiting for docs...