11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2018 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
88namespace Magento \PageBuilder \Model \Wysiwyg ;
99
10+ use Magento \Framework \DataObject ;
11+ use Magento \Framework \View \Asset \Repository ;
12+
1013/**
1114 * This DefaultConfigProvider overrides existing configuration provided from the cms module
1215 */
1316class DefaultConfigProvider implements \Magento \Framework \Data \Wysiwyg \ConfigProviderInterface
1417{
1518 /**
16- * @var \Magento\Framework\View\Asset\ Repository
19+ * @var Repository
1720 */
18- private $ assetRepo ;
21+ private Repository $ assetRepo ;
1922 /**
2023 * @var array
2124 */
2225 private $ additionalSettings ;
2326 /**
24- * @param \Magento\Framework\View\Asset\ Repository $assetRepo
27+ * @param Repository $assetRepo
2528 * @param array $additionalSettings
2629 */
2730 public function __construct (
28- \ Magento \ Framework \ View \ Asset \ Repository $ assetRepo ,
31+ Repository $ assetRepo ,
2932 array $ additionalSettings
3033 ) {
3134 $ this ->assetRepo = $ assetRepo ;
@@ -34,15 +37,15 @@ public function __construct(
3437 /**
3538 * Returns configuration data
3639 *
37- * @param \Magento\Framework\ DataObject $config
38- * @return \Magento\Framework\ DataObject
40+ * @param DataObject $config
41+ * @return DataObject
3942 */
40- public function getConfig (\ Magento \ Framework \ DataObject $ config ): \ Magento \ Framework \ DataObject
43+ public function getConfig (DataObject $ config ): DataObject
4144 {
4245 $ config ->addData (
4346 [
4447 'tinymce ' => [
45- 'toolbar ' => 'undo redo | styles | fontsizeselect | lineheight | forecolor backcolor ' .
48+ 'toolbar ' => 'undo redo | styles | fontfamily fontsize | lineheight | forecolor backcolor ' .
4649 '| bold italic underline | alignleft aligncenter alignright | numlist bullist ' .
4750 '| link image table charmap ' ,
4851
0 commit comments