HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/crm.jmfdbn.com/addons/editormd/editormd.html
<link rel="stylesheet" href="__STATIC__/addons/editormd/css/editormd.min.css">
<script type="text/javascript" src="__STATIC__/addons/editormd/editormd.min.js"></script>
<div class="layui-form-item layui-form-text">
    <label class="">{$vo.title} {if condition="isset($vo.ifrequire) AND $vo.ifrequire"}&nbsp;<font color="red">*</font>{/if}</label>
    <div class="layui-form-field-label js-editormd" id="{$vo.name}" >
        <textarea style="display:none;" name="{$vo.fieldArr}[{$vo.name}]">{$vo.value}</textarea>
    </div>
    {if $vo.remark}<div class="layui-form-mid layui-word-aux">{$vo.remark|raw}</div>{/if}
</div>
<script type="text/javascript">
GV.editormd_upload_url='{$editormd_upload_url ? $editormd_upload_url : url("attachment/upload/upload", ["dir" => "images", "from" => "editormd", "module" => request()->module()])}';
GV.editormd_mudule_path='__STATIC__/addons/editormd/lib/';
$(function() {
    var editormds = {};
    if ($(".js-editormd").size() > 0) {
        $('.js-editormd').each(function() {
            var editormd_name = $(this).attr('id');
            editormds[editormd_name] = editormd(editormd_name, {
                height: 500, // 高度
                watch: true,
                searchReplace: true,
                toolbarAutoFixed: false, // 取消工具栏固定
                path: GV.editormd_mudule_path, // 用于自动加载其他模块
                codeFold: true, // 开启代码折叠
                dialogLockScreen: false, // 设置弹出层对话框不锁屏
                imageUpload: true, // 开启图片上传
                imageUploadURL: GV.editormd_upload_url,
            });
        });
    }
});
</script>