Make the Text tool control bar font family, style, and size sync with the selected layer (#4118)

* Fix contenteditable preview alignment

* Make the Text tool control bar font family, style, and size sync with the selected layer

* Tidying up
This commit is contained in:
Keavon Chambers
2026-05-06 20:50:41 -07:00
committed by GitHub
parent 2ae35a67e7
commit 24c857ddc7
6 changed files with 118 additions and 62 deletions

View File

@@ -380,6 +380,7 @@
textInput.style.fontSize = `${data.fontSize}px`;
textInput.style.color = data.color;
textInput.style.textAlign = data.align;
textInput.style.textAlignLast = data.alignLast;
textInput.oninput = () => {
if (!textInput) return;