Re: Syntax Highlighter button is not properly saved

  •  08-08-2011, 1:29 PM

    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
View Complete Thread