Skip to content

Commit ebc00e7

Browse files
AC-374: Widget and Variable Plugins Images Issues
1 parent 9a1e195 commit ebc00e7

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentovariable/editor_plugin.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,19 @@ define([
4545
/**
4646
* Add button to the editor toolbar.
4747
*/
48-
editor.ui.registry.addIcon('magentovariable',
48+
editor.ui.registry.addIcon(
49+
'magentovariable',
4950
'<svg width="24" height="24" viewBox="0 0 32.000000 32.000000" ' +
5051
'preserveAspectRatio="xMidYMid meet"><g transform="translate(0.000000,32.000000) ' +
51-
'scale(0.100000,-0.100000)" fill="#000000" stroke="none"> <path d="M68 250 c-56 -44 -75 -136 ' +
52-
'-37 -184 27 -34 42 -33 23 2 -26 50 -9 129 38 179 26 28 10 30 -24 3z"/> <path d="M266 253 c5 -10' +
53-
'9 -41 9 -70 0 -42 -6 -60 -32 -97 -36 -51 -35 -56 7 -26 54 39 78 139 44 188 -18 26 -40 30 ' +
54-
'-28 5z"/> <path d="M128 223 c-15 -4 -15 -6 0 -33 16 -28 16 -30 -11 -58 -30 -31 -34 -42 -13 ' +
55-
'-42 8 0 17 11 20 25 4 14 11 25 16 25 5 0 12 -11 16 -25 6 -25 37 -35 49 -15 3 5 2 10 -3 10 -23 0 ' +
56-
'-20 44 5 76 25 34 25 34 4 34 -12 0 -20 -4 -17 -8 2 -4 0 -14 -5 -22 -7 -10 -12 -11 -15 -4 -10 25' +
57-
' -30 40 -46 37z"/> </g> </svg>');
52+
'scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M68 250 c-56 -44 -75 -136 -37 ' +
53+
'-184 27 -34 42 -33 23 2 -26 50 -9 129 38 179 26 28 10 30 -24 3z"/><path d="M266 253 c5 -10 9 ' +
54+
'-41 9 -70 0 -42 -6 -60 -32 -97 -36 -51 -35 -56 7 -26 54 39 78 139 44 188 -18 26 -40 30 -28 5z"/>' +
55+
'<path d="M128 223 c-15 -4 -15 -6 0 -33 16 -28 16 -30 -11 -58 -30 -31 -34 -42 -13 -42 8 0 17 11 ' +
56+
'20 25 4 14 11 25 16 25 5 0 12 -11 16 -25 6 -25 37 -35 49 -15 3 5 2 10 -3 10 -23 0 -20 44 5 76 ' +
57+
'25 34 25 34 4 34 -12 0 -20 -4 -17 -8 2 -4 0 -14 -5 -22 -7 -10 -12 -11 -15 -4 -10 25 -30 40 ' +
58+
'-46 37z"/></g>' +
59+
'</svg>'
60+
);
5861
editor.ui.registry.addToggleButton('magentovariable', {
5962
icon: 'magentovariable',
6063
tooltip: jQuery.mage.__('Insert Variable'),

lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ define([
3333
});
3434

3535
// Register Widget plugin button
36-
editor.ui.registry.addIcon('magentowidget',
36+
editor.ui.registry.addIcon(
37+
'magentowidget',
3738
'<svg width="24" height="24" viewBox="0 0 32.000000 32.000000" ' +
3839
'preserveAspectRatio="xMidYMid meet"> <g transform="translate(0.000000,32.000000) ' +
3940
'scale(0.100000,-0.100000)" fill="#000000" stroke="none"> <path d="M130 290 c0 -5 13 -10 30 ' +
@@ -43,7 +44,8 @@ define([
4344
'24 -10 3 -18 11 -18 17 0 5 -13 10 -30 10 -16 0 -30 -4 -30 -10z m58 -82 c-3 -7 -15 -13 -28 -13 ' +
4445
'-13 0 -25 6 -27 13 -3 8 6 12 27 12 21 0 30 -4 28 -12z"/> <path d="M30 151 l0 -60 61 -36 c33 ' +
4546
'-19 64 -35 69 -35 5 0 36 16 69 35 l61 36 0 60 0 61 -65 -37 -65 -36 -65 36 -65 37 0 -61z"/> </g>' +
46-
'</svg>');
47+
'</svg>'
48+
);
4749
editor.ui.registry.addToggleButton('magentowidget', {
4850
icon: 'magentowidget',
4951
tooltip: jQuery.mage.__('Insert Widget'),

0 commit comments

Comments
 (0)