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
toeknee2mo ago
You can do this with #awcodes-tiptap-editor editor and tag
Alnuaimi
AlnuaimiOP2mo ago
ok,how to write it ?
toeknee
toeknee2mo ago
Read the docs

Did you find this page helpful?