Silverstripe 5.4:
How to add color picker in Tinymce in admin section.
hi guys i am having problems with tinymce in silverstripe 5.4 i have added yml file and _config.php file both i have no results, can you give me a hint?
yaml file i created:
SilverStripe\Forms\HTMLEditor\TinyMCEConfig:
editor:
plugins:
- link
- table
- lists
- code
- fullscreen
- textcolor
toolbar1: 'formatselect | bold italic underline | forecolor backcolor | alignleft aligncenter alignright | bullist numlist | link table | code fullscreen'
_config.php i have tried:
<?php
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig;
use SilverStripe\Forms\HTMLEditor\HtmlEditorConfig;
TinyMCEConfig::get('cms')
->enablePlugins('textcolor')
->insertButtonsBefore('formatselect', 'forecolor backcolor');
HtmlEditorConfig::get('cms')->enablePlugins('textcolor');
HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'forecolor');
i will be very happy if someone help me with this, thanks.