fix: font family extesion demo (#5880)
Some checks are pending
build / lint (20) (push) Waiting to run
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Waiting to run
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Waiting to run
build / build (20) (push) Blocked by required conditions
Publish / Release (20) (push) Waiting to run

Co-authored-by: Alex Casillas <alexvcasilas@gmail.com>
This commit is contained in:
Alex Casillas 2024-11-27 17:22:45 +01:00 committed by GitHub
parent 8e1a179465
commit a8c8db60b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'
: ''
}
@ -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' : ''}