-
|
@macrozone Hi, Is it possible to add control over the font in slate. looks like there is no option provided to change the font family or size of the text in the editor. |
Beta Was this translation helpful? Give feedback.
Answered by
macrozone
Dec 20, 2021
Replies: 1 comment 4 replies
-
|
hi @mikeljoe1 , not by default, but you could create a custom slate plugin doing that. Take this as an example: https://github.com/react-page/react-page/blob/master/examples/plugins/customSlatePlugin.tsx this changes the color of the marked text. just change color with fontFamily. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
mikeljoe1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @mikeljoe1 , not by default, but you could create a custom slate plugin doing that.
Take this as an example: https://github.com/react-page/react-page/blob/master/examples/plugins/customSlatePlugin.tsx
this changes the color of the marked text. just change color with fontFamily.