項目地址:http://www.freeteam.cn/javascript
1.1.1 formTablehtml
從FreeCMS 2.5開始支持java
生成自定義表單的html代碼。jquery
參數jsp |
說明編輯器 |
idcode |
表單idorm |
editorhtm |
富文本使用的在線編輯器,默認使用ueditorip 支持ueditor/ckeditor/kindeditor |
loadjs |
是否加載依賴的js,默認加載 true加載 false不加載 |
siteid |
站點id |
channelid |
欄目id |
templetPath |
顯示保存結果的模板 |
返回值 |
說明 |
code |
生成的內容 |
此標籤依賴的文件
<script type="text/javascript" src="${contextPath}js/jquery-1.5.1.min.js"></script>
<script src='${contextPath}My97DatePicker/WdatePicker.js'></script>
<script src='${contextPath}js/check.js'></script>
<script src='${contextPath}js/validate.js'></script>
使用不一樣的在線編輯器須要引入不一樣的js
ueditor
<script charset='utf-8' src='${contextPath}editor/ueditor/ueditor.config.js.jsp'></script>
<script charset='utf-8' src='${contextPath}editor/ueditor/ueditor.all.min.js'></script>
<script charset='utf-8' src='${contextPath}editor/ueditor/lang/zh-cn/zh-cn.js'></script>
ckeditor
<script charset='utf-8' src='${contextPath}editor/ckeditor/ckeditor.js'></script>
kindeditor
<script charset='utf-8' src='${contextPath}editor/kindeditor/kindeditor.js'></script>
<script charset='utf-8' src='${contextPath}editor/kindeditor/lang/zh_CN.js'></script>
示例1
<@formTable id="${currInfo.formid!''}" siteid="${site.id}" channelid="${currChannel.id}" templetPath="formTableSave.html";code>
${code}
</@formTable>