froala-editor
Version:
The next generation Javascript WYSIWYG HTML rich text editor made by devs for devs. High performance and modern design make it easy to use for developers and loved by users.
68 lines (63 loc) • 19.9 kB
JavaScript
/*!
* froala_editor v5.1.0 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2026 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function' && define.amd ? define(['froala-editor'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FroalaEditor));
})(this, (function (FE) { 'use strict';
function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: true,
configurable: true,
writable: true
}) : e[r] = t, e;
}
function _toPrimitive(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r);
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : i + "";
}
var _translation;
FE.LANGUAGE['zh_cn'] = {
translation: (_translation = {
// Place holder
'Type something': '输入内容',
// Basic formatting
'Bold': '粗体',
'Italic': '斜体',
'Underline': '下划线',
'Strikethrough': '删除线',
'Size': '大小',
// Main buttons
'Insert': '插入',
'Delete': '删除',
'Cancel': '取消',
'OK': '确定',
'Back': '后退',
'Remove': '删除',
'More': '更多',
'Update': '更新',
'Style': '样式',
// Font
'Font Family': '字体',
'Font Size': '字号',
// Colors
'Colors': '颜色'
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, "Size", '大小'), 'Background', '背景'), 'Text', '字体'), 'HEX Color', '十六进制颜色'), 'Paragraph Format', '段落格式'), 'Normal', '正文'), 'Code', '代码'), 'Heading 1', '标题1'), 'Heading 2', '标题2'), 'Heading 3', '标题3'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Heading 4', '标题4'), 'Paragraph Style', '段落样式'), 'Inline Style', '内联样式'), 'Padding', '内边距'), 'Align', '对齐方式'), 'Align Left', '左对齐'), 'Align Center', '居中'), 'Align Right', '右对齐'), 'Align Justify', '两端对齐'), 'None', '无'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Alignment', '对齐'), 'Next', '下一个'), 'Previous', '上一个'), 'Advanced Options', '高级选项'), 'Close', '关闭'), 'Ordered List', '编号'), 'Unordered List', '项目符号'), 'Decrease Indent', '减少缩进量'), 'Increase Indent', '增加缩进量'), 'Insert Link', '插入超链接'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Open in new tab', '在新标签页中打开'), 'Open Link', '打开超链接'), 'Edit Link', '编辑超链接'), 'Unlink', '删除超链接'), 'Choose Link', '选择超链接'), 'Insert Image', '插入图片'), 'Upload Image', '上传图片'), 'By URL', '通过 URL'), 'Browse', '浏览'), 'Drop image', '拖入图片'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'or click', '或点击'), 'Manage Images', '管理图片'), 'Loading', '加载中'), 'Deleting', '删除中'), 'Tags', '标签'), 'Are you sure? Image will be deleted.', '图片将会被删除,是否确认?'), 'Replace', '替换'), 'Uploading', '上传中'), 'Loading image', '图片加载中'), 'Display', '显示'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Inline', '嵌入型'), 'Break Text', '上下型环绕'), 'Alternative Text', '替换文字'), 'Change Size', '改变大小'), 'Width', '宽度'), 'Height', '高度'), 'Something went wrong. Please try again.', '发生错误,请重试。'), 'Image Caption', '图片标题'), 'Advanced Edit', '高级编辑'), 'Insert Video', '插入视频'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Embedded Code', '嵌入代码'), 'Paste in a video URL', '粘贴视频网址'), 'Drop video', '拖入视频'), 'Your browser does not support HTML5 video.', '您的浏览器不支持 HTML5 视频。'), 'Upload Video', '上传视频'), 'Insert Table', '插入表格'), 'Table Header', '表头'), 'Remove Table', '删除表格'), 'Table Style', '表格样式'), 'Horizontal Align', '水平对齐方式'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Row', '行'), 'Insert row above', '在上方插入'), 'Insert row below', '在下方插入'), 'Delete row', '删除行'), 'Column', '列'), 'Insert column before', '在左侧插入'), 'Insert column after', '在右侧插入'), 'Delete column', '删除列'), 'Cell', '单元格'), 'Merge cells', '合并单元格'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Horizontal split', '水平分割'), 'Vertical split', '垂直分割'), 'Cell Background', '单元格背景'), 'Vertical Align', '垂直对齐方式'), 'Top', '靠上'), 'Middle', '居中'), 'Bottom', '靠下'), 'Align Top', '靠上对齐'), 'Align Middle', '居中对齐'), 'Align Bottom', '靠下对齐'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Cell Style', '单元格样式'), 'Table Properties', '表格属性'), 'Cell Properties', '单元格属性'), 'Table Footer', '表尾'), 'Dimensions', '尺寸'), 'Custom background color input', '自定义背景颜色输入'), 'Background color picker', '背景颜色选择器'), 'Custom border color input', '自定义边框颜色输入'), 'Border color picker', '边框颜色选择器'), 'Border width', '边框宽度'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Border style', '边框样式'), 'Border color', '边框颜色'), 'Table width', '表格宽度'), 'Table height', '表格高度'), 'Left align', '左对齐'), 'Center align', '居中对齐'), 'Right align', '右对齐'), 'Left align without wrap', '左对齐不换行'), 'Right align without wrap', '右对齐不换行'), 'solid', '实线'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'dashed', '虚线'), 'dotted', '点线'), 'double', '双线'), 'groove', '凹槽线'), 'ridge', '凸起线'), 'inset', '内边线'), 'outset', '外边线'), 'Upload File', '上传文件'), 'Drop file', '拖入文件'), 'Emoticons', '表情符号'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Grinning face', '露齿笑脸'), 'Grinning face with smiling eyes', '露齿笑到眯起眼'), 'Face with tears of joy', '笑哭'), 'Smiling face with open mouth', '张嘴微笑'), 'Smiling face with open mouth and smiling eyes', '眯眼张嘴微笑'), 'Smiling face with open mouth and cold sweat', '带冷汗的张嘴微笑'), 'Smiling face with open mouth and tightly-closed eyes', '紧闭双眼张嘴微笑'), 'Smiling face with halo', '带光环微笑'), 'Smiling face with horns', '带牛角的微笑'), 'Winking face', '眨眼'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Smiling face with smiling eyes', '眯眼微笑'), 'Face savoring delicious food', '馋'), 'Relieved face', '如释重负'), 'Smiling face with heart-shaped eyes', '桃心眼微笑'), 'Smiling face with sunglasses', '戴太阳镜微笑'), 'Smirking face', '得意地笑'), 'Neutral face', '中性脸'), 'Expressionless face', '面无表情'), 'Unamused face', '不高兴'), 'Face with cold sweat', '冷汗'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Pensive face', '沉思'), 'Confused face', '迷惑'), 'Confounded face', '困惑'), 'Kissing face', '嘴巴嘟嘟'), 'Face throwing a kiss', '飞吻'), 'Kissing face with smiling eyes', '眯眼接吻'), 'Kissing face with closed eyes', '闭眼接吻'), 'Face with stuck out tongue', '吐舌'), 'Face with stuck out tongue and winking eye', '眨眼吐舌'), 'Face with stuck out tongue and tightly-closed eyes', '眯眼吐舌'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Disappointed face', '失望'), 'Worried face', '担心'), 'Angry face', '生气'), 'Pouting face', '撅嘴'), 'Crying face', '大哭'), 'Persevering face', '坚强'), 'Face with look of triumph', '扬眉吐气'), 'Disappointed but relieved face', '失望'), 'Frowning face with open mouth', '皱眉'), 'Anguished face', '痛苦'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Fearful face', '害怕'), 'Weary face', '疲惫'), 'Sleepy face', '困了'), 'Tired face', '累了'), 'Grimacing face', '扭曲脸'), 'Loudly crying face', '大哭'), 'Face with open mouth', '张开嘴'), 'Hushed face', '安静'), 'Face with open mouth and cold sweat', '冷汗'), 'Face screaming in fear', '害怕尖叫'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Astonished face', '惊讶'), 'Flushed face', '脸红'), 'Sleeping face', '熟睡'), 'Dizzy face', '眩晕'), 'Face without mouth', '没有嘴的脸'), 'Face with medical mask', '口罩脸'), 'Break', '换行'), 'Subscript', '下标'), 'Superscript', '上标'), 'Fullscreen', '全屏'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Insert Horizontal Line', '插入水平线'), 'Clear Formatting', '清除格式'), 'Save', '保存'), 'Undo', '撤消'), 'Redo', '恢复'), 'Select All', '全选'), 'Code View', '代码视图'), 'Quote', '引用'), 'Increase', '增加引用级别'), 'Decrease', '减少引用级别'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Quick Insert', '快速插入'), 'Special Characters', '特殊字符'), 'Latin', '拉丁字母'), 'Greek', '希腊字母'), 'Cyrillic', '西里尔字母'), 'Punctuation', '标点'), 'Currency', '货币'), 'Arrows', '箭头'), 'Math', '数学'), 'Misc', '杂项'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Print', '打印'), 'Spell Checker', '拼写检查器'), 'Help', '帮助'), 'Shortcuts', '快捷键'), 'Inline Editor', '内联编辑器'), 'Show the editor', '显示编辑器'), 'Common actions', '常用操作'), 'Copy', '复制'), 'Cut', '剪切'), 'Paste', '粘贴'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Basic Formatting', '基本格式'), 'Increase quote level', '增加引用级别'), 'Decrease quote level', '减少引用级别'), 'Image / Video', '图像/视频'), 'Resize larger', '放大'), 'Resize smaller', '缩小'), 'Table', '表格'), 'Select table cell', '选择单元格'), 'Extend selection one cell', '增加选中的单元格'), 'Extend selection one row', '增加选中的行'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Navigation', '导航'), 'Focus popup / toolbar', '焦点弹出/工具栏'), 'Return focus to previous position', '将焦点返回到上一个位置'), 'Embed URL', '嵌入网址'), 'Paste in a URL to embed', '粘贴要嵌入的网址'), 'The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?', '粘贴的内容来自微软 Word 文档。你想保留还是清除格式?'), 'Keep', '保留'), 'Clean', '清除'), 'Word Paste Detected', '检测到粘贴自 Word 的内容'), 'Characters', '字数统计'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Find and Replace', '查找和替换'), 'Find', '查找'), 'Replace with', '替换为'), 'Replace All', '全部替换'), "Advanced Options", '高级选项'), 'Match case', '区分大小写'), 'Whole words only', '仅整个单词'), 'More Text', ' 更多文字'), 'More Paragraph', '更多段落'), 'More Rich', '更多丰富'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'More Misc', '更多杂项'), 'Rounded', '圆角'), 'Bordered', '边框'), 'Shadow', '阴影'), 'Download PDF', '下载PDF'), 'Text Color', '字体颜色'), 'Background Color', '背景颜色'), 'Inline Class', '内联类'), 'Highlighted', '高亮'), 'Transparent', '透明'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Big Red', '大号红'), 'Small Blue', '小号蓝'), 'Default', '默认'), 'Lower Alpha', 'a,b,c...'), 'Lower Greek', 'α,β,γ...'), 'Lower Roman', 'i,ii,iii...'), 'Upper Alpha', 'A,B,C...'), 'Upper Roman', 'Ⅰ,Ⅱ,Ⅲ...'), 'Circle', '○ 空心圆'), 'Disc', '● 实心圆'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Square', '■ 实心方块'), 'Gray', '灰色'), 'Spaced', '字母间隙'), 'Uppercase', '大写'), 'Line Height', '行高'), 'Single', '1'), 'Double', '2'), 'Border', '边框'), 'Select Table', '选择表格'), 'Drag Table', '拖动表格'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Select PageBreak', '选择分页符'), 'Drag PageBreak', '拖动分页符'), 'Page Break', '分页符'), 'Insert Anchor', '插入锚点'), 'There are no entries matching', '没有匹配的条目'), 'Update Anchor', '更新锚点'), 'Edit Anchor', '编辑锚点'), 'Anchor Name', '锚点名称'), 'Anchor Link', '锚点链接'), 'Scroll to target', '滚动到目标'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Enter the anchor name without space', '请输入不含空格的锚点名称'), 'Anchor name already exists.', '锚点名称已存在。'), 'Export to Word', '导出为 Word'), 'Ensure that all required dependent libraries are available for the plugin to work.', '确保所有必需的依赖库都可用,以便插件能够正常工作。'), 'Import from Word', '从 Word 导入'), 'Please upload a valid file', '请上传有效文件。'), 'File size must be less than', '文件大小必须小于'), 'Code Snippet', '代码片段'), 'Insert Code Snippet', '插入代码片段'), 'Edit Code Snippet', '编辑代码片段'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Font Awesome', 'Font Awesome'), 'Web Application Icons', 'Web应用图标'), 'Accessibility Icons', '无障碍图标'), 'Hand Icons', '手势图标'), 'Transportation Icons', '交通图标'), 'Gender Icons', '性别图标'), 'Form Control Icons', '表单控件图标'), 'Payment Icons', '支付图标'), 'Chart Icons', '图表图标'), 'Currency Icons', '货币图标'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Text Editor Icons', '文本编辑器图标'), 'Brand Icons', '品牌图标'), 'Color', '颜色'), 'Insert File', '插入文件'), 'Custom background colour input', '自定义背景颜色输入'), 'Background colour picker', '背景颜色选择器'), 'Custom border colour input', '自定义边框颜色输入'), 'Border colour picker', '边框颜色选择器'), 'Border colour', '边框颜色'), 'Dashed Borders', '虚线边框'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Alternate Rows', '交替行'), 'Thick', '粗'), 'Words', '字数'), 'Insert Files', '插入文件'), 'Image file type is invalid.', '图片文件类型无效。'), 'File is too large.', '文件过大。'), 'Alternate Text', '替代文本'), 'Your browser does not support HTML5 vídeo.', '您的浏览器不支持 HTML5 视频。'), 'AI Shortcuts', 'AI 快捷方式'), 'Ask AI to generate or refine text, adjusting its tone and language.', '要求AI生成或完善文本,调整其语气和语言。'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Ask AI to generate', '要求AI生成'), 'AI responses can be inaccurate.', 'AI响应可能不准确。'), 'Select a text layer to edit', '选择要编辑的文本图层'), 'Change Tone', '更改语气'), 'Translate To', '翻译为'), 'Generating Response', '正在生成响应'), 'Submit', '提交'), 'Stop', '停止'), 'Try again', '重试'), 'To use AI features in Froala, you need to accept the AI Supplemental Terms.', '要在 Froala 中使用 AI 功能,您需要接受 AI 补充条款。'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_translation, 'Please set', '请将'), 'to', '设置为'), 'in your configuration to provide consent.', '在您的配置中以提供同意。'), 'You can review the terms here:', '您可以在此处查看条款:'), 'View AI Supplemental Terms', '查看 AI 补充条款')),
direction: 'ltr'
};
}));
//# sourceMappingURL=zh_cn.js.map