
Community Corner — Adam Idris Mohamad Ismol (Customer) asked a question.
I have tried to follow this link: Create a custom ASP.NET Core widget - Sitefinity CMS Frontend development
the difference is only on the named folder Models instead of Entities. Building got no issues, but when i checked inside the page editor it doesnt appear. Also i was wondering why does for layout the list is not the same inside the toolboxes from the settings? What is the way for me to fix these issues?
Currently im using trial version of 15.3.8522 for my CMS backend.
Thank you for the help
Hi @Adam Idris Mohamad Ismol (Customer) ,
The Content block and the Rich text editor fields are stripping out javascript code by default.
Recently we also had to enable and whitelist some tags in the .NET Core app for a project.
The first thing you need to do is to set the scripts serialization property of the Kendo editor to "true" (the Content block and Rich text editor fields are using Kendo rich text editor). To do that:
You may also need to whitelist the tags or their attributes. For this you need to extend the HtmlSanitizer. This documentation article describes it really well: https://www.progress.com/documentation/sitefinity-cms/html-sanitization
In our case we had to enable the script tag:
You need to do this both in the Sitefinity CMS standard project and in the .NET Core app.
This should whitelist the tags or attributes that you define and they will not be stripper.
You can also disable HtmlSanitization - which is not recommended of course.
But you can do it under Administration - Advanced -Security
Let me know if it works. If you still have issues you need to provide more details with a sample so I can try it on my side.
Regards,
Sabrie