editor.ftl

来自「JEECSM是JavaEE版网站管理系统(Java Enterprise Edi」· FTL 代码 · 共 27 行

FTL
27
字号
<#--
<textarea name="textarea"></textarea>
-->
<#macro editor
	id="" name="" value="" height="200" noValue="false"
	label="" noHeight="false" required="false" colspan="" width="100" help="" helpPosition="2" colon=":" hasColon="true"
	onclick="" ondblclick="" onmousedown="" onmouseup="" onmouseover="" onmousemove="" onmouseout="" onfocus="" onblur="" onkeypress="" onkeydown="" onkeyup="" onselect="" onchange=""
	>
<#local fckName=name?replace('.','_')>
<#include "control.ftl"/><#rt/>
<textarea name="${name}"<#rt/>
<#if id!=""> id="${id}"</#if><#rt/>
<#include "scripting-events.ftl"/><#rt/>
><#if value!="">${value}<#elseif noValue=="false" && name!="">${(name?eval)!}</#if></textarea>
<script type="text/javascript">
$(function(){
var _fck_${fckName}=new FCKeditor('${name}');
_fck_${fckName}.BasePath='${base}/fckeditor/';
<#--_fck_${fckName}.Config["CustomConfigurationsPath"]="${base}/fckeditor/myconfig.js?"+(new Date()*1);-->
_fck_${fckName}.Config["CustomConfigurationsPath"]="${base}/fckeditor/myconfig.js";
_fck_${fckName}.ToolbarSet='mydefault';
_fck_${fckName}.Height=${height};
_fck_${fckName}.ReplaceTextarea();
});
</script>
<#include "control-close.ftl"/><#rt/>
</#macro>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?