cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

unable to load javascript via cmsparagraph component for script tag in 2011.

deepak9891
Discoverer
0 Kudos
371

Hi All,

The javascript is unable to load in cmsparagraph component. It used to work in 1811 version on refreshing context from CMSParagraphComponent and same is not working on 2011 version for script tag.

We tried it using jspincludecomponent and now when script content loads its impacting the shared banner component on that page and that banner component is not loading now.

In Smartedit, when we go to that page it will display the content having issue with the banner component but on changing the mode to Basic Edit/Advanced Edit we are able to see the image and script form both. So issue looks like its only on storefront we are getting it at first load and not able to render both.Any inputs will be appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

Sass
Associate
Associate
0 Kudos

Greeting!

On newer versions of SAP Commerce, the Paragraph component has a checking for checking unsafe Javascript:

Paragraph Component

To enable Javascript on CMS you have to enable the flag: cms.components.allowUnsafeJavaScript

It's disabled by default.

Best Regards, Sassá