0
我正在用tinyMCE編輯器構建一個webapp(使用java,spring,freemarker和tiles)。tinyMCE替換整個表單不僅textarea
我已經加入到classpath中的所有文件,一切都在正確的地方,TinyMCE的編輯幾乎是正確加載...
有幾個領域在我的表格,文本輸入框,選項,按鈕,標籤等...但是當我運行這個表單時會出現問題。 tinyMCE替換整個表單,而不僅僅是textarea,並將其放入自己的內部 - 進入tinyMCE編輯器區域。
我在這裏找到以下基本安裝http://www.tinymce.com/wiki.php/Installation 我的代碼和這裏幾乎一樣,在表單中有更多的元素。
有沒有解決方案?這是一個標準的行爲?
我在FF 13.0.1上運行它,如果它很重要...
在form.ftl文件我的初始化代碼是:
<#import "../spring.ftl" as spring>
<#assign form=JspTaglibs["http://www.springframework.org/tags/form"]>
<html>
<head>
<script type="text/javascript" src="/resources/tinymce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
height : "480",
mode : "textareas"
});
</script>
</head>
<body>
<div id="content">
<@form.form>
<input type="text" id="title"/><br>
<input type="text" id="author"/><br>
<textarea id="content"></textarea><br>
<button type="submit"/> <button type="reset"/>
</@form.form>
</div>
</body>
</html>
要回答你的問題,請發佈你的完整tinymce初始化(我猜錯誤在那裏) – Thariama 2012-07-06 15:43:33