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) 3.37 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const enUs = require("./i18n/en-us.cjs.js"); const zhCn = require("./i18n/zh-cn.cjs.js"); const BIG_DELTA_LIMIT = 2e3; const LANG_CONF = { "en-US": enUs.EN_US, "zh-CN": zhCn.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 ]; exports.AUDIO_VIDEO_UPLOADER_MIME_TYPES = AUDIO_VIDEO_UPLOADER_MIME_TYPES; exports.BIG_DELTA_LIMIT = BIG_DELTA_LIMIT; exports.CHANGE_LANGUAGE_EVENT = CHANGE_LANGUAGE_EVENT; exports.COMPRESSED_UPLOADER_MIME_TYPES = COMPRESSED_UPLOADER_MIME_TYPES; exports.DOC_UPLOADER_MIME_TYPES = DOC_UPLOADER_MIME_TYPES; exports.FILE_UPLOADER_MIME_TYPES = FILE_UPLOADER_MIME_TYPES; exports.IMAGE_UPLOADER_MIME_TYPES = IMAGE_UPLOADER_MIME_TYPES; exports.LANG_CONF = LANG_CONF; exports.OTHER_FILE_UPLOADER_MIME_TYPES = OTHER_FILE_UPLOADER_MIME_TYPES; exports.PPT_UPLOADER_MIME_TYPES = PPT_UPLOADER_MIME_TYPES; exports.XSL_UPLOADER_MIME_TYPES = XSL_UPLOADER_MIME_TYPES; exports.defaultLanguage = defaultLanguage; //# sourceMappingURL=editor.config.cjs.js.map