JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.75k stars 313 forks source link

Text Editor Place holder issue #1106

Open Ayub1224 opened 2 years ago

Ayub1224 commented 2 years ago

I am passing place holder like this placeholder={placeholder || ''} I have 2-3 form page by which am passing placeholder as prop

The issue is, it tales value form the 1st form only, and after that showing the 1st place's placeholder message all over the form.

JiHong88 commented 2 years ago

You must use the "setOptions" method to change options.

editorInstance.setOptions({placeholder:""})