Skip to content

Commit f06ee81

Browse files
Implement inline styles conversion
- replace ko-style binding for preview.html with pbStyles - override ko-style for master format rendering in iframe - convert styles block for saved content to inline styles for correct master format parsing - add csso library
1 parent a67b7dc commit f06ee81

File tree

49 files changed

+16224
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+16224
-104
lines changed

app/code/Magento/PageBuilder/view/adminhtml/requirejs-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ var config = {
1212
/* Utilities */
1313
'google-map': 'Magento_PageBuilder/js/utils/map',
1414
'object-path': 'Magento_PageBuilder/js/resource/object-path',
15-
'html2canvas': 'Magento_PageBuilder/js/resource/html2canvas/html2canvas.min'
15+
'html2canvas': 'Magento_PageBuilder/js/resource/html2canvas/html2canvas.min',
16+
'csso': 'Magento_PageBuilder/js/resource/csso/csso'
1617
}
1718
},
1819
shim: {

app/code/Magento/PageBuilder/view/adminhtml/web/js/binding/master-style.js

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/binding/style.js

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/preview-styles.js

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/row/preview.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/style-registry.js

Lines changed: 123 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/text/preview.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/master-format/render/frame.js

Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/page-builder.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)