5
下面是我的JSP代碼:帶div標籤的TinyMCE?
<tr>
<td colspan="2">custEmail</td>
<td colspan="5"><div id= "custEmail"><p><strong>Test</strong></p></div></td>
</tr>
下面是安裝代碼的div
與TinyMCE Editor
<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標籤設置一些設置?
相同的結果。我仍然看到
測試
– emilly嗯,我明白了。你可以把類的custEmail給td嗎? – Thariama
仍然沒有影響
相關問題