📄 editor.ftl
字号:
<#--
<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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -