让Editlet 编辑器产生<br /> ,而不是<br>

在editor.html 中进行替换
%3Cbr%3E
%3Cbr%20/%3E

去除Editlet 自动添加的:

<link xhref="css/sample.css" mce_href="css/sample.css" rel="stylesheet" type="text/css">

编辑editor.html ,在getXHTML() 中注释:

//outStr='<link type="text/css" rel="stylesheet" xhref="'+css_url+'" mce_href="'+css_url+'" />';

在setMode() 中修改:

//objEditArea.document.body.innerHTML = html.toString()+'<link type="text/css" rel="stylesheet" xhref="'+css_url+'" mce_href="'+css_url+'">';
objEditArea.document.body.innerHTML = html.toString();//+'<link type="text/css" rel="stylesheet" xhref="'+css_url+'" mce_href="'+css_url+'">';
//objEditArea.document.body.innerHTML = document.frmShowEditor.txtSource.value+'<link type="text/css" rel="stylesheet" xhref="'+css_url+'" mce_href="'+css_url+'">' ;
objEditArea.document.body.innerHTML = document.frmShowEditor.txtSource.value;//+'<link type="text/css" rel="stylesheet" xhref="'+css_url+'" mce_href="'+css_url+'">' ;
以上改动没有起到作用,由于源代码结构比较混乱,还有一层encode,要搞清楚需要很大精力,已经决定放弃继续在这套源码之上的refines了。

Post a comment

mail.png


相似文章|Related Entries

最近更新|Recent Entries

不定期更新|Handy Entries

相似标签|Related Tags

Editlet
MT (22)
wysiwyg (6)
wysiwyg
Editlet (5)
MT (22)
TinyMCE (4)
upgrade (4)

分类栏目|Categories

按月归档|By Month

2008
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

站内链接|Site Links

Powered by
Movable Type 3.34