以下は私のJSPコードです:
<tr>
<td colspan="2">custEmail</td>
<td colspan="5"><div id= "custEmail"><p><strong>Test</strong></p></div></td>
</tr>
以下は、TinyMCE Editordiv
を使用してアタッチするコードです。
<script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinyMCE.init({
width : "640",
mode : "exact",
elements : "custEmail",
theme : "advanced",
plugins : "preview",
readonly : true,
theme_advanced_buttons1 : "forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,formatselect,fontselect,fontsizeselect,sub,sup,|,bold,italic,underline,strikethrough",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
</script>
しかし、私の HTML ページでは、コンテンツは次のように表示されます。
<p><strong>Test</strong></p>
大胆なテストの代わりに。以下を変更するとすぐに:
div id="custEmail" tag to textarea id="custEmail"
それは正常に動作します。div タグの設定が必要かどうかわかりませんか?