AnantLabs / xheditor

Automatically exported from code.google.com/p/xheditor
GNU Lesser General Public License v3.0
0 stars 0 forks source link

在ie6下,要两次换行才可以,而且在ie下,编辑器样式显示有些不正常,在firefox下,无法换行 #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
我用的版本是最新的,不知道这两个问题是因为什么,

Original issue reported on code.google.com by yu.sun0...@gmail.com on 16 Jun 2010 at 6:58

GoogleCodeExporter commented 9 years ago
在firebug下,看到有<br 
/>,在后端就没有了,后端没有做什么过滤,就是从前段取出
来后,后端在log里打印出来查看的,

Original comment by yu.sun0...@gmail.com on 16 Jun 2010 at 7:15

GoogleCodeExporter commented 9 years ago
要换两次行的问题目前暂时还没找到解决方案,不过会在接��
�来的版本中尽可能的完善。
至于样式显示有些不正常,能具体点吗?
还有firefox无法换行,是完全无法换行,还是在某些情况下会�
��法换行?

Original comment by yanis.w...@gmail.com on 16 Jun 2010 at 1:10

GoogleCodeExporter commented 9 years ago
在加上beforeGetSource后,就没有换行了,但在firebug下,看动态�
��码,确实加上<br>了,在后台接受到的就没有
在页面上用的就是下面的这段,
<script type="text/javascript">
$(pageInit);
function pageInit()
{
    $('#content').xheditor({
        tools:'full',showBlocktag:false,forcePtag:false,beforeSetSource:ubb2html,beforeGetSource:html2ubb,emots:{qq:{name:'QQ',count:55,width:25,height:25,line:11},msn:{name:'MSN',count:40,width:22,height:22,line:8}},emotMark:true,shortcuts:{'ctrl+enter':submitForm}});
}
function submitForm(){$('#postform').submit();}

Original comment by yu.sun0...@gmail.com on 17 Jun 2010 at 2:30

GoogleCodeExporter commented 9 years ago
用了UBB模式,多行会强制变成一行,这个是UBB模式的特性。

Original comment by yanis.w...@gmail.com on 17 Jun 2010 at 4:47

GoogleCodeExporter commented 9 years ago

Original comment by yanis.w...@gmail.com on 30 Jun 2010 at 11:00