Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Quill エディタのインスタンス化には、プレースホルダ オプションがあることを知っています。エディターがインスタンス化された後、このプレースホルダーを動的に変更する方法はありますか?
プレースホルダーは CSS ルールで実装されます。
.ql-editor::before { content: attr(data-placeholder); }
だからあなたはすることができますquill.root.dataset.placeholder = 'Your new placeholder';
quill.root.dataset.placeholder = 'Your new placeholder';