悠闲小风专栏

SharePoint & Workflow 解决方案

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

转载自anotherdir的文章:WSS(MOSS)如何修改Rich文本编辑器的宽度

 

一种方法:
通过js,获取到到编辑器的iframe,修改其width。

将以下js添加到站点当前母板页的</bogy>之上即可:
<script type="text/javascript">   
// -------------------------------------------------------------------
//
 change RTE Editor widht JS by jianyi0115@163.com
//
 add this js file to master file , before </body>
//
 -------------------------------------------------------------------
var _tk_arIFRAMES = document.getElementsByTagName("iframe");
for (var c=0; c<_tk_arIFRAMES.length; c++)
{
    
if (_tk_arIFRAMES[c].className == "ms-rtelong")
    {
        _tk_arIFRAMES[c].style.width
="600px";
    }
}
    
</script>

 

或者:直接修改css :

 

< style >
.ms-rtelong
{
width:600px;
}
< / style >

 

 

posted on 2009-07-01 14:19  陈典洪  阅读(394)  评论(1)    收藏  举报