Skip to content

Commit

Permalink
fix: font family extesion demo (#5880)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Casillas <[email protected]>
  • Loading branch information
alexvcasillas and Alex Casillas authored Nov 27, 2024
1 parent 8e1a179 commit a8c8db6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions demos/src/Extensions/FontFamily/React/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default () => {
<button
onClick={() => editor.chain().focus().setFontFamily('Comic Sans MS, Comic Sans').run()}
className={
editor.isActive('textStyle', { fontFamily: 'Comic Sans MS, Comic Sans' })
editor.isActive('textStyle', { fontFamily: '"Comic Sans MS", "Comic Sans"' })
? 'is-active'
: ''
}
Expand Down Expand Up @@ -79,13 +79,6 @@ export default () => {
>
CSS variable
</button>
<button
onClick={() => editor.chain().focus().setFontFamily('"Comic Sans MS", "Comic Sans"').run()}
className={editor.isActive('textStyle', { fontFamily: '"Comic Sans"' }) ? 'is-active' : ''}
data-test-id="comic-sans-quoted"
>
Comic Sans quoted
</button>
<button
onClick={() => editor.chain().focus().setFontFamily('"Exo 2"').run()}
className={editor.isActive('textStyle', { fontFamily: '"Exo 2"' }) ? 'is-active' : ''}
Expand Down

0 comments on commit a8c8db6

Please sign in to comment.