问题
In SDL Tridion 2011 SP1, I want to allow custom XML tags (nodes) inside rich text field (RTF) such as
<dynamicVariable name='ABC'></dynamicVariable>
This triggers the error
Field 'text' contains invalid markup
How do I allow such custom tags?
回答1:
There is a file named TcmXhtml.Config under [Tridion]\web\WebUI\Core\Controls\FormatArea\TcmXhtml where you can specify additional block tags that Tridion should accept in RTF.
Do keep in mind that there's a good reason why Rich Text fields comply to standards like Xhtml.
来源:https://stackoverflow.com/questions/9613598/how-to-add-custom-tags-to-rich-text-field-in-sdl-tridion