I’m creating a component for Joomla.
In the backend I added an editor like this:
$editor = JFactory::getEditor();
$editor->display('codice', 'test', '100%', '768', '40', '5',false);
I added the buttons.
Clicking these buttons I would like to enter text for example: [code]test[code]
at the point where the user was writing.
how do I?
You can try this. Replace button and editor id as per your code