How do I make the 'Paragraph' dropdown contents styles match the look of the actual styles

Last post 01-26-2005, 9:32 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-26-2005, 5:55 AM 3717

    How do I make the 'Paragraph' dropdown contents styles match the look of the actual styles

    I have the problem that I want the look of the contents of the 'Paragraph' dropdown to exactly match the corresponding style of the heading that it will create. i.e. so that the look and feel of what the user selects is exactly what they get.
     
    I know that the way the dropdown contents are displayed can be changed either in code or by editing common.config, but this means defining the styles in 2 places (in the page stylesheet and when setting up the CuteEditControl).
     
    Is there any way that the styles shown in this dropdown can automatically reflect changes made to the page stylesheet?

    e.g if I changed <h1> to be bold in the page style sheet, then the corresponding entry in the 'Paragraph' dropdown list would be shown in bold.

    Hope this makes sense.
     
    Thanks
     
    Justin
  •  01-26-2005, 9:32 AM 3719 in reply to 3717

    Re: How do I make the 'Paragraph' dropdown contents styles match the look of the actual styles

    Justin,
     
    change:

    <b style='font-size:24pt'>[[Heading 1]]</b>
    ......
    <b style='font-size:10pt'>[[Heading 5]]</b>

    to

    <h1>[[Heading 1]]</h1>
    ...
    <h5>[[Heading 1]]</h5>

    Now the editor will use your stlyesheet properties.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML