prevent code rewriting in wysiwyg

Posted by Community Admin on 03-Aug-2018 14:44

prevent code rewriting in wysiwyg

All Replies

Posted by Community Admin on 08-Mar-2017 00:00

i have some google custom search code that i would like to include on my page. is it possible to wrap code or something in the html wysiwyg so that the editor doesn't strip invalid tags? something like:

[retainFormat]

my custom code here

[/retainFormat]

Posted by Community Admin on 09-Mar-2017 00:00

You can do this in two ways:

1) Latest SF has "Embed Code" MVC widget (in Script ans Styles group). And you can place any html inside

2) You can disable stripping tags for content block. You can read my response at SO: stackoverflow.com/.../40377991

This thread is closed