@innovastudio/contentbuilder 1.4.43 → 1.4.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -5798,6 +5798,7 @@ class Util {
|
|
5798
5798
|
}
|
5799
5799
|
|
5800
5800
|
this.colTool = row.querySelector('.is-col-tool');
|
5801
|
+
if (!this.colTool) return; // when drag block as a new section
|
5801
5802
|
|
5802
5803
|
if (!col.parentNode) {
|
5803
5804
|
// when column has just been deleted
|
@@ -22238,7 +22239,7 @@ const renderSnippetPanel = builder => {
|
|
22238
22239
|
|
22239
22240
|
for (let i = 0; i < builder.opts.emailSnippetCategories.length; i++) {
|
22240
22241
|
// catoptions += '<div role="button" tabindex="0" data-value="' + builder.opts.emailSnippetCategories[i][0] + '">' + builder.opts.emailSnippetCategories[i][1] + '</div>';
|
22241
|
-
catitems += '<li role="option" tabindex="0" data-value="' + builder.opts.emailSnippetCategories[i][0] + '">' + builder.opts.emailSnippetCategories[i][1] + '</li>';
|
22242
|
+
catitems += '<li role="option" tabindex="0" data-value="' + builder.opts.emailSnippetCategories[i][0] + '">' + util.out(builder.opts.emailSnippetCategories[i][1]) + '</li>';
|
22242
22243
|
if (builder.opts.emailSnippetCategories[i][0] === builder.opts.defaultEmailSnippetCategory) defaultcat = builder.opts.emailSnippetCategories[i][1];
|
22243
22244
|
}
|
22244
22245
|
} else {
|
@@ -22246,12 +22247,12 @@ const renderSnippetPanel = builder => {
|
|
22246
22247
|
|
22247
22248
|
for (let i = 0; i < builder.opts.snippetCategories.length; i++) {
|
22248
22249
|
// catoptions += '<div role="button" tabindex="0" data-value="' + builder.opts.snippetCategories[i][0] + '">' + builder.opts.snippetCategories[i][1] + '</div>';
|
22249
|
-
catitems += '<li role="option" tabindex="0" data-value="' + builder.opts.snippetCategories[i][0] + '">' + builder.opts.snippetCategories[i][1] + '</li>';
|
22250
|
+
catitems += '<li role="option" tabindex="0" data-value="' + builder.opts.snippetCategories[i][0] + '">' + util.out(builder.opts.snippetCategories[i][1]) + '</li>';
|
22250
22251
|
if (builder.opts.snippetCategories[i][0] === builder.opts.defaultSnippetCategory) defaultcat = builder.opts.snippetCategories[i][1];
|
22251
22252
|
}
|
22252
22253
|
}
|
22253
22254
|
|
22254
|
-
let html_snippets = '' + '<div class="is-dropdown selectsnippet" style="position:absolute;top:0;right:0;padding: 0;width:100%;z-index:2;">' + '<button tabindex="0" class="dropdown-toggle no-outline" title="' + util.out('Snippet Categories') + '" type="button" aria-haspopup="true" data-value="' + defaultcatval + '">' + '<span>' + defaultcat + '</span>' + '</button>' + '<ul class="dropdown-menu" role="listbox" title="' + util.out('Snippets') + '" aria-expanded="false">' + catitems + '</ul>' + '</div>' + (sidePanel === 'right' ? '<div id="divSnippetScrollUp" role="button" tabindex="-1" style="top:calc(50% - 27px);right:25px;">▲</div>' + '<div id="divSnippetScrollDown" role="button" tabindex="-1" style="top:calc(50% + 27px);right:25px;">▼</div>' + '<div id="divSnippetHandle" role="button" tabindex="-1" title="' + util.out('Snippets') + '" data-title="' + util.out('Snippets') + '" style="' + hideHandle + '">' + '<svg class="is-icon-flex"><use xlink:href="#ion-ios-arrow-left"></use></svg>' + '</div>' : '<div id="divSnippetScrollUp" role="button" tabindex="-1" style="top:calc(50% - 27px);left:10px;">▲</div>' + '<div id="divSnippetScrollDown" role="button" tabindex="-1" style="top:calc(50% + 27px);left:10px;">▼</div>' + '<div id="divSnippetHandle" role="button" tabindex="-1" title="' + util.out('Snippets') + '" data-title="' + util.out('Snippets') + '" style="' + hideHandle + '">' + '<svg class="is-icon-flex"><use xlink:href="#ion-ios-arrow-right"></use></svg>' + '</div>') + '<div class="is-design-list" tabindex="0">' + '</div>';
|
22255
|
+
let html_snippets = '' + '<div class="is-dropdown selectsnippet" style="position:absolute;top:0;right:0;padding: 0;width:100%;z-index:2;">' + '<button tabindex="0" class="dropdown-toggle no-outline" title="' + util.out('Snippet Categories') + '" type="button" aria-haspopup="true" data-value="' + defaultcatval + '">' + '<span>' + util.out(defaultcat) + '</span>' + '</button>' + '<ul class="dropdown-menu" role="listbox" title="' + util.out('Snippets') + '" aria-expanded="false">' + catitems + '</ul>' + '</div>' + (sidePanel === 'right' ? '<div id="divSnippetScrollUp" role="button" tabindex="-1" style="top:calc(50% - 27px);right:25px;">▲</div>' + '<div id="divSnippetScrollDown" role="button" tabindex="-1" style="top:calc(50% + 27px);right:25px;">▼</div>' + '<div id="divSnippetHandle" role="button" tabindex="-1" title="' + util.out('Snippets') + '" data-title="' + util.out('Snippets') + '" style="' + hideHandle + '">' + '<svg class="is-icon-flex"><use xlink:href="#ion-ios-arrow-left"></use></svg>' + '</div>' : '<div id="divSnippetScrollUp" role="button" tabindex="-1" style="top:calc(50% - 27px);left:10px;">▲</div>' + '<div id="divSnippetScrollDown" role="button" tabindex="-1" style="top:calc(50% + 27px);left:10px;">▼</div>' + '<div id="divSnippetHandle" role="button" tabindex="-1" title="' + util.out('Snippets') + '" data-title="' + util.out('Snippets') + '" style="' + hideHandle + '">' + '<svg class="is-icon-flex"><use xlink:href="#ion-ios-arrow-right"></use></svg>' + '</div>') + '<div class="is-design-list" tabindex="0">' + '</div>';
|
22255
22256
|
let snippetPanel = document.querySelector(builder.opts.snippetList);
|
22256
22257
|
dom.appendHtml(snippetPanel, html_snippets);
|
22257
22258
|
const dropDown = new Select(snippetPanel.querySelector('.selectsnippet'));
|
@@ -78097,11 +78098,11 @@ class ContentBuilder {
|
|
78097
78098
|
imageRenameOnEdit: true,
|
78098
78099
|
disableAutoEmbedVideo: false,
|
78099
78100
|
sectionTemplate: `
|
78100
|
-
<div class="is-section is-box is-section-100 type-
|
78101
|
+
<div class="is-section is-box is-section-100 type-opensans">
|
78101
78102
|
<div class="is-overlay"></div>
|
78102
78103
|
<div class="is-boxes">
|
78103
78104
|
<div class="is-box-centered">
|
78104
|
-
<div class="is-container is-content-1100 v2 size-
|
78105
|
+
<div class="is-container is-content-1100 v2 size-17 leading-13">
|
78105
78106
|
[%CONTENT%]
|
78106
78107
|
</div>
|
78107
78108
|
</div>
|