Wysiwyg metadata fields strip some html elements


(gja) #1

Matrix Version: 5.3.2.1

Hi,

I’m wanting to put a form inside a wysiwyg metadata field, but on save all the form content is stripped.

Is there any way to get matrix not to strip out the form?

Thanks Georgina.


(Bart Banda) #2

Yep, you will need to change the content container format from WYSIWYG to a Raw HTML. That way you can put the form tag and code into it.


(gja) #3

Thanks Bart,

This, of course, means a change to the metadata schema.

Is there any documentation, or a setting where we can find out what elements are stripped from wysiwyg metadata fields?


(Bart Banda) #4

There is a list of tags that get stripped here: https://matrix.squiz.net/manuals/content-types/chapters/edit-editor#removing-formatting


(Peter McLeod) #5

Hi
could you store the form content in a different asset or metadata field that has a raw content type, and then include in the wyswyg field using keywords - either %globals_asset_contents_…% for an external asset or %metadata_field_…% for another metadata field?
Thanks
Peter