$options = [ 'mybutton' => [ 'type' => 'user', 'userFunc' => 'Vendor\\Extension\\MyClass->myMethod', 'icon' => 'my-icon.gif', 'title' => 'My Button', 'description' => 'Add a description here' ] ]; \TYPO3\CMS\Backend\Utility\BackendUtility::RTEsetup('my_extension', $options);
$options = [ 'enableLinkHandler' => true, 'addStyleSheet' => '/typo3conf/ext/my_extension/Resources/Public/css/custom.css' ]; \TYPO3\CMS\Backend\Utility\BackendUtility::RTEsetup('my_extension', $options);This example enables the RTE link handler and adds a custom CSS file to the RTE editor to change the styles of the editor. The package library used here is `my_extension`, which is a custom extension. The options can be customized according to the needs and requirements of the application.