ueditor

package
v0.0.0-...-58d7c3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2017 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UEditor = map[string]interface{}{

	"imageActionName":     "uploadImage",
	"imageFieldName":      "upFile",
	"imageMaxSize":        2048000,
	"imageAllowFiles":     []string{".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":     2048000,
	"scrawlUrlPrefix":   "",
	"scrawlInsertAlign": "none",

	"snapscreenActionName":  "uploadimage",
	"snapscreenPathFormat":  "/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
	"snapscreenUrlPrefix":   "",
	"snapscreenInsertAlign": "none",

	"catcherLocalDomain": []string{"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":     2048000,
	"catcherAllowFiles":  []string{".png", ".jpg", ".jpeg", ".gif", ".bmp"},

	"videoActionName": "uploadvideo",
	"videoFieldName":  "upfile",
	"videoPathFormat": "/ueditor/php/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}",
	"videoUrlPrefix":  "",
	"videoMaxSize":    102400000,
	"videoAllowFiles": []string{
		".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":    51200000,
	"fileAllowFiles": []string{
		".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":  []string{".png", ".jpg", ".jpeg", ".gif", ".bmp"},

	"fileManagerActionName": "listfile",
	"fileManagerListPath":   "/ueditor/php/upload/file/",
	"fileManagerUrlPrefix":  "",
	"fileManagerListSize":   20,
	"fileManagerAllowFiles": []string{
		".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",
	},
}

UEditor 前后端通信相关的配置,注释只允许使用多行方式

Functions

func Handler

func Handler(ctx *iris.Context)

Handler UEditor 控制器

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL