UNPKG

@opentiny/fluent-editor

Version:

A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.

93 lines (92 loc) 2.9 kB
import { EN_US } from "./i18n/en-us.es.js"; import { ZH_CN } from "./i18n/zh-cn.es.js"; const BIG_DELTA_LIMIT = 2e3; const LANG_CONF = { "en-US": EN_US, "zh-CN": ZH_CN }; const CHANGE_LANGUAGE_EVENT = "change-language"; const defaultLanguage = "en-US"; const IMAGE_UPLOADER_MIME_TYPES = [ "image/png", "image/jpeg", "image/gif", "image/svg+xml" ]; const OTHER_FILE_UPLOADER_MIME_TYPES = [ "text/plain", "application/json", "application/pdf" ]; const AUDIO_VIDEO_UPLOADER_MIME_TYPES = [ "audio/wave", "audio/wav", "audio/x-wav", "audio/x-pn-wav", "audio/mpeg", "video/mpeg", "video/x-msvideo" ]; const DOC_UPLOADER_MIME_TYPES = [ "application/msword", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/vnd.ms-word.document.macroEnabled.12", "application/vnd.ms-word.template.macroEnabled.12" ]; const XSL_UPLOADER_MIME_TYPES = [ "application/vnd.ms-excel", "application/vnd.ms-excel", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.spreadsheetml.template", "application/vnd.ms-excel.sheet.macroEnabled.12", "application/vnd.ms-excel.template.macroEnabled.12", "application/vnd.ms-excel.addin.macroEnabled.12", "application/vnd.ms-excel.sheet.binary.macroEnabled.12" ]; const PPT_UPLOADER_MIME_TYPES = [ "application/vnd.ms-powerpoint", "application/vnd.ms-powerpoint", "application/vnd.ms-powerpoint", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/vnd.openxmlformats-officedocument.presentationml.template", "application/vnd.openxmlformats-officedocument.presentationml.slideshow", "application/vnd.ms-powerpoint.addin.macroEnabled.12", "application/vnd.ms-powerpoint.presentation.macroEnabled.12", "application/vnd.ms-powerpoint.presentation.macroEnabled.12", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" ]; const COMPRESSED_UPLOADER_MIME_TYPES = [ "application/x-tar", "application/x-zip-compressed", "application/zip-compressed", "application/gzip", ".rar", ".7z" ]; const FILE_UPLOADER_MIME_TYPES = [ ...OTHER_FILE_UPLOADER_MIME_TYPES, ...AUDIO_VIDEO_UPLOADER_MIME_TYPES, ...DOC_UPLOADER_MIME_TYPES, ...XSL_UPLOADER_MIME_TYPES, ...PPT_UPLOADER_MIME_TYPES, ...COMPRESSED_UPLOADER_MIME_TYPES ]; export { AUDIO_VIDEO_UPLOADER_MIME_TYPES, BIG_DELTA_LIMIT, CHANGE_LANGUAGE_EVENT, COMPRESSED_UPLOADER_MIME_TYPES, DOC_UPLOADER_MIME_TYPES, FILE_UPLOADER_MIME_TYPES, IMAGE_UPLOADER_MIME_TYPES, LANG_CONF, OTHER_FILE_UPLOADER_MIME_TYPES, PPT_UPLOADER_MIME_TYPES, XSL_UPLOADER_MIME_TYPES, defaultLanguage }; //# sourceMappingURL=editor.config.es.js.map