@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.
@@ -31,7 +31,7 @@
31
31
 
32
32
  let elm = e.target;
33
33
 
34
- var elmDisplay = getStyle(elm, 'display');
34
+ var elmDisplay = elm.style.display; //getStyle(elm, 'display');
35
35
 
36
36
  if((elm.tagName.toLowerCase() === 'a' && (elmDisplay === 'inline-block' || elmDisplay === 'block'))) {
37
37
 
@@ -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
@@ -1,4 +1,4 @@
1
- ContentBuilder.js 5.0.3
1
+ ContentBuilder.js 5.0.4
2
2
 
3
3
  To get started, please see the documentation:
4
4