主题: 插入flash为什么会转码? |
作者: kbkkbk3, 发布日期: 2012-08-14 01:04:51, 浏览数: 2948 |
插入前显示的代码 “ <embed src="/Admin/kindeditor/attached/flash/20120813/20120813215151_1562.swf" type="application/x-shockwave-flash" width="550" height="400" quality="high" /> ” 但是数据库中显示的是 “<IMG class=ke-flash style="WIDTH: 550px; HEIGHT: 400px" alt="" src="http://localhost:5629/Admin/kindeditor/themes/common/blank.gif" data-ke-tag="%3Cembed%20src%3D%22/Admin/kindeditor/attached/flash/20120813/20120813215151_1562.swf%22%20type%3D%22application/x-shockwave-flash%22%20width%3D%22550%22%20height%3D%22400%22%20quality%3D%22high%22%20/%3E" data-ke-src="/Admin/kindeditor/themes/common/blank.gif">”
全都转码了 为什吗 怎么解决?我是用JS获得值的 <script>function fuz() { var a =$(document.getElementsByTagName('iframe')[0].contentWindow.document.body).html(); $("#NewContent").val(a); } </script>
|
作者: Roddy, 发布日期: 2012-08-14 10:47:23 |
要用编辑器的API取得,editor.html();,editor是K.create的返回值。
|
回复 |
作者: kbkkbk3, 发布日期: 2012-08-14 12:16:50 |
回复Roddy: 谢谢! 我还是用原生的API解决了; function fuz() { editor1.sync(); var a = document.getElementById('content1').value; document.getElementById('NewContent').value=a; } </script>
|
回复 |