JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › smart-editor onToobarItemClick event › Reply To: smart-editor onToobarItemClick event
January 23, 2023 at 7:39 am
#104270
svetoslav_borislavov
Participant
Hi,
The toolbar item click event is an event of the editor. You should add an event handler to the smart editor.
It is expected that you receive an empty array because when the component mounts the smart editor has not been initialized yet.
See the console when you click a toolbar item here: https://codepen.io/svetoslavb04/pen/BaPYmKZ
If you have any additional questions, do not hesitate to contact us!
Best Regards,
Svetoslav Borislavov
Smart UI Team
https://www.htmlelements.com/