File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,12 @@ function loadTemplate() {
95
95
}).then (data => done ({ progress: 100 , url: data .file .url }))
96
96
});
97
97
98
- const mergeTags = {} ;
98
+ const mergeTags = [] ;
99
99
@foreach ($replacers as $replacerName => $replacerDescription )
100
- mergeTags[ " {{ $replacerName } } " ] = {
101
- name: " {{ $replacerName } }" ,
102
- value: ' @ {{' + " {{ $replacerName } }" + ' }}'
103
- };
100
+ mergeTags . push ( {
101
+ name: " {!! $replacerName ! ! }" ,
102
+ value: ' @ {{' + " {!! $replacerName ! ! }" + ' }}'
103
+ }) ;
104
104
@endforeach
105
105
106
106
unlayer .setMergeTags (mergeTags);
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private function getSpecialLinks(HasHtmlContent $model): array
87
87
$ tags ->each (function (Tag $ tag ) use (&$ unsubscribeLinks ) {
88
88
$ unsubscribeLinks [] = [
89
89
'name ' => $ tag ->name ,
90
- 'href ' => "{{unsubscribeTag[' {$ tag ->name }'] " ,
90
+ 'href ' => "{{unsubscribeTag[' {$ tag ->name }']}} " ,
91
91
'target ' => '_blank ' ,
92
92
];
93
93
});
You can’t perform that action at this time.
0 commit comments