Closed alansemenov closed 4 days ago
Hehe it was actually like this before DT 5.0.24 but then I had to make this change for Content Studio 4.1
See changelog:
5.0.24 Apr 4th 2022
Adaptation: Export widget: Removed inline JS (Required by Content Studio 4.1) - Compatibility:7.3.0
Compatibility:
7.3.0
But I can revert and have inline JS back, which I prefered also but are you sure about it?
Because here is your original comment:
Fixed in DT 5.1.5
Currently config is passed via "
config
" attribute of the widget script:In Content Studio 6 contents of widget template will be sanitised and all unknown attributes except those prefixed with "
data-
" will be stripped.So, please either rename "
config
" to "data-config
" or, better, change how you pass config to the widget so that config json is inlined inside ascript
tag. See example below.In the widget template:
In the widget JS: