资源描述:
《moss自带rte 控件的使用》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、MOSS自带RTE控件的使用 当我们自己在_layouts下或者MOSS的应用程序池里的项目想使用MOSS自带的RichTextEditor控件: 其实用户很简单,2步搞定: 复制脚本 Code<linkrel=stylesheettype=text/csshref=/_layouts/2052/styles/core.css?rev=XygLPcJn29Jca2z%2BY5dhJg%3D%3D/><scripttype=text/javascriptlanguage=javascriptsrc=/
2、_layouts/2052/init.js?rev=TM1Msc%2Fl%2BXA2XeDb5Kxg%3D%3D></script><scripttype=text/javascriptlanguage=javascriptsrc=/_layouts/2052/core.js?rev=oOYctOq3H5IaEOyx.js?rev=6SC%2FzbjAV4FBM2lpYMMhtQ%3D%3D></script><scripttype=text/javascriptlanguage=j
3、avascriptsrc=/_layouts/2052/SpellCheckEntirePage.js?rev=fTgS1Hx3qAogZoY4h%2FsaPg%3D%3D></script><scripttype=text/javascriptlanguage=javascriptsrc=/_layouts/Serialize.js?rev=yoPAvZ5aIeY93U62X8ie%2FQ%3D%3D></script> 填入脚本 Code<spandir=none>
4、<spandir=ltr> <textareaname=mentroenttitle=说明class=ms-longdir=none></textarea> <inputname=ment_spSavetype=HIDDENid=ment_spSave/> </span> <script>if(brop;brop;!IsAccessibilityFeatureEnabled()){RTE_ConvertTextAreaToRichE
5、dit(ment,true,false,,2052,null,null,null,null,null,patible,u002f,null,null,false,null,null,null,null,null,null,true,null);}else{ument.p;nbsp;<br><SPANclass=ms-formdescription><ahref='javascript:Helpent { l中 CodevarstrHtml; varstrBaseElementI
6、D=ment; 12下一页——..,。//varelemTextArea=RTE_GetEditorTextArea(strBaseElementID); varEditor=RTE_GetEditorDocument(strBaseElementID); strHtml=Editor.body.innerHTML; 更改样式:FullHtml CodeRTE_ConvertTextAreaToRichEdit(ment,true,false,,2052,null,null,null,null,null,Ful
7、lHtml,u002f,null,null,false,null,null,null,null,null,null,true,null); 使用示例:信息反馈收集 第二种方法最简单了: Code<PublishinglFieldid=ArticleAbstractFieldName=ArticleAbstract Alloages=false AlloattingButtons=false runat=server/> 上一页12——..,。