Re: Can't update H1 tags in config files

  •  08-05-2010, 8:16 AM

    Re: Can't update H1 tags in config files

    Hi, added this code:
     
     
       <script type="text/javascript">      
            function CuteEditor_FilterHTML(editor,code)   
            {   
                return code.replace(/(<h1[^\>]*\>)([\s\S]*)(\<\/h1\>)/i, "<h1 style="padding:0;margin:0">$2</h1>");   
            }   
            function CuteEditor_FilterCode(editor,code)   
            {   
                return code.replace(/(<h1[^\>]*\>)([\s\S]*)(\<\/h1\>)/i, "<h1 style="padding:0;margin:0">$2</h1>");   
            }   
            </script> 
    To the pages containing our editor.
    I then inserted a h1 tag via the drop-down in the wyswig. 
    There was no style code added, in fact the code was not changed at all including after saving the page and checking it on the live site and in the editor again. The editor did not function any differently then it had been functioning previously. 
     
    I have to assume that I've made the modifications to work on the h1 tags correctly as it didn't supply much information on how to make the modifications.
     
     
View Complete Thread