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)
Visual Format Config
Mike
Hi Everyone,
I'm using the Visual Format Editor in Teamsite 5.5.2 on Solaris. I'm using my own config file which points to a style sheet I created. If I select a style from the drop down list and apply it to some text, the style appears, no problem.
example: <span class="myStyle1">Hello</span>
However, sometimes, when I highlight the same piece of text that I just applied the style to and try to change it to another style, the old style is still there as well as the new style I applied.
example: <span class="myStyle2"><span class="myStyle1">Hello</span></span>
Shouldn't the newer tag replace the previous one? Is there a setting inside the config file to fix this? Any help would be greatly appreciated.
Thanks,
-Mike
Find more posts tagged with
Comments
mogoo
Mike-
What we've found is that if you apply "myStyle1", and you want to change it to "myStyle2", you should select "Default" before selecting "myStyle2". This takes off the "myStyle1" formatting. Maybe not the most elegant solution, maybe someone has a better idea, but this works.
maureen
Mike
Thanks for the quick reply Maureen. This seems to work sporadically. I tried applying a style, then applying "default" to remove it and then a different style. When I viewed the source by switching to the html source on the VF control, I had a bunch of nested, empty span tags.
here's what it looks like
<span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><span class=""><a class="footerlink:link" name="_Toc519591713">CGI</a> <a class="footerlink:link" name="_Toc519591713">virtualization</a><a class="footerlink:link" name="_Toc519591713"></a></span></span></span></span></span></span></span></span></span></span></span></span>
I'll keep playing around with it to see what I find. Thanks again for the help.
-Mike
mogoo
Mike-
We don't get all those empty <span>s, I tried to reproduce what you posted... My guess is that it's something in your config.xml file for VF, that it's not autocleaning the empties out... here's a snippet from ours; maybe you can compare it to what you've got...
<!-- values for charencode: utf-8, binary, entityname, charref, special, latin -->
<clean charencode="utf-8" cr="cr" lf="lf" showonsize="5000" preferfonttag="false" reducetags="true" showdonemsg="true" prompt="true"></clean>
<!-- publish options are "minimal", "cleanhtml", "xhtml" -->
<standard autoclean="true" publish="cleanhtml">
<style publishstyles="false" href="[eWebEditProPath]/styles.css" preservewordstyles="false"/>
...hope that helps!
maureen