@innovastudio/contentbuilder 1.5.161 → 1.5.163
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
|
@@ -5880,6 +5880,9 @@ class Util {
|
|
|
5880
5880
|
|
|
5881
5881
|
//Trigger Render event
|
|
5882
5882
|
this.builder.opts.onRender();
|
|
5883
|
+
|
|
5884
|
+
// Reinit after drag drop block
|
|
5885
|
+
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
|
|
5883
5886
|
}
|
|
5884
5887
|
clearActiveCell() {
|
|
5885
5888
|
// this.builder.lastActiveCol = this.cellSelected(); // get active cell before cleared (will be used by snippets dialog)
|
|
@@ -6531,6 +6534,7 @@ class Util {
|
|
|
6531
6534
|
// when column has just been deleted
|
|
6532
6535
|
row = this.rowSelected();
|
|
6533
6536
|
}
|
|
6537
|
+
if (!row) return;
|
|
6534
6538
|
this.colTool = row.querySelector('.is-col-tool');
|
|
6535
6539
|
if (!this.colTool) return; // when drag block as a new section
|
|
6536
6540
|
|
|
@@ -14357,7 +14361,7 @@ class HtmlUtil {
|
|
|
14357
14361
|
});
|
|
14358
14362
|
}
|
|
14359
14363
|
}
|
|
14360
|
-
applyHtml(modal) {
|
|
14364
|
+
async applyHtml(modal) {
|
|
14361
14365
|
const util = this.builder.util;
|
|
14362
14366
|
const cell = util.cellSelected();
|
|
14363
14367
|
if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
|
|
@@ -14483,7 +14487,7 @@ class HtmlUtil {
|
|
|
14483
14487
|
util.clearControls(); // NEW
|
|
14484
14488
|
|
|
14485
14489
|
// Re-init plugins
|
|
14486
|
-
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
|
|
14490
|
+
if (this.builder.win.builderRuntime) await this.builder.win.builderRuntime.reinitialize();
|
|
14487
14491
|
this.builder.hideModal(modal);
|
|
14488
14492
|
}
|
|
14489
14493
|
viewHtmlExternal() {
|
|
@@ -97878,6 +97882,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
97878
97882
|
|
|
97879
97883
|
// After snippet has been added, re-apply behavior on builder areas
|
|
97880
97884
|
this.applyBehaviorOn(builder);
|
|
97885
|
+
|
|
97886
|
+
// Reinit after drag drop block
|
|
97887
|
+
if (this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
|
|
97881
97888
|
if (newRows.length > 0) {
|
|
97882
97889
|
let newRow = newRows[0]; // get first added row
|
|
97883
97890
|
if (newRow.children.length > 0) {
|
|
@@ -97950,8 +97957,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
97950
97957
|
this.setZoomOnControl(builder);
|
|
97951
97958
|
|
|
97952
97959
|
// Re-init plugins
|
|
97953
|
-
if
|
|
97960
|
+
// if(this.win.builderRuntime) this.win.builderRuntime.reinitialize(builder);
|
|
97954
97961
|
}
|
|
97962
|
+
|
|
97955
97963
|
applySortableGrid() {
|
|
97956
97964
|
if (this.iframe) {
|
|
97957
97965
|
const oldCss = this.contentStuff.querySelector('#css-scale');
|
|
@@ -102363,6 +102371,9 @@ Please obtain a license at: https://innovastudio.com/contentbox`);
|
|
|
102363
102371
|
|
|
102364
102372
|
// // Hide element tool
|
|
102365
102373
|
// this.elmTool.hide();
|
|
102374
|
+
|
|
102375
|
+
// Reinit after drag drop block
|
|
102376
|
+
if (this.win.builderRuntime) this.win.builderRuntime.reinitialize();
|
|
102366
102377
|
}
|
|
102367
102378
|
|
|
102368
102379
|
// this.sortableOnPage.option('draggable', '.dummy');
|