cssClass, autoparse and width issues

Last post 10-22-2007, 11:46 AM by mike.chambers. 1 replies.
Sort Posts: Previous Next
  •  10-22-2007, 8:29 AM 34472

    cssClass, autoparse and width issues

    Hi all,
    We have an issue where by we want the cssClass drop down to populate with css styles from the defined external css file.
    This is all working fine.
    However, when the style has a fixed width it is causing the cssClass dropdown to render far to wide.
    Is there anyway to control the width of the dropdown, without removing the width from the external css (as we do want it to display at a fixed width in the actual cuteeditor content area)
    I've played with the CuteEditor\Themes\Custom\styles.css.aspx file changing
     
    <%=editorid%> .CuteEditorDropDown Span {font:normal 11px Tahoma;}
     
    TO
     
    <%=editorid%> .CuteEditorDropDown Span {font:normal 11px Tahoma;width:100px;overflow:hidden;}
     
    This however has some issues with the way the toolbar is then rendered, a space (~100px*no of items in the ccclass) dropdown is included in the toolbar area presumably during the parsing rountine.
     
    Is there a way to add a style attribute to the span tag that is generated by the autoparse proceedure?
     
    So
    <span value="ViewDownload" html="&lt;img src='/CuteSoft_Client/CuteEditor/Images/all.gif.aspx' hspace=3 align=absMiddle border=0/>&lt;span class='ViewDownload'>ViewDownload&lt;/span>" text="ViewDownload"></span>
     
    could become
     
    <span value="ViewDownload" html="&lt;img src='/CuteSoft_Client/CuteEditor/Images/all.gif.aspx' hspace=3 align=absMiddle border=0/>&lt;span class='ViewDownload' style='width:100px;overflow:hidden'>ViewDownload&lt;/span>" text="ViewDownload"></span>
     
    Any help appreciated
     
    PS it's CuteEditor v5.3 (unfortunatley we can't move to v6.0 either! If indeed this was able to solve the problem)
  •  10-22-2007, 11:46 AM 34491 in reply to 34472

    Re: cssClass, autoparse and width issues

    After a bit of playing around today, I think I've found a solution myself.
     
    <%=editorid%> .CuteEditorDropDown Span {width:Auto; font:normal 11px Tahoma;}
     
    Seems to work???? Though not a clue as to why....
     
    Anyway. I'll get our admins to monitor to see if this has any knock on effects elsewhere!
View as RSS news feed in XML