react-native-zss-rich-text-editor icon indicating copy to clipboard operation
react-native-zss-rich-text-editor copied to clipboard

editor.html setFontFamily()

Open pdkn opened this issue 5 years ago • 2 comments

I'm trying to customs the editor with a custom font and styling. I can see editor.html has setFontFamily() but it doesn't seem to be wired up to the actions available? I've also failed to use setCustomCSS() to set custom styles. Any pointers? none of these work

this.richtext.setCustomCSS("fontName:'MY-Regular'") this.richtext.setCustomCSS("fontFamily:'MY-Regular'") this.richtext.setCustomCSS("font-family:'MY-Regular'") this.richtext.setCustomCSS("body:{fontFamily:'MY-Regular'}") this.richtext.setCustomCSS("color:blue")

Any change of some examples on using setCustomCSS() and if setFontFamily() is accessible? Thanks

pdkn avatar Oct 03 '18 12:10 pdkn

@pdkn So, did you find out how to change the font family? I'm having the same issue. Thanks!

skizzo avatar Mar 31 '19 00:03 skizzo

@skizzo Same here! Did you guys find any solution for this?

sathishu37 avatar Apr 05 '19 11:04 sathishu37