diff --git a/site/plugins/admin/templates/extends/snippets/index.html b/site/plugins/admin/templates/extends/snippets/index.html
index 56f3408e..08f1ce32 100644
--- a/site/plugins/admin/templates/extends/snippets/index.html
+++ b/site/plugins/admin/templates/extends/snippets/index.html
@@ -71,17 +71,17 @@
-
+
[snippets_exec id=""]
-
-
-
{{ snippets.exec('') }}
-
+
+ {{ snippets.exec('') }}
+
{{ tr('admin_copy') }}
@@ -106,9 +106,13 @@
dropdown[row_num].hide();
Swal.fire({
title: "{{ tr('admin_embeded_code') }}",
- html: '[snippets_exec id="' + id + '"]{{ tr("admin_copy") }}
{{ tr("admin_template_code") }}{{ snippets.exec("' + id + '") }}{{ tr("admin_copy") }}
'
+ showCloseButton: true,
+ focusCloseButton: false,
+ showConfirmButton: false,
+ html: $('._embeded-code-template').html(),
+ onBeforeOpen: () => {
+ $('.js-snippets-snippet-placeholder').html(id);
+ }
});
}