ScribeJS 1.0.1 - NOW IS LIVE!

ScribeJS 1.0.1 - NOW IS LIVE!

7 21
calendar_todayschedule1 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

2 Comments

1 vote
0
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

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

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

abarth23 - Apr 27

Your Tech Stack Isn’t Your Ceiling. Your Story Is

Karol Modelski - Apr 9

JavaScript ES6+ Features Every Frontend Developer Should Master

muhammadfarhan.dev - Aug 18
chevron_left
623 Points28 Badges
9Posts
13Comments
7Connections
Hi, we’re a web agency delivering high-quality web solutions

Related Jobs

View all jobs →

Commenters (This Week)

6 comments
3 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!