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