@@ -14,6 +14,7 @@ define([
14
14
] , function ( configDirectiveGenerator , customDirectiveGenerator , wysiwyg , jQuery ) {
15
15
return function ( config ) {
16
16
var self = null ,
17
+
17
18
magentovariable = function ( editor ) {
18
19
this . widget = {
19
20
/**
@@ -30,8 +31,10 @@ define([
30
31
31
32
magentoVariables = JSON . parse ( config . placeholders ) ;
32
33
33
- if ( magentoVariables [ match [ 1 ] ] && magentoVariables [ match [ 1 ] ] [ 'variable_type' ] === 'default' ) {
34
- imageHtml = '<span id="%id" class="magento-variable magento-placeholder mceNonEditable">' +
34
+ if ( magentoVariables [ match [ 1 ] ]
35
+ && magentoVariables [ match [ 1 ] ] [ 'variable_type' ] === 'default' ) {
36
+ imageHtml = '<span id="%id" ' +
37
+ 'class="magento-variable magento-placeholder mceNonEditable">' +
35
38
'%s</span>' ;
36
39
imageHtml = imageHtml . replace ( '%s' , magentoVariables [ match [ 1 ] ] [ 'variable_name' ] ) ;
37
40
} else {
@@ -53,7 +56,8 @@ define([
53
56
54
57
magentoVariables = JSON . parse ( config . placeholders ) ;
55
58
56
- if ( magentoVariables [ match [ 1 ] ] && magentoVariables [ match [ 1 ] ] [ 'variable_type' ] === 'custom' ) {
59
+ if ( magentoVariables [ match [ 1 ] ]
60
+ && magentoVariables [ match [ 1 ] ] [ 'variable_type' ] === 'custom' ) {
57
61
imageHtml = '<span id="%id" class="magento-variable magento-custom-var ' +
58
62
'magento-placeholder mceNonEditable">%s</span>' ;
59
63
imageHtml = imageHtml . replace ( '%s' , magentoVariables [ match [ 1 ] ] [ 'variable_name' ] ) ;
0 commit comments