November 26, 2026 - Safer defaults and clean installs
The static renderer sanitizes HTML by default, the comment box builds with Next.js cacheComponents, and registry installs pass Next.js lint.
We installed every registry item into a fresh Next.js 16 app, the way a new user would, and fixed what got in the way: a build error, lint errors in the installed code, an unsafe default and a toolbar glitch.
Highlights
- Static renderer sanitizes by default: HTML strings passed to
StaticRenderergo through the built-in allowlist unless you passsanitize={false}. Before, they were inserted as-is unless you rememberedsanitize. See Sanitizing HTML. - Comment box builds with
cacheComponents: new Next.js 16 apps turn oncacheComponents, which failed the build on the comment box template with an unstableMath.random()error. Its composer now sits in a<Suspense>boundary, like the other templates. - Copy-paste examples build on Next.js 16: the usage examples in Getting Started, Toolbar Editor and Block Editor render the editor inside
<Suspense>. - Registry installs pass ESLint: installing every item into a
create-next-appproject and runningnpx eslint .(itseslint-config-nextsetup) used to report 13 errors in editorcn's code. It now reports none. The fixes cover display names, unescaped quotes, aneslint-disablecomment for a rule most projects don't have, and React Compiler rules in the shared editor-state hooks and the dropdown highlight. - Mention
itemsgets the editor:items(query, editor)receives the editor as a second argument, so per-editor lists don't need a React ref. One-argument callbacks keep working. Seeitems. - Toolbar rows wrap cleanly: when the toolbar wraps, new rows no longer start with a separator.
Upgrading
shadcn registry
Re-add the items you use, for example:
$ pnpm dlx shadcn@latest add @editorcn/editor @editorcn/static-renderer
If you render trusted HTML with markup outside the sanitizer's allowlist, pass sanitize={false} to StaticRenderer.
npm
Update to @editorcn/editor@0.5.3, @editorcn/block-editor@0.5.3 and @editorcn/static-renderer@0.5.0. The static renderer's new default is the only behavior change. See its changelog.
Ready-made editor apps built on editorcn: a chat composer, a document editor, a blog post editor, and a Notion-style notes workspace. Install them with the shadcn CLI.