Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultConfigProvider.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
15 {
19  private $assetRepo;
20 
24  public function __construct(\Magento\Framework\View\Asset\Repository $assetRepo)
25  {
26  $this->assetRepo = $assetRepo;
27  }
28 
32  public function getConfig(\Magento\Framework\DataObject $config) : \Magento\Framework\DataObject
33  {
34  $config->addData([
35  'tinymce4' => [
36  'toolbar' => 'formatselect | bold italic underline | alignleft aligncenter alignright | '
37  . 'bullist numlist | link table charmap',
38  'plugins' => implode(
39  ' ',
40  [
41  'advlist',
42  'autolink',
43  'lists',
44  'link',
45  'charmap',
46  'media',
47  'noneditable',
48  'table',
49  'contextmenu',
50  'paste',
51  'code',
52  'help',
53  'table'
54  ]
55  ),
56  'content_css' => $this->assetRepo->getUrl('mage/adminhtml/wysiwyg/tiny_mce/themes/ui.css')
57  ]
58  ]);
59  return $config;
60  }
61 }
getConfig(\Magento\Framework\DataObject $config)
$config
Definition: fraud_order.php:17
__construct(\Magento\Framework\View\Asset\Repository $assetRepo)