"use strict";
/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunknocode_component"] = self["webpackChunknocode_component"] || []).push([[704],{

/***/ "./src/base/web/RichText/index.less":
/*!******************************************!*\
  !*** ./src/base/web/RichText/index.less ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"wrapper\":\"_6PAJVM37_wrapper\",\"richtext_wrapper\":\"JFKTZ35A_richtext_wrapper\",\"mask\":\"_7IbdmfcJ_mask\",\"readonly_richtext\":\"-unJWgWB_readonly_richtext\"});\n\n//# sourceURL=webpack://nocode-component/./src/base/web/RichText/index.less?");

/***/ }),

/***/ "./src/base/web/RichText/RichTextField.tsx":
/*!*************************************************!*\
  !*** ./src/base/web/RichText/RichTextField.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./index.less */ \"./src/base/web/RichText/index.less\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils */ \"./src/base/web/RichText/utils.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! tinymce/tinymce */ \"../../node_modules/tinymce/tinymce.js\");\n/* harmony import */ var tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var tinymce_themes_silver__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! tinymce/themes/silver */ \"../../node_modules/tinymce/themes/silver/index.js\");\n/* harmony import */ var tinymce_themes_silver__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(tinymce_themes_silver__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var tinymce_icons_default__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! tinymce/icons/default */ \"../../node_modules/tinymce/icons/default/index.js\");\n/* harmony import */ var tinymce_icons_default__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(tinymce_icons_default__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var tinymce_plugins_advlist__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! tinymce/plugins/advlist */ \"../../node_modules/tinymce/plugins/advlist/index.js\");\n/* harmony import */ var tinymce_plugins_advlist__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_advlist__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var tinymce_plugins_anchor__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! tinymce/plugins/anchor */ \"../../node_modules/tinymce/plugins/anchor/index.js\");\n/* harmony import */ var tinymce_plugins_anchor__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_anchor__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var tinymce_plugins_autolink__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! tinymce/plugins/autolink */ \"../../node_modules/tinymce/plugins/autolink/index.js\");\n/* harmony import */ var tinymce_plugins_autolink__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_autolink__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var tinymce_plugins_autoresize__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! tinymce/plugins/autoresize */ \"../../node_modules/tinymce/plugins/autoresize/index.js\");\n/* harmony import */ var tinymce_plugins_autoresize__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_autoresize__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var tinymce_plugins_autosave__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! tinymce/plugins/autosave */ \"../../node_modules/tinymce/plugins/autosave/index.js\");\n/* harmony import */ var tinymce_plugins_autosave__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_autosave__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var tinymce_plugins_charmap__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! tinymce/plugins/charmap */ \"../../node_modules/tinymce/plugins/charmap/index.js\");\n/* harmony import */ var tinymce_plugins_charmap__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_charmap__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var tinymce_plugins_code__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! tinymce/plugins/code */ \"../../node_modules/tinymce/plugins/code/index.js\");\n/* harmony import */ var tinymce_plugins_code__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_code__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var tinymce_plugins_codesample__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! tinymce/plugins/codesample */ \"../../node_modules/tinymce/plugins/codesample/index.js\");\n/* harmony import */ var tinymce_plugins_codesample__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_codesample__WEBPACK_IMPORTED_MODULE_27__);\n/* harmony import */ var tinymce_plugins_fullscreen__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! tinymce/plugins/fullscreen */ \"../../node_modules/tinymce/plugins/fullscreen/index.js\");\n/* harmony import */ var tinymce_plugins_fullscreen__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_fullscreen__WEBPACK_IMPORTED_MODULE_28__);\n/* harmony import */ var tinymce_plugins_hr__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! tinymce/plugins/hr */ \"../../node_modules/tinymce/plugins/hr/index.js\");\n/* harmony import */ var tinymce_plugins_hr__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_hr__WEBPACK_IMPORTED_MODULE_29__);\n/* harmony import */ var tinymce_plugins_image__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! tinymce/plugins/image */ \"../../node_modules/tinymce/plugins/image/index.js\");\n/* harmony import */ var tinymce_plugins_image__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_image__WEBPACK_IMPORTED_MODULE_30__);\n/* harmony import */ var tinymce_plugins_imagetools__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! tinymce/plugins/imagetools */ \"../../node_modules/tinymce/plugins/imagetools/index.js\");\n/* harmony import */ var tinymce_plugins_imagetools__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_imagetools__WEBPACK_IMPORTED_MODULE_31__);\n/* harmony import */ var tinymce_plugins_importcss__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! tinymce/plugins/importcss */ \"../../node_modules/tinymce/plugins/importcss/index.js\");\n/* harmony import */ var tinymce_plugins_importcss__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_importcss__WEBPACK_IMPORTED_MODULE_32__);\n/* harmony import */ var tinymce_plugins_link__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! tinymce/plugins/link */ \"../../node_modules/tinymce/plugins/link/index.js\");\n/* harmony import */ var tinymce_plugins_link__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_link__WEBPACK_IMPORTED_MODULE_33__);\n/* harmony import */ var tinymce_plugins_lists__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! tinymce/plugins/lists */ \"../../node_modules/tinymce/plugins/lists/index.js\");\n/* harmony import */ var tinymce_plugins_lists__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_lists__WEBPACK_IMPORTED_MODULE_34__);\n/* harmony import */ var tinymce_plugins_nonbreaking__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! tinymce/plugins/nonbreaking */ \"../../node_modules/tinymce/plugins/nonbreaking/index.js\");\n/* harmony import */ var tinymce_plugins_nonbreaking__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_nonbreaking__WEBPACK_IMPORTED_MODULE_35__);\n/* harmony import */ var tinymce_plugins_pagebreak__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! tinymce/plugins/pagebreak */ \"../../node_modules/tinymce/plugins/pagebreak/index.js\");\n/* harmony import */ var tinymce_plugins_pagebreak__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_pagebreak__WEBPACK_IMPORTED_MODULE_36__);\n/* harmony import */ var tinymce_plugins_paste__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! tinymce/plugins/paste */ \"../../node_modules/tinymce/plugins/paste/index.js\");\n/* harmony import */ var tinymce_plugins_paste__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_paste__WEBPACK_IMPORTED_MODULE_37__);\n/* harmony import */ var tinymce_plugins_searchreplace__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! tinymce/plugins/searchreplace */ \"../../node_modules/tinymce/plugins/searchreplace/index.js\");\n/* harmony import */ var tinymce_plugins_searchreplace__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_searchreplace__WEBPACK_IMPORTED_MODULE_38__);\n/* harmony import */ var tinymce_plugins_table__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! tinymce/plugins/table */ \"../../node_modules/tinymce/plugins/table/index.js\");\n/* harmony import */ var tinymce_plugins_table__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(tinymce_plugins_table__WEBPACK_IMPORTED_MODULE_39__);\n/* harmony import */ var _addIcon__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./addIcon */ \"./src/base/web/RichText/addIcon.ts\");\n/* harmony import */ var _addPlugins__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./addPlugins */ \"./src/base/web/RichText/addPlugins.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n/* harmony import */ var _utils_formatUtil__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @/utils/formatUtil */ \"./src/utils/formatUtil.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar _excluded = [\"style\", \"className\", \"srcUrl\", \"locale\", \"defaultLocale\", \"imageUrlPrefix\", \"imagesUploadUrl\", \"disabled\", \"readOnly\", \"pictureServer\", \"onBlur\", \"onChange\", \"content\", \"toobarMode\", \"placeholder\", \"isDesigner\", \"resize\", \"height\", \"autoHeight\", \"hasFullScreen\", \"imgUploadCallback\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n/*\n * @Description: 富文本编辑器\n * @Author: xiaoman_xie\n * @Date: 2023-05-22 09:54:53\n * @LastEditTime: 2024-08-22 19:13:15\n * @Last Modified by: xiaoman_xie\n */\n\n\n\n\n\n// 引入富文本编辑器主题的js和css\\icon\n\n\n\n// 扩展插件\n// 扩展插件\n // 高级列表，plugins: 'advlist'，创建样式编号和项目符号列表\n // 锚点，  plugins: 'anchor',toolbar: 'anchor',menubar: 'insert'此插件在工具栏上添加了一个锚点/书签按钮，该按钮可在编辑器的光标插入点处插入锚点。它还在菜单anchor下添加菜单项Insert。\n // 自动创建超链接，  plugins: 'autolink'，当用户键入有效的完整URL时，自动链接插件会自动创建超链接。例如www.example.com转换为http://www.example.com。\n // 自动调整大小， plugins: 'autoresize'，该插件会自动将编辑器的大小调整为其中的内容。它通常用于防止编辑器在用户键入可编辑区域时无限扩展。例如，通过给该max_height选项一个值，当达到设定值时，编辑器将停止调整大小。\n // 自动将内容保存在本地浏览器中, plugins: 'autosave',  toolbar: 'restoredraft'工具栏restoredraft， 菜单Restore last draft\n// import 'tinymce/plugins/bbcode'// bbcode输入输出支持 通过此插件，可以在用户提交内容时通过将标签转换[b]为<strong>，然后再转换回的方式，以所见即所得的样式编辑BBCode 。\n // 插入特殊字符  toolbar: 'charmap',menubar: 'insert'\n // 编辑内容的HTML代码  plugins: 'code',toolbar: 'code',menubar: 'tools'\n // 插入并嵌入语法突出显示的代码段,代码高亮   plugins: 'codesample',toolbar: 'codesample'\n// import 'tinymce/plugins/colorpicker'// 从调色板中选择一种颜色,随着TinyMCE 5的发布，颜色选择器插件已合并到编辑器核心中\n// import 'tinymce/plugins/contextmenu'// 右键单击以在TinyMCE中执行操作,在TinyMCE 5版本中，上下文菜单插件已合并到编辑器核心中\n// import 'tinymce/plugins/directionality'// 工具栏按钮，用于设置内容的从左到右或从右到左的方向  plugins: 'directionality',toolbar: 'ltr rtl'\n// import 'tinymce/plugins/emoticons'// 给您的内容带来表情  plugins: 'emoticons',toolbar: 'emoticons'\n// import 'tinymce/plugins/fullpage'// 编辑所有元数据和文档属性，例如标题，关键字和描述,  plugins: 'fullpage',menubar: 'file',toolbar: 'fullpage'这个插件允许用户编辑的某些元数据和文件属性，如title，keywords，和description。这是通过按下对话框添加到工具栏后出现的对话框来完成的。如果code启用了插件，则在源代码视图中fullpage暴露<head>，<body>以及各种meta标签。\n // 将TinyMCE放大到整个屏幕,该插件为TinyMCE添加了全屏编辑功能。按下工具栏按钮时，可编辑区域将填充浏览器的视口。  plugins: 'fullscreen',menubar: 'view',toolbar: 'fullscreen'\n// import 'tinymce/plugins/help'// 显示帮助对话框  plugins: 'help',toolbar: 'help'\n // 插入一条水平线,  plugins: 'hr',toolbar: 'hr'\n // 将图像插入TinyMCE  plugins: 'image',menubar: 'insert',toolbar: 'image',\n // TinyMCE的图像编辑功能,图像工具（imagetools）插件将上下文编辑工具栏添加到编辑器中的图像。如果单击图像时未出现工具栏，则可能是您需要启用imagetools_cors_hosts或imagetools_proxy\n // 自动将CSS类名称填充到“格式”下拉列表中,  plugins: 'importcss',menubar: 'format',content_css: '/my-styles.css'该importcss插件增加了从content_css配置设置中指定的CSS文件自动导入CSS类的功能。\n// import 'tinymce/plugins/insertdatetime'// 将当前日期和/或时间插入TinyMCE,  plugins: 'insertdatetime',menubar: 'insert',toolbar: 'insertdatetime',\n// import 'tinymce/plugins/legacyoutput'//将HTML输出更改为旧的HTML语法，例如font，b和i\n // 将超链接添加到内容 plugins: 'link',menubar: 'insert',toolbar: 'link',   link_context_toolbar: true\n // 规范浏览器之间的列表行为,  plugins: 'lists',toolbar: 'numlist bullist'该lists插件允许您将编号和项目符号列表添加到TinyMCE。\n// import 'tinymce/plugins/media'// 添加HTML5视频和音频元素,  plugins: 'media',menubar: 'insert',toolbar: 'media'\n // 插入一个不间断的空格。  plugins: 'nonbreaking',menubar: 'insert',toolbar: 'nonbreaking'\n// import 'tinymce/plugins/noneditable'// 防止用户更改元素内的内容。模板的理想选择。  plugins: 'noneditable'\n // 添加分页符。  plugins: 'pagebreak',menubar: 'insert',toolbar: 'pagebreak', pagebreak_separator: '<!-- my page break -->'\n // 用于从Microsoft Word复制和粘贴内容的功能的标准版  plugins: 'paste',menubar: 'edit',toolbar: 'paste pastetext',该插件还在菜单下拉菜单和工具栏按钮Paste as text下添加了一个菜单项Edit\n// import 'tinymce/plugins/preview'// 以只读格式显示当前内容的弹出窗口。  plugins: 'preview',menubar: 'view',toolbar: 'preview'\n// import 'tinymce/plugins/print'// 在TinyMCE中打印内容,  plugins: 'print',menubar: 'file',toolbar: 'print'\n// import 'tinymce/plugins/quickbars'// 用户界面控件可更快地创建内容\n// import 'tinymce/plugins/save'// 在TinyMCE工具栏上添加一个保存按钮。  plugins: 'save',toolbar: 'save',save_enablewhendirty: true\n // 在TinyMCE中查找和替换内容。\n// import 'tinymce/plugins/spellchecker'//启用TinyMCE的拼写检查功能。TinyMCE 5.4发行版不推荐使用免费的 TinyMCE拼写检查器插件，已弃用\n// import 'tinymce/plugins/tabfocus'// 在您的Web表单中跳入和跳出TinyMCE控件，此设置影响tabfocus插件的执行。当在可编辑区域内按下Tab键时，此设置可用于更改编辑器的焦点行为\n // 表格编辑功能\n// import 'tinymce/plugins/template'// 您的内容的自定义模板。  plugins: 'template',menubar: 'insert',toolbar: 'template',templates: [{title: 'Some title 1', description: 'Some desc 1', content: 'My content'},{title: 'Some title 2', description: 'Some desc 2', url: 'development.html'}]\n// import 'tinymce/plugins/textcolor'//文字颜色，在版本TinyMCE 5中，文本颜色插件已合并到编辑器核心中\n// import 'tinymce/plugins/textpattern'// 匹配文本中的特殊模式，并对这些模式应用格式或执行的命令,默认模式类似于markdown语法，因此用户可以键入# text以产生标题或**text**使文本变为粗体。\n// import 'tinymce/plugins/toc'// 将简单的目录插入TinyMCE编辑器,toc插件将生成基本目录，并将其插入到编辑器中当前光标所在的位置。该表的项目将从内容的标题中获取。\n// import 'tinymce/plugins/visualblocks'// 允许用户查看块级元素，例如段落,html。  plugins: 'visualblocks',menubar: 'view',toolbar: 'visualblocks'\n// import 'tinymce/plugins/visualchars'// 查看不可见字符，例如不间断空格   plugins: 'visualchars',menubar: 'view',toolbar: 'visualchars'\n// import 'tinymce/plugins/wordcount'// 在TinyMCE状态栏中显示字数统计\n\n\n\n\nvar RichText = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.forwardRef)(function (props, ref) {\n  var _props$style = props.style,\n    style = _props$style === void 0 ? {} : _props$style,\n    className = props.className,\n    srcUrl = props.srcUrl,\n    _props$locale = props.locale,\n    locale = _props$locale === void 0 ? '' : _props$locale,\n    _props$defaultLocale = props.defaultLocale,\n    defaultLocale = _props$defaultLocale === void 0 ? '' : _props$defaultLocale,\n    imageUrlPrefix = props.imageUrlPrefix,\n    imagesUploadUrl = props.imagesUploadUrl,\n    disabled = props.disabled,\n    readOnly = props.readOnly,\n    pictureServer = props.pictureServer,\n    onBlur = props.onBlur,\n    onChange = props.onChange,\n    _props$content = props.content,\n    content = _props$content === void 0 ? '' : _props$content,\n    _props$toobarMode = props.toobarMode,\n    toobarMode = _props$toobarMode === void 0 ? 'floating' : _props$toobarMode,\n    placeholder = props.placeholder,\n    isDesigner = props.isDesigner,\n    resize = props.resize,\n    height = props.height,\n    autoHeight = props.autoHeight,\n    hasFullScreen = props.hasFullScreen,\n    imgUploadCallback = props.imgUploadCallback,\n    others = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(props, _excluded);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState, 2),\n    ready = _useState2[0],\n    setReady = _useState2[1];\n  var domId = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)((0,_utils__WEBPACK_IMPORTED_MODULE_15__.getDomId)());\n  var language = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.getLocale)(locale, defaultLocale);\n  var languageUrl = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.getLocalePath)(srcUrl, language);\n\n  // 富文本加载后回调\n  var initInstanceCallback = function initInstanceCallback(editor) {\n    setReady(true);\n    (0,_utils__WEBPACK_IMPORTED_MODULE_15__.changeIframeCSS)(editor);\n    // editor.execCommand('mceGotoLink', tinymce.get(`${domId.current}`).getBody())\n  };\n  var getContent = function getContent() {\n    var editor = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.getEditor)((tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default()), \"\".concat(domId.current));\n    var curContent = editor === null || editor === void 0 ? void 0 : editor.getContent();\n    return curContent || '';\n  };\n  var updateEditorContent = function updateEditorContent(newContent) {\n    var editor = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.getEditor)((tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default()), \"\".concat(domId.current));\n    var curContent = editor === null || editor === void 0 ? void 0 : editor.getContent();\n    newContent = (0,_utils_formatUtil__WEBPACK_IMPORTED_MODULE_43__.formatImgSrc)(newContent); // 此处还需多处理一遍，处理上级调用ref直接篡改content的场景\n    editor && curContent !== newContent && editor.setContent(newContent);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useImperativeHandle)(ref, function () {\n    return {\n      updateContent: updateEditorContent,\n      getCurContent: getContent\n    };\n  }, []);\n  var xssFilterContent = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    return (0,_utils__WEBPACK_IMPORTED_MODULE_42__.htmlXSSFilters)((0,_utils_formatUtil__WEBPACK_IMPORTED_MODULE_43__.formatImgSrc)(content));\n  }, [content]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (ready) {\n      updateEditorContent(xssFilterContent);\n    }\n  }, [ready, xssFilterContent]);\n  var addPlugins = function addPlugins(editor) {\n    (0,_addPlugins__WEBPACK_IMPORTED_MODULE_41__.addImage)((tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default()));\n    // 暂时隐藏\n    // addLink(editor)\n  };\n  var handleChange = function handleChange(v) {\n    var result = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.filterSrc)((0,_utils__WEBPACK_IMPORTED_MODULE_42__.htmlXSSFilters)(v));\n    onChange === null || onChange === void 0 || onChange(result);\n  };\n  var handleBlur = function handleBlur(v) {\n    var result = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.filterSrc)((0,_utils__WEBPACK_IMPORTED_MODULE_42__.htmlXSSFilters)(v));\n    onBlur === null || onBlur === void 0 || onBlur(result);\n  };\n  var setup = function setup(editor) {\n    (0,_addIcon__WEBPACK_IMPORTED_MODULE_40__.addIcons)(editor);\n    addPlugins(editor);\n    (0,_utils__WEBPACK_IMPORTED_MODULE_15__.addEditorListener)(editor, handleChange, handleBlur);\n  };\n  var uploadCallback = function uploadCallback(status) {\n    if (status === _utils__WEBPACK_IMPORTED_MODULE_15__.UPLOAD_STATUS.success) {\n      imgUploadCallback === null || imgUploadCallback === void 0 || imgUploadCallback();\n    }\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (!readOnly) {\n      setReady(false);\n      tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default().init((0,_utils__WEBPACK_IMPORTED_MODULE_15__.getConfig)({\n        selector: \"#\".concat(domId.current),\n        initInstanceCallback: initInstanceCallback,\n        setup: setup,\n        toobarMode: toobarMode,\n        readonly: disabled,\n        srcUrl: srcUrl,\n        language: language,\n        languageUrl: languageUrl,\n        imageUrlPrefix: imageUrlPrefix,\n        imagesUploadUrl: imagesUploadUrl,\n        uploadCallback: uploadCallback,\n        pictureServer: pictureServer,\n        placeholder: placeholder,\n        resize: resize,\n        hasFullScreen: hasFullScreen\n      }));\n    }\n  }, [readOnly]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    var _editor$setMode;\n    var editor = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.getEditor)((tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default()), \"\".concat(domId.current));\n    editor === null || editor === void 0 || (_editor$setMode = editor.setMode) === null || _editor$setMode === void 0 || _editor$setMode.call(editor, disabled ? 'readonly' : 'design'); // design为编辑态\n  }, [disabled]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    return function () {\n      if (!readOnly) {\n        var editor = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.getEditor)((tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default()), \"\".concat(domId.current));\n        if (!editor) return;\n        editor.off('change blur focus Redo Undo cut paste StoreDraft');\n        tinymce_tinymce__WEBPACK_IMPORTED_MODULE_17___default().remove(editor);\n      }\n    };\n  }, []);\n  var editorClassName = classnames__WEBPACK_IMPORTED_MODULE_16___default()((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_10__[\"default\"])({}, _index_less__WEBPACK_IMPORTED_MODULE_14__[\"default\"].wrapper, true));\n  var readOnlyStyle = !autoHeight ? {\n    height: \"\".concat(height, \"px\")\n  } : {};\n  var wrapperStyle = _objectSpread({\n    height: readOnly ? !autoHeight ? \"\".concat(height, \"px\") : 'auto' : \"\".concat(height, \"px\")\n  }, style);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_9__[\"default\"])({\n    className: editorClassName,\n    style: wrapperStyle\n  }, others), !readOnly ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: _index_less__WEBPACK_IMPORTED_MODULE_14__[\"default\"].richtext_wrapper\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"textarea\", {\n    id: domId.current,\n    style: {\n      width: '100%'\n    }\n  })) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: _index_less__WEBPACK_IMPORTED_MODULE_14__[\"default\"].readonly_richtext,\n    style: readOnlyStyle,\n    dangerouslySetInnerHTML: {\n      __html: xssFilterContent || '-'\n    }\n  }), isDesigner && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: _index_less__WEBPACK_IMPORTED_MODULE_14__[\"default\"].mask\n  }));\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (RichText);\n\n//# sourceURL=webpack://nocode-component/./src/base/web/RichText/RichTextField.tsx?");

/***/ }),

/***/ "./src/base/web/RichText/addIcon.ts":
/*!******************************************!*\
  !*** ./src/base/web/RichText/addIcon.ts ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   addIcons: function() { return /* binding */ addIcons; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__);\n\n/*\n * @Description: 富文本定制图标集（svg中的id必须对应上，目前编号用到14）\n * @Author: xiaoman_xie\n * @Date: 2023-05-26 16:06:10\n * @LastEditTime: 2023-07-06 15:04:51\n * @Last Modified by: xiaoman_xie\n */\nvar height = '16px';\nvar width = '16px';\nvar addIcons = function addIcons(editor) {\n  var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20;\n  editor.ui.registry.addIcon('undo', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M62.5 156.25C62.5 138.991102 76.491102 125 93.75 125C109.77612 125 122.984599 137.063756 124.789758 152.60559L125 156.25L125 381.15625L341.421144 164.770963C477.782428 28.409679 698.867753 28.409679 835.229038 164.770963C969.239266 298.781191 971.549784 514.619125 842.1606 651.450997L835.229038 658.578856L565.460806 928.347087C553.256922 940.550972 533.470516 940.550972 521.266631 928.347087C510.001509 917.081962 509.134959 899.355994 518.666988 887.096894L521.266631 884.152913L791.034863 614.384681C902.988378 502.431166 902.988378 320.918653 791.034863 208.965137C681.2343 99.164573 504.524359 97.053024 392.150359 202.630489L385.615319 208.965137L157.0625 437.5L406.25 437.5C423.508897 437.5 437.5 451.491103 437.5 468.75C437.5 486.008897 423.508897 500 406.25 500L93.75 500C76.491102 500 62.5 486.008897 62.5 468.75L62.5 156.25z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('redo', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context2 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context2, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M937.5 156.25C937.5 138.991102 923.508897 125 906.25 125C890.223881 125 877.0154 137.063756 875.210241 152.60559L875 156.25L875 381.15625L658.578856 164.770963C522.217572 28.409679 301.132248 28.409679 164.770963 164.770963C30.760736 298.781191 28.450214 514.619125 157.8394 651.450997L164.770963 658.578856L434.539194 928.347087C446.743078 940.550972 466.529484 940.550972 478.733369 928.347087C489.998491 917.081962 490.865041 899.355994 481.333013 887.096894L478.733369 884.152913L208.965137 614.384681C97.011621 502.431166 97.011621 320.918653 208.965137 208.965137C318.7657 99.164573 495.475641 97.053024 607.849641 202.630489L614.384681 208.965137L842.9375 437.5L593.75 437.5C576.491103 437.5 562.5 451.491103 562.5 468.75C562.5 486.008897 576.491103 500 593.75 500L906.25 500C923.508897 500 937.5 486.008897 937.5 468.75L937.5 156.25z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('bold', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context3 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context3, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M531.25 62.5C669.321188 62.5 781.25 174.428813 781.25 312.5C781.25 365.750597 764.601131 415.112641 736.224728 455.664797L727.364903 467.561228L722.5625 473.25L729.877616 477.776544C791.319266 517.738962 834.105172 583.969519 842.313978 660.546863L843.444044 675.022478L843.75 687.5C843.75 821.387213 738.501972 930.692431 606.227522 937.194044L593.75 937.5L218.75 937.5C186.69776 937.5 160.280803 913.372488 156.670483 882.288822L156.25 875L156.25 125C156.25 92.94776 180.377512 66.530802 211.46118 62.920483L218.75 62.5L531.25 62.5zM281.25 562.5L281.25 812.5L593.75 812.5C662.785594 812.5 718.75 756.535594 718.75 687.5C718.75 621.602388 667.757638 567.614681 603.078897 562.842859L593.75 562.5L281.25 562.5zM281.25 437.5L531.25 437.5L540.578897 437.157141C605.257638 432.385319 656.25 378.397613 656.25 312.5C656.25 246.602388 605.257638 192.61468 540.578897 187.842858L531.25 187.5L281.25 187.5L281.25 437.5z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('italic', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context4 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context4, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M562.5 125L437.5 125C420.241103 125 406.25 111.008898 406.25 93.75C406.25 76.491102 420.241103 62.5 437.5 62.5L750 62.5C767.258897 62.5 781.25 76.491102 781.25 93.75C781.25 111.008898 767.258897 125 750 125L625 125L469.528197 875L593.75 875C611.008897 875 625 888.991103 625 906.25C625 923.508897 611.008897 937.5 593.75 937.5L281.25 937.5C263.991102 937.5 250 923.508897 250 906.25C250 888.991103 263.991102 875 281.25 875L407.028197 875L562.5 125z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('underline', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context5 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context5, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M156.25 875L843.75 875C861.008897 875 875 888.991103 875 906.25C875 923.508897 861.008897 937.5 843.75 937.5L156.25 937.5C138.991102 937.5 125 923.508897 125 906.25C125 888.991103 138.991102 875 156.25 875zM218.75 93.75L218.75 481.770834L218.75 481.770834C218.75 629.605172 344.379384 750 500 750C655.620616 750 781.25 629.605172 781.25 481.770834L781.25 93.75C781.25 76.491102 795.241103 62.5 812.5 62.5C829.758897 62.5 843.75 76.491102 843.75 93.75L843.75 481.770834L843.75 481.770834C843.75 664.732047 689.557353 812.5 500 812.5C310.442646 812.5 156.25 664.732047 156.25 481.770834L156.25 93.75C156.25 76.491102 170.241102 62.5 187.5 62.5C204.758898 62.5 218.75 76.491102 218.75 93.75z\\\"></path></svg>\"));\n  // id=\"tox-icon-text-color__color\", 添加对应id，图标跟随选择色号发生改变\n  editor.ui.registry.addIcon('text-color', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context6 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context6, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 32 32\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n    <title>\\u6587\\u5B57\\u989C\\u8272</title>\\n    <g id=\\\"\\u6587\\u5B57\\u989C\\u8272\\\" stroke=\\\"none\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\">\\n      <path id=\\\"tox-icon-text-color__color\\\" d=\\\"M5,27 L27,27 C27.5522847,27 28,27.4477153 28,28 L28,30 C28,30.5522847 27.5522847,31 27,31 L5,31 C4.44771525,31 4,30.5522847 4,30 L4,28 C4,27.4477153 4.44771525,27 5,27 Z\\\" fill-rule=\\\"nonzero\\\"></path>\\n      <path d=\\\"M16.6302059,2 L27.1178273,24.0214967 C27.2365502,24.2708147 27.1306819,24.5691708 26.8813638,24.6878937 L25.9785033,25.1178273 C25.7568945,25.2233739 25.4965331,25.1514522 25.3580281,24.9590626 L25.3121233,24.8813557 L21.0822059,16 L10.9162059,16 L6.68787673,24.8813557 C6.58236873,25.102983 6.3349106,25.2112661 6.1061153,25.1492166 L6.02149668,25.1178273 L5.11863616,24.6878937 C4.86931811,24.5691708 4.76344981,24.2708147 4.88217269,24.0214967 L15.3682059,2 L16.6302059,2 Z M16,5.324 L11.8682059,14 L20.1302059,14 L16,5.324 Z\\\" id=\\\"tx\\\" fill=\\\"#212121\\\"></path>\\n    </g>\\n  </svg>\"));\n  // id=\"tox-icon-highlight-bg-color__color\", 添加对应id，图标跟随选择色号发生改变\n  editor.ui.registry.addIcon('highlight-bg-color', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context7 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context7, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 32 32\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n    <title>\\u80CC\\u666F\\u989C\\u8272</title>\\n    <g id=\\\"\\u80CC\\u666F\\u989C\\u8272\\\" stroke=\\\"none\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\">\\n      <path d=\\\"M26,20 C27.3333333,21.930287 28,23.2636203 28,24 C28,25.1045695 27.1045695,26 26,26 C24.8954305,26 24,25.1045695 24,24 C24,23.2636203 24.6666667,21.930287 26,20 Z M15.8821193,1.21689177 L15.981316,1.30293149 L26.0747838,11.2172495 C27.2590605,12.3805064 27.3064316,14.2376083 26.216897,15.4563728 L26.0747838,15.6052973 L16.4174671,25.0912055 C15.2331904,26.2544624 13.3425311,26.3009927 12.1017437,25.2307964 L11.9501282,25.0912055 L4.92521619,18.1909793 C3.74093947,17.0277224 3.6935684,15.1706205 4.78310298,13.951856 L4.92521619,13.8029315 L15.3262613,3.58464769 L14.492203,2.76561409 C14.1126272,2.39277533 14.083429,1.80610369 14.4046086,1.40036757 L14.492203,1.30293149 C14.8717789,0.930092734 15.4690516,0.90141283 15.8821193,1.21689177 Z M16.8162024,5.04814368 L8.302,13.411 L24.8940762,13.4112734 C24.8940762,13.187302 24.8204726,12.9633306 24.6732653,12.7773682 L24.5856708,12.6799321 L16.8162024,5.04814368 Z\\\" id=\\\"tx\\\" fill=\\\"#212121\\\"></path>\\n      <path id=\\\"tox-icon-highlight-bg-color__color\\\" d=\\\"M5,27 L27,27 C27.5522847,27 28,27.4477153 28,28 L28,30 C28,30.5522847 27.5522847,31 27,31 L5,31 C4.44771525,31 4,30.5522847 4,30 L4,28 C4,27.4477153 4.44771525,27 5,27 Z\\\" fill-rule=\\\"nonzero\\\"></path>\\n    </g>\\n  </svg>\"));\n  editor.ui.registry.addIcon('unordered-list', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context8 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context8, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M281.25 843.75L906.25 843.75C923.508897 843.75 937.5 857.741103 937.5 875C937.5 892.258897 923.508897 906.25 906.25 906.25L281.25 906.25C263.991102 906.25 250 892.258897 250 875C250 857.741103 263.991102 843.75 281.25 843.75zM281.25 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L281.25 531.25C263.991102 531.25 250 517.258897 250 500C250 482.741103 263.991102 468.75 281.25 468.75zM281.25 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L281.25 156.25C263.991102 156.25 250 142.258898 250 125C250 107.741102 263.991102 93.75 281.25 93.75zM110.111237 174.106598C135.999584 174.106598 156.986237 153.119946 156.986237 127.231598C156.986237 101.34325 135.999584 80.356598 110.111237 80.356598C84.222889 80.356598 63.236237 101.34325 63.236237 127.231598C63.236237 153.119946 84.222889 174.106598 110.111237 174.106598zM107.589722 547.153472C133.478069 547.153472 154.464722 526.166822 154.464722 500.278472C154.464722 474.390125 133.478069 453.403472 107.589722 453.403472C81.701374 453.403472 60.714722 474.390125 60.714722 500.278472C60.714722 526.166822 81.701374 547.153472 107.589722 547.153472zM108.795166 922.9393C134.683514 922.9393 155.670166 901.952647 155.670166 876.0643C155.670166 850.175953 134.683514 829.1893 108.795166 829.1893C82.906818 829.1893 61.920166 850.175953 61.920166 876.0643C61.920166 901.952647 82.906818 922.9393 108.795166 922.9393z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('ordered-list', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context9 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context9, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M312.5 843.75L906.25 843.75C923.508897 843.75 937.5 857.741103 937.5 875C937.5 892.258897 923.508897 906.25 906.25 906.25L312.5 906.25C295.241102 906.25 281.25 892.258897 281.25 875C281.25 857.741103 295.241102 843.75 312.5 843.75zM312.5 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L312.5 531.25C295.241102 531.25 281.25 517.258897 281.25 500C281.25 482.741103 295.241102 468.75 312.5 468.75zM312.5 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L312.5 156.25C295.241102 156.25 281.25 142.258898 281.25 125C281.25 107.741102 295.241102 93.75 312.5 93.75zM187.5 62.5L187.5 250L126.190476 250L126.190476 127.137827C116.269841 133.50939 106.671627 138.665325 97.395833 142.605634C88.12004 146.545942 76.488095 150.318578 62.5 153.923541L62.5 111.921529C83.134921 106.304494 99.156746 99.555667 110.565476 91.67505C121.974206 83.794433 130.902778 74.069417 137.351191 62.5L187.5 62.5zM218.75 593.75L62.5 593.75C64.290098 578.575622 69.724325 564.302481 78.80268 550.930584C87.881035 537.558684 104.908279 521.776494 129.884411 503.584003C145.142867 492.433769 154.903164 483.966297 159.165303 478.181591C163.427441 472.396881 165.558511 466.9056 165.558511 461.707747C165.558511 456.090709 163.448752 451.291081 159.229235 447.308853C155.009718 443.326625 149.703355 441.335513 143.310147 441.335513C136.661211 441.335513 131.226984 443.389503 127.007467 447.497484C122.78795 451.605466 119.953628 458.857309 118.504501 469.253019L66.335925 465.103119C68.381751 450.683266 72.132433 439.428237 77.587971 431.338028C83.043508 423.247819 90.736668 417.043931 100.667451 412.726359C110.598234 408.408787 124.343631 406.25 141.903642 406.25C160.230838 406.25 174.487691 408.303991 184.674202 412.411972C194.860713 416.519953 202.873534 422.828638 208.712664 431.338028C214.551793 439.847419 217.471358 449.383803 217.471358 459.947184C217.471358 471.181253 214.12558 481.912306 207.434022 492.140341C200.742465 502.368378 188.574059 513.602447 170.928805 525.842556C160.443944 532.968644 153.432726 537.956909 149.895151 540.807344C146.357576 543.657781 142.201991 547.388497 137.428396 551.999497L218.75 551.999497L218.75 593.75zM115.013419 805.532653L65.338563 796.998681C69.467382 781.827178 77.402457 770.201188 89.143786 762.120713C100.885116 754.040238 117.507913 750 139.01218 750C163.699078 750 181.547619 754.411278 192.557803 763.233837C203.567988 772.056397 209.07308 783.146438 209.07308 796.503956C209.07308 804.337072 206.836636 811.4281 202.363749 817.777044C197.890862 824.125991 191.138522 829.691622 182.10673 834.473944C189.418181 836.205475 195.00929 838.225594 198.880058 840.5343C205.159304 844.244722 210.040772 849.130113 213.524463 855.190469C217.008154 861.250825 218.75 868.486147 218.75 876.896438C218.75 887.450528 215.868428 897.571734 210.105285 907.260059C204.342142 916.948384 196.041495 924.410456 185.203344 929.646272C174.365194 934.882091 160.12937 937.5 142.495871 937.5C125.292458 937.5 111.723266 935.562334 101.788295 931.687006C91.853324 927.811675 83.681703 922.142975 77.273431 914.680903C70.86516 907.218831 65.940682 897.839709 62.5 886.543534L115.013419 879.864775C117.077828 890.006597 120.281964 897.035784 124.625826 900.952341C128.969688 904.868897 134.496284 906.827178 141.205615 906.827178C148.259015 906.827178 154.129679 904.353563 158.817609 899.406331C163.505539 894.459103 165.849505 887.862797 165.849505 879.617416C165.849505 871.207125 163.591557 864.693272 159.075661 860.075856C154.559765 855.458444 148.431049 853.149738 140.689513 853.149738C136.560694 853.149738 130.883567 854.139181 123.658134 856.118075L126.367671 820.126978C129.292252 820.539247 131.571704 820.745381 133.206028 820.745381C140.087393 820.745381 145.829033 818.642809 150.430946 814.437666C155.032858 810.232519 157.333815 805.244063 157.333815 799.472297C157.333815 793.947891 155.613474 789.536609 152.172791 786.238456C148.732108 782.940303 144.00117 781.291228 137.979975 781.291228C131.786747 781.291228 126.754748 783.084597 122.88398 786.671337C119.013212 790.258081 116.389692 796.545184 115.013419 805.532653z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('indent', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context10 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context10, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M468.75 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L468.75 531.25C451.491103 531.25 437.5 517.258897 437.5 500C437.5 482.741103 451.491103 468.75 468.75 468.75zM93.75 843.75L906.25 843.75C923.508897 843.75 937.5 857.741103 937.5 875C937.5 892.258897 923.508897 906.25 906.25 906.25L93.75 906.25C76.491102 906.25 62.5 892.258897 62.5 875C62.5 857.741103 76.491102 843.75 93.75 843.75zM93.75 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L93.75 156.25C76.491102 156.25 62.5 142.258898 62.5 125C62.5 107.741102 76.491102 93.75 93.75 93.75zM299.288204 544.640241L139.448943 646.103963C116.135229 660.903181 85.238593 654.000819 70.439375 630.687103C65.353378 622.674959 62.652588 613.380841 62.652588 603.89075L62.652588 390.771734C62.652588 363.157497 85.03835 340.771734 112.652588 340.771734C122.894549 340.771734 132.889463 343.916994 141.28573 349.782184L301.124991 461.437478C323.762894 477.251125 329.295047 508.422266 313.4814 531.060169C309.69482 536.480816 304.870673 541.096569 299.288204 544.640241z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('outdent', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context11 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context11, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M95.369694 454.686847L255.208955 353.223125C278.522668 338.423906 309.419305 345.326269 324.218522 368.639984C329.304522 376.652128 332.005309 385.946247 332.005309 395.436338L332.005309 608.555353C332.005309 636.169591 309.619547 658.555353 282.00531 658.555353C271.763349 658.555353 261.768436 655.410094 253.372168 649.544903L93.532907 537.889609C70.895004 522.075962 65.362852 490.904822 81.176499 468.266916C84.963078 462.846272 89.787225 458.230519 95.369694 454.686847zM468.75 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L468.75 531.25C451.491103 531.25 437.5 517.258897 437.5 500C437.5 482.741103 451.491103 468.75 468.75 468.75zM93.75 843.75L906.25 843.75C923.508897 843.75 937.5 857.741103 937.5 875C937.5 892.258897 923.508897 906.25 906.25 906.25L93.75 906.25C76.491102 906.25 62.5 892.258897 62.5 875C62.5 857.741103 76.491102 843.75 93.75 843.75zM93.75 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L93.75 156.25C76.491102 156.25 62.5 142.258898 62.5 125C62.5 107.741102 76.491102 93.75 93.75 93.75z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('align-left', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context12 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context12, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M93.75 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L93.75 156.25C76.491102 156.25 62.5 142.258898 62.5 125C62.5 107.741102 76.491102 93.75 93.75 93.75zM93.75 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L93.75 531.25C76.491102 531.25 62.5 517.258897 62.5 500C62.5 482.741103 76.491102 468.75 93.75 468.75zM93.75 843.75L468.75 843.75C486.008897 843.75 500 857.741103 500 875C500 892.258897 486.008897 906.25 468.75 906.25L93.75 906.25C76.491102 906.25 62.5 892.258897 62.5 875C62.5 857.741103 76.491102 843.75 93.75 843.75z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('align-center', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context13 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context13, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M281.25 93.75L718.75 93.75C736.008897 93.75 750 107.741102 750 125C750 142.258898 736.008897 156.25 718.75 156.25L281.25 156.25C263.991102 156.25 250 142.258898 250 125C250 107.741102 263.991102 93.75 281.25 93.75zM93.75 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L93.75 531.25C76.491102 531.25 62.5 517.258897 62.5 500C62.5 482.741103 76.491102 468.75 93.75 468.75zM187.5 843.75L812.5 843.75C829.758897 843.75 843.75 857.741103 843.75 875C843.75 892.258897 829.758897 906.25 812.5 906.25L187.5 906.25C170.241102 906.25 156.25 892.258897 156.25 875C156.25 857.741103 170.241102 843.75 187.5 843.75z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('align-right', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context14 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context14, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M93.75 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L93.75 156.25C76.491102 156.25 62.5 142.258898 62.5 125C62.5 107.741102 76.491102 93.75 93.75 93.75zM93.75 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L93.75 531.25C76.491102 531.25 62.5 517.258897 62.5 500C62.5 482.741103 76.491102 468.75 93.75 468.75zM531.25 843.75L906.25 843.75C923.508897 843.75 937.5 857.741103 937.5 875C937.5 892.258897 923.508897 906.25 906.25 906.25L531.25 906.25C513.991103 906.25 500 892.258897 500 875C500 857.741103 513.991103 843.75 531.25 843.75z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('align-justify', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context15 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context15, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M93.75 93.75L906.25 93.75C923.508897 93.75 937.5 107.741102 937.5 125C937.5 142.258898 923.508897 156.25 906.25 156.25L93.75 156.25C76.491102 156.25 62.5 142.258898 62.5 125C62.5 107.741102 76.491102 93.75 93.75 93.75zM93.75 468.75L906.25 468.75C923.508897 468.75 937.5 482.741103 937.5 500C937.5 517.258897 923.508897 531.25 906.25 531.25L93.75 531.25C76.491102 531.25 62.5 517.258897 62.5 500C62.5 482.741103 76.491102 468.75 93.75 468.75zM93.75 843.75L906.25 843.75C923.508897 843.75 937.5 857.741103 937.5 875C937.5 892.258897 923.508897 906.25 906.25 906.25L93.75 906.25C76.491102 906.25 62.5 892.258897 62.5 875C62.5 857.741103 76.491102 843.75 93.75 843.75z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('customimage', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context16 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context16, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M875 156.25C909.517797 156.25 937.5 184.232203 937.5 218.75L937.5 812.5C937.5 847.017797 909.517797 875 875 875L125 875C90.482203 875 62.5 847.017797 62.5 812.5L62.5 218.75C62.5 184.232203 90.482203 156.25 125 156.25L875 156.25zM718.25 560.875L466.625 812.5L875 812.5L875 720.40625L718.25 560.875zM353.125 628.25L168.875 812.5L378.21875 812.5L454.125 736.59375L353.125 628.25zM875 218.75L125 218.75L125 768L354.702344 538.309978L498.375 692.375L718.67045 472.097956L875 631.25L875 218.75zM350 350C377.614238 350 400 372.385763 400 400C400 427.614238 377.614238 450 350 450C322.385763 450 300 427.614238 300 400C300 372.385763 322.385763 350 350 350z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('link', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context17 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context17, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M297.761097 392.879688C309.964981 405.083572 309.964981 424.869975 297.761097 437.073859L212.73787 522.097087C139.514565 595.320391 139.514565 714.038825 212.73787 787.262131C285.961175 860.485434 404.679609 860.485434 477.902913 787.262131L562.376834 702.788209C574.580716 690.584325 594.367122 690.584325 606.571006 702.788209C618.774891 714.992094 618.774891 734.7785 606.571006 746.982384L522.097087 831.456303C424.466013 929.087378 266.174769 929.087378 168.543696 831.456303C70.912623 733.825231 70.912623 575.533988 168.543696 477.902913L253.566923 392.879688C265.770807 380.675803 285.557213 380.675803 297.761097 392.879688zM654.679609 345.320391C666.883494 357.524275 666.883494 377.310681 654.679609 389.514566L389.514566 654.679609C377.310681 666.883494 357.524275 666.883494 345.320391 654.679609C333.116506 642.475725 333.116506 622.689319 345.320391 610.485434L610.485434 345.320391C622.689319 333.116506 642.475725 333.116506 654.679609 345.320391zM831.456303 168.543696C929.087378 266.174769 929.087378 424.466013 831.456303 522.097087L741.863059 611.690331C729.659175 623.894216 709.872772 623.894216 697.668888 611.690331C685.465003 599.486447 685.465003 579.700041 697.668888 567.496156L787.262131 477.902913C860.485434 404.679609 860.485434 285.961175 787.262131 212.73787C714.038825 139.514565 595.320391 139.514565 522.097087 212.73787L434.435988 300.39897C422.232103 312.602853 402.445697 312.602853 390.241813 300.39897C378.037928 288.195086 378.037928 268.40868 390.241813 256.204796L477.902913 168.543696C575.533988 70.912623 733.825231 70.912623 831.456303 168.543696z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('unlink', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context18 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context18, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M266.511097 361.629688C278.714981 373.833572 278.714981 393.619975 266.511097 405.823859L181.48787 490.847088C108.264565 564.070391 108.264565 682.788825 181.48787 756.012131C254.711175 829.235434 373.429609 829.235434 446.652913 756.012131L531.126834 671.538209C543.330716 659.334325 563.117122 659.334325 575.321006 671.538209C587.524891 683.742094 587.524891 703.5285 575.321006 715.732384L490.847088 800.206303C393.216013 897.837378 234.924769 897.837378 137.293696 800.206303C39.662623 702.575231 39.662623 544.283988 137.293696 446.652913L222.316923 361.629688C234.520807 349.425803 254.307213 349.425803 266.511097 361.629688zM623.429609 314.070391C635.633494 326.274275 635.633494 346.060681 623.429609 358.264566L358.264566 623.429609C346.060681 635.633494 326.274275 635.633494 314.070391 623.429609C301.866508 611.225725 301.866508 591.439319 314.070391 579.235434L579.235434 314.070391C591.439319 301.866508 611.225725 301.866508 623.429609 314.070391zM800.206303 137.293696C897.837378 234.924769 897.837378 393.216013 800.206303 490.847088L710.613059 580.440331C698.409175 592.644216 678.622772 592.644216 666.418888 580.440331C654.215003 568.236447 654.215003 548.450041 666.418888 536.246156L756.012131 446.652913C829.235434 373.429609 829.235434 254.711175 756.012131 181.48787C682.788825 108.264565 564.070391 108.264565 490.847088 181.48787L403.185988 269.14897C390.982103 281.352854 371.195697 281.352854 358.991813 269.14897C346.787928 256.945086 346.787928 237.15868 358.991813 224.954796L446.652913 137.293696C544.283988 39.662623 702.575231 39.662623 800.206303 137.293696zM711.987863 665.813106L781.25 735.09375L850.512138 665.813106C863.262944 653.062297 883.936088 653.062297 896.686894 665.813106C909.437703 678.563913 909.437703 699.237056 896.686894 711.987863L827.40625 781.25L896.686894 850.512138C909.437703 863.262944 909.437703 883.936088 896.686894 896.686894C883.936088 909.437703 863.262944 909.437703 850.512138 896.686894L781.25 827.40625L711.987863 896.686894C699.237056 909.437703 678.563913 909.437703 665.813106 896.686894C653.062297 883.936088 653.062297 863.262944 665.813106 850.512138L735.09375 781.25L665.813106 711.987863C653.062297 699.237056 653.062297 678.563913 665.813106 665.813106C678.563913 653.062297 699.237056 653.062297 711.987863 665.813106z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('table', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context19 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context19, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M875 156.25C909.517797 156.25 937.5 184.232203 937.5 218.75L937.5 812.5C937.5 847.017797 909.517797 875 875 875L125 875C90.482203 875 62.5 847.017797 62.5 812.5L62.5 218.75C62.5 184.232203 90.482203 156.25 125 156.25L875 156.25zM468.75 656.25L125 656.25L125 812.5L468.75 812.5L468.75 656.25zM875 656.25L531.25 656.25L531.25 812.5L875 812.5L875 656.25zM125 437.5L125 593.75L468.75 593.75L468.75 437.5L125 437.5zM875 218.75L125 218.75L125 375L875 375L875 218.75zM531.25 593.75L875 593.75L875 437.5L531.25 437.5L531.25 593.75z\\\"></path></svg>\"));\n  editor.ui.registry.addIcon('fullscreen', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context20 = \"<svg class=\\\"icon\\\" width=\".concat(width, \" height=\")).call(_context20, height, \" style=\\\"vertical-align:middle;fill:currentColor;overflow:hidden;\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M122.070313 585.592018C138.924705 585.592018 152.587891 599.255203 152.587891 616.109595L152.526855 795.797095L332.543798 609.881781C344.078447 597.965967 363.088805 597.656972 375.00462 609.191621L375.149329 609.332648C387.090602 621.048614 387.337517 640.206006 375.702171 652.225849L208.312988 825.09397L382.04553 825.126215C398.581915 825.126215 411.987305 838.531604 411.987305 855.067993C411.987305 871.604376 398.581915 885.009766 382.04553 885.009766L121.49451 885.009766C104.958124 885.009766 91.552734 871.604376 91.552734 855.067993L91.552734 616.109595C91.552734 599.255203 105.21592 585.592018 122.070313 585.592018zM854.492188 570.621131C871.346582 570.621131 885.009766 584.284315 885.009766 601.138709L885.009766 601.138709L885.009766 840.097101C885.009766 856.63349 871.604376 870.038879 855.067993 870.038879L855.067993 870.038879L594.516971 870.038879C577.980585 870.038879 564.575195 856.63349 564.575195 840.097101C564.575195 823.560718 577.980585 810.155328 594.516971 810.155328L594.516971 810.155328L823.974609 810.123084L823.974609 601.138709C823.974609 584.284315 837.637793 570.621131 854.492188 570.621131zM855.067993 91.552734C871.604376 91.552734 885.009766 104.958124 885.009766 121.49451L885.009766 360.452904C885.009766 377.307297 871.346582 390.970482 854.492188 390.970482C837.637793 390.970482 823.974609 377.307297 823.974609 360.452904L824.035645 180.765404L644.018701 366.680719C632.484052 378.596533 613.473693 378.905528 601.55788 367.370879L601.413171 367.229852C589.471898 355.513887 589.224983 336.356493 600.86033 324.336654L768.249512 151.468529L594.516971 151.436284C577.980585 151.436284 564.575195 138.030895 564.575195 121.49451C564.575195 104.958124 577.980585 91.552734 594.516971 91.552734L855.067993 91.552734zM382.04553 91.552734C398.581915 91.552734 411.987305 104.958124 411.987305 121.49451C411.987305 138.030895 398.581915 151.436284 382.04553 151.436284L382.04553 151.436284L152.587891 151.468529L152.587891 360.452904C152.587891 377.307297 138.924705 390.970482 122.070313 390.970482C105.21592 390.970482 91.552734 377.307297 91.552734 360.452904L91.552734 360.452904L91.552734 121.49451C91.552734 104.958124 104.958124 91.552734 121.49451 91.552734L121.49451 91.552734z\\\"></path></svg>\"));\n};\n\n//# sourceURL=webpack://nocode-component/./src/base/web/RichText/addIcon.ts?");

/***/ }),

/***/ "./src/base/web/RichText/addPlugins.ts":
/*!*********************************************!*\
  !*** ./src/base/web/RichText/addPlugins.ts ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   addImage: function() { return /* binding */ addImage; },\n/* harmony export */   addLink: function() { return /* binding */ addLink; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _utils_webTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/webTools */ \"./src/utils/webTools.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/base/web/RichText/utils.js\");\n\n\n\n\n/*\n* @Description: \n* @Author: xiaoman_xie\n* @Date: 2023-05-23 17:26:59\n * @LastEditTime: 2023-06-27 19:29:39\n* @Last Modified by: xiaoman_xie\n*/\n\n\nvar pickFile = function pickFile(tinymce, editor) {\n  var tinyEnv = tinymce.util.Tools.resolve('tinymce.Env');\n  var tinyPromise = tinymce.util.Tools.resolve('tinymce.util.Promise');\n  return new tinyPromise(function (resolve, reject) {\n    var fileInput = document.createElement('input');\n    fileInput.type = 'file';\n    fileInput.accept = 'image/*';\n    fileInput.style.position = 'fixed';\n    fileInput.style.left = '0';\n    fileInput.style.top = '0';\n    fileInput.style.opacity = '0.001';\n    document.body.appendChild(fileInput);\n    var changeHandler = function changeHandler(e) {\n      var files = e === null || e === void 0 ? void 0 : e.currentTarget.files;\n      var file = files === null || files === void 0 ? void 0 : files[0];\n      if (file) {\n        if (!(0,_utils__WEBPACK_IMPORTED_MODULE_5__.checkImageSize)(file)) return;\n        var fileName = file.name;\n        var fileType = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.getFileType)(fileName);\n        if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(_utils__WEBPACK_IMPORTED_MODULE_5__.IMAGE_ACCEPT_TYPE).call(_utils__WEBPACK_IMPORTED_MODULE_5__.IMAGE_ACCEPT_TYPE, fileType)) {\n          resolve(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default()(Array.prototype).call(e.target.files));\n        } else {\n          reject('上传文件类型不符');\n        }\n      } else {\n        reject('上传失败');\n      }\n    };\n    fileInput.addEventListener('change', changeHandler);\n    var cancelHandler = function cancelHandler(e) {\n      var cleanup = function cleanup() {\n        resolve([]);\n        fileInput.parentNode.removeChild(fileInput);\n      };\n      if (tinyEnv.os.isAndroid() && e.type !== 'remove') {\n        __webpack_require__.g.setEditorTimeout(editor, cleanup, 0);\n      } else {\n        cleanup();\n      }\n      editor.off('focusin remove', cancelHandler);\n    };\n    editor.on('focusin remove', cancelHandler);\n    fileInput.click();\n  });\n};\nvar unique = 0;\nvar generate = function generate(prefix) {\n  var date = new Date();\n  var time = date.getTime();\n  var random = Math.floor(Math.random() * 1000000000);\n  unique++;\n  return prefix + '_' + random + unique + String(time);\n};\nvar addImage = function addImage(tinymce) {\n  var tinyPromise = tinymce.util.Tools.resolve('tinymce.util.Promise');\n  var blobToBase64 = function blobToBase64(blob) {\n    return new tinyPromise(function (resolve) {\n      var reader = new FileReader();\n      reader.onloadend = function () {\n        resolve(reader.result.split(',')[1]);\n      };\n      reader.readAsDataURL(blob);\n    });\n  };\n  var insertBlob = function insertBlob(editor, base64, blob) {\n    var blobCache = editor.editorUpload.blobCache;\n    var blobInfo = blobCache.create(generate('mceu'), blob, base64);\n    blobCache.add(blobInfo);\n    editor.insertContent(editor.dom.createHTML('img', {\n      src: blobInfo.blobUri()\n    }));\n  };\n  var plugin = tinymce.PluginManager.get('customimage');\n  !plugin && tinymce.PluginManager.add('customimage', function (editor, url) {\n    editor.ui.registry.addButton('customimage', {\n      tooltip: '插入图片',\n      icon: 'customimage',\n      onAction: function onAction() {\n        pickFile(tinymce, editor).then(function (files) {\n          if (files.length > 0) {\n            var blob_1 = files[0];\n            blobToBase64(blob_1).then(function (base64) {\n              insertBlob(editor, base64, blob_1);\n            });\n          }\n        }).catch(function (err) {\n          (0,_utils_webTools__WEBPACK_IMPORTED_MODULE_4__.showNotice)(err);\n        });\n      }\n    });\n  });\n};\nvar unlinkSelection = function unlinkSelection(editor) {\n  var dom = editor.dom,\n    selection = editor.selection;\n  var bookmark = selection.getBookmark();\n  var rng = selection.getRng().cloneRange();\n  var startAnchorElm = dom.getParent(rng.startContainer, 'a[href]', editor.getBody());\n  var endAnchorElm = dom.getParent(rng.endContainer, 'a[href]', editor.getBody());\n  if (startAnchorElm) {\n    rng.setStartBefore(startAnchorElm);\n  }\n  if (endAnchorElm) {\n    rng.setEndAfter(endAnchorElm);\n  }\n  selection.setRng(rng);\n  editor.execCommand('unlink');\n  selection.moveToBookmark(bookmark);\n};\nvar isImageFigure = function isImageFigure(elm) {\n  return elm && elm.nodeName === 'FIGURE' && /\\bimage\\b/i.test(elm.className);\n};\nvar unlinkImageFigure = function unlinkImageFigure(editor, fig) {\n  var img = editor.dom.select('img', fig)[0];\n  if (img) {\n    var a = editor.dom.getParents(img, 'a[href]', fig)[0];\n    if (a) {\n      a.parentNode.insertBefore(img, a);\n      editor.dom.remove(a);\n    }\n  }\n};\nvar unlinkDomMutation = function unlinkDomMutation(editor) {\n  editor.undoManager.transact(function () {\n    var node = editor.selection.getNode();\n    if (isImageFigure(node)) {\n      unlinkImageFigure(editor, node);\n    } else {\n      unlinkSelection(editor);\n    }\n    editor.focus();\n  });\n};\nvar unlink = function unlink(editor) {\n  editor.hasPlugin('rtc', true) ? editor.execCommand('unlink') : unlinkDomMutation(editor);\n};\nvar addLink = function addLink(editor) {\n  var isAnchorElement = function isAnchorElement(node) {\n    return node.nodeName.toLowerCase() === 'a' && node.href;\n  };\n  var getAnchorElement = function getAnchorElement() {\n    var node = editor.selection.getNode();\n    return isAnchorElement(node) ? node : null;\n  };\n  editor.ui.registry.addContextForm('link-form', {\n    launch: {\n      type: 'contextformtogglebutton',\n      icon: 'link'\n    },\n    label: 'Link',\n    predicate: isAnchorElement,\n    initValue: function initValue() {\n      var elm = getAnchorElement();\n      return !!elm ? elm.href : '';\n    },\n    commands: [{\n      type: 'contextformtogglebutton',\n      icon: 'link',\n      tooltip: 'Link',\n      primary: true,\n      onSetup: function onSetup(buttonApi) {\n        buttonApi.setActive(!!getAnchorElement());\n        var nodeChangeHandler = function nodeChangeHandler() {\n          buttonApi.setActive(!editor.readonly && !!getAnchorElement());\n        };\n        editor.on('nodechange', nodeChangeHandler);\n        return function () {\n          editor.off('nodechange', nodeChangeHandler);\n        };\n      },\n      onAction: function onAction(formApi) {\n        var value = formApi.getValue();\n        console.log('Save link clicked with value: ' + value);\n        formApi.hide();\n      }\n    }, {\n      type: 'contextformtogglebutton',\n      icon: 'unlink',\n      tooltip: 'Remove link',\n      active: false,\n      onAction: function onAction(formApi) {\n        console.log('Remove link clicked');\n        unlink(editor);\n        formApi.hide();\n      }\n    }]\n  });\n};\n\n//# sourceURL=webpack://nocode-component/./src/base/web/RichText/addPlugins.ts?");

/***/ }),

/***/ "./src/base/web/RichText/utils.js":
/*!****************************************!*\
  !*** ./src/base/web/RichText/utils.js ***!
  \****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IMAGE_ACCEPT_TYPE: function() { return /* binding */ IMAGE_ACCEPT_TYPE; },\n/* harmony export */   UPLOAD_STATUS: function() { return /* binding */ UPLOAD_STATUS; },\n/* harmony export */   addEditorListener: function() { return /* binding */ addEditorListener; },\n/* harmony export */   changeIframeCSS: function() { return /* binding */ changeIframeCSS; },\n/* harmony export */   checkImageSize: function() { return /* binding */ checkImageSize; },\n/* harmony export */   filterSrc: function() { return /* binding */ filterSrc; },\n/* harmony export */   filterUnvalidSrc: function() { return /* binding */ filterUnvalidSrc; },\n/* harmony export */   formatContent: function() { return /* binding */ formatContent; },\n/* harmony export */   getConfig: function() { return /* binding */ getConfig; },\n/* harmony export */   getDomId: function() { return /* binding */ getDomId; },\n/* harmony export */   getEditor: function() { return /* binding */ getEditor; },\n/* harmony export */   getFileType: function() { return /* binding */ getFileType; },\n/* harmony export */   getLocale: function() { return /* binding */ getLocale; },\n/* harmony export */   getLocalePath: function() { return /* binding */ getLocalePath; },\n/* harmony export */   handleContentChange: function() { return /* binding */ handleContentChange; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/ends-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n/* harmony import */ var core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n/* harmony import */ var _utils_webTools__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/utils/webTools */ \"./src/utils/webTools.ts\");\n/* harmony import */ var _WebMsg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../WebMsg */ \"./src/base/web/WebMsg/index.tsx\");\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: xiaoman_xie\n * @Date: 2023-05-22 10:32:32\n * @LastEditTime: 2024-08-22 19:10:24\n * @Last Modified by: xiaoman_xie\n */\n\n\n\n\nvar getDomId = function getDomId() {\n  return String((0,_utils__WEBPACK_IMPORTED_MODULE_12__.getRandomValues)()) + String(Date.now());\n};\nvar getToolbarItems = function getToolbarItems(hasFullScreen) {\n  var toolbarItems = ['undo', 'redo', '|', 'fontselect', 'fontsizeselect', 'bold', 'italic', 'underline', 'forecolor', 'backcolor', '|', 'bullist', 'numlist', 'indent', 'outdent', 'align', '|', 'link', 'customimage', 'table'];\n  hasFullScreen && toolbarItems.push('fullscreen');\n  return toolbarItems.join(' ');\n};\nvar getLocalePath = function getLocalePath(srcUrl, locale) {\n  var _context;\n  return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context = \"\".concat(srcUrl !== null && srcUrl !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_1___default()(srcUrl).call(srcUrl, '/') ? srcUrl : srcUrl + '/', \"public/thirdjs/tinymceeditor/langs/\")).call(_context, locale, \".js\");\n};\nvar getLocale = function getLocale(locale, defaultLocale) {\n  return locale || defaultLocale || 'zh_CN';\n};\nvar getFileType = function getFileType(file) {\n  var _file$type;\n  var types = typeof file === 'string' ? file.split('.') : (_file$type = file.type) === null || _file$type === void 0 ? void 0 : _file$type.split('/');\n  var type = (types === null || types === void 0 ? void 0 : types.pop()) || '';\n  return type.toLowerCase();\n};\nvar checkImageSize = function checkImageSize(file) {\n  if (file.size > 20 * 1000000) {\n    (0,_utils_webTools__WEBPACK_IMPORTED_MODULE_13__.showNotice)('图片超过20M，无法上传');\n    return false;\n  }\n  return true;\n};\nvar IMAGE_ACCEPT_TYPE = ['jpg', 'png', 'jpeg', 'gif'];\nvar UPLOAD_STATUS = {\n  uploading: 'uploading',\n  error: 'error',\n  success: 'success'\n};\nvar errParams = {\n  type: 'error',\n  content: '上传失败',\n  closable: true\n};\nvar ErrTips = '请重新上传';\nvar imagesUpload = function imagesUpload(uploadUrl, pictureServer, uploadCallback) {\n  return function (blobInfo, success, failure, progress) {\n    var file = blobInfo.blob();\n    var fileType = getFileType(file);\n    if (!checkImageSize(file)) return;\n    if (uploadUrl && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_2___default()(IMAGE_ACCEPT_TYPE).call(IMAGE_ACCEPT_TYPE, fileType)) {\n      var finishMsg = (0,_WebMsg__WEBPACK_IMPORTED_MODULE_14__.showLoadingMessage)('上传图片中');\n      var formData = new FormData();\n      var xhr = new XMLHttpRequest();\n      xhr.withCredentials = false;\n      xhr.open('POST', uploadUrl);\n      xhr.onload = function () {\n        var _json, _context2;\n        var json;\n        try {\n          if ((0,_utils__WEBPACK_IMPORTED_MODULE_12__.isJson)(xhr.responseText)) {\n            json = JSON.parse(xhr.responseText);\n          }\n        } catch (e) {\n          finishMsg(errParams);\n          failure(ErrTips);\n          return;\n        }\n        if (xhr.status < 200 || xhr.status >= 300 || !json || typeof ((_json = json) === null || _json === void 0 || (_json = _json.data) === null || _json === void 0 ? void 0 : _json.url) !== 'string') {\n          finishMsg(errParams);\n          failure(ErrTips);\n          return;\n        }\n        var picUrl = json.data.url;\n        // dev环境返回的url开头有/（sit没有），使链接中有两个'/'，slice去掉其中一个\n        var needSlice = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(pictureServer).call(pictureServer, -1) === '/' && picUrl[0] === '/';\n        var link = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context2 = \"\".concat(pictureServer)).call(_context2, needSlice ? _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_3___default()(picUrl).call(picUrl, 1) : picUrl);\n        success((0,_utils__WEBPACK_IMPORTED_MODULE_12__.addShareId)(link));\n        finishMsg({\n          type: 'success',\n          content: '上传成功',\n          duration: 3000\n        });\n        uploadCallback(UPLOAD_STATUS.success);\n      };\n      xhr.onerror = function () {\n        finishMsg(errParams);\n      };\n      formData.append('action', 'upload');\n      formData.append('tempstorage', 'false');\n      formData.append('file', blobInfo.blob(), blobInfo.filename());\n      xhr.send(formData);\n    }\n  };\n};\nvar formatContent = function formatContent() {\n  var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n  if (!content) return content;\n  if (_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_4___default()(content).call(content, '<p>') && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_1___default()(content).call(content, '</p>')) {\n    return content;\n  } else {\n    return '<p>' + content + '</p>';\n  }\n};\n\n// 更新store和postData里面的数据\nvar handleContentChange = function handleContentChange(editor, content, callback) {\n  if (!content) {\n    if (!editor) return;\n    content = editor.getContent();\n  }\n  // content = formatContent(content)\n  callback && callback(content);\n};\nvar addEditorListener = function addEditorListener(editor, onChange, onBlur) {\n  // 实时保存内容到store\n  editor.on('change Redo Undo cut', function () {\n    var content = editor.getContent();\n    // editor 这里获取不到\n    var ct = formatContent(content);\n    handleContentChange(editor, ct, onChange);\n  });\n  if (onBlur) {\n    editor.on('blur', function () {\n      var content = editor.getContent();\n      // editor 这里获取不到\n      var ct = formatContent(content);\n      onBlur(ct);\n    });\n  }\n  editor.on('paste', function () {\n    _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_5___default()(function () {\n      editor.fire('change');\n    }, 0);\n  });\n  editor.on('StoreDraft', function () {\n    var ct = formatContent(editor.getContent());\n    handleContentChange(editor, ct, onChange);\n  });\n};\nvar changeIframeCSS = function changeIframeCSS(editor) {\n  if (editor) {\n    var doc = editor.getDoc();\n    var style = doc.createElement('style');\n    style.innerHTML = \"\\n      ::-webkit-scrollbar {\\n        width: 6px !important;\\n        height: 6px !important;\\n      }\\n      \\n      ::-webkit-scrollbar-thumb {\\n        background-color: #ccc !important;\\n        border-radius: 10px;\\n      }\\n      ::-webkit-scrollbar-thumb:active {\\n        background-color: #999 !important;\\n      }\\n      ::-webkit-scrollbar-thumb:hover {\\n        background: #999 !important;\\n      }\\n      ::-webkit-scrollbar-track {\\n        background: transparent;\\n      }\\n      body {\\n        font-size: 12px;\\n      }\\n      body p {\\n        margin-block-start: 0;\\n        margin-block-end: 0;\\n      }\\n      ul, ol {\\n        padding-inline-start: 16px;\\n      }\\n      img {\\n        max-width: 100%;\\n        height: auto;\\n      }\\n    \";\n    doc.head.appendChild(style);\n  }\n};\nvar getFontSizeFormat = function getFontSizeFormat(start, end) {\n  var format = [];\n  for (var i = start; i <= end; i++) {\n    var _context3;\n    format.push(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context3 = \"\".concat(i, \"=\")).call(_context3, i, \"px\"));\n  }\n  return format.join(' ');\n};\nvar getConfig = function getConfig(_ref) {\n  var setup = _ref.setup,\n    toobarMode = _ref.toobarMode,\n    initInstanceCallback = _ref.initInstanceCallback,\n    selector = _ref.selector,\n    readonly = _ref.readonly,\n    srcUrl = _ref.srcUrl,\n    language = _ref.language,\n    languageUrl = _ref.languageUrl,\n    imageUrlPrefix = _ref.imageUrlPrefix,\n    imagesUploadUrl = _ref.imagesUploadUrl,\n    uploadCallback = _ref.uploadCallback,\n    pictureServer = _ref.pictureServer,\n    _ref$resize = _ref.resize,\n    resize = _ref$resize === void 0 ? true : _ref$resize,\n    _ref$hasFullScreen = _ref.hasFullScreen,\n    hasFullScreen = _ref$hasFullScreen === void 0 ? true : _ref$hasFullScreen;\n  return {\n    selector: selector,\n    setup: setup,\n    // 初始化结束后执行回调\n    init_instance_callback: initInstanceCallback,\n    readonly: readonly,\n    // 如果想要关闭当前编辑器的只读模式，重设该参数是无用的，需调setMode('design'/'readonly')\n    // skin url地址\n    skin_url: \"\".concat(srcUrl, \"public/thirdjs/tinymceeditor/skins/ui/oxide\"),\n    // 解决报错,import 插件后找不到content.css\n    content_css: \"\".concat(srcUrl, \"public/thirdjs/tinymceeditor/skins/content/default/content.min.css\"),\n    language: language,\n    // 国际化处理\n    language_url: languageUrl,\n    statusbar: true,\n    //  是否应在编辑器底部显示状态栏\n    branding: false,\n    // 禁用状态栏中显示的“ Powered by Tiny ”\n    elementpath: false,\n    resize: !readonly && resize,\n    menubar: false,\n    toolbar: getToolbarItems(hasFullScreen),\n    toolbar_mode: toobarMode,\n    // 用于扩展工具栏以容纳溢出的工具栏按钮\n    font_formats: \"\\u5B8B\\u4F53='\\u5B8B\\u4F53';\\u5FAE\\u8F6F\\u96C5\\u9ED1='\\u5FAE\\u8F6F\\u96C5\\u9ED1';\\u6977\\u4F53='\\u6977\\u4F53';\\u9ED1\\u4F53='\\u9ED1\\u4F53';\\u96B6\\u4E66='\\u96B6\\u4E66';\\n    Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif;\\n    Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic\\n    Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino;\\n    Helvetica=helvetica; Impact=impact,chicago; Sans Serif=sans-serif; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif;\\n    Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva;\\n    Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats\",\n    fontsize_formats: getFontSizeFormat(9, 72),\n    plugins: \"advlist anchor autolink autosave charmap code\\n    fullscreen hr customimage imagetools importcss link lists \\n    pagebreak paste searchreplace table nonbreaking\",\n    // 允许自动上传图片\n    // automatic_uploads: true,\n    // 图片上传文件服务器地址\n    images_upload_base_path: imageUrlPrefix,\n    // 图片上传路径\n    images_upload_url: imagesUploadUrl,\n    // 重写图片上传\n    images_upload_handler: imagesUpload(imagesUploadUrl, pictureServer, uploadCallback),\n    // 图片上传支持粘贴图片\n    paste_data_images: true,\n    // 图片上传支持拖拽\n    paste_block_drop: true,\n    // block_unsupported_drop: false,\n    // images_file_types: 'jpeg,jpg,png,gif,bmp,webp',\n    // 禁用TinyMCE的默认粘贴过滤器,不然会把颜色大小等格式删掉\n    paste_enable_default_filters: false,\n    // 粘贴保留原来的word格式\n    paste_retain_style_properties: 'all',\n    // 我们会对其进行额外的限制性过滤,要使用此功能，你需要的值设置paste_enable_default_filters到\"false\"您的配置\n    paste_word_valid_elements: 'b,strong,i,em,h1,h2',\n    // 支持文件选择类型\n    file_picker_types: 'image',\n    // 是否文件（图片）强制转换地址\n    convert_urls: false,\n    // 相对路径or绝对\n    relative_urls: false,\n    imagetools_toolbar: 'rotateleft rotateright flipv fliph editimage'\n  };\n};\nvar getEditor = function getEditor(tinymce, id) {\n  return tinymce.get(id);\n};\n\n// 去除shareid\nvar filterShareId = function filterShareId(content) {\n  return content.replace(new RegExp(/([?|&]noCodeShareId=[^.*\"$]+)+/g), '');\n};\nvar filterKdcdcString = function filterKdcdcString(content) {\n  return content.replace(new RegExp(/([?|&]kdcdc=[^.*\"$]+)+/g), '');\n};\n\n// 过滤base64图片src+过滤shareId返回到control\nvar filterSrc = function filterSrc(content) {\n  return filterShareId(filterKdcdcString(filterUnvalidSrc(content)));\n};\n\n// 过滤base64图片src\nvar filterUnvalidSrc = function filterUnvalidSrc(content) {\n  var expressions = new RegExp(/<img src=\"((data|blob)[^\"]+)\"\\s?\\/?>/g);\n  return content.replace(expressions, '');\n};\n\n//# sourceURL=webpack://nocode-component/./src/base/web/RichText/utils.js?");

/***/ })

}]);