Lexical Text Size

Adds a font size dropdown to the Lexical rich text toolbar

Community 0 149/wk MIT v0.1.0

Installation

pnpm add @payloadcms-toolbox/lexical-text-size

About

Lexical Text Size adds a font size control to the toolbar of Payload's rich text editor, so content editors can change the size of selected text without writing any markup. The list of sizes is set by the site builder and can use px, rem, em or other CSS font-size values, so the editor offers the scale that matches the design.

The chosen size is kept when content is converted to HTML or Markdown, and undo and redo work as they do for other formatting. Labels and the interface are translatable.

Package info

Package name
@payloadcms-toolbox/lexical-text-size
Latest version
0.1.0
Unpacked size
33 kB
License
MIT
Weekly downloads
149
Last publish
Oct 30, 2025

More from payloadcms-toolbox

View profile

Adds text and background color pickers with gradients to the Lexical toolbar

Similar plugins

More in Editor

Editor-authored URL routing that maps collections to path patterns and links

Adds AI text, translation, image and voice generation to Payload fields and the editor

Adds AI text, image and voice generation and translation to Payload editors

Translates Payload documents into other locales with LibreTranslate in the background

Adds Mermaid diagram blocks to rich text with server-rendered SVG output

Code-defined transactional emails with admin-editable copy, test sends and a send log