12 <div data-
mage-init=
'{"floatingHeader": {}}' class=
"page-actions">
13 <?=
$block->getBackButtonHtml() ?>
14 <?=
$block->getPreviewButtonHtml() ?>
15 <?php
if (!
$block->getIsPreview()): ?>
16 <?=
$block->getResetButtonHtml() ?>
17 <?=
$block->getSaveButtonHtml() ?>
19 <?php
if (
$block->getCanResume()): ?>
20 <?=
$block->getResumeButtonHtml() ?>
24 <
form action=
"<?= $block->escapeUrl($block->getSaveUrl()) ?>" method=
"post" id=
"queue_edit_form">
25 <?=
$block->getBlockHtml(
'formkey') ?>
26 <?=
$block->getChildHtml(
'form') ?>
28 <
form action=
"<?= $block->escapeUrl($block->getPreviewUrl()) ?>" method=
"post" id=
"newsletter_queue_preview_form" target=
"_blank">
29 <?=
$block->getBlockHtml(
'formkey') ?>
30 <div
class=
"no-display">
31 <input type=
"hidden" id=
"preview_type" name=
"type" value=
"<?= /* @noEscape */ $block->getIsTextType() ? 1 : 2 ?>" />
32 <input type=
"hidden" id=
"preview_text" name=
"text" value=
"" />
33 <input type=
"hidden" id=
"preview_styles" name=
"styles" value=
"" />
34 <input type=
"hidden" id=
"preview_id" name=
"id" value=
"" />
43 ],
function(
jQuery, wysiwyg){
46 jQuery(
'#queue_edit_form').mage(
'form').mage(
'validation');
47 jQuery(
'#newsletter_queue_preview_form').mage(
'form').mage(
'validation');
52 if (this.isEditor() && wysiwyg.get(this.
id)) {
53 wysiwyg.triggerSave();
54 $(
'preview_text').
value = wysiwyg.get(
this.id).getContent();
55 wysiwyg.triggerSave();
57 $(
'preview_text').
value = $(this.
id).value;
59 if ($(
'styles') != undefined) {
60 $(
'preview_styles').
value = $(
'styles').value;
62 if ($(
'id') != undefined) {
63 $(
'preview_id').
value = $(
'id').value;
66 jQuery(
'#newsletter_queue_preview_form').trigger(
'save');
69 isEditor:
function() {
70 return (typeof tinyMceEditors !=
'undefined' && tinyMceEditors.get(
this.id) != undefined)
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $form)() ?>< script > require(['jquery' mage mage
jquery extjs ext tree mage adminhtml form
jQuery('.store-switcher .dropdown-menu li a').each(function()