主题: 反馈一个bug,不同浏览器造成html标签丢失
作者: shili, 发布日期: 2014-06-24 11:22:40, 浏览数: 1754
操作系统: winxp

浏览器版本: Google Chrome、IE8、火狐

KindEditor版本: 4.1.10

BUG再现步骤:

编辑器已关闭自动过滤html标签功能

1.在编辑器源码模式输入一段播放mp3的代码,然后切换到非源码输入模式,点击居中标签,google浏览器播放mp3代码被替换了别的播放标签。


播放mp3代码

<object id="mplayer" width="500" height="450" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
						<param name="FileName" value="/UploadFile/media/歌曲.mp3" />
<param name="ShowControls" value="1" />
<param name="ShowPositionControls" value="0" />
<param name="ShowAudioControls" value="1" />
<param name="ShowTracker" value="1" />
<param name="ShowDisplay" value="0" />
<param name="ShowStatusBar" value="1" />
<param name="AutoSize" value="0" />
<param name="ShowGotoBar" value="0" />
<param name="ShowCaptioning" value="0" />
<param name="AutoStart" value="1" />
<param name="PlayCount" value="1" />
<param name="AnimationAtStart" value="0" />
<param name="TransparentAtStart" value="0" />
<param name="AllowScan" value="0" />
<param name="EnableContextMenu" value="1" />
<param name="ClickToPlay" value="0" />
<param name="InvokeURLs" value="1" />
<param name="DefaultFrame" value="datawindow" />
<embed src="/UploadFile/media/歌曲.mp3" align="baseline" border="0" width="500" height="450" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows& sbp=mediaplayer&ar=media&sba=plugin&" name="MediaPlayer" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="0" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" defaultframe="datawindow" />
					</object>

被替换为

<div style="text-align:center;">
<embed src="/UploadFile/media/歌曲.mp3" align="baseline" border="0" width="500" height="450" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows& sbp=mediaplayer&ar=media&sba=plugin&" name="MediaPlayer" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="0" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" defaultframe="datawindow" />
</div>
2.火狐和ie的区别

播放mp3代码


在ie下居中的标签是<p align="center">


在火狐和google浏览器下面居中的标签是<div align="center">

期望结果:

发表新帖 发表回复