Skip to content

可视化编辑器令人蛋疼的取值

2011 六月 7
by 荒野无灯

今天在做一个查询的子模块,沿用了原网页的gbk编码。
发现用kindeditor 出出来的值是这样的:

1
<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color:#4b4a4a;font-family:verdana, arial, helvetica, Tahoma;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;line-height:normal;">评价</span><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color:#4b4a4a;font-family:verdana, arial, helvetica, Tahoma;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;line-height:normal;">评价</span><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color:#4b4a4a;font-family:verdana, arial, helvetica, Tahoma;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;line-height:normal;">评价</span><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color:#4b4a4a;font-family:verdana, arial, helvetica, Tahoma;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;line-height:normal;">评价</span><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color:#4b4a4a;font-family:verdana, arial, helvetica, Tahoma;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;line-height:normal;">评价</span><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color:#4b4a4a;font-family:verdana, arial, helvetica, Tahoma;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;line-height:normal;">评价</span>

蛋疼啊,折腾了好久找不出原因所在。
后来用ckeditor 测试,发现情况与上面的一样。

我不甘心,再换,这次tinymce果然没有让我失败,post后取出来的值是正常的。
一下以来都是用quicktags的,没怎么用tinymce,没想到它的兼容性是相当的给力。

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4565

One Response Post a comment
  1. 六月 8, 2011

    几大可视化编辑器都有这样那样的问题。 CKEDITOR的自动转换功能特烦。但TINYMCE没有删除WORD格式的功能,也麻烦。

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS