@innovastudio/contentbuilder 1.5.31 → 1.5.34

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.31",
4
+ "version": "1.5.34",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -48167,7 +48167,8 @@ class Hyperlink {
48167
48167
  selection = selectionText;
48168
48168
  const range = selection.getRangeAt(0);
48169
48169
  const fragment = range.extractContents();
48170
- const link = document.createElement('a');
48170
+ const link = this.builder.doc.createElement('a'); //
48171
+
48171
48172
  link.setAttribute('href', url);
48172
48173
  link.setAttribute('title', title);
48173
48174
  if (modal.querySelector('.input-newwindow').checked) {
@@ -48187,7 +48188,8 @@ class Hyperlink {
48187
48188
  } else if (selectionElm) {
48188
48189
  selection = selectionElm;
48189
48190
  selectionElm.innerHTML = `<a class="dummylink" href="dummy">${linktext}</a>`;
48190
- let link = document.querySelector('.dummylink');
48191
+ let link = this.builder.doc.querySelector('.dummylink'); //
48192
+
48191
48193
  link.setAttribute('href', url);
48192
48194
  link.setAttribute('title', title);
48193
48195
  if (modal.querySelector('.input-newwindow').checked) {
@@ -89088,6 +89090,18 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
89088
89090
  });
89089
89091
  var html = result[0].html;
89090
89092
  var noedit = result[0].noedit;
89093
+ if (result[0].mode === 'canvas') {
89094
+ html = result[0].html2;
89095
+ if (!html) {
89096
+ html = `
89097
+ <div class="row">
89098
+ <div class="column pt-0 pb-0 pl-0 pr-0 flex flex-col justify-center">
89099
+ <img src="${this.opts.snippetPath}images/img-2400x1350.png" alt="">
89100
+ </div>
89101
+ </div>
89102
+ `;
89103
+ }
89104
+ }
89091
89105
  var bSnippet;
89092
89106
  if (html.indexOf('"row') === -1) {
89093
89107
  bSnippet = true; // Just snippet (without row/column grid)