How to Add a Word List as Buttons to the Filament Rich Editor?

I want to create a list of words displayed as buttons above the Filament Rich Editor. When a user clicks on any button, the corresponding word should be inserted at the current cursor position within the editor. How can I achieve this behavior in a simple and effective way using Filament Rich Editor alone? Example: A list of buttons with words: (Word1, Word2, Word3). When the user clicks on the "Word1" button, "Word1" is inserted at the current cursor position in the editor. The focus should return to the editor immediately after inserting the word.
3 Replies
toeknee
toeknee2w ago
You can do this with #awcodes-tiptap-editor editor and tag
Alnuaimi
AlnuaimiOP2w ago
ok,how to write it ?
toeknee
toeknee2w ago
Read the docs
Want results from more Discord servers?
Add your server