<a4j:loadScript src="resource:////fckeditor/fckeditor.js" />
<script type="text/javascript">
window.onload = function()
{
var sBasePath = "/goldeninfo/fckeditor/";
var oFCKeditor = new FCKeditor( 'wjxtSearch:zzww' ) ;
oFCKeditor.BasePath= sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<h:form id="wjxtSearch">
.
.
.
<h:inputTextarea id="zzww" rows="30"
value="#{mailYjlbHome.instance.xxzw}" required="true"
style=" width : 100%;" />
</h:form>
本文介绍了一种在网页中集成FCKeditor富文本编辑器的方法。通过加载特定的JavaScript文件并利用FCKeditor API替换文本区域,实现了动态文本编辑功能。此教程适用于希望在其应用程序中加入富文本编辑能力的开发者。
100

被折叠的 条评论
为什么被折叠?



