Hi
I have a DCT with plain textarea field where i need to add html code.
When i add <meta> tag and try to save it , DCR doesnt get saved.
without <meta> tag it saves successfully.
Any one faced this issue in TS 8.1 or before in DCTs?
saves for me.
Note: I have TinyMCE as editor..
I suggest look for some custom validation on save implemented in your list of included libraries in the form api code.
You may also catch the error, if any in the browser console..hit F12 on dcr load and see console.
Not able to test in 8.1 specifically but textarea content should get escaped when it's saved, so your
<meta name="foo" content="bar">
should be saved in the DCR as
<meta name="foo" content="bar">
It's possible there's something blocking that. To try and narrow it down have you:
Won't fix it but might give you some clues as to what's going wrong.
Thanks for your response!!
I tried all the combinations and then came to know , even if you just type <meta/> in textarea and save. It hangs while clicking on save button.
it keep on showing saving as status but never save that DCR.
same as with body tag. somehow it is creating problem with few tags not all html tags.
Like if you type background under <body> , it doesn't save DCR.
<body background="some color">
</body>
<meta/>
if you type above tags in DCR , it never saves and hangs.
A bit dirty but try adding an onSave event handler to XML-escape '<'. and '>' characters the textarea content.
Provided the underlying issue's occuring after the first save event handler is triggered it might give you a way around the problem.