sjdemartini / mui-tiptap

A Material UI (MUI) styled WYSIWYG rich text editor, using Tiptap
MIT License
319 stars 43 forks source link

Fix issue where other heading levels are disabled when Heading 1 is selected #222

Closed Keito654 closed 6 months ago

Keito654 commented 7 months ago

Fix issue #197

I have modified the code by moving the variableleveloutside the scope of the if statement and renamed it to currentLevelfor greater specificity. Additionally, I have included currentLevelin the conditions for canSetHeading.

Please excuse any oversights as I am new to contributing and still familiarizing myself with the process.