format block... restricting paragraph styles

Last post 05-11-2006, 11:50 AM by davidMi. 3 replies.
Sort Posts: Previous Next
  •  05-10-2006, 1:42 PM 19022

    format block... restricting paragraph styles

    I'd like to restrict the users to two styles: normal, and Heading 3.
     
    In Common.config, I edited out all but those two.
     
    When the editor is brought up, 'normal' and 'Heading 3' are the first two styles in the paragraph dropdown, but then it repeats all the rest of the styles starting with 'normal'... i.e.
     
    normal
    Heading 3
    normal
    Heading 1
    Heading 2
    Heading 3
    ...
     
    Sort of like as if the drop down were being populated again by something other than common.config.
     
    How can I get rid of all the extra styles?
     
    thanks
    david
  •  05-10-2006, 1:47 PM 19024 in reply to 19022

    Re: format block... restricting paragraph styles

    David,
     
    I can't reproduce this problem.
     
    Please try the following code:
     

      <FormatBlock>
       <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>
      </FormatBlock>
     

    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

  •  05-11-2006, 11:46 AM 19049 in reply to 19024

    Re: format block... restricting paragraph styles

    thanks for the rapid response.
     
    Well, I'm scratching my head.
     
    I've modified one of the demos, and indeed, the problem can't be reproduced.  However, in my application, it fails.  Though I realize it's got to be some coding error of my own, i'm hoping you can lend some insight?
     
    When I use the <FormatBlock> you suggest, the CuteSoft control emits the following:
     
    <li class="CuteEditorDropDown" id="CE_Description_RichTextBox_IDformatblock" Command="FormatBlock" onchange="CuteEditor_DropDownCommand(this,'FormatBlock')" RichHideFirstItem="true" RenderItemBorder="true" _IsRichDropDown="True" style="width:60px;height:21px;"><span value="" selected="True" html="Paragraph" text="Paragraph"></span><span value="<P>" html="Normal" text="Normal"></span><span value="<H1>" html="<b style='font-size:24pt'>Heading 1</b>" text="Heading 1"></span><span value="<H2>" html="<b style='font-size:18pt'>Heading 2</b>" text="Heading 2"></span><span value="<P>" html="Normal" text="Normal"></span><span value="<H1>" html="<b style='font-size:24pt'>Heading 1</b>" text="Heading 1"></span><span value="<H2>" html="<b style='font-size:18pt'>Heading 2</b>" text="Heading 2"></span><span value="<H3>" html="<b style='font-size:15pt'>Heading 3</b>" text="Heading 3"></span><span value="<H4>" html="<b style='font-size:12pt'>Heading 4</b>" text="Heading 4"></span><span value="<H5>" html="<b style='font-size:9pt'>Heading 5</b>" text="Heading 5"></span><span value="<H6>" html="<b style='font-size:7pt'>Heading 6</b>" text="Heading 6"></span><span value="<Address>" html="Address" text="Address"></span><span value="<MENU>" html="Menu List" text="Menu List"></span><span value="<PRE>" html="Formatted" text="Formatted"></span><span value="<DT>" html="Definition Term" text="Definition Term"></span></li>
     
    (sorry, I can't figure out how to give a screenshot). 
     
    In the above, note that 'Normal', 'H1' and 'H2' start out the list, followed by the entire set of styles repeated.
     
    Now, the really odd thing is that when I delete the <FormatBlock><FormatBlock/> entirely, I *still* get the full set of paragraph styles!!! (a single set, with nothing duplicated).
     
    So, I was wondering, is there anything else that populates this dropdown?
    • Since I've eliminated the tag entirely, I figure it's got to be getting it's styles list from *somewhere*.
    • Changes I make to Common.config (such as, changing the subordinate items in the <FormatBlock>) show up in the application, so the application *must* be looking at the right Common.config.
    Thanks in advance for any thoughts.

     
  •  05-11-2006, 11:50 AM 19050 in reply to 19049

    Re: format block... restricting paragraph styles

    oh, and one more thing.  the application opens the page in a separate dialog; that shouldn't be a problem, right?
View as RSS news feed in XML