imnapo / react-native-cn-quill

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

feat: add setPlaceholder #100

Closed sangmin-iam closed 1 year ago

sangmin-iam commented 1 year ago

The new "setPlaceholder" feature allows you to change or overwrite your placeholder. This function will be helpful for someone who wants to change placeholder depending on category

For example, using useEffect

useEffect(() => {
  _editor.current.setPlaceholder(categoryState);
}, [_editor.current, categoryState])

Any questions are welcome