FormatBlock problem

Last post 01-25-2006, 4:39 PM by mwinkler. 4 replies.
Sort Posts: Previous Next
  •  01-25-2006, 8:45 AM 15091

    FormatBlock problem

    I am new in using the "FormatBlock" dropdownmenu.

    When having text in the CuteEditor and selecting one line, using i.e. "Heading 2", the selected text will be deleted and in the HTML you will see "<h2>...</h2>" with the following text in it. Also in your examples. 

    What's going wrong?
    Can I also use "Css Class" to format text with <h3> tags for example?
     
  •  01-25-2006, 12:09 PM 15102 in reply to 15097

    Re: Please check my test page

    Hallo Karen,
     
    please check my test page http://www.hhw.de/test.
     
    Please select there i.e. "HHW Hommel" and select "Heading 2".
     
  •  01-25-2006, 12:59 PM 15105 in reply to 15102

    Re: Please check my test page

    I copied the content of your test editor into the following page:
     
     
    And it works ok when I select "HHW Hommel" and select "Heading 2".
     
    It's strange.
    Did you modify the Common.config file?
     
     

    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

  •  01-25-2006, 4:39 PM 15136 in reply to 15105

    Re: Please check my test page

    I don't think so. Here is the common.config file:
     
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <treedropdowns>
      <LinkTree>
       <item text="Msdn.microsoft.com" Selectable="False">
        <html><![CDATA[Msdn.microsoft.com <img border=0 align='absMiddle' src='http://cutesoft.net/data/msdn16.gif' />]]></html>
        <item text=".NET Framework" value="http://msdn.microsoft.com/netframework/">
         <html><![CDATA[.NET Framework]]></html>
        </item>
        <item text="ASP.NET Home" value="http://msdn.microsoft.com/asp.net/">
         <html><![CDATA[ASP.NET Home]]></html>
        </item>
        <item text="Longhorn Center" value="http://msdn.microsoft.com/longhorn/">
         <html><![CDATA[Longhorn Center]]></html>
        </item>
        <item text="Smart Client" value="http://msdn.microsoft.com/smartclient/">
         <html><![CDATA[Smart Client]]></html>
        </item>
        <item text="Security Center" value="http://msdn.microsoft.com/security/">
         <html><![CDATA[Security Center]]></html>
        </item>
        <item text="SQL Server Center" value="http://msdn.microsoft.com/sql/">
         <html><![CDATA[SQL Server Center]]></html>
        </item>
        <item text="Mobile Center" value="http://msdn.microsoft.com/mobility/">
         <html><![CDATA[Mobile Center]]></html>
        </item>
        <item text="Web Services" value="http://msdn.microsoft.com/webservices/">
         <html><![CDATA[Web Services]]></html>
        </item>
       </item>
       <item text="Yahoo.com" Selectable="False">
        <html><![CDATA[Yahoo.com <img border=0 align='absMiddle' src='http://cutesoft.net/data/yahoo.gif' /> ]]></html>
        <item text="Yahoo Web" value="http://www.yahoo.com/">
         <html><![CDATA[Yahoo Web ]]></html>
        </item>
        <item text="Yahoo Chat" value="http://chat.yahoo.com/">
         <html><![CDATA[Yahoo Chat]]></html>
        </item> 
        <item text="Yahoo Games" value="http://games.yahoo.com/">
         <html><![CDATA[Yahoo Games]]></html>
        </item> 
        <item text="Yahoo Mobile" value="http://mobile.yahoo.com/">
         <html><![CDATA[Yahoo Mobile]]></html>
        </item> 
        <item text="Yahoo Personals" value="http://promotions.personals.yahoo.com/">
         <html><![CDATA[Yahoo Personals]]></html>
        </item> 
        <item text="Yahoo Music" value="http://music.yahoo.com/">
         <html><![CDATA[Yahoo Music]]></html>
        </item> 
        <item text="Yahoo Autos" value="http://autos.yahoo.com/">
         <html><![CDATA[Yahoo Autos]]></html>
        </item> 
       </item>
       <item text="Google.com" Selectable="False">
        <html><![CDATA[Google.com <img border=0 align='absMiddle' src='http://cutesoft.net/data/Google.gif' /> ]]></html>
        <item text="Google Home" value="http://www.google.com">
         <html><![CDATA[Google Home]]></html>
        </item>
        <item text="Google Image" value="http://news.google.com/nwshp?hl=en">
         <html><![CDATA[Google News]]></html>
        </item>  
        <item text="Google Group" value="http://www.google.com/grphp?hl=en&amp;tab=ig">
         <html><![CDATA[Google Group]]></html>
        </item>  
        <item text="Google Local" value="http://www.google.com/lochp?hl=en&amp;tab=wl">
         <html><![CDATA[ Google Local]]></html>
        </item>
        <item text="Google Image" value="http://www.google.com/imghp?hl=en&amp;tab=li">
         <html><![CDATA[Google Image]]></html>
        </item>
        <item text="Google Mobile" value="http://www.google.com/mobile/">
         <html><![CDATA[Google Mobile]]></html>
        </item> 
       </item>
       <item text="CuteSoft Products" Selectable="False">
        <html><![CDATA[CuteSoft Products <img border=0 align='absMiddle' src='http://cutesoft.net/data/cutesoft.gif' /> ]]></html>
        <item text="Cute Chat" value="http://cutesoft.net/ASP.NET+Chat/default.aspx">
         <html><![CDATA[Cute Chat]]></html>
        </item>
        <item text="Cute Editor for .NET" value="http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx">
         <html><![CDATA[ Cute Editor for .NET ]]></html>
        </item>
        <item text="Cute Editor for ASP" value="http://cutesoft.net/ASP">
         <html><![CDATA[Cute Editor for ASP]]></html>
        </item>  
        <item text="Cute Live Support" value="http://cutesoft.net/Live-Support/default.aspx">
         <html><![CDATA[ Cute Live Support ]]></html>
        </item>
        <item text="Web Messenger" value="http://cutesoft.net/Web-Messenger/default.aspx">
         <html><![CDATA[Web Messenger]]></html>
        </item>  
        <item text="ASP.NET Image Gallery" value="http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx">
         <html><![CDATA[ASP.NET Image Gallery]]></html>
        </item>  
       </item>
      </LinkTree>
     </treedropdowns>
     <!-- pre define the dropdown items -->
     <dropdowns>
      <CssClass>
       <item text="[[NotSet]]" value="null"></item>
       <item text="Red Text" value="RedColor">
        <html><![CDATA[<span style='color:red'>RedColor</span>]]></html>
       </item>
       <item text="Highlight" value="Highlight">
        <html><![CDATA[<span style='background-color: yellow'>Highlight</span>]]></html>
       </item>
       <item text="Bold Green Text" value="BoldGreen">
        <html><![CDATA[<span style='color: green; font-weight: bold;'>Bold Green Text</span>]]></html>
       </item>
      </CssClass>
      
      
      <CssStyle>
       <item text="[[NotSet]]" value="null"></item>
       <item text="font-size:18pt" value="font-size:18pt"></item>
       <item text="color:red" value="color:red"></item>
       <item text="border:1px red solid" value="border:1px red solid"></item>
       <!--<item text="filter:alpha(opacity=20)">filter:alpha(opacity=20)</item> -->
      </CssStyle>
      <Codes>
       <item text="Email signature">
        <value><![CDATA[<font face="Courier New, Courier, mono" size="-1">                ''~``<br />                        ( o o )<br />+------------------.oooO--(_)--Oooo.---------------------+<br />| John Smith                                             |<br />|                       E-mail: <a href="fake-company@server.commailto:fake-company@server.com">fake-company@server.com</a>  |<br />| Fake Company          <a href="http://www.fake-company.com/http://www.fake-company.com/">http://www.fake-company.com/</a>     |<br />| Ottawa, Canada     (   )                               |<br />+---------------------\ (----(   )-----------------------+<br />                       \_)    ) /<br />                             (_/</font>]]></value>
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/signature.gif' /> Email signature]]></html>
       </item>
       <item text="Contact us">
        <value><![CDATA[<div>Your satisfaction is necessary to our success. Our goal is to provide you with the best level of customer service, and we welcome your comments and suggestions<br /><br /><strong>Email:<br /><br /></strong>Sales: <font color="#0000ff">
          <a href="sales@CuteSoft.Netmailto:sales@CuteSoft.Net">sales@CuteSoft.Net</a>
         </font> <br /><br />General: <a href="info@CuteSoft.Netmailto:info@CuteSoft.Net">info@CuteSoft.Net</a><br /><br />Support: <a href="support@CuteSoft.Net'>mailto:support@CuteSoft.Net">support@CuteSoft.Net </a><br /><strong><br />Address:</strong><br /><br />CuteSoft<br />35 SHERWOOD CRES<br />BELLEVILLE, ON<br />K8P 5G2<br />Canada </div>]]></value>
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/contact.gif' /> Contact us]]></html>
       </item>
      </Codes>
      <Links>
       <item text="CuteSoft" value="http://cutesoft.net/">
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/signature.gif' /> CuteSoft]]></html>
       </item>
       <item text="Mail to us" value="mailto:support@CuteSoft.Net">
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/email.gif' /> Mail to us]]></html>
       </item>
       <item text="Yahoo.com" value="http://www.yahoo.com/">
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/yahoo.gif' /> Yahoo.com]]></html>
       </item>
       <item text="Google.com" value="http://www.google.com">
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/Google.gif' /> Google.com]]></html>
       </item>
       <item text="MSDN" value="http://msdn.com/">
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/msdn16.png' /> MSDN]]></html>
       </item>
      </Links>
      <Images>
       <item text="Logo">
        <value><![CDATA[<img border="0" src="http://www.cutesoft.net/images/logo.gif" />]]></value>
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/logo_s.gif' /> Company logo]]></html>
       </item>
       <item text="Flower">
        <value><![CDATA[<img border="0" src="http://cutesoft.net/data/j0313820.jpg" />]]></value>
        <html><![CDATA[<img border=0 align='absMiddle' src='http://cutesoft.net/data/flower_s.gif' /> Flower]]></html>
       </item>
      </Images>
      <DropForeColor>
       <item text="[[NotSet]]" value="null"></item>
       <item text="Black" color="Black" value="Black"></item>
       <item text="Red" color="Red" value="Red"></item>
      </DropForeColor>
      <DropBackColor>
       <item text="[[NotSet]]" value="null"></item>
       <item text="White" bgColor="White" value="White"></item>
       <item text="Red" bgColor="Red" value="Red"></item>
      </DropBackColor>
      <Zoom>
       <item text="400%" value="400"></item>
       <item text="300%" value="300"></item>
       <item text="200%" value="200"></item>
       <item text="100%" value="100"></item>
       <item text="80%" value="80"></item>
       <item text="75%" value="75"></item>
       <item text="66%" value="66"></item>
       <item text="50%" value="50"></item>
       <item text="33%" value="33"></item>
       <item text="25%" value="25"></item>
      </Zoom>
      <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>
       <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>
      <FontName>
       <item text="Arial" html="&lt;font size=3 face='Arial'&gt;Arial&lt;/font&gt;">Arial</item>
       <item text="Verdana" html="&lt;font size=3 face='Verdana'&gt;Verdana&lt;/font&gt;">Verdana</item>
       <item text="Comic Sans MS" html="&lt;font size=3 face='Comic Sans MS'&gt;Comic Sans MS&lt;/font&gt;">Comic Sans MS</item>
       <item text="Courier" html="&lt;font size=3 face='Courier'&gt;Courier&lt;/font&gt;">Courier</item>
       <item text="Georgia" html="&lt;font size=3 face='Georgia'&gt;Georgia&lt;/font&gt;">Georgia</item>
       <item text="Impact" html="&lt;font size=3 face='Arial'&gt;Impact&lt;/font&gt;">Impact</item>
       <item text="Lucida Console" html="&lt;font size=3 face='Lucida Console'&gt;Lucida Console&lt;/font&gt;">Lucida Console</item>
       <item text="Tahoma" html="&lt;font size=3 face='Tahoma'&gt;Tahoma&lt;/font&gt;">Tahoma</item>
       <item text="Times New Roman" html="&lt;font size=3 face='Times New Roman'&gt;Times New Roman&lt;/font&gt;">Times New Roman</item>
       <item text="Wingdings" html="&lt;font size=3 face='Wingdings'&gt;Wingdings&lt;/font&gt;">Wingdings</item>
      </FontName>
      <FontSize>
       <item text="[[NotSet]]" value="null">
        <html><![CDATA[[[NotSet]]]]></html>
       </item>
       <!-- <item text="9pt" html="&lt;span style='font-size:9pt'&gt;9pt&lt;/span&gt;">9pt</item> -->
       <!-- <item text="12px" html="&lt;span style='font-size:12px'&gt;12px&lt;/span&gt;">12px</item>-->
       <item text="1 (8pt)" value="1">
        <html><![CDATA[<font size='1'>1 </font>(8pt)]]></html>
       </item>
       <item text="2 (10pt)" value="2">
        <html><![CDATA[<font size='2'>2 </font>(10pt)]]></html>
       </item>
       <item text="3 (12pt)" value="3">
        <html><![CDATA[<font size='3'>3 </font>(12pt)]]></html>
       </item>
       <item text="4 (14pt)" value="4">
        <html><![CDATA[<font size='4'>4 </font>(14pt)]]></html>
       </item>
       <item text="5 (18pt)" value="5">
        <html><![CDATA[<font size='5'>5 </font>(18pt)]]></html>
       </item>
       <item text="6 (24pt)" value="6">
        <html><![CDATA[<font size='6'>6 </font>(24pt)]]></html>
       </item>
       <item text="7 (36pt)" value="7">
        <html><![CDATA[<font size='7'>7 </font>(36pt)]]></html>
       </item>
      </FontSize>
     </dropdowns>
    </configuration>
View as RSS news feed in XML