wix-incubator / react-native-zss-rich-text-editor

React Native rich text editor based on ZSSRichTextEditor
Other
841 stars 311 forks source link

editor.html setFontFamily() #139

Open pdkn opened 5 years ago

pdkn commented 5 years ago

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

skizzo commented 5 years ago

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

sathishu37 commented 5 years ago

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