File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 5
5
6
6
var config = {
7
7
shim : {
8
- 'tinymceDeprecated ' : {
8
+ 'Magento_Tinymce3/tiny_mce/tiny_mce_src ' : {
9
9
'exports' : 'tinymce'
10
10
}
11
11
} ,
12
- paths : {
13
- 'tinymceDeprecated' : 'Magento_Tinymce3/tiny_mce/tiny_mce_src'
12
+ map : {
13
+ '*' : {
14
+ 'tinymceDeprecated' : 'Magento_Tinymce3/tiny_mce/tiny_mce_src'
15
+ }
14
16
}
15
17
} ;
Original file line number Diff line number Diff line change 5
5
6
6
var config = {
7
7
shim : {
8
- 'tinymce4 ' : {
9
- ' exports' : 'tinymce '
8
+ 'tiny_mce_4/tinymce.min ' : {
9
+ exports : 'tinyMCE '
10
10
}
11
11
} ,
12
12
paths : {
13
- 'ui/template' : 'Magento_Ui/templates' ,
14
- 'tinymce4' : 'tiny_mce_4/tinymce.min' ,
15
- 'wysiwygAdapter' : 'mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter'
13
+ 'ui/template' : 'Magento_Ui/templates'
16
14
} ,
17
15
map : {
18
16
'*' : {
@@ -24,7 +22,9 @@ var config = {
24
22
uiRegistry : 'Magento_Ui/js/lib/registry/registry' ,
25
23
consoleLogger : 'Magento_Ui/js/lib/logger/console-logger' ,
26
24
uiLayout : 'Magento_Ui/js/core/renderer/layout' ,
27
- buttonAdapter : 'Magento_Ui/js/form/button-adapter'
25
+ buttonAdapter : 'Magento_Ui/js/form/button-adapter' ,
26
+ tinymce4 : 'tiny_mce_4/tinymce.min' ,
27
+ wysiwygAdapter : 'mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter'
28
28
}
29
29
}
30
30
} ;
Original file line number Diff line number Diff line change 13
13
14
14
<script>
15
15
require.config({
16
- paths: {
17
- wysiwygAdapter: '<?php /* @noEscape */ echo $ block ->getWysiwygAdapterPath (); ?> '
16
+ map: {
17
+ '*': {
18
+ wysiwygAdapter: '<?php /* @noEscape */ echo $ block ->getWysiwygAdapterPath (); ?> '
19
+ }
18
20
}
19
21
});
20
22
</script>
You can’t perform that action at this time.
0 commit comments