imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
185 stars 72 forks source link

I can not set placeholder #89

Closed phongnguyenmaster closed 2 years ago

phongnguyenmaster commented 2 years ago

why is it like that? placeholder: quill.placeholder, => placeholder: this.props.placeholder,

return createHtml({
  initialHtml,
  autoSize: this.props.autoSize,
  placeholder: quill.placeholder,
  theme: quill.theme ? quill.theme : 'snow',
  toolbar: JSON.stringify(quill.modules?.toolbar),
  clipboard: quill.modules?.clipboard,
  keyboard: quill.modules?.keyboard,
  libraries: import3rdParties,
  editorId: quill.id ? quill.id : 'editor-container',
  defaultFontFamily,
  containerId,
  color: theme.color,
  fonts: customFonts,
  backgroundColor: theme.background,
  placeholderColor: theme.placeholder,
  customStyles,
  customJS,
});