@innovastudio/contentbuilder 1.0.81 → 1.0.84
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 +3 -1
- package/public/contentbuilder/contentbuilder.css +21 -5
- package/public/contentbuilder/contentbuilder.esm.js +5529 -770
- package/public/contentbuilder/contentbuilder.min.js +85 -85
- package/public/contentbuilder/plugins/buttoneditor/plugin.js +1 -1
- package/public/contentbuilder/plugins/preview/plugin.js +11 -0
- package/readme.txt +1 -1
|
@@ -287,6 +287,17 @@ function showPreviewWindow() {
|
|
|
287
287
|
// ContentBox
|
|
288
288
|
var content = parent.contentbox.html();
|
|
289
289
|
|
|
290
|
+
if(parent.contentbox.previewPage) {
|
|
291
|
+
let html = parent.contentbox.html();
|
|
292
|
+
localStorage.setItem('preview-html', html);
|
|
293
|
+
let mainCss = parent.contentbox.mainCss();
|
|
294
|
+
localStorage.setItem('preview-maincss', mainCss);
|
|
295
|
+
let sectionCss = parent.contentbox.sectionCss();
|
|
296
|
+
localStorage.setItem('preview-sectioncss', sectionCss);
|
|
297
|
+
modal.querySelector('iframe').src = parent.contentbox.previewPage; //'/preview.html';
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
|
|
290
301
|
var doc = modal.querySelector('iframe').contentWindow.document;
|
|
291
302
|
doc.open();
|
|
292
303
|
doc.write(
|
package/readme.txt
CHANGED