Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
VFE Problem
kshitiz
Hi All,
TS 5.5.2 SP 4
I've one textarea in a DCT which is using external editor as Visual Formatter. I've customized the Visual Formatter to remove the <p></p> tags:
<clean charencode="entityname" cr="cr" lf="lf" showonsize="5000" preferfonttag="false" reducetags="true" showdonemsg="true" prompt="true" hideobject="true" mswordfilter="true">
<remove>
<tagonly>p</tagonly>
</remove>
</clean>
When i dont write anything in the textarea with VFE, no value is saved in DCT.
i.e.
<item name="Description"><value></value></item>
So far its right. But when I write something in textarea and then delete the text afterwards and save the DCR, the value saved in DCR is:
<item name="Description"><value>&nbsp;
</value></item>
This is creating some problem in some other functionality. Can anyone suggest how to handle this? Do I've to write any FormAPI code to remove &nbsp; before saving?
This problem has only cropped up after I've modified the VF configuration file to remove <p></p> tags.
Kshitiz Sharma
BT Wholesale | CMS
Mahindra British Telecom
Find more posts tagged with
Comments
Nicholas
I had the similar issue before, but I solved it some other way, explaining below, may be helpful to you.
Rather customising the VF, you can put a RegEx in your TPL file to remove <p> tag.
Thanks Nicholas
kshitiz
Thnks Nicholas
But I'm looking for a more general solution. Some thing that can be done in the visual format config file which is reflected on all the DCTs using that visual fomatter. For modifying TPLs i've to modify TPLs for each and every category/data-type.
Kshitiz Sharma
BT Wholesale | CMS
Mahindra British Telecom
Nicholas
Okay, Just try adding below attributes also with <clean ..
autodetect="yes" publish="minimal"
Thanks Nicholas