ScribeJS 1.0.1 - NOW IS LIVE!

ScribeJS 1.0.1 - NOW IS LIVE!

●12 ●26
calendar_today • schedule1 min read

Docs/Demo: https://scribejs.top/docs

Highlights

Cross-browser toolbar state is now identical across Chrome, Firefox, and Safari.

✨ New Features

Polling safety net — 100ms interval force-refreshes toolbar state while focused, with JSON-diff guard to avoid unnecessary re-renders
formatChange event — emitted synchronously after every command execution and DOM normalization
Command registry — metadata-driven toolbars with icons, labels, shortcuts, groups, and active() functions
React wrapper — ref-based API with getHTML(), setHTML(), bold(), italic(), etc.
Bug Fixes

Safari: Selection no longer lost when clicking toolbar buttons (save/restore cycle)
Firefox: Toolbar state updates reliably despite selectionchange timing gaps (multi-event pipeline)
All browsers: Toolbar state detected via DOM tree walk instead of deprecated queryCommandState
All browsers: 5-phase DOM normalizer ensures consistent HTML output
Tests

37 toolbar-state tests (command metadata, group ordering, format state)
Selection manager tests (save/restore, collapsed vs range, cross-browser shims)
Normalizer tests (all 5 phases with edge cases)
⚠️ Known Limitations

Mobile Safari/Chrome: basic support, touch interaction edge cases remain
IME input: untested with CJK composition
Shadow DOM: not supported

Plugin for GrapesJS: https://github.com/GoodPHP/grapesjs-plugin-scribejs

GitHub: https://github.com/GoodPHP/scribejs

Want more #javascript & #web-development deep dives?

Join 6,093+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

2 Comments

1 vote
0

More Posts

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10

The Zero-Net-Loss Fleet & The Mercenary Squad: A Live AI Economy

DEVPlank - Aug 4

SolidJS 2.0 Async Data: A Deep Dive for React Devs

morellodev - Jul 16

AAIF Hits 10 Projects. Its CTO on What to Adopt Now and the Security Gaps Left Open

Tom Smithverified - Oct 23

Everyone says DeepSeek is cheaper, but I got tired of guessing the exact math. So I built a calculat

abarth23 - Apr 27
chevron_left
623 Points • 38 Badges
9Posts
13Comments
7Connections
Hi, we’re a web agency delivering high-quality web solutions

Commenters (This Week)

6 comments
2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!