在要插入编辑器的页面直接加入
<h:form id="Form1">
<fieldset>
<s:validateAll>
<div class="entry">
<a:cnCol tableName="testrichtext" fieldName="title"/>
<div class="input">
<h:inputText id="title" value="#{testrichtext.title}" />
<br/><span class="errors"><h:message for="title" /></span>
</div>
</div>
<div class="entry">
<a:cnCol tableName="testrichtext" fieldName="content"/>
<script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce_advanced.js"></script>
<h:inputTextarea id="mainText" value="#{testrichtext.content}" rows="10" cols="60"/>
</div>
<div class="entry errors"><h:messages globalOnly="true" /></div>
<div class="entry">
<div class="label"><f:verbatim> </f:verbatim></div>
<div class="input">
<h:commandLink onclick="updateValue('Form1:mainText');" action="#{testrichtextAction.confirmAdd}" >
<a:cnMsg enMsg="ok"/>
</h:commandLink>
<h:commandLink action="#{testrichtextAction.cancel}">
<a:cnMsg enMsg="cancel"/>
</h:commandLink>
</div>
</div>
</s:validateAll>
</fieldset>
</h:form>
<fieldset>
<s:validateAll>
<div class="entry">
<a:cnCol tableName="testrichtext" fieldName="title"/>
<div class="input">
<h:inputText id="title" value="#{testrichtext.title}" />
<br/><span class="errors"><h:message for="title" /></span>
</div>
</div>
<div class="entry">
<a:cnCol tableName="testrichtext" fieldName="content"/>
<script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce_advanced.js"></script>
<h:inputTextarea id="mainText" value="#{testrichtext.content}" rows="10" cols="60"/>
</div>
<div class="entry errors"><h:messages globalOnly="true" /></div>
<div class="entry">
<div class="label"><f:verbatim> </f:verbatim></div>
<div class="input">
<h:commandLink onclick="updateValue('Form1:mainText');" action="#{testrichtextAction.confirmAdd}" >
<a:cnMsg enMsg="ok"/>
</h:commandLink>
<h:commandLink action="#{testrichtextAction.cancel}">
<a:cnMsg enMsg="cancel"/>
</h:commandLink>
</div>
</div>
</s:validateAll>
</fieldset>
</h:form>
tineMCE2.1.2汉化下载
来源:https://www.cnblogs.com/cuibq/archive/2007/09/20/3801990.html