<#if 'view'=type>
    ${(value?no_esc)!}
<#else>
    <#if 'customform'!=type>
        <div>
            <a class="button" href="common/import.html?field=${inputName?url}" lookupGroup="" width="600" height="400"><@t.page 'import_doc'/></a>
            <#if getAiChatEnable?? && getDictEnable?is_method && getAiChatEnable()>
                <a class="button" href="simpleAi/chat.html?field=${inputName?url}" lookupGroup="" width="800" height="500">AI</a>
            </#if>
            <#if itemType?has_content && itemId?has_content>
                <a class="button" href="cmsEditorHistory/lookup.html?itemType=${itemType?url}&itemId=${itemId?url}&fieldName=${extend.id.code?url}" lookupGroup=""><@t.page 'history'/></a>
            </#if>
        </div>
    </#if>
        <textarea name="${inputName}"<#if extend.maxlength?has_content> maxlength="${extend.maxlength}"</#if> class="editor<#if 'customform'!=type><#if extend.required> required</#if></#if>"<#if 'customform'!=type> editorType="${extend.inputType}" escape="true"</#if> cols="80" rows="20">${(value)!}</textarea>
</#if>