dggjimai/config/ueditor.php

86 lines
3.7 KiB
PHP
Executable File

<?php
/**
* UEditor设置
* @author lisong<377344020@qq.com>
* @date 2020/06/19
*/
return [
'imageActionName' => 'uploadimage',
'imageFieldName' => 'upfile',
'imageMaxSize' => 20480, //demo改成了20k
'imageAllowFiles' => [
'.png',
'.jpg',
'.jpeg',
'.gif',
'.bmp'
],
'imageCompressEnable' => true,
'imageCompressBorder' => 1600,
'imageInsertAlign' => 'none',
'imageUrlPrefix' => '',//配置域名
'imagePathFormat' => '/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}',
'scrawlActionName' => 'uploadscrawl',
'scrawlFieldName' => 'upfile',
'scrawlPathFormat' => '/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}',
'scrawlMaxSize' => 20480,
'scrawlUrlPrefix' => '',
'scrawlInsertAlign' => 'none',
'scrawlAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp',],
'snapscreenActionName' => 'uploadimage',
'snapscreenPathFormat' => '/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}',
'snapscreenUrlPrefix' => '',//配置域名
'snapscreenInsertAlign' => 'none',
'catcherLocalDomain' => ['127.0.0.1', 'localhost', 'img.baidu.com',],
'catcherActionName' => 'catchimage',
'catcherFieldName' => 'source',
'catcherPathFormat' => '/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}',
'catcherUrlPrefix' => '',
'catcherMaxSize' => 20480,
'catcherAllowFiles' => [
'.png', '.jpg', '.jpeg', '.gif', '.bmp',
],
'videoActionName' => 'uploadvideo',
'videoFieldName' => 'upfile',
'videoPathFormat' => '/ueditor/php/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}',
'videoUrlPrefix' => '',//配置域名
'videoMaxSize' => 40960,
'videoAllowFiles' => [
'.flv', '.swf', '.mkv', '.avi', '.rm', '.rmvb', '.mpeg', '.mpg',
'.ogg', '.ogv', '.mov', '.wmv', '.mp4', '.webm', '.mp3', '.wav', '.mid'
],
'fileActionName' => 'uploadfile',
'fileFieldName' => 'upfile',
'filePathFormat' => '/ueditor/php/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}',
'fileUrlPrefix' => '',//配置域名
'fileMaxSize' => 10240,
'fileAllowFiles' => [
'.png', '.jpg', '.jpeg', '.gif', '.bmp',
'.flv', '.swf', '.mkv', '.avi', '.rm', '.rmvb', '.mpeg', '.mpg',
'.ogg', '.ogv', '.mov', '.wmv', '.mp4', '.webm', '.mp3', '.wav', '.mid',
'.rar', '.zip', '.tar', '.gz', '.7z', '.bz2', '.cab', '.iso',
'.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.pdf', '.txt', '.md', '.xml'
],
'imageManagerActionName' => 'listimage',
'imageManagerListPath' => '/ueditor/php/upload/image/',
'imageManagerListSize' => 20,
'imageManagerUrlPrefix' => '',//配置域名
'imageManagerInsertAlign' => 'none',
'imageManagerAllowFiles' => [
'.png', '.jpg', '.jpeg', '.gif', '.bmp',
],
'fileManagerActionName' => 'listfile',
'fileManagerListPath' => '/ueditor/php/upload/file/',
'fileManagerUrlPrefix' => '',//配置域名
'fileManagerListSize' => 20,
'fileManagerAllowFiles' => [
'.png', '.jpg', '.jpeg', '.gif', '.bmp',
'.flv', '.swf', '.mkv', '.avi', '.rm', '.rmvb', '.mpeg', '.mpg',
'.ogg', '.ogv', '.mov', '.wmv', '.mp4', '.webm', '.mp3', '.wav', '.mid',
'.rar', '.zip', '.tar', '.gz', '.7z', '.bz2', '.cab', '.iso',
'.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.pdf', '.txt', '.md', '.xml'
]
];