imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
187 stars 74 forks source link

Unable to change the default font size #69

Open swengle opened 3 years ago

swengle commented 3 years ago

I have tried to set the font-size using customStyles, assigning it to the body and then .ql-container and then .ql-editor. None of them work and on ios, the font defaults to 13 it seems. How does one set the default font size for the editor?

Current setting.... customStyles={["body {font-size: 40px !important;}", ".ql-editor: {font-size: 40px !important;}", ".editor-container: {font-size: 40px !important;}"]}

martinriviere commented 2 years ago

You have to target editor-container, which is an id and not a class: customStyles={['#editor-container { font-size: 40px; }']}