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)
Add table style in VisualFormat
ela
Hello,
we have a few cases where we need to add table style directly in the VisualFormat editor.
Here's an example:
<style type="text/css">
<!--
#linie_unten { border-color: #FFFFFF #FFFFFF #000000; padding-top: 5px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
#linie_unten2 { padding-top: 5px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
-->
</style>
I've got it working when removing <!-- and -->, because everything between those tags disappears in the cleaning process. However, if I remove those tags, the code is visible in wysiwyg. If possible I'd like it to be visible in the html view only.
Any ideas how I can hide code from wysiwyg?
Regards,
Eldbjoerg
Find more posts tagged with
Comments
ela
no ideas???
abhishek_gupta
Try putting the code in a seperate CSS file.
In the tpl, include the line for the css. And then in the visual formatter use the classes.
ela
Hi, and thanks for your reply!
Yes, I know that's a possibility, but the user request was to be able to add different styles directly in the html view. We're not allowing the class attribute, in order to clean up word formatting. The only thing I need to do, is to allow using <!-- and --> so that it won't be deleted in the automatic cleaning process. I tried to add them under preservechars in the vf config file, but without any result.
Any other suggestions?
Many thanks in advance!
Eldbjoerg