@innovastudio/contentbuilder 1.5.160 → 1.5.162
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
|
@@ -6159,15 +6159,16 @@ class Util {
|
|
|
6159
6159
|
rtepop.style.display = '';
|
|
6160
6160
|
dom.removeClass(rtepop, 'active');
|
|
6161
6161
|
dom.removeClass(rtepop, 'deactive');
|
|
6162
|
-
// dom.addClass(rtepop, 'deactive');
|
|
6163
6162
|
});
|
|
6164
6163
|
}
|
|
6165
|
-
|
|
6166
6164
|
let pops = builderStuff.querySelectorAll('.is-pop');
|
|
6167
6165
|
Array.prototype.forEach.call(pops, pop => {
|
|
6168
6166
|
pop.style.display = '';
|
|
6169
6167
|
dom.removeClass(pop, 'active');
|
|
6170
|
-
|
|
6168
|
+
this.builder.doc.body.focus();
|
|
6169
|
+
setTimeout(() => {
|
|
6170
|
+
pop.setAttribute('aria-hidden', true);
|
|
6171
|
+
}, 0);
|
|
6171
6172
|
});
|
|
6172
6173
|
this.builder.colTool.lockIndicator.style.display = '';
|
|
6173
6174
|
if (this.builder.resize) {
|
|
@@ -6530,6 +6531,7 @@ class Util {
|
|
|
6530
6531
|
// when column has just been deleted
|
|
6531
6532
|
row = this.rowSelected();
|
|
6532
6533
|
}
|
|
6534
|
+
if (!row) return;
|
|
6533
6535
|
this.colTool = row.querySelector('.is-col-tool');
|
|
6534
6536
|
if (!this.colTool) return; // when drag block as a new section
|
|
6535
6537
|
|
|
@@ -14356,7 +14358,7 @@ class HtmlUtil {
|
|
|
14356
14358
|
});
|
|
14357
14359
|
}
|
|
14358
14360
|
}
|
|
14359
|
-
applyHtml(modal) {
|
|
14361
|
+
async applyHtml(modal) {
|
|
14360
14362
|
const util = this.builder.util;
|
|
14361
14363
|
const cell = util.cellSelected();
|
|
14362
14364
|
if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
|
|
@@ -14482,7 +14484,7 @@ class HtmlUtil {
|
|
|
14482
14484
|
util.clearControls(); // NEW
|
|
14483
14485
|
|
|
14484
14486
|
// Re-init plugins
|
|
14485
|
-
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
|
|
14487
|
+
if (this.builder.win.builderRuntime) await this.builder.win.builderRuntime.reinitialize();
|
|
14486
14488
|
this.builder.hideModal(modal);
|
|
14487
14489
|
}
|
|
14488
14490
|
viewHtmlExternal() {
|
|
@@ -15040,7 +15042,6 @@ class HtmlUtil {
|
|
|
15040
15042
|
|
|
15041
15043
|
// Remove runtime-added attributes
|
|
15042
15044
|
element.removeAttribute('data-cb-original-content');
|
|
15043
|
-
element.removeAttribute('data-cb-loaded');
|
|
15044
15045
|
|
|
15045
15046
|
// element.removeAttribute('data-cb-logo-loop-initialized');
|
|
15046
15047
|
|
|
@@ -15051,12 +15052,12 @@ class HtmlUtil {
|
|
|
15051
15052
|
element.removeAttribute(name);
|
|
15052
15053
|
}
|
|
15053
15054
|
});
|
|
15054
|
-
element.removeAttribute('data-cb-editmode');
|
|
15055
15055
|
|
|
15056
15056
|
// Remove runtime-added classes
|
|
15057
15057
|
const type = element.getAttribute('data-cb-type');
|
|
15058
15058
|
element.classList.remove(`cb-${type}`);
|
|
15059
15059
|
}
|
|
15060
|
+
element.removeAttribute('data-cb-loaded');
|
|
15060
15061
|
});
|
|
15061
15062
|
html = '';
|
|
15062
15063
|
if (multiple) {
|
|
@@ -16398,6 +16399,9 @@ class Grid {
|
|
|
16398
16399
|
cell.click(); //refresh active cell/row
|
|
16399
16400
|
}, 30);
|
|
16400
16401
|
this.builder.opts.onChange();
|
|
16402
|
+
|
|
16403
|
+
// Re-init plugins
|
|
16404
|
+
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(cellElement);
|
|
16401
16405
|
}
|
|
16402
16406
|
removeColumn() {
|
|
16403
16407
|
let util = this.util;
|
|
@@ -17171,6 +17175,9 @@ class Grid {
|
|
|
17171
17175
|
builder.applyBehaviorOn(builderActive);
|
|
17172
17176
|
this.rowTool.position(rowElement);
|
|
17173
17177
|
this.builder.opts.onChange();
|
|
17178
|
+
|
|
17179
|
+
// Re-init plugins
|
|
17180
|
+
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(rowElement);
|
|
17174
17181
|
}
|
|
17175
17182
|
}
|
|
17176
17183
|
class RowTool$1 {
|
|
@@ -62880,6 +62887,9 @@ class ElementTool {
|
|
|
62880
62887
|
|
|
62881
62888
|
//Trigger Change event
|
|
62882
62889
|
this.builder.opts.onChange();
|
|
62890
|
+
|
|
62891
|
+
// Re-init plugins
|
|
62892
|
+
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(newelm.parentNode);
|
|
62883
62893
|
}, 100); //Timeout needed by Safari
|
|
62884
62894
|
});
|
|
62885
62895
|
|
|
@@ -97939,6 +97949,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
97939
97949
|
|
|
97940
97950
|
// Zoom
|
|
97941
97951
|
this.setZoomOnControl(builder);
|
|
97952
|
+
|
|
97953
|
+
// Re-init plugins
|
|
97954
|
+
if (this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
|
|
97942
97955
|
}
|
|
97943
97956
|
applySortableGrid() {
|
|
97944
97957
|
if (this.iframe) {
|