add scripts to page builder rich text widget

lawrence whittemore asked on March 8, 2022 19:00

how do you get the rich text editor in the page builder widgets to except script tags?

Recent Answers


Geo Neeliyara answered on March 8, 2022 22:22

Hi Lawrence,

I created a separate widget with just one textarea component property (you can include script tags here) and in view use the below code @Html.Raw(Model.Content)

Regards, Geo

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on March 8, 2022 22:27

good idea, not sure why i didn't think of that. thanks!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.