@innovastudio/contentbuilder 1.5.31 → 1.5.32
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
|
@@ -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 =
|
|
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 =
|
|
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)
|