Can't update H1 tags in config files

  •  08-02-2010, 6:38 AM

    Can't update H1 tags in config files

    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="&lt;DIV&gt;">
                    <html><![CDATA[[[DIV]]]]></html>
                </item>
                <item text="[[Normal]]" value="&lt;P&gt;">
                    <html><![CDATA[[[Normal]]]]></html>
                </item>
                <item text="[[Heading 1]]" value="&lt;H1&gt;">
                    <html><![CDATA[<b style='font-size:24pt;'>[[Heading 1]]</b>]]></html>
                </item>
                <item text="[[Heading 2]]" value="&lt;H2&gt;">
                    <html><![CDATA[<b style='font-size:18pt;'>[[Heading 2]]</b>]]></html>
                </item>
                <item text="[[Heading 3]]" value="&lt;H3&gt;">
                    <html><![CDATA[<b style='font-size:15pt;'>[[Heading 3]]</b>]]></html>
                </item>
                <item text="[[Heading 4]]" value="&lt;H4&gt;">
                    <html><![CDATA[<b style='font-size:12pt;'>[[Heading 4]]</b>]]></html>
                </item>
                <item text="[[Heading 5]]" value="&lt;H5&gt;">
                    <html><![CDATA[<b style='font-size:9pt;'>[[Heading 5]]</b>]]></html>
                </item>
                <item text="[[Heading 6]]" value="&lt;H6&gt;">
                    <html><![CDATA[<b style='font-size:7pt;'>[[Heading 6]]</b>]]></html>
                </item>
                <item text="[[Address]]" value="&lt;Address&gt;">
                    <html><![CDATA[[[Address]]]]></html>
                </item>
                <item text="[[MenuList]]" value="&lt;MENU&gt;">
                    <html><![CDATA[[[MenuList]]]]></html>
                </item>
                <item text="[[Formatted]]" value="&lt;PRE&gt;">
                    <html><![CDATA[[[Formatted]]]]></html>
                </item>
                <item text="[[Definition Term]]" value="&lt;DT&gt;">
                    <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="&lt;H1 style='padding:0;margin:0;'&gt;">
                    <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
View Complete Thread