Skip to content

Commit 964b55e

Browse files
committed
ACP2E-17: Front end CMS page text dissappears after pagebuilder update on backend
- Fix newline or other line terminators in widget content breaks pagebuilder preview and does not render on storefront
1 parent 6b196b5 commit 964b55e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ define([
142142
* @return {*}
143143
*/
144144
encodeWidgets: function (content) {
145-
return content.gsub(/\{\{widget(.*?)\}\}/i, function (match) {
145+
return content.gsub(/\{\{widget([\S\s]*?)\}\}/i, function (match) {
146146
var attributes = wysiwyg.parseAttributesString(match[1]),
147147
imageSrc,
148148
imageHtml = '';

0 commit comments

Comments
 (0)