Hi,
we are trying to remove the padding and margins from the headings produced by the editor.
We would expect that to do this we could modify the common.config file for the editor:
<FormatBlock>
<item text="[[DIV]]" value="<DIV>">
<html><![CDATA[[[DIV]]]]></html>
</item>
<item text="[[Normal]]" value="<P>">
<html><![CDATA[[[Normal]]]]></html>
</item>
<item text="[[Heading 1]]" value="<H1>">
<html><![CDATA[<b style='font-size:24pt;'>[[Heading 1]]</b>]]></html>
</item>
<item text="[[Heading 2]]" value="<H2>">
<html><![CDATA[<b style='font-size:18pt;'>[[Heading 2]]</b>]]></html>
</item>
<item text="[[Heading 3]]" value="<H3>">
<html><![CDATA[<b style='font-size:15pt;'>[[Heading 3]]</b>]]></html>
</item>
<item text="[[Heading 4]]" value="<H4>">
<html><![CDATA[<b style='font-size:12pt;'>[[Heading 4]]</b>]]></html>
</item>
<item text="[[Heading 5]]" value="<H5>">
<html><![CDATA[<b style='font-size:9pt;'>[[Heading 5]]</b>]]></html>
</item>
<item text="[[Heading 6]]" value="<H6>">
<html><![CDATA[<b style='font-size:7pt;'>[[Heading 6]]</b>]]></html>
</item>
<item text="[[Address]]" value="<Address>">
<html><![CDATA[[[Address]]]]></html>
</item>
<item text="[[MenuList]]" value="<MENU>">
<html><![CDATA[[[MenuList]]]]></html>
</item>
<item text="[[Formatted]]" value="<PRE>">
<html><![CDATA[[[Formatted]]]]></html>
</item>
<item text="[[Definition Term]]" value="<DT>">
<html><![CDATA[[[Definition Term]]]]></html>
</item>
</FormatBlock>
Is the section that we are looking at, we'd like the change all the heading tags to include style="padding:0; margin:0;" in them however whenever we add anythign to the h1, even just a space, when you try and select that heading in the editor it just throws and error and reverts back to whatever heading style it was using previously.
Example of change:
<item text="[[Heading 1]]" value="<H1 style='padding:0;margin:0;'>">
<html><![CDATA[<b style='font-size:24pt;'>[[Heading 1]]</b>]]></html>
</item>
We've tried escaping all the : ' and ; to their html entites to see if that helped as well and it still did nothing.
Unfortunatly we can't edit the Headings directly in the css as it would affect other pages in the site which we need to restyle first.
We also can't use the inline styles to sort this out or anything like that since it places the span with them on inside the heading tag like this:
<h1><span style=".....">fgsdgdfg</span></h1>
so doesn't affect the paddings or margins on the main style.
If theres a solution to this please let me know, I can't find the code that is validating the heading tags either to force it to add the styles in there which would of worked but I think its in the obfuscated files.
Thanks