1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2018 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
declare (strict_types=1 );
7
7
8
8
namespace Magento \PageBuilder \Model \Wysiwyg ;
9
9
10
+ use Magento \Framework \DataObject ;
11
+ use Magento \Framework \View \Asset \Repository ;
12
+
10
13
/**
11
14
* This DefaultConfigProvider overrides existing configuration provided from the cms module
12
15
*/
13
16
class DefaultConfigProvider implements \Magento \Framework \Data \Wysiwyg \ConfigProviderInterface
14
17
{
15
18
/**
16
- * @var \Magento\Framework\View\Asset\ Repository
19
+ * @var Repository
17
20
*/
18
- private $ assetRepo ;
21
+ private Repository $ assetRepo ;
19
22
/**
20
23
* @var array
21
24
*/
22
25
private $ additionalSettings ;
23
26
/**
24
- * @param \Magento\Framework\View\Asset\ Repository $assetRepo
27
+ * @param Repository $assetRepo
25
28
* @param array $additionalSettings
26
29
*/
27
30
public function __construct (
28
- \ Magento \ Framework \ View \ Asset \ Repository $ assetRepo ,
31
+ Repository $ assetRepo ,
29
32
array $ additionalSettings
30
33
) {
31
34
$ this ->assetRepo = $ assetRepo ;
@@ -34,15 +37,15 @@ public function __construct(
34
37
/**
35
38
* Returns configuration data
36
39
*
37
- * @param \Magento\Framework\ DataObject $config
38
- * @return \Magento\Framework\ DataObject
40
+ * @param DataObject $config
41
+ * @return DataObject
39
42
*/
40
- public function getConfig (\ Magento \ Framework \ DataObject $ config ): \ Magento \ Framework \ DataObject
43
+ public function getConfig (DataObject $ config ): DataObject
41
44
{
42
45
$ config ->addData (
43
46
[
44
47
'tinymce ' => [
45
- 'toolbar ' => 'undo redo | styles | fontsizeselect | lineheight | forecolor backcolor ' .
48
+ 'toolbar ' => 'undo redo | styles | fontfamily fontsize | lineheight | forecolor backcolor ' .
46
49
'| bold italic underline | alignleft aligncenter alignright | numlist bullist ' .
47
50
'| link image table charmap ' ,
48
51
0 commit comments