@innovastudio/contentbuilder 1.5.74 → 1.5.76

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.74",
4
+ "version": "1.5.76",
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();
@@ -14305,12 +14308,17 @@ class HtmlUtil {
14305
14308
  modelContent.style.maxWidth = this.builder.blockCodeEditorMaxWidth;
14306
14309
  codeEditor.style.height = this.builder.blockCodeEditorHeight;
14307
14310
  }
14311
+ const row = this.builder.doc.querySelector('.row-active'); // row-select class cannot be used during code editing
14312
+ if (row) row.classList.remove('row-active');
14308
14313
  util.showModal(viewhtml, true, () => {
14309
14314
  if (btn) {
14310
14315
  btn.removeAttribute('data-focus');
14311
14316
  btn.focus();
14312
14317
  }
14318
+ const cell = util.cellSelected();
14319
+ if (cell) cell.parentNode.classList.add('row-active'); // add row-select class back
14313
14320
  });
14321
+
14314
14322
  if (btn) btn.setAttribute('data-focus', true);
14315
14323
  this._view(mode, area);
14316
14324
  }
@@ -14446,7 +14454,13 @@ class HtmlUtil {
14446
14454
  this.builder.codeEditorArea = area;
14447
14455
  let codeEditor = viewhtml.querySelector('.input-code-editor');
14448
14456
  codeEditor.style.opacity = '';
14457
+
14458
+ // const row = this.builder.doc.querySelector('.row-active');
14459
+ // if(row) row.classList.remove('row-active');
14460
+ // util.showModal(viewhtml, true);
14461
+ // this.builder.codeEditor.focus();
14449
14462
  }
14463
+
14450
14464
  fromViewToActual(html) {
14451
14465
  for (var key in hash$1) {
14452
14466
  html = html.replace(key, hash$1[key]);
@@ -50693,7 +50707,7 @@ class Video {
50693
50707
  if (elm.tagName.toLowerCase() === 'video') {
50694
50708
  if (elm.closest('[data-html]')) {
50695
50709
  this.builder.activeVideo = null;
50696
- this.videoTool.style.display = '';
50710
+ // this.videoTool.style.display = '';
50697
50711
  return;
50698
50712
  }
50699
50713
  this.renderTool();