@innovastudio/contentbuilder 1.5.75 → 1.5.77

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.75",
4
+ "version": "1.5.77",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -14109,6 +14109,9 @@ class HtmlUtil {
14109
14109
  }
14110
14110
  applyHtml(modal) {
14111
14111
  const util = this.builder.util;
14112
+ const cell = util.cellSelected();
14113
+ if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
14114
+
14112
14115
  let mode = this.builder.codeEditorMode;
14113
14116
  let area = this.builder.codeEditorArea;
14114
14117
  this.builder.uo.saveForUndo();
@@ -14174,6 +14177,13 @@ class HtmlUtil {
14174
14177
 
14175
14178
  //Trigger Render event
14176
14179
  this.builder.opts.onRender();
14180
+
14181
+ // Re-select
14182
+ if (row.firstChild) row.firstChild.click();
14183
+ //Change to row selection
14184
+ row.classList.remove('row-outline');
14185
+ //Hide Column tool (new!)
14186
+ util.hideColumnTool();
14177
14187
  }
14178
14188
  if (mode === 'full') {
14179
14189
  // freeform
@@ -14305,12 +14315,17 @@ class HtmlUtil {
14305
14315
  modelContent.style.maxWidth = this.builder.blockCodeEditorMaxWidth;
14306
14316
  codeEditor.style.height = this.builder.blockCodeEditorHeight;
14307
14317
  }
14318
+ const row = this.builder.doc.querySelector('.row-active'); // row-select class cannot be used during code editing
14319
+ if (row) row.classList.remove('row-active');
14308
14320
  util.showModal(viewhtml, true, () => {
14309
14321
  if (btn) {
14310
14322
  btn.removeAttribute('data-focus');
14311
14323
  btn.focus();
14312
14324
  }
14325
+ const cell = util.cellSelected();
14326
+ if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
14313
14327
  });
14328
+
14314
14329
  if (btn) btn.setAttribute('data-focus', true);
14315
14330
  this._view(mode, area);
14316
14331
  }
@@ -14446,7 +14461,13 @@ class HtmlUtil {
14446
14461
  this.builder.codeEditorArea = area;
14447
14462
  let codeEditor = viewhtml.querySelector('.input-code-editor');
14448
14463
  codeEditor.style.opacity = '';
14464
+
14465
+ // const row = this.builder.doc.querySelector('.row-active');
14466
+ // if(row) row.classList.remove('row-active');
14467
+ // util.showModal(viewhtml, true);
14468
+ // this.builder.codeEditor.focus();
14449
14469
  }
14470
+
14450
14471
  fromViewToActual(html) {
14451
14472
  for (var key in hash$1) {
14452
14473
  html = html.replace(key, hash$1[key]);
@@ -50693,7 +50714,7 @@ class Video {
50693
50714
  if (elm.tagName.toLowerCase() === 'video') {
50694
50715
  if (elm.closest('[data-html]')) {
50695
50716
  this.builder.activeVideo = null;
50696
- this.videoTool.style.display = '';
50717
+ // this.videoTool.style.display = '';
50697
50718
  return;
50698
50719
  }
50699
50720
  this.renderTool();