Syntax Highlighter button is not properly saved

Last post 08-31-2011, 7:38 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  07-27-2011, 12:02 PM 68919

    Syntax Highlighter button is not properly saved

    We are using CuteEditor.net 6.4 and 6.6 
     
    Problem
     
    Repro steps:

    1. Click the syntax highlighter

    2. select "xml,html" from drop down list

    3.Paste sample code into the dialogue

    <html>

    <body>

    <h1>My First Heading</h1>

    <p>My first paragraph.</p>

    </body>

    </html>

    After I save it: it looks like

     
    1. <html>  
    2.   
    3. <body>  
    4.   
    5. <h1>My First Headingh1>  
    6.   
    7. <p>My first paragraph.p>  
    8.   
    9. body>  
    10.   
    11. html>  
    I have noticed this button is removed from the cute editor.net demo site. Do you plan to remove this button for good? Or do you plan to fix the issue? If so, what is the time line for this bug fix?
     
     
     
    Thanks, Qian 
     
     
     
     
    Filed under:
  •  07-29-2011, 6:33 AM 68994 in reply to 68919

    Re: Syntax Highlighter button is not properly saved

    Hi qsun,
     
    It works fine for me.
     
    Please link to http://richtextbox.com/test/default.aspx
     
    Select the "Full_noform"  radio button, than cilck the "Full" radio button. Now you should find the "syntax highlighter" button on the toolbar.
     
    Just test your code, below is what it look like.
     
     
    1. <html>  
    2.   
    3. <body>  
    4.   
    5. <h1>My First Heading</h1>  
    6.   
    7. <p>My first paragraph.</p>  
    8.   
    9. </body>  
    10.   
    11. </html> 
    If the demo work for you too. please download the latest version and try again.
     
    Latest versiondownloads http://cutesoft.net/downloads/folders/21904/download.aspx
     
    Regards,
     
    Ken
  •  08-08-2011, 1:29 PM 69408 in reply to 68994

    Re: Syntax Highlighter button is not properly saved

    Hi Ken,
     
    Thanks.The problem is when we save the article. The content we got from CuteEditor contains a bug. The html file is missing "<". After looking at the html, I found the root cause of it.
     
    Try the above example again, go to "HTML" tab, you will find that there is an extra "/"  before "h1" and "p", "body" and "html"  in the html file as shown below. If you remove it,  and add it before "h1" and "p", 
     "body" and "html" it works fine.
     
     
    <html>
        <head>
        </head>
        <body>
            <div id="1" contenteditable="false" unselectable="ON" isrequired="0"><strong>Body</strong></div>
            <div><br />
            </div>
            <div><br />
            before</div>
            <div>&nbsp;</div>
            <div>
            <div class="dp-highlighter">
            <div class="bar"></div>
            <ol class="dp-xml">
                <li class="alt">
                <div><span class="tag">&lt;</span><span class="tag-name">html</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></div>
                </li>
                <li>
                <div><span>&nbsp;&nbsp;</span></div>
                </li>
                <li class="alt">
                <div><span></span><span class="tag">&lt;</span><span class="tag-name">body</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></div>
                </li>
                <li>
                <div><span>&nbsp;&nbsp;</span></div>
                </li>
                <li class="alt">
                <div><span></span><span class="tag">&lt;</span><span class="tag-name">h1</span><span class="tag">&gt;</span><span>My&nbsp;First&nbsp;Heading</span><span class="tag">&lt;/</span><span class="tag-name">h1</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></div>
                </li>
                <li>
                <div><span>&nbsp;&nbsp;</span></div>
                </li>
                <li class="alt">
                <div><span></span><span class="tag">&lt;</span><span class="tag-name">p</span><span class="tag">&gt;</span><span>My&nbsp;first&nbsp;paragraph.</span><span class="tag">&lt;/</span><span class="tag-name">p</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></div>
                </li>
                <li>
                <div><span>&nbsp;&nbsp;</span></div>
                </li>
                <li class="alt">
                <div><span></span><span class="tag">&lt;/</span><span class="tag-name">body</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></div>
                </li>
                <li>
                <div><span>&nbsp;&nbsp;</span></div>
                </li>
                <li class="alt">
                <div><span></span><span class="tag">&lt;/</span><span class="tag-name">html</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></div>
                </li>
            </ol>
            </div>
            </div>
            <br />
            after
        </body>
    </html>
     
    Thanks, Qian
  •  08-31-2011, 7:38 AM 69887 in reply to 69408

    Re: Syntax Highlighter button is not properly saved

    Hi qsun ,
     
    Is not a bug. For example, if you want to show code <div>test</div> at normal view, in html view it will looks lik
    &lt;div&gt;test&lt;/div&gt;. for security reason </ in html view will show as &lt;/
    Regards,
     
    Ken
View as RSS news feed in XML