You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(froala): rulerVerticalGutter — reserve the vertical ruler column up front (#24)
Field report: with the horizontal ruler reading ~820px, enabling the
vertical ruler narrowed the content to ~800px. That shift is geometric
truth — the 23px strip has to take its space from somewhere, and the
horizontal ruler correctly re-reads the narrower width — but the reflow
on toggle is jarring.
New opt-in option (default false), scrollbar-gutter: stable style:
- rulerVerticalGutter: true creates the vwrap/strip column at init with
visibility:hidden, so the 23px is spent once up front and toggling the
vertical ruler never moves the content.
- hide switches visibility (gutter kept) instead of display:none; the
horizontal ruler offset applies whenever the gutter exists.
- Default path unchanged: hidden strip still reclaims its width.
Docs: option documented in both root READMEs + froala package READMEs
(en/ko), demo site enables it on the Froala tab, CDN pins @0.12 -> @0.13.
Verified: 91 unit tests green (3 new — gutter reserved up front, no
reflow across toggles, default still reclaims); real-browser check on the
built demo — horizontal ruler 794px and text left edge unchanged (0px
moved) across show/hide.
-`rulerOptions` — **권장 단일 버튼**: 줄자 아이콘 드롭다운 하나에 보이기/숨기기 · 세로 줄자 · 가이드 잠금 · 가이드 지우기 + cm / inch / px (활성 상태 체크 표시)
120
120
-`toggleRuler` / `rulerUnit` — 핵심 기능을 버튼을 나눠 쓰고 싶을 때
121
121
122
-
Froala 옵션: `rulerVertical: true`면 초기화 시 세로 줄자 표시, `rulerGuides: false`면 가이드선 비활성.
122
+
Froala 옵션: `rulerVertical: true`면 초기화 시 세로 줄자 표시, `rulerVerticalGutter: true`면 세로 줄자의 23px 자리를 처음부터 예약해(`scrollbar-gutter: stable`과 같은 발상) 토글해도 본문이 리플로우되지 않음, `rulerGuides: false`면 가이드선 비활성.
|`@latest` (or no version) | Always the newest release — majors included, so breaking changes can land without warning; jsDelivr caches the alias for up to 12h |
62
62
63
63
## Quick start (Froala)
@@ -119,7 +119,7 @@ Model attributes down-cast to plain inline CSS; one undo step per drag. See the
119
119
-`rulerOptions` — **recommended single button**: one ruler-icon dropdown holding Show/Hide, Vertical Ruler, Lock Guides, Clear Guides, plus cm / inch / px (active states checkmarked)
120
120
-`toggleRuler` / `rulerUnit` — the same core functions as separate buttons, for hosts that prefer them split
121
121
122
-
Froala options: `rulerVertical: true` shows the vertical ruler on init; `rulerGuides: false` disables guide lines.
122
+
Froala options: `rulerVertical: true` shows the vertical ruler on init; `rulerVerticalGutter: true` reserves the strip's 23px column from the start (like `scrollbar-gutter: stable`) so toggling the vertical ruler never reflows the content; `rulerGuides: false` disables guide lines.
0 commit comments