dreamlessguru / kindeditor

Automatically exported from code.google.com/p/kindeditor
Other
0 stars 0 forks source link

编辑器里面添加js脚本有时会出错 #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 添加一些js脚本 比如comm100聊天脚本进去 会出错
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
主要问题好像是 进入html里面添加脚本之后 
会自动格式化导致出错

Original issue reported on code.google.com by pya...@gmail.com on 9 Apr 2012 at 2:24

GoogleCodeExporter commented 9 years ago
请给出具体脚本

Original comment by luolong...@gmail.com on 16 Apr 2012 at 4:01

GoogleCodeExporter commented 9 years ago
<!-- BEGIN Comm100 Live Chat Button Code --><link 
href="https://chatserver.comm100.com/css/comm100_livechatbutton.css" 
rel="stylesheet" type="text/css"/><a href="http://www.comm100.com/livechat/" 
target="_blank" onclick="comm100_48192.openChatWindow(event,213,-1);return 
false;"><img style="border:0px" id="comm100_ButtonImage" 
src="https://chatserver.comm100.com/BBS.aspx?siteId=48192&planId=213&partnerId=-
1"></img></a><script 
src="https://chatserver.comm100.com/js/LiveChat.js?siteId=48192&planId=213&partn
erId=-1" type="text/javascript"></script><div id="comm100_ChatButton"><div 
id="comm100_warp"><div id="comm100_dvhelp"><div id="comm100_track"><a 
href="http://www.comm100.com/livechat/" target="_blank">Live Chat Software</a> 
by <a style="color:#009999;cursor:pointer;" 
onclick="javascript:document.getElementById('comm100_dvbox').style.display='';">
Comm100</a></div></div><div id="comm100_dvbox" class="comm100_dvbox_css" 
style="display:none;" onmouseover="this.style.display=''" 
onmouseout="this.style.display='none'"><div class="comm100_dvcontent_css"><p 
class="comm100_ptitle_css">Useful Links:</p><ul class="comm100_ulbox_css"><li 
style="display:none;" class="comm100_onelinone"> </li><li><a 
href="http://emailmarketing.comm100.com/" target="_blank">email marketing 
software</a></li><li><a 
href="http://www.comm100.com/livechat/androidclient.aspx" 
target="_blank">android chat</a></li><li><a 
href="http://emailmarketing.comm100.com/email-marketing-tutorial/email-list-mana
gement.aspx" target="_blank">email list management</a></li><li><a 
href="http://emailmarketing.comm100.com/email-marketing-tutorial/email-marketing
-tips.aspx" target="_blank">email marketing tips</a></li><li><a 
href="http://www.comm100.com/newsletter/" 
target="_blank">newsletter software</a></li><li><a 
href="http://www.comm100.com/ticket/" target="_blank">support 
ticket</a></li></ul></div></div></div></div><!-- End Comm100 Live Chat Button 
Code -->

Original comment by pya...@gmail.com on 16 Apr 2012 at 4:09

GoogleCodeExporter commented 9 years ago
刚刚测试这个代码没问题吧   忘了之前是什么情况

还有一个问题  类似于这种代码<noscript><img src=""  /></noscript>
会自动变成  
<noscript>
    <img src="" data-ke-src="" />
</noscript>

Original comment by pya...@gmail.com on 16 Apr 2012 at 4:15

GoogleCodeExporter commented 9 years ago
noscript问题修复好了。

https://github.com/kindsoft/kindeditor/commit/a2f41b7020bf1d4a9cd7b54a13d7d25dbc
51dcab

Original comment by luolong...@gmail.com on 16 Apr 2012 at 4:52

GoogleCodeExporter commented 9 years ago

Original comment by luolong...@gmail.com on 10 May 2012 at 10:55