Skip to content

[202_107] fixed the current formatting state of the toolbar formatting buttons#2904

Open
Prthmsh7 wants to merge 1 commit intoMoganLab:mainfrom
Prthmsh7:202_107
Open

[202_107] fixed the current formatting state of the toolbar formatting buttons#2904
Prthmsh7 wants to merge 1 commit intoMoganLab:mainfrom
Prthmsh7:202_107

Conversation

@Prthmsh7
Copy link

@Prthmsh7 Prthmsh7 commented Mar 1, 2026

fixes : #2903

How to test

  1. Open Mogan and create a new document
  2. Type some text, then select a portion and click the Bold toolbar button
  3. Move the cursor inside the bold text. Verify the Bold button appears pressed/highlighted
  4. Move the cursor outside the bold text. Verify the Bold button returns to normal
  5. Repeat steps 2–4 for Italic, Underline, and Strikethrough buttons

Added state synchronization between the toolbar formatting buttons (Bold, Italic, Underline, Strikethrough) and the editor's document model. When the cursor is inside formatted text, the corresponding toolbar button now appears pressed/highlighted.

before:

Screen.Recording.2026-03-01.at.4.30.16.PM.mov

after:

Screen.Recording.2026-03-01.at.4.41.28.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toolbar formatting buttons (Bold/Underline/etc.) do not reflect active formatting state

1 participant