Skip to content

Commit

Permalink
Improved menu/toolbar settings for TinyMCE 6 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoerr authored Oct 31, 2024
1 parent 7fc2e31 commit 73295d6
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions app/code/Magento/Cms/Model/Wysiwyg/DefaultConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,40 @@ public function getConfig(\Magento\Framework\DataObject $config) : \Magento\Fram
{
$config->addData([
'tinymce' => [
'toolbar' => ' blocks | formatselect | bold italic underline | alignleft aligncenter alignright | '
. 'bullist numlist | link table charmap',
'toolbar' => 'blocks | fontfamily fontsizeinput lineheight | forecolor backcolor | '
. 'bold italic underline | alignleft aligncenter alignright alignjustify | '
. 'bullist numlist | link image',
'plugins' => implode(
' ',
[
'advlist',
'anchor',
'autolink',
'lists',
'link',
'charmap',
'media',
'table',
'code',
'codesample',
'directionality',
'emoticons',
'help',
'table'
'image',
'link',
'lists',
'media',
'nonbreaking',
'preview',
'table',
'visualblocks',
'visualchars',
'advlist',
]
),
'content_css' => $this->assetRepo->getUrl('mage/adminhtml/wysiwyg/tiny_mce/themes/ui.css')
]
'content_css' => $this->assetRepo->getUrl('mage/adminhtml/wysiwyg/tiny_mce/themes/ui.css'),
],
'settings' => [
'menubar' => 'edit insert view format table help',
'statusbar' => false,
'image_advtab' => true,
'promotion' => false,
],
]);
return $config;
}
Expand Down

0 comments on commit 73295d6

Please sign in to comment.