Keine Beschreibung

index.js.map 197KB

1
  1. {"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///../node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack:///../node_modules/@babel/runtime/helpers/defineProperty.js","webpack:///external \"braft-utils\"","webpack:///../node_modules/@babel/runtime/helpers/classCallCheck.js","webpack:///../node_modules/@babel/runtime/helpers/createClass.js","webpack:///../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack:///../node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack:///../node_modules/@babel/runtime/helpers/inherits.js","webpack:///external \"draft-js\"","webpack:///../node_modules/@babel/runtime/helpers/objectSpread.js","webpack:///../node_modules/@babel/runtime/helpers/extends.js","webpack:///../node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///external \"braft-convert\"","webpack:///external \"react-dom\"","webpack:///../node_modules/@babel/runtime/helpers/typeof.js","webpack:///external \"braft-finder\"","webpack:///external \"immutable\"","webpack:///../node_modules/@babel/runtime/helpers/slicedToArray.js","webpack:///../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///../node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///../node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///../node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack:///../node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack:///../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack:///../node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack:///./languages/en.js","webpack:///./languages/zh.js","webpack:///./languages/zh-hant.js","webpack:///./languages/index.js","webpack:///./configs/keybindings.js","webpack:///./configs/props.js","webpack:///./components/common/Switch/index.jsx","webpack:///./configs/controls.js","webpack:///./renderers/atomics/Image/index.jsx","webpack:///./components/common/StaticContainer/index.jsx","webpack:///./renderers/atomics/Video/index.jsx","webpack:///./renderers/atomics/Audio/index.jsx","webpack:///./renderers/atomics/Embed/index.jsx","webpack:///./renderers/atomics/HorizontalLine/index.jsx","webpack:///./renderers/styles/blockStyles.js","webpack:///./renderers/styles/inlineStyles.js","webpack:///./renderers/decorators/Link/index.jsx","webpack:///./renderers/decorators/index.js","webpack:///./renderers/index.js","webpack:///./helpers/responsive.js","webpack:///./components/common/DropDown/index.jsx","webpack:///./components/business/LinkEditor/index.jsx","webpack:///./configs/maps.js","webpack:///./components/business/Headings/index.jsx","webpack:///./components/common/ColorPicker/index.jsx","webpack:///./components/business/TextColor/index.jsx","webpack:///./components/business/FontSize/index.jsx","webpack:///./components/business/LineHeight/index.jsx","webpack:///./components/business/FontFamily/index.jsx","webpack:///./components/business/TextAlign/index.jsx","webpack:///./components/business/EmojiPicker/index.jsx","webpack:///./components/business/LetterSpacing/index.jsx","webpack:///./components/business/TextIndent/index.jsx","webpack:///./components/common/Modal/index.jsx","webpack:///./components/business/ControlBar/index.jsx","webpack:///./editor/index.jsx","webpack:///./index.jsx","webpack:///../node_modules/draft-js/dist/Draft.css","webpack:///./assets/scss/_base.scss","webpack:///./renderers/atomics/Image/style.scss","webpack:///./components/common/Switch/style.scss","webpack:///./renderers/atomics/Video/style.scss","webpack:///./renderers/atomics/Audio/style.scss","webpack:///./renderers/atomics/Embed/style.scss","webpack:///./renderers/atomics/HorizontalLine/style.scss","webpack:///./components/business/ControlBar/style.scss","webpack:///./components/business/LinkEditor/style.scss","webpack:///./components/common/DropDown/style.scss","webpack:///./components/business/Headings/style.scss","webpack:///./components/business/TextColor/style.scss","webpack:///./components/common/ColorPicker/style.scss","webpack:///./components/business/FontSize/style.scss","webpack:///./components/business/LineHeight/style.scss","webpack:///./components/business/FontFamily/style.scss","webpack:///./components/business/EmojiPicker/style.scss","webpack:///./components/business/LetterSpacing/style.scss","webpack:///./components/business/TextIndent/style.scss","webpack:///./components/common/Modal/style.scss"],"names":["base","remove","cancel","confirm","inert","width","height","controls","clear","undo","redo","fontSize","color","textColor","tempColors","backgroundColor","bold","lineHeight","letterSpacing","textIndent","italic","underline","strikeThrough","fontFamily","textAlign","alignLeft","alignCenter","alignRight","alignJustify","floatLeft","floatRight","superScript","subScript","removeStyles","headings","header","normal","orderedList","unorderedList","blockQuote","code","link","unlink","hr","media","mediaLibirary","emoji","linkEditor","inputPlaceHolder","inputWithEnterPlaceHolder","openInNewWindow","removeLink","audioPlayer","title","videoPlayer","embedTitle","image","video","audio","embed","border","zhHant","customKeyBindingFn","event","keyCode","hasCommandModifier","isCtrlKeyCommand","language","excludeControls","extendControls","extendAtomics","componentBelowControlBar","pasteImage","uploadFn","validateFn","onBeforeDeselect","onDeselect","onBeforeSelect","onSelect","onBeforeRemove","onRemove","onCancel","onFileSelect","onBeforeInsert","onInsert","onChange","externals","imageControls","colors","tabIndents","textAligns","textBackgroundColor","letterSpacings","textIndents","lineHeights","fontSizes","fontFamilies","name","family","emojis","stripPastedStyles","className","style","controlBarClassName","controlBarStyle","contentClassName","contentStyle","draftProps","hooks","onFocus","onBlur","onTab","onDelete","onSave","props","active","onClick","lang","key","text","type","command","imageControlItems","toolbarVisible","toolbarOffset","linkEditorVisible","sizeEditorVisible","tempLink","tempWidth","tempHeight","window","__BRAFT_DRAGING__IMAGE__","block","mediaData","setState","editor","setDraftProps","readOnly","split","method","param","editorState","setValue","removeBlock","state","e","confirmImageLink","currentTarget","value","setMediaData","entityKey","setImmediate","forceRender","confirmImageSize","isNaN","newImageSize","float","setMediaPosition","alignment","preventDefault","calcToolbarOffset","blockData","getData","get","src","url","link_target","imageStyles","clearFix","renderedControlItems","map","item","index","executeCommand","render","showToolbar","hideToolbar","handleDragStart","handleDragEnd","instance","mediaEmbederInstance","marginLeft","toolbarElement","handleLinkInputKeyDown","setImageLink","setImageLinkTarget","handleSizeInputKeyDown","setImageWidth","setImageHeight","imageElement","containerNode","viewRect","getBoundingClientRect","toolbarRect","imageRect","right","left","Component","children","meta","poster","removeVideo","removeAudio","__html","removeEmbed","removeHorizontalLine","customBlockStyleFn","blockAlignment","blockFloat","result","customStyles","colorStyles","bgColorStyles","fontSizeStyles","fontFamilyStyles","lineHeightStyles","letterSpacingtStyles","indentStyles","forEach","color_id","replace","toUpperCase","indent","paddingLeft","paddingRight","position","top","bottom","handleStrategy","contentBlock","callback","contentState","findEntityRanges","character","getEntity","getType","Link","href","target","viewLink","getModifierState","document","createElement","click","strategy","component","getAtomicBlockComponent","superProps","getEntityAt","entity","mediaType","mediaProps","atomics","i","length","getBlockRendererFn","customBlockRendererFn","blockRenderer","editable","customBlockRenderMap","element","wrapper","getBlockStyleFn","getCustomStyleMap","resizeEventHandlers","responsiveHelperInited","debouce","resolve","eventHandler","id","UniqueIndex","push","unresolve","filter","addEventListener","clearTimeout","setTimeout","componentId","offset","maxHeight","alive","body","registerClickEvent","responsiveResolveId","fixDropDownPosition","next","disabled","hide","prevState","removeEventListener","ResponsiveHelper","caption","htmlCaption","showArrow","arrowActive","dropDownHandlerElement","dropDownContentElement","editorContentRect","querySelector","handlerRect","contentRect","autoHide","dataset","braftComponentId","keepActive","handleConfirm","dropDownComponent","toggleSelectionLink","hookReturns","requestFocus","getSelectionEntityData","textSelected","isSelectionCollapsed","getSelectionBlockType","handeKeyDown","inputLink","setTarget","handleUnlink","handleCancel","getHeadings","blocks","currentHeadingIndex","findIndex","current","isActive","colorType","toggleSelectionColor","toggleSelectionBackgroundColor","captionStyle","currentColor","selectionHasInlineStyle","dropDownComponentId","enableBackgroundColor","display","switchColorType","toggleColor","toggleFontSize","size","toggleSelectionFontSize","currentFontSize","find","defaultCaption","toggleLineHeight","toggleSelectionLineHeight","currentLineHeight","toggleFontFamily","fontFamilyName","toggleSelectionFontFamily","currentIndex","currentAlignment","undefined","indexOf","toggleSelectionAlignment","getSelectionBlockData","textAlignmentTitles","setAlignment","insertEmoji","insertText","toggleLetterSpacing","toggleSelectionLetterSpacing","currentLetterSpacing","toggleTextIndent","toggleSelectionIndent","currentIndent","rootElement","classList","contains","ReactDOM","unmountComponentAtNode","parentNode","removeChild","closeOnCancel","close","closeOnConfirm","onConfirm","unrenderComponent","onClose","visible","renderComponent","activeId","clearImmediate","confirmable","showFooter","showCancel","showConfirm","showClose","cancelText","confirmText","bottomText","childComponent","handleTransitionEnd","appendChild","add","showModal","hostNode","extProps","modalInstance","destroy","update","commandHookMap","braftFinder","ReactComponent","MediaLibrary","mediaLibiraryModal","closeBraftFinder","insertMedias","bindBraftFinderHook","hookName","medias","modal","extendedModals","data","toggleSelectionInlineStyle","toggleSelectionBlockType","currentBlockType","editorControls","commonProps","renderedControls","itemKey","toLowerCase","controlItem","subItem","applyControl","openBraftFinder","html","ref","onCreate","getControlItemClassName","buildHooks","defaultReturns","editorDecorators","draftInstance","createEditorState","getCurrentContent","repeat","isFocused","focus","nextEditorState","handleKeyCommand","currentBlock","getSelectionBlock","getLength","which","handleNewLine","selectionState","dataTransfer","getText","files","resolveFiles","htmlString","detectColorsFromHTMLString","array","insertHTML","uploadImage","removeSelectionInlineStyles","insertHorizontalLine","keyBindingFn","blockStyleFn","blockRenderMap","merge","blockRenderMapFn","defaultEditorState","isEditorState","defaultValue","createEmptyEditorState","uploader","validator","forceUpdate","nextProps","placeholder","externalMedias","controlBarProps","controlBarInstance","blockRendererFn","customStyleMap","handleReturn","handleDrop","handleDroppedFiles","handlePastedText","handlePastedFiles","setEditorContainerNode","prototype","toHTML","toRAW","noStringify","JSON","stringify","createFrom","content","options","entityMap","parse","error","createEmpty"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,gBAAV,CAA9B;AACD,GAFD,MAEO,IAAI,OAAOA,OAAP,KAAmB,QAAvB,EAAiC;AACtC,QAAI;AACF,aAAO,iCAAW,CAACD,UAAZ,CAAuBF,IAAI,CAACM,KAAL,CAAWH,OAAX,CAAvB,EAA4CC,OAA5C,CAAP;AACD,KAFD,CAEE,OAAOG,KAAP,EAAc;AACd,aAAO,2DAAwB,CAACJ,OAAD,EAAU,gBAAV,EAA4BC,OAA5B,CAA/B;AACD;AACF,GANM,MAMA;AACL,WAAO,iCAAW,CAACI,WAAZ,CAAwB,gBAAxB,CAAP;AACD;AAEF,CAdD;;AAgBA,6EAAe,kBAAf;CAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA,Y;;;;;;ACrEA,yC;;;;;;;ACAA,yC;;;;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC;;;;;;ACAA,yC","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"braft-utils\"), require(\"draft-js\"), require(\"braft-convert\"), require(\"react-dom\"), require(\"braft-finder\"), require(\"immutable\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"braft-utils\", \"draft-js\", \"braft-convert\", \"react-dom\", \"braft-finder\", \"immutable\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\"), require(\"braft-utils\"), require(\"draft-js\"), require(\"braft-convert\"), require(\"react-dom\"), require(\"braft-finder\"), require(\"immutable\")) : factory(root[\"react\"], root[\"braft-utils\"], root[\"draft-js\"], root[\"braft-convert\"], root[\"react-dom\"], root[\"braft-finder\"], root[\"immutable\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__9__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__14__, __WEBPACK_EXTERNAL_MODULE__16__, __WEBPACK_EXTERNAL_MODULE__17__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 26);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","var defineProperty = require(\"./defineProperty\");\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nmodule.exports = _objectSpread;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","module.exports = __WEBPACK_EXTERNAL_MODULE__14__;","function _typeof2(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return _typeof2(obj);\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","module.exports = __WEBPACK_EXTERNAL_MODULE__16__;","module.exports = __WEBPACK_EXTERNAL_MODULE__17__;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nmodule.exports = _arrayWithoutHoles;","function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nmodule.exports = _nonIterableSpread;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","export default {\n base: {\n remove: 'Remove',\n cancel: 'Cancel',\n confirm: 'Confirm',\n inert: 'Insert',\n width: 'Width',\n height: 'Height'\n },\n controls: {\n clear: 'Clear',\n undo: 'Undo',\n redo: 'Redo',\n fontSize: 'Font Size',\n color: 'Color',\n textColor: 'Text',\n tempColors: 'Temp Colors',\n backgroundColor: 'Background',\n bold: 'Bold',\n lineHeight:'Line Height',\n letterSpacing:'Letter Spacing',\n textIndent:'Indent at both ends',\n italic: 'Italic',\n underline: 'Underline',\n strikeThrough: 'Strike Through',\n fontFamily: 'Font Family',\n textAlign: 'Text Alignment',\n alignLeft: 'Left Alignment',\n alignCenter: 'Center Alignment',\n alignRight: 'Right Alignment',\n alignJustify: 'Justify Alignment',\n floatLeft: 'Left Float',\n floatRight: 'Right Float',\n superScript: 'Super Script',\n subScript: 'Sub Script',\n removeStyles: 'Remove Styles',\n headings: 'Headings',\n header: 'Header',\n normal: 'Normal',\n orderedList: 'Ordered List',\n unorderedList: 'Unordered List',\n blockQuote: 'Quote',\n code: 'Code',\n link: 'Link',\n unlink: 'Unlink',\n hr: 'Horizontal Line',\n media: 'Media',\n mediaLibirary: 'Media Libirary',\n emoji: 'Emoji'\n },\n linkEditor: {\n inputPlaceHolder: 'Input link URL',\n inputWithEnterPlaceHolder: 'Input link URL and press Enter',\n openInNewWindow: 'Open in new window',\n removeLink: 'Remove Link'\n },\n audioPlayer: {\n title: 'Play Audio'\n },\n videoPlayer: {\n title: 'Play Video',\n embedTitle: 'Embed Media'\n },\n media: {\n image: 'Image',\n video: 'Video',\n audio: 'Audio',\n embed: 'Embed'\n }\n}","export default {\n base: {\n remove: '删除',\n cancel: '取消',\n confirm: '确定',\n inert: '插入',\n width: '宽度',\n height: '高度'\n },\n controls: {\n clear: '清除内容',\n undo: '撤销',\n redo: '重做',\n fontSize: '字号',\n lineHeight: '行高',\n letterSpacing: '字间距',\n textIndent: '两端缩进',\n border: '边框',\n color: '颜色',\n textColor: '文字颜色',\n backgroundColor: '背景颜色',\n tempColors: '临时颜色',\n bold: '加粗',\n italic: '斜体',\n underline: '下划线',\n strikeThrough: '删除线',\n fontFamily: '字体',\n textAlign: '文本对齐',\n alignLeft: '居左',\n alignCenter: '居中',\n alignRight: '居右',\n alignJustify: '两端',\n floatLeft: '左浮动',\n floatRight: '右浮动',\n superScript: '上标',\n subScript: '下标',\n removeStyles: '清除样式',\n headings: '标题',\n header: '标题',\n normal: '常规',\n orderedList: '有序列表',\n unorderedList: '无序列表',\n blockQuote: '引用',\n code: '代码',\n link: '链接',\n unlink: '清除链接',\n hr: '水平线',\n media: '媒体',\n mediaLibirary: '媒体库',\n emoji: '小表情'\n },\n linkEditor: {\n inputPlaceHolder: '输入链接地址',\n inputWithEnterPlaceHolder: '输入链接地址并回车',\n openInNewWindow: '在新窗口打开',\n removeLink: '移除链接'\n },\n audioPlayer: {\n title: '播放音频文件'\n },\n videoPlayer: {\n title: '播放视频文件',\n embedTitle: '嵌入式媒体'\n },\n media: {\n image: '图像',\n video: '视频',\n audio: '音频',\n embed: '嵌入式媒体'\n }\n}","export default {\n base: {\n remove: '刪除',\n cancel: '取消',\n confirm: '確定',\n inert: '插入',\n width: '宽度',\n height: '高度'\n },\n controls: {\n clear: '清除内容',\n undo: '撤銷',\n redo: '重做',\n fontSize: '字號',\n color: '顏色',\n textColor: '文字顏色',\n backgroundColor: '背景顏色',\n tempColors: '臨時顏色',\n bold: '加粗',\n lineHeight: '行高',\n letterSpacing: '字間距',\n textIndent: '兩端縮進',\n border: '邊框',\n italic: '斜體',\n underline: '下劃線',\n strikeThrough: '刪除線',\n fontFamily: '字體',\n textAlign: '文本對齊',\n alignLeft: '居左',\n alignCenter: '居中',\n alignRight: '居右',\n alignJustify: '兩端對齊',\n floatLeft: '左浮動',\n floatRight: '右浮動',\n superScript: '上標',\n subScript: '下標',\n removeStyles: '清除样式',\n headings: '標題',\n header: '標題',\n normal: '常規',\n orderedList: '有序列表',\n unorderedList: '無序列表',\n blockQuote: '引用',\n code: '代碼',\n link: '鏈接',\n unlink: '清除鏈接',\n hr: '水平线',\n media: '媒體',\n mediaLibirary: '媒體库',\n emoji: '小表情'\n },\n linkEditor: {\n inputPlaceHolder: '輸入鏈接地址',\n inputWithEnterPlaceHolder: '輸入鏈接地址並回車',\n openInNewWindow: '在新窗口打開',\n removeLink: '移除鏈接'\n },\n audioPlayer: {\n title: '播放音頻文件'\n },\n videoPlayer: {\n title: '播放視頻文件',\n embedTitle: '嵌入式媒體'\n },\n media: {\n image: '圖像',\n video: '視頻',\n audio: '音頻',\n embed: '嵌入式媒體'\n }\n}","import en from './en'\nimport zh from './zh'\nimport zhHant from './zh-hant'\n\nexport default {\n 'en': en,\n 'zh': zh,\n 'zh-hant': zhHant\n}","import { getDefaultKeyBinding, KeyBindingUtil } from 'draft-js'\n\n// TODO\n// 允许自定义的快捷键设置\n\nexport default (customKeyBindingFn) => (event) => {\n\n if (event.keyCode === 83 && (KeyBindingUtil.hasCommandModifier(event) || KeyBindingUtil.isCtrlKeyCommand(event))) {\n return 'braft-save'\n }\n\n if (customKeyBindingFn) {\n return customKeyBindingFn(event) || getDefaultKeyBinding(event)\n }\n\n return getDefaultKeyBinding(event)\n\n}\n","export default {\n language: 'zh',\n controls: [\n 'undo', 'redo', 'separator',\n 'font-size', 'line-height', 'letter-spacing', 'separator',\n 'text-color', 'bold', 'italic', 'underline', 'strike-through', 'separator',\n 'superscript', 'subscript', 'remove-styles', 'emoji', 'text-align', 'separator',\n 'headings', 'list-ul', 'list-ol', 'blockquote', 'code', 'separator',\n 'link', 'split', 'hr', 'separator',\n 'media', 'separator',\n 'clear'\n ],\n excludeControls: [],\n extendControls: [],\n extendAtomics: [],\n componentBelowControlBar: null,\n media: {\n pasteImage: true,\n image: true,\n video: true,\n audio: true,\n uploadFn: null,\n validateFn: null,\n onBeforeDeselect: null,\n onDeselect: null,\n onBeforeSelect: null,\n onSelect: null,\n onBeforeRemove: null,\n onRemove: null,\n onCancel: null,\n onFileSelect: null,\n onBeforeInsert: null,\n onInsert: null,\n onChange: null,\n externals: {\n audio: true,\n video: true,\n image: true,\n embed: true\n },\n },\n imageControls: [\n 'float-left', 'float-right',\n 'align-left', 'align-center', 'align-right',\n 'link', 'size', 'remove'\n ],\n colors: [\n '#000000', '#333333', '#666666', '#999999', '#cccccc', '#ffffff',\n '#61a951', '#16a085', '#07a9fe', '#003ba5', '#8e44ad', '#f32784',\n '#c0392b', '#d35400', '#f39c12', '#fdda00', '#7f8c8d', '#2c3e50'\n ],\n tabIndents: 2,\n textAligns: ['left', 'center', 'right', 'justify'],\n textBackgroundColor: true,\n letterSpacings: [0, 1, 2, 3, 4, 5, 6],\n textIndents: [0, 14, 21, 28],\n lineHeights: [1, 1.2, 1.5, 1.75, 2, 2.5, 3, 4],\n fontSizes: [\n 12, 14, 16, 18, 20, 24,\n 28, 30, 32, 36, 40, 48,\n 56, 64, 72, 96, 120, 144\n ],\n fontFamilies: [{\n name: 'Araial',\n family: 'Arial, Helvetica, sans-serif'\n }, {\n name: 'Georgia',\n family: 'Georgia, serif'\n }, {\n name: 'Impact',\n family: 'Impact, serif'\n }, {\n name: 'Monospace',\n family: '\"Courier New\", Courier, monospace'\n }, {\n name: 'Tahoma',\n family: 'tahoma, arial, \"Hiragino Sans GB\", 宋体, sans-serif'\n }],\n emojis: [\n '🤣', '🙌', '💚', '💛', '👏', '😉', '💯',\n '💕', '💞', '💘', '💙', '💝', '🖤', '💜',\n '❤️', '😍', '😻', '💓', '💗', '😋', '😇',\n '😂', '😹', '😘', '💖', '😁', '😀', '🤞',\n '😲', '😄', '😊', '👍', '😌', '😃', '😅',\n '✌️', '🤗', '💋', '😗', '😽', '😚', '🤠',\n '😙', '😺', '👄', '😸', '😏', '😼', '👌',\n '😎', '😆', '😛', '🙏', '🤝', '🙂', '🤑',\n '😝', '😐', '😑', '🤤', '😤', '🙃', '🤡',\n '😶', '😪', '😴', '😵', '😓', '👊', '😦',\n '😷', '🤐', '😜', '🤓', '👻', '😥', '🙄',\n '🤔', '🤒', '🙁', '😔', '😯', '☹️', '☠️',\n '😰', '😩', '😖', '😕', '😒', '😣', '😢',\n '😮', '😿', '🤧', '😫', '🤥', '😞', '😬',\n '👎', '💀', '😳', '😨', '🤕', '🤢', '😱',\n '😭', '😠', '😈', '😧', '💔', '😟', '🙀',\n '💩', '👿', '😡', '😾', '🖕'\n ],\n stripPastedStyles: false,\n className: '',\n style: {},\n controlBarClassName: '',\n controlBarStyle: {},\n contentClassName: '',\n contentStyle: {},\n draftProps: {},\n hooks: {},\n onChange: null,\n onFocus: null,\n onBlur: null,\n onTab: null,\n onDelete: null,\n onSave: null\n}","import './style.scss'\nimport React from 'react'\n\nexport default (props) => {\n\n const { active, onClick, className } = props\n\n return (\n <div onClick={() => onClick()} className={'bf-switch ' + className + (active ? ' active' : '')}></div>\n )\n\n}\n","import React from 'react'\n\nexport default (lang) => [\n {\n key: 'undo',\n title: lang.controls.undo,\n text: <i className=\"bfi-undo\"></i>,\n type: 'editor-method',\n command: 'undo'\n }, {\n key: 'redo',\n title: lang.controls.redo,\n text: <i className=\"bfi-redo\"></i>,\n type: 'editor-method',\n command: 'redo'\n }, {\n key: 'remove-styles',\n title: lang.controls.removeStyles,\n text: <i className=\"bfi-format_clear\"></i>,\n type: 'editor-method',\n command: 'removeSelectionInlineStyles'\n }, {\n key: 'hr',\n title: lang.controls.hr,\n text: <i className=\"bfi-hr\"></i>,\n type: 'editor-method',\n command: 'insertHorizontalLine'\n }, {\n key: 'bold',\n title: lang.controls.bold,\n text: <i className=\"bfi-bold\"></i>,\n type: 'inline-style',\n command: 'bold'\n },{\n key: 'italic',\n title: lang.controls.italic,\n text: <i className=\"bfi-italic\"></i>,\n type: 'inline-style',\n command: 'italic'\n }, {\n key: 'underline',\n title: lang.controls.underline,\n text: <i className=\"bfi-underlined\"></i>,\n type: 'inline-style',\n command: 'underline'\n }, {\n key: 'strike-through',\n title: lang.controls.strikeThrough,\n text: <i className=\"bfi-strikethrough\"></i>,\n type: 'inline-style',\n command: 'strikethrough',\n }, {\n key: 'superscript',\n title: lang.controls.superScript,\n text: <i className=\"bfi-superscript\"></i>,\n type: 'inline-style',\n command: 'superscript'\n }, {\n key: 'subscript',\n title: lang.controls.subScript,\n text: <i className=\"bfi-subscript\"></i>,\n type: 'inline-style',\n command: 'subscript'\n }, {\n key: 'headings',\n title: lang.controls.headings,\n type: 'headings',\n }, {\n key: 'blockquote',\n title: lang.controls.blockQuote,\n text: <i className=\"bfi-quote\"></i>,\n type: 'block-type',\n command: 'blockquote',\n }, {\n key: 'code',\n title: lang.controls.code,\n text: <i className=\"bfi-code\"></i>,\n type: 'block-type',\n command: 'code-block'\n }, {\n key: 'list-ul',\n title: lang.controls.unorderedList,\n text: <i className=\"bfi-list\"></i>,\n type: 'block-type',\n command: 'unordered-list-item'\n }, {\n key: 'list-ol',\n title: lang.controls.orderedList,\n text: <i className=\"bfi-list-numbered\"></i>,\n type: 'block-type',\n command: 'ordered-list-item'\n }, {\n key: 'link',\n title: lang.controls.link,\n type: 'link'\n }, {\n key: 'text-color',\n title: lang.controls.color,\n type: 'text-color'\n }, {\n key: 'line-height',\n title: lang.controls.lineHeight, \n type: 'line-height'\n }, {\n key: 'letter-spacing',\n title: lang.controls.letterSpacing,\n type: 'letter-spacing'\n }, {\n key: 'text-indent',\n title: lang.controls.textIndent,\n type: 'text-indent'\n },{\n key: 'font-size',\n title: lang.controls.fontSize,\n type: 'font-size'\n }, {\n key: 'font-family',\n title: lang.controls.fontFamily,\n type: 'font-family'\n }, {\n key: 'text-align',\n title: lang.controls.textAlign,\n type: 'text-align'\n }, {\n key: 'media',\n title: lang.controls.media,\n text: <i className=\"bfi-media\"></i>,\n type: 'media'\n }, {\n key: 'emoji',\n title: lang.controls.emoji,\n text: <i className=\"bfi-emoji\"></i>,\n type: 'emoji'\n }, {\n key: 'clear',\n title: lang.controls.clear,\n text: lang.controls.clear,\n type: 'editor-method',\n command: 'clearEditorContent'\n }, {\n key: 'modal',\n type: 'modal',\n }, {\n key: 'button',\n type: 'button',\n }, {\n key: 'dropdown',\n type: 'dropdown',\n }, {\n key: 'component',\n type: 'component',\n }\n]\n\nexport const imageControlItems = {\n 'float-left': {\n text: <span data-float=\"left\">&#xe91e;</span>,\n command: 'setImageFloat|left'\n },\n 'float-right': {\n text: <span data-float=\"right\">&#xe914;</span>,\n command: 'setImageFloat|right'\n },\n 'align-left': {\n text: <span data-align=\"left\">&#xe027;</span>,\n command: 'setImageAlignment|left'\n },\n 'align-center': {\n text: <span data-align=\"center\">&#xe028;</span>,\n command: 'setImageAlignment|center'\n },\n 'align-right': {\n text: <span data-align=\"right\">&#xe029;</span>,\n command: 'setImageAlignment|right'\n },\n 'size': {\n text: <span>&#xe3c2;</span>,\n command: 'toggleSizeEditor'\n },\n 'link': {\n text: <span>&#xe91a;</span>,\n command: 'toggleLinkEditor'\n },\n 'remove': {\n text: <span>&#xe9ac;</span>,\n command: 'removeImage'\n }\n}","import './style.scss'\nimport React from 'react'\nimport { ContentUtils } from 'braft-utils'\nimport Switch from 'components/common/Switch'\nimport { imageControlItems } from 'configs/controls'\n\nexport default class Image extends React.Component {\n\n state = {\n toolbarVisible: false,\n toolbarOffset: 0,\n linkEditorVisible: false,\n sizeEditorVisible: false,\n tempLink: null,\n tempWidth: null,\n tempHeight: null\n }\n\n render () {\n\n const { mediaData, language, imageControls } = this.props\n const { toolbarVisible, toolbarOffset, linkEditorVisible, sizeEditorVisible } = this.state\n const blockData = this.props.block.getData()\n\n let float = blockData.get('float')\n let alignment = blockData.get('alignment')\n let { src, url, link, link_target, width, height } = mediaData\n let imageStyles = {}\n let clearFix = false\n\n if (float) {\n alignment = null\n } else if (alignment === 'left') {\n imageStyles.float = 'left'\n clearFix = true\n } else if (alignment === 'right') {\n imageStyles.float = 'right'\n clearFix = true\n } else if (alignment === 'center') {\n imageStyles.textAlign = 'center'\n } else {\n imageStyles.float = 'left'\n clearFix = true\n }\n\n const renderedControlItems = imageControls.map((item, index) => {\n\n if (typeof item === 'string' && imageControlItems[item]) {\n return (\n <a className={item === 'link' && link ? 'active' : ''} key={index} href='javascript:void(0);' onClick={() => this.executeCommand(imageControlItems[item].command)}>\n {imageControlItems[item].text}\n </a>\n )\n } else if (item && item.onClick && (item.render || item.text)) {\n return (\n <a key={index} href='javascript:void(0);' onClick={() => this.executeCommand(item.onClick)}>\n {item.render ? item.render(mediaData) : item.text}\n </a>\n )\n } else {\n return null\n }\n\n })\n\n return (\n <div className='bf-media'>\n <div\n style={imageStyles}\n draggable={true}\n onMouseEnter={this.showToolbar}\n onMouseMove={this.showToolbar}\n onMouseLeave={this.hideToolbar}\n onDragStart={this.handleDragStart}\n onDragEnd={this.handleDragEnd}\n ref={instance => this.mediaEmbederInstance = instance}\n className='bf-image'\n >\n {toolbarVisible ? (\n <div\n style={{marginLeft: toolbarOffset}}\n ref={instance => this.toolbarElement = instance}\n data-float={float}\n data-align={alignment}\n className='bf-media-toolbar'\n >\n {linkEditorVisible ? (\n <div className='bf-image-link-editor'>\n <div className='editor-input-group'>\n <input type='text' placeholder={language.linkEditor.inputWithEnterPlaceHolder} onKeyDown={this.handleLinkInputKeyDown} onChange={this.setImageLink} defaultValue={link}/>\n <button type='button' onClick={this.confirmImageLink}>{language.base.confirm}</button>\n </div>\n <div className='switch-group'>\n <Switch\n active={link_target === '_blank'}\n onClick={() => this.setImageLinkTarget(link_target)}\n />\n <label>{language.linkEditor.openInNewWindow}</label>\n </div>\n </div>\n ) : null}\n {sizeEditorVisible ? (\n <div className='bf-image-size-editor'>\n <div className='editor-input-group'>\n <input type='text' placeholder={language.base.width} onKeyDown={this.handleSizeInputKeyDown} onChange={this.setImageWidth} defaultValue={width}/>\n <input type='text' placeholder={language.base.height} onKeyDown={this.handleSizeInputKeyDown} onChange={this.setImageHeight} defaultValue={height}/>\n <button type='button' onClick={this.confirmImageSize}>{language.base.confirm}</button>\n </div>\n </div>\n ) : null}\n {renderedControlItems}\n <i style={{marginLeft: toolbarOffset * -1}} className='bf-media-toolbar-arrow'></i>\n </div>\n ) : null}\n <img\n ref={instance => this.imageElement = instance}\n src={src || url} style={{width, height}} width={width} height={height}\n />\n </div>\n {clearFix && <div className='clearfix' style={{clear:'both',height:0,lineHeight:0,float:'none'}}></div>}\n </div>\n )\n\n }\n\n calcToolbarOffset () {\n\n if (!this.props.containerNode) {\n return 0\n }\n\n const viewRect = this.props.containerNode.getBoundingClientRect()\n const toolbarRect = this.toolbarElement.getBoundingClientRect()\n const imageRect = this.imageElement.getBoundingClientRect()\n\n const right = viewRect.right - (imageRect.right - imageRect.width / 2 + toolbarRect.width / 2)\n const left = (imageRect.left + imageRect.width / 2 - toolbarRect.width / 2) - viewRect.left\n\n if (right < 10) {\n return right - 10\n } else if (left < 10) {\n return left * -1 + 10\n } else {\n return 0\n }\n\n }\n\n handleDragStart = () => {\n\n window.__BRAFT_DRAGING__IMAGE__ = {\n block: this.props.block,\n mediaData: {\n type: 'IMAGE',\n ...this.props.mediaData\n }\n }\n\n this.setState({\n toolbarVisible: false\n }, () => {\n this.props.editor.setDraftProps({ readOnly: false })\n })\n\n return true\n\n }\n\n handleDragEnd = () => {\n\n window.__BRAFT_DRAGING__IMAGE__ = null\n return false\n\n }\n\n executeCommand = (command) => {\n if (typeof command === 'string') {\n const [method, param] = command.split('|')\n this[method] && this[method](param)\n } else if (typeof command === 'function') {\n command(this.props.block, this.props.editorState)\n }\n }\n\n removeImage = () => {\n this.props.editor.setValue(ContentUtils.removeBlock(this.props.editorState, this.props.block))\n this.props.editor.setDraftProps({ readOnly: false })\n }\n\n toggleLinkEditor = () => {\n this.setState({\n linkEditorVisible: !this.state.linkEditorVisible,\n sizeEditorVisible: false\n })\n }\n\n toggleSizeEditor = () => {\n this.setState({\n linkEditorVisible: false,\n sizeEditorVisible: !this.state.sizeEditorVisible\n })\n }\n\n handleLinkInputKeyDown = (e) => {\n\n if (e.keyCode === 13) {\n this.confirmImageLink()\n } else {\n return\n }\n\n }\n\n setImageLink = (e) => {\n this.setState({ tempLink: e.currentTarget.value })\n return\n }\n\n setImageLinkTarget (link_target) {\n\n link_target = link_target === '_blank' ? '' : '_blank'\n this.props.editor.setValue(ContentUtils.setMediaData(this.props.editorState, this.props.entityKey, { link_target }))\n window.setImmediate(this.props.editor.forceRender)\n\n }\n\n confirmImageLink = () => {\n\n const { tempLink: link } = this.state\n\n if (link !== null) {\n this.props.editor.setValue(ContentUtils.setMediaData(this.props.editorState, this.props.entityKey, { link }))\n window.setImmediate(this.props.editor.forceRender)\n }\n\n }\n\n handleSizeInputKeyDown = (e) => {\n if (e.keyCode === 13) {\n this.confirmImageSize()\n } else {\n return\n }\n }\n\n setImageWidth = ({ currentTarget }) => {\n\n let { value } = currentTarget\n\n value && !isNaN(value) && (value = value + 'px')\n\n this.setState({\n tempWidth: value\n })\n\n return\n\n }\n\n setImageHeight = ({ currentTarget }) => {\n\n let { value } = currentTarget\n\n value && !isNaN(value) && (value = value + 'px')\n\n this.setState({\n tempHeight: value\n })\n\n return\n\n }\n\n confirmImageSize = () => {\n\n const { tempWidth: width, tempHeight: height } = this.state\n const newImageSize = {}\n\n width !== null && (newImageSize.width = width)\n height !== null && (newImageSize.height = height)\n\n this.props.editor.setValue(ContentUtils.setMediaData(this.props.editorState, this.props.entityKey, newImageSize))\n window.setImmediate(this.props.editor.forceRender)\n\n }\n\n setImageFloat = (float) => {\n this.props.editor.setValue(ContentUtils.setMediaPosition(this.props.editorState, this.props.block, { float }))\n this.props.editor.setDraftProps({ readOnly: false })\n }\n\n setImageAlignment = (alignment) => {\n this.props.editor.setValue(ContentUtils.setMediaPosition(this.props.editorState, this.props.block, { alignment }))\n this.props.editor.setDraftProps({ readOnly: false })\n }\n\n showToolbar = (event) => {\n\n event.preventDefault()\n\n if (!this.state.toolbarVisible) {\n this.setState({\n toolbarVisible: true\n }, () => {\n this.props.editor.setDraftProps({ readOnly: true })\n this.setState({ toolbarOffset: this.calcToolbarOffset() })\n })\n }\n\n }\n\n hideToolbar = (event) => {\n\n event.preventDefault()\n\n this.setState({\n toolbarVisible: false\n }, () => {\n this.props.editor.setDraftProps({ readOnly: false })\n })\n\n }\n\n}","import React from 'react'\n\nexport default class extends React.Component {\n\n shouldComponentUpdate () {\n return false\n }\n\n render () {\n return <div>{this.props.children}</div>\n }\n\n}","import './style.scss'\nimport React from 'react'\nimport StaticContainer from 'components/common/StaticContainer'\nimport { ContentUtils } from 'braft-utils'\n\nexport default class Video extends React.Component {\n\n state = {\n toolbarVisible: false,\n }\n\n render () {\n\n const { toolbarVisible } = this.state\n const { mediaData } = this.props\n const { src, url, meta } = mediaData\n\n return (\n <div\n className='bf-video'\n onMouseOver={this.showToolbar}\n onMouseLeave={this.hideToolbar}\n >\n <StaticContainer>\n <video controls src={src || url} poster={meta.poster}/>\n </StaticContainer>\n {toolbarVisible ? (\n <div className='bf-embed-toolbar'>\n <a onClick={this.removeVideo}>&#xe9ac;</a>\n </div>\n ) : null}\n </div>\n )\n\n }\n\n removeVideo = () => {\n this.props.editor.setValue(ContentUtils.removeBlock(this.props.editorState, this.props.block))\n }\n\n showToolbar = () => {\n this.setState({\n toolbarVisible: true\n })\n }\n\n hideToolbar = () => {\n this.setState({\n toolbarVisible: false\n })\n }\n\n}","import './style.scss'\nimport React from 'react'\nimport StaticContainer from 'components/common/StaticContainer'\nimport { ContentUtils } from 'braft-utils'\n\nexport default class Audio extends React.Component {\n\n state = {\n toolbarVisible: false,\n }\n\n render () {\n\n const { toolbarVisible } = this.state\n const { mediaData } = this.props\n const { src, url } = mediaData\n\n return (\n <div\n className='bf-audio'\n onMouseOver={this.showToolbar}\n onMouseLeave={this.hideToolbar}\n >\n <StaticContainer>\n <audio controls src={src || url}/>\n </StaticContainer>\n {toolbarVisible ? (\n <div className='bf-media-toolbar'>\n <a onClick={this.removeAudio}>&#xe9ac;</a>\n </div>\n ) : null}\n </div>\n )\n\n }\n\n removeAudio = () => {\n this.props.editor.setValue(ContentUtils.removeBlock(this.props.editorState, this.props.block))\n }\n\n showToolbar = () => {\n this.setState({\n toolbarVisible: true\n })\n }\n\n hideToolbar = () => {\n this.setState({\n toolbarVisible: false\n })\n }\n\n}","import './style.scss'\nimport React from 'react'\nimport StaticContainer from 'components/common/StaticContainer'\nimport { ContentUtils } from 'braft-utils'\n\nexport default class Embed extends React.Component {\n\n state = {\n toolbarVisible: false,\n }\n\n render () {\n\n const { toolbarVisible } = this.state\n const { mediaData } = this.props\n const { src, url } = mediaData\n\n return (\n <div\n className='bf-embed'\n onMouseOver={this.showToolbar}\n onMouseLeave={this.hideToolbar}\n >\n <StaticContainer>\n <div className='bf-embed-player' dangerouslySetInnerHTML={{ __html: src || url}}></div>\n </StaticContainer>\n {toolbarVisible ? (\n <div className='bf-media-toolbar'>\n <a onClick={this.removeEmbed}>&#xe9ac;</a>\n </div>\n ) : null}\n </div>\n )\n\n }\n\n removeEmbed = () => {\n this.props.editor.setValue(ContentUtils.removeBlock(this.props.editorState, this.props.block))\n }\n\n showToolbar = () => {\n this.setState({\n toolbarVisible: true\n })\n }\n\n hideToolbar = () => {\n this.setState({\n toolbarVisible: false\n })\n }\n\n}","import React from 'react'\nimport { ContentUtils } from 'braft-utils'\nimport './style.scss'\n\nexport default class HorizontalLine extends React.Component {\n\n render () {\n\n return (\n <div className='bf-hr'>\n <div className='bf-media-toolbar'>\n <a onClick={this.removeHorizontalLine}>&#xe9ac;</a>\n </div>\n </div>\n )\n\n }\n\n removeHorizontalLine = () => {\n this.props.editor.setValue(ContentUtils.removeBlock(this.props.editorState, this.props.block))\n }\n\n}","export default (customBlockStyleFn) => (block) => {\n\n const blockAlignment = block.getData() && block.getData().get('textAlign')\n const blockFloat = block.getData() && block.getData().get('float')\n\n let result = ''\n\n if (blockAlignment) {\n result = `bfa-${blockAlignment}`\n }\n\n if (blockFloat) {\n result += ` bff-${blockFloat}`\n }\n\n if (customBlockStyleFn) {\n result += customBlockStyleFn(block)\n }\n\n return result\n\n}","export default (props, customStyles = {}) => {\n\n const colorStyles = {}\n const bgColorStyles = {}\n const fontSizeStyles = {}\n const fontFamilyStyles = {}\n const lineHeightStyles = {}\n const letterSpacingtStyles = {}\n const indentStyles = {}\n\n props.colors.forEach((color) => {\n let color_id = color.replace('#', '').toUpperCase()\n colorStyles['COLOR-' + color_id] = { color }\n bgColorStyles['BGCOLOR-' + color_id] = { backgroundColor: color }\n })\n\n props.fontSizes.forEach((fontSize) => {\n fontSizeStyles['FONTSIZE-' + fontSize] = { fontSize: fontSize }\n })\n\n props.fontFamilies.forEach((fontFamily) => {\n fontFamilyStyles['FONTFAMILY-' + fontFamily.name.toUpperCase()] = {\n fontFamily: fontFamily.family\n }\n })\n\n props.lineHeights.forEach((lineHeight) => {\n lineHeightStyles['LINEHEIGHT-' + lineHeight] = { lineHeight: lineHeight }\n })\n\n props.letterSpacings.forEach((letterSpacing) => {\n letterSpacingtStyles['LETTERSPACING-' + letterSpacing] = { letterSpacing: letterSpacing }\n })\n props.textIndents.forEach((indent) => {\n indentStyles['INDENT-' + indent] = { paddingLeft: indent, paddingRight: indent}\n })\n \n return {\n 'SUPERSCRIPT': {\n position: 'relative',\n top: '-8px',\n fontSize: '11px'\n },\n 'SUBSCRIPT': {\n position: 'relative',\n bottom: '-8px',\n fontSize: '11px'\n },\n ...colorStyles,\n ...bgColorStyles,\n ...fontSizeStyles,\n ...fontFamilyStyles,\n ...lineHeightStyles,\n ...letterSpacingtStyles,\n ...indentStyles,\n ...customStyles\n }\n\n}","import React from 'react'\n\nfunction handleStrategy (contentBlock, callback, contentState) {\n\n contentBlock.findEntityRanges((character) => {\n const entityKey = character.getEntity()\n return (\n entityKey !== null &&\n contentState.getEntity(entityKey).getType() === 'LINK'\n )\n }, callback)\n\n}\n\nconst Link = (props) => {\n\n const { children, entityKey, contentState } = props\n const { href, target } = contentState.getEntity(entityKey).getData()\n\n return (\n <span className='bf-link-wrap'>\n <a onClick={(event) => viewLink(event, href)} className='bf-link' href={href} target={target}>{children}</a>\n </span>\n )\n\n}\n\nconst viewLink = (event, link) => {\n if (event.getModifierState('Shift')) {\n const tempLink = document.createElement('a')\n tempLink.href = link\n tempLink.target = '_blank'\n tempLink.click()\n }\n}\n\nexport default {\n strategy: handleStrategy,\n component: Link\n}","import Link from './Link'\n\nexport default [Link]","import React from 'react'\nimport { Map } from 'immutable'\nimport { DefaultDraftBlockRenderMap } from 'draft-js'\nimport Image from './atomics/Image'\nimport Video from './atomics/Video'\nimport Audio from './atomics/Audio'\nimport Embed from './atomics/Embed'\nimport HorizontalLine from './atomics/HorizontalLine'\nimport _getBlockStyleFn from './styles/blockStyles'\nimport _getCustomStyleMap from './styles/inlineStyles'\nimport _decorators from './decorators'\n\nconst getAtomicBlockComponent = (block, superProps) => (props) => {\n\n const entityKey = props.block.getEntityAt(0)\n\n if (!entityKey) {\n return null\n }\n\n const entity = props.contentState.getEntity(entityKey)\n const mediaData = entity.getData()\n const mediaType = entity.getType()\n const mediaProps = {\n ...superProps,\n block, mediaData, entityKey\n }\n\n if (mediaType === 'IMAGE') {\n return <Image { ...mediaProps } />\n } else if (mediaType === 'AUDIO') {\n return <Audio { ...mediaProps } />\n } else if (mediaType === 'VIDEO') {\n return <Video { ...mediaProps } />\n } else if (mediaType === 'EMBED') {\n return <Embed { ...mediaProps } />\n } else if (mediaType === 'HR') {\n return <HorizontalLine { ...mediaProps } />\n }\n\n if (superProps.extendAtomics) {\n const atomics = superProps.extendAtomics\n for (let i = 0; i < atomics.length; i++) {\n if (mediaType === atomics[i].type) {\n const Component = atomics[i].component\n return <Component {...mediaProps} />\n }\n }\n }\n\n return null\n\n}\n\nexport const getBlockRendererFn = (props, customBlockRendererFn) => (block) => {\n\n let blockRenderer = null\n\n if (block.getType() === 'atomic') {\n\n blockRenderer = {\n component: getAtomicBlockComponent(block, props),\n editable: false\n }\n\n } else if (customBlockRendererFn) {\n blockRenderer = customBlockRendererFn(block) || null\n }\n\n return blockRenderer\n\n}\n\nexport const customBlockRenderMap = Map({\n 'atomic': {\n element: ''\n },\n 'code-block': {\n element: 'code',\n wrapper: DefaultDraftBlockRenderMap.get('code-block').wrapper\n }\n})\n\nexport const getBlockStyleFn = _getBlockStyleFn\nexport const getCustomStyleMap = _getCustomStyleMap\nexport const decorators = _decorators","import { BaseUtils } from 'braft-utils'\n\nlet resizeEventHandlers = []\nlet responsiveHelperInited = false\nlet debouce = false\n\nexport default {\n\n resolve (eventHandler) {\n let id = BaseUtils.UniqueIndex()\n resizeEventHandlers.push({ id, eventHandler })\n return id\n },\n\n unresolve (id) {\n resizeEventHandlers = resizeEventHandlers.filter(item => item.id !== id)\n }\n\n}\n\nif (!responsiveHelperInited) {\n\n window.addEventListener('resize', (event) => {\n clearTimeout(debouce)\n debouce = setTimeout(() => {\n resizeEventHandlers.map((item) => {\n typeof item.eventHandler === 'function' && item.eventHandler(event)\n })\n debouce = false\n }, 100)\n })\n\n responsiveHelperInited = true\n\n}","import './style.scss'\nimport React from 'react'\nimport ResponsiveHelper from 'helpers/responsive'\nimport { BaseUtils } from 'braft-utils'\n\nexport default class DropDown extends React.Component {\n\n alive = false\n responsiveResolveId = null\n dropDownHandlerElement = null\n dropDownContentElement = null\n componentId = this.props.componentId || ('BRAFT-DROPDOWN-' + BaseUtils.UniqueIndex())\n state = {\n active: false,\n offset: 0,\n maxHeight: 100\n }\n\n componentDidMount () {\n\n this.alive = true\n\n document.body.addEventListener('click', (event) => {\n this.registerClickEvent(event)\n })\n\n this.responsiveResolveId = ResponsiveHelper.resolve(() => {\n this.fixDropDownPosition()\n })\n\n }\n\n componentWillReceiveProps (next) {\n\n if (!this.props.disabled && next.disabled) {\n this.hide()\n }\n\n }\n\n componentDidUpdate (prevState) {\n\n if (!prevState.active && this.state.active) {\n this.fixDropDownPosition()\n }\n\n }\n\n componentWillUnmount () {\n\n document.body.removeEventListener('click', (event) => {\n this.registerClickEvent(event)\n })\n\n this.alive = false\n ResponsiveHelper.unresolve(this.responsiveResolveId)\n\n }\n\n render () {\n\n let { active, offset, maxHeight } = this.state\n let { caption, htmlCaption, title, disabled, showArrow, arrowActive, className, children } = this.props\n\n disabled && (active = false)\n\n return (\n <div\n id={this.componentId}\n className={'bf-dropdown ' + (active ? 'active ' : '') + (disabled ? 'disabled ' : '') + className}\n >\n {htmlCaption ? (\n <button\n type='button'\n className='dropdown-handler'\n data-title={title}\n data-braft-component-id={this.componentId}\n dangerouslySetInnerHTML={htmlCaption ? {__html: htmlCaption} : null}\n ref={(instance) => this.dropDownHandlerElement = instance}\n ></button>\n ) : (\n <button\n type='button'\n className='dropdown-handler'\n data-title={title}\n data-braft-component-id={this.componentId}\n ref={(instance) => this.dropDownHandlerElement = instance}\n >\n <span>{caption}</span>\n {showArrow !== false ? <i className='bfi-drop-down'></i> : null}\n </button>\n )}\n <div\n className='dropdown-content'\n style={{marginLeft: offset }}\n ref={(instance) => this.dropDownContentElement = instance}\n >\n <i\n style={{marginLeft: offset * -1}}\n className={'dropdown-arrow' + (arrowActive ? ' active' : '')}\n ></i>\n <div\n className='dropdown-content-inner'\n style={{ maxHeight }}\n >\n {children}\n </div>\n </div>\n </div>\n )\n\n }\n\n fixDropDownPosition () {\n\n const viewRect = this.props.containerNode.getBoundingClientRect()\n const editorContentRect = this.props.containerNode.querySelector('.bf-content').getBoundingClientRect()\n const handlerRect = this.dropDownHandlerElement.getBoundingClientRect()\n const contentRect = this.dropDownContentElement.getBoundingClientRect()\n\n const maxHeight = editorContentRect.height + (editorContentRect.top - (handlerRect.top + handlerRect.height)) - 30\n\n let offset = 0\n let right = handlerRect.right - handlerRect.width / 2 + contentRect.width / 2\n let left = handlerRect.left + handlerRect.width / 2 - contentRect.width / 2\n\n right = viewRect.right - right\n left = left - viewRect.left\n\n if (right < 10) {\n offset = right - 10\n } else if (left < 10) {\n offset = left * -1 + 10\n }\n\n if (offset !== this.state.offset || maxHeight !== this.state.maxHeight) {\n this.setState({ offset, maxHeight })\n }\n\n }\n\n registerClickEvent (event) {\n\n let { autoHide } = this.props\n let active = false\n\n if (event.target.dataset.braftComponentId === this.componentId) {\n active = event.target.dataset.keepActive ? true : !this.state.active\n } else if (autoHide === false) {\n active = this.state.active\n }\n\n this.alive && this.setState({ active })\n\n }\n\n show () {\n this.setState({\n active: true\n })\n }\n\n hide () {\n this.setState({\n active: false\n })\n }\n\n\n}","import './style.scss'\nimport React from 'react'\nimport Switch from 'components/common/Switch'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nexport default class LinkEditor extends React.Component {\n\n state = {\n href: '',\n target: ''\n }\n\n dropDownComponent = null\n\n componentWillReceiveProps (next) {\n\n const { href, target } = ContentUtils.getSelectionEntityData(next.editorState, 'LINK')\n this.setState({\n href: href || '',\n target: target || ''\n })\n\n }\n\n render () {\n\n const { href, target } = this.state\n const caption = <i className='bfi-link'></i>\n const textSelected = !ContentUtils.isSelectionCollapsed(this.props.editorState) && ContentUtils.getSelectionBlockType(this.props.editorState) !== 'atomic'\n\n return (\n <div className='control-item-group'>\n <DropDown\n caption={caption}\n title={this.props.language.controls.link}\n autoHide={false}\n containerNode={this.props.containerNode}\n showArrow={false}\n disabled={!textSelected}\n ref={(instance) => this.dropDownComponent = instance}\n className={'control-item dropdown link-editor-dropdown'}\n >\n <div className='bf-link-editor'>\n <div className='input-group'>\n <input\n type='text'\n value={href}\n spellCheck={false}\n placeholder={this.props.language.linkEditor.inputPlaceHolder}\n onKeyDown={this.handeKeyDown}\n onChange={this.inputLink}\n />\n </div>\n <div className='switch-group'>\n <Switch\n active={target === '_blank'}\n onClick={this.setTarget}\n />\n <label>{this.props.language.linkEditor.openInNewWindow}</label>\n </div>\n <div className='buttons'>\n <a onClick={this.handleUnlink} className='primary pull-left' href='javascript:void(0);'>\n <i className='bfi-close'></i>\n <span>{this.props.language.linkEditor.removeLink}</span>\n </a>\n <button type='button' onClick={this.handleConfirm} className='primary pull-right'>{this.props.language.base.confirm}</button>\n <button type='button' onClick={this.handleCancel} className='default pull-right'>{this.props.language.base.cancel}</button>\n </div>\n </div>\n </DropDown>\n <button\n type='button'\n data-title={this.props.language.controls.unlink}\n className='control-item button'\n onClick={this.handleUnlink}\n disabled={!textSelected || !href}\n >\n <i className='bfi-link-off'></i>\n </button>\n </div>\n )\n\n }\n\n handeKeyDown = (e) => {\n if (e.keyCode === 13) {\n this.handleConfirm()\n e.preventDefault()\n return false\n }\n }\n\n inputLink = (e) => {\n this.setState({\n href: e.currentTarget.value\n })\n }\n\n setTarget = () => {\n this.setState({\n target: this.state.target === '_blank' ? '' : '_blank'\n })\n }\n\n handleCancel = () => {\n this.dropDownComponent.hide()\n }\n\n handleUnlink = () => {\n this.dropDownComponent.hide()\n this.props.editor.setValue(ContentUtils.toggleSelectionLink(this.props.editorState, false))\n }\n\n handleConfirm = () => {\n\n let { href, target } = this.state\n const hookReturns = this.props.hooks('toggle-link', { href, target })({ href, target })\n\n this.dropDownComponent.hide()\n this.props.editor.requestFocus()\n\n if (hookReturns === false) {\n return false\n }\n\n if (hookReturns) {\n typeof hookReturns.href === 'string' && (href = hookReturns.href)\n typeof hookReturns.target === 'string' && (target = hookReturns.target)\n }\n\n this.props.editor.setValue(ContentUtils.toggleSelectionLink(this.props.editorState, href, target))\n\n }\n\n}","import React from 'react'\n\nexport const getHeadings = (lang) => [\n {\n key: 'header-one',\n title: lang.controls.header + ' 1',\n text: <h1>{lang.controls.header} 1</h1>,\n type: 'block-type',\n command: 'header-one'\n }, {\n key: 'header-two',\n title: lang.controls.header + ' 2',\n text: <h2>{lang.controls.header} 2</h2>,\n type: 'block-type',\n command: 'header-two'\n }, {\n key: 'header-three',\n title: lang.controls.header + ' 3',\n text: <h3>{lang.controls.header} 3</h3>,\n type: 'block-type',\n command: 'header-three'\n }, {\n key: 'header-four',\n title: lang.controls.header + ' 4',\n text: <h4>{lang.controls.header} 4</h4>,\n type: 'block-type',\n command: 'header-four'\n }, {\n key: 'header-five',\n title: lang.controls.header + ' 5',\n text: <h5>{lang.controls.header} 5</h5>,\n type: 'block-type',\n command: 'header-five'\n }, {\n key: 'header-six',\n title: lang.controls.header + ' 6',\n text: <h6>{lang.controls.header} 6</h6>,\n type: 'block-type',\n command: 'header-six'\n }, {\n key: 'unstyled',\n title: lang.controls.normal,\n text: lang.controls.normal,\n type: 'block-type',\n command: 'unstyled'\n }\n]\n\nexport const blocks = {\n 'header-one': 'h1',\n 'header-two': 'h2',\n 'header-three': 'h3',\n 'header-four': 'h4',\n 'header-fiv': 'h5',\n 'header-six': 'h6',\n 'unstyled': 'p',\n 'blockquote': 'blockquote'\n}","import './style.scss'\nimport React from 'react'\nimport { getHeadings } from 'configs/maps'\nimport DropDown from 'components/common/DropDown'\n\nexport default (props) => {\n\n const headings = getHeadings(props.language)\n const currentHeadingIndex = headings.findIndex((item) => item.command === props.current)\n const caption = headings[currentHeadingIndex] ? headings[currentHeadingIndex].title : props.language.controls.normal\n\n return (\n <DropDown\n caption={caption}\n containerNode={props.containerNode}\n title={props.language.controls.headings}\n arrowActive={currentHeadingIndex === 0}\n className={'control-item dropdown headings-dropdown'}\n >\n <ul className='menu'>\n {\n headings.map((item, index) => {\n let isActive = props.current === item.command\n return (\n <li\n key={index}\n className={'menu-item' + (isActive ? ' active' : '')}\n onClick={() => props.onChange(item.command, item.type)}\n >\n {item.text}\n </li>\n )\n })\n }\n </ul>\n </DropDown>\n )\n\n}","import './style.scss'\nimport React from 'react'\n\nexport default (props) => {\n\n const { current, colors } = props\n\n return (\n <div className='bf-colors-wrap'>\n <ul className='bf-colors'>\n {colors.map((item, index) => {\n let className = item === current ? 'color-item active' : 'color-item'\n return (\n <li\n key={index}\n title={item}\n className={className}\n style={{color: item}}\n data-color={item.replace('#', '')}\n onClick={(e) => props.onChange(e.currentTarget.dataset.color)}\n >\n </li>\n )\n })}\n </ul>\n </div>\n )\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport ColorPicker from 'components/common/ColorPicker'\nimport { BaseUtils, ContentUtils } from 'braft-utils'\n\nexport default class TextColor extends React.Component {\n\n state = {\n colorType: 'color'\n }\n\n dropDownComponentId = 'BRAFT-DROPDOWN-' + BaseUtils.UniqueIndex()\n\n render () {\n\n let captionStyle = {}\n let currentColor = null\n let { colorType } = this.state\n\n this.props.colors.forEach((color) => {\n let color_id = color.replace('#', '')\n if (ContentUtils.selectionHasInlineStyle(this.props.editorState, 'COLOR-' + color_id)) {\n captionStyle.color = color\n colorType === 'color' && (currentColor = color)\n }\n\n if (ContentUtils.selectionHasInlineStyle(this.props.editorState, 'BGCOLOR-' + color_id)) {\n captionStyle.backgroundColor = color\n colorType === 'background-color' && (currentColor = color)\n }\n\n })\n\n const caption = (\n <i style={captionStyle} className='bfi-text-color'>\n <span className='path1'></span>\n <span className='path2'></span>\n </i>\n )\n\n return (\n <DropDown\n caption={caption}\n title={this.props.language.controls.color}\n showArrow={false}\n containerNode={this.props.containerNode}\n componentId={this.dropDownComponentId}\n ref={(instance) => this.dropDownComponent = instance}\n className={'control-item dropdown text-color-dropdown'}\n >\n <div className='bf-text-color-picker-wrap'>\n <div className='bf-color-switch-buttons' style={this.props.enableBackgroundColor ? {} : {display: 'none'}}>\n <button\n type='button'\n data-type='color'\n data-keep-active={true}\n data-braft-component-id={this.dropDownComponentId}\n className={colorType === 'color' ? 'active' : ''}\n onClick={this.switchColorType}\n >{this.props.language.controls.textColor}</button>\n <button\n type='button'\n data-type='background-color'\n data-keep-active={true}\n data-braft-component-id={this.dropDownComponentId}\n className={colorType === 'background-color' ? 'active' : ''}\n onClick={this.switchColorType}\n >{this.props.language.controls.backgroundColor}</button>\n </div>\n <ColorPicker\n width={200}\n language={this.props.language}\n current={currentColor}\n disableAlpha={true}\n colors={this.props.colors}\n onChange={this.toggleColor}\n />\n </div>\n </DropDown>\n )\n\n }\n\n switchColorType = ({ currentTarget }) => {\n this.setState({\n colorType: currentTarget.dataset.type\n })\n }\n\n toggleColor = (color) => {\n\n const hookReturns = this.props.hooks(`toggle-text-${this.state.colorType}`, color)(color)\n\n if (hookReturns === false) {\n return false\n }\n\n if (typeof hookReturns === 'string') {\n color = hookReturns\n }\n\n if (this.state.colorType === 'color') {\n this.props.editor.setValue(ContentUtils.toggleSelectionColor(this.props.editorState, color, this.props.colors))\n } else {\n this.props.editor.setValue(ContentUtils.toggleSelectionBackgroundColor(this.props.editorState, color, this.props.colors))\n }\n\n this.dropDownComponent.hide()\n this.props.editor.requestFocus()\n\n }\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nconst toggleFontSize = (event, props) => {\n\n let fontSize = event.currentTarget.dataset.size\n const hookReturns = props.hooks('toggle-font-size', fontSize)(fontSize)\n\n if (hookReturns === false) {\n return false\n }\n\n if (!isNaN(fontSize)) {\n fontSize = hookReturns\n }\n\n props.editor.setValue(ContentUtils.toggleSelectionFontSize(props.editorState, fontSize, props.fontSizes))\n props.editor.requestFocus()\n\n}\n\nexport default (props) => {\n\n let caption = null\n let currentFontSize = null\n\n props.fontSizes.find((item) => {\n if (ContentUtils.selectionHasInlineStyle(props.editorState, 'FONTSIZE-' + item)) {\n caption = item + 'px'\n currentFontSize = item\n return true\n }\n return false\n })\n\n return (\n <DropDown\n caption={caption || props.defaultCaption}\n containerNode={props.containerNode}\n title={props.language.controls.fontSize}\n className={'control-item dropdown bf-font-size-dropdown'}\n >\n <ul className='bf-font-sizes'>\n {props.fontSizes.map((item, index) => {\n return (\n <li\n key={index}\n className={item === currentFontSize ? 'active' : null}\n data-size={item}\n onClick={(event) => toggleFontSize(event, props)}\n >{item + 'px'}</li>\n )\n })}\n </ul>\n </DropDown>\n )\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nconst toggleLineHeight = (event, props) => {\n\n let lineHeight = event.currentTarget.dataset.size\n const hookReturns = props.hooks('toggle-line-height', lineHeight)(lineHeight)\n\n if (hookReturns === false) {\n return false\n }\n\n if (!isNaN(hookReturns)) {\n lineHeight = hookReturns\n }\n\n props.editor.setValue(ContentUtils.toggleSelectionLineHeight(props.editorState, lineHeight, props.lineHeights))\n props.editor.requestFocus()\n\n}\n\nexport default (props) => {\n\n let caption = null\n let currentLineHeight = null\n\n props.lineHeights.find((item) => {\n if (ContentUtils.selectionHasInlineStyle(props.editorState, 'LINEHEIGHT-' + item)) {\n caption = item\n currentLineHeight = item\n return true\n }\n return false\n })\n\n return (\n <DropDown\n caption={caption || props.defaultCaption}\n containerNode={props.containerNode}\n title={props.language.controls.lineHeight}\n className={'control-item dropdown bf-line-height-dropdown'}\n >\n <ul className='bf-line-heights'>\n {props.lineHeights.map((item, index) => {\n return (\n <li\n key={index}\n className={item === currentLineHeight ? 'active' : null}\n data-size={item}\n onClick={(event) => toggleLineHeight(event, props)}\n >{item}</li>\n )\n })}\n </ul>\n </DropDown>\n )\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nconst toggleFontFamily = (event, props) => {\n\n let fontFamilyName = event.currentTarget.dataset.name\n const hookReturns = props.hooks('toggle-font-family', fontFamilyName)(fontFamilyName, props.fontFamilies)\n\n if (hookReturns === false) {\n return false\n }\n\n if (typeof hookReturns === 'string') {\n fontFamilyName = hookReturns\n }\n\n props.editor.setValue(ContentUtils.toggleSelectionFontFamily(props.editorState, fontFamilyName, props.fontFamilies))\n props.editor.requestFocus()\n\n}\n\nexport default (props) => {\n\n let caption = null\n let currentIndex = null\n\n props.fontFamilies.find((item, index) => {\n if (ContentUtils.selectionHasInlineStyle(props.editorState, 'FONTFAMILY-' + item.name)) {\n caption = item.name\n currentIndex = index\n return true\n }\n return false\n })\n\n return (\n <DropDown\n caption={caption || props.defaultCaption}\n containerNode={props.containerNode}\n title={props.language.controls.fontFamily}\n arrowActive={currentIndex === 0}\n className={'control-item dropdown font-family-dropdown'}\n >\n <ul className='menu'>\n {props.fontFamilies.map((item, index) => {\n return (\n <li\n key={index}\n className={'menu-item ' + (index === currentIndex ? 'active' : '')}\n data-name={item.name}\n onClick={(event) => toggleFontFamily(event, props)}\n >\n <span style={{fontFamily: item.family}}>{item.name}</span>\n </li>\n )\n })}\n </ul>\n </DropDown>\n )\n\n}","import React from 'react'\nimport { ContentUtils } from 'braft-utils'\n\nexport default class TextAlign extends React.Component {\n\n state = {\n currentAlignment: undefined\n }\n\n componentWillReceiveProps (next) {\n this.setState({\n currentAlignment: ContentUtils.getSelectionBlockData(next.editorState, 'textAlign')\n })\n }\n\n setAlignment = (event) => {\n\n let { alignment } = event.currentTarget.dataset\n const hookReturns = this.props.hooks('toggle-text-alignment', alignment)(alignment)\n\n if (this.props.textAligns.indexOf(hookReturns) > -1) {\n alignment = hookReturns\n }\n\n this.props.editor.setValue(ContentUtils.toggleSelectionAlignment(this.props.editorState, alignment))\n this.props.editor.requestFocus()\n\n }\n\n render () {\n\n const textAlignmentTitles = [\n this.props.language.controls.alignLeft,\n this.props.language.controls.alignCenter,\n this.props.language.controls.alignRight,\n this.props.language.controls.alignJustify\n ]\n\n return (\n <div className='control-item-group'>\n {\n this.props.textAligns.map((item, index) => {\n return (\n <button\n type='button'\n key={index}\n data-title={textAlignmentTitles[index]}\n data-alignment={item}\n className={'control-item button ' + (item === this.state.currentAlignment ? 'active' : null)}\n onClick={this.setAlignment}\n >\n <i className={'bfi-align-' + item}></i>\n </button>\n )\n })\n }\n </div>\n )\n\n }\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nconst insertEmoji = (event, props) => {\n\n let emoji = event.currentTarget.dataset.emoji\n const hookReturns = props.hooks('insert-emoji', emoji)(emoji)\n\n if (hookReturns === false) {\n return false\n }\n\n if (typeof hookReturns === 'string') {\n emoji = hookReturns\n }\n\n props.editor.setValue(ContentUtils.insertText(props.editorState, emoji))\n props.editor.requestFocus()\n\n}\n\nexport default (props) => {\n\n return (\n <DropDown\n caption={props.defaultCaption}\n showArrow={false}\n containerNode={props.containerNode}\n title={props.language.controls.emoji}\n className={'control-item dropdown bf-emoji-dropdown'}\n >\n <div className='bf-emojis-wrap'>\n <ul className='bf-emojis'>\n {props.emojis.map((item, index) => {\n return (\n <li\n key={index}\n data-emoji={item}\n onClick={(event) => insertEmoji(event, props)}\n >{item}</li>\n )\n })}\n </ul>\n </div>\n </DropDown>\n )\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nconst toggleLetterSpacing = (event, props) => {\n\n let letterSpacing = event.currentTarget.dataset.size\n const hookReturns = props.hooks('toggle-letter-spacing', letterSpacing)(letterSpacing)\n\n if (hookReturns === false) {\n return false\n }\n\n if (!isNaN(hookReturns)) {\n letterSpacing = hookReturns\n }\n\n props.editor.setValue(ContentUtils.toggleSelectionLetterSpacing(props.editorState, letterSpacing, props.letterSpacings))\n props.editor.requestFocus()\n\n}\n\nexport default (props) => {\n\n let caption = null\n let currentLetterSpacing = null\n\n props.letterSpacings.find((item) => {\n if (ContentUtils.selectionHasInlineStyle(props.editorState, 'LETTERSPACING-' + item)) {\n caption = item\n currentLetterSpacing = item\n return true\n }\n return false\n })\n\n return (\n <DropDown\n caption={caption || props.defaultCaption}\n containerNode={props.containerNode}\n title={props.language.controls.letterSpacing}\n className={'control-item dropdown bf-letter-spacing-dropdown'}\n >\n <ul className='bf-letter-spacings'>\n {props.letterSpacings.map((item, index) => {\n return (\n <li\n key={index}\n className={item === currentLetterSpacing ? 'active' : null}\n data-size={item}\n onClick={(event) => toggleLetterSpacing(event, props)}\n >{item}</li>\n )\n })}\n </ul>\n </DropDown>\n )\n\n}","import './style.scss'\nimport React from 'react'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\n\nconst toggleTextIndent = (event, props) => {\n\n let textIndent = event.currentTarget.dataset.size\n const hookReturns = props.hooks('toggle-text-indent', textIndent)(textIndent)\n\n if (hookReturns === false) {\n return false\n }\n\n if (!isNaN(hookReturns)) {\n textIndent = hookReturns\n }\n\n props.editor.setValue(ContentUtils.toggleSelectionIndent(props.editorState, textIndent, props.textIndents))\n props.editor.requestFocus()\n\n}\n\nexport default (props) => {\n\n let caption = null\n let currentIndent = null\n\n props.textIndents.find((item) => {\n if (ContentUtils.selectionHasInlineStyle(props.editorState, 'INDENT-' + item)) {\n caption = item\n currentIndent = item\n return true\n }\n return false\n })\n\n return (\n <DropDown\n caption={caption || props.defaultCaption}\n containerNode={props.containerNode}\n title={props.language.controls.textIndent}\n className={'control-item dropdown bf-indent-dropdown'}\n >\n <ul className='bf-text-indents'>\n {props.textIndents.map((item, index) => {\n return (\n <li\n key={index}\n className={item === currentIndent ? 'active' : null}\n data-size={item}\n onClick={(event) => toggleTextIndent(event, props)}\n >{item}</li>\n )\n })}\n </ul>\n </DropDown>\n )\n\n}","import './style.scss'\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { BaseUtils } from 'braft-utils'\n\nexport default class Modal extends React.Component {\n\n constructor (props) {\n\n super(props)\n this.active = false\n this.componentId = 'BRAFT-MODAL-' + BaseUtils.UniqueIndex()\n\n }\n\n static defaultProps = {\n showFooter: true\n }\n\n componentDidMount () {\n\n if (this.props.visible) {\n this.active = true\n this.renderComponent(this.props)\n }\n\n }\n\n componentWillReceiveProps (next) {\n\n if (this.props.visible && !next.visible) {\n this.unrenderComponent()\n } else if (this.props.visible || next.visible) {\n this.active = true\n this.renderComponent(next)\n }\n\n }\n\n render () {\n return null\n }\n\n handleTransitionEnd = () => {\n\n if (!this.rootElement || !this.rootElement.classList) {\n return false\n }\n\n if (!this.rootElement.classList.contains('active')) {\n ReactDOM.unmountComponentAtNode(this.rootElement) && this.rootElement.parentNode.removeChild(this.rootElement)\n }\n\n }\n\n unrenderComponent () {\n this.active = false\n this.activeId && window.clearImmediate(this.activeId)\n if (this.rootElement && this.rootElement.classList) {\n this.rootElement.classList.remove('active')\n }\n }\n\n renderComponent (props) {\n\n if (!this.active) {\n return false\n }\n\n let { title, className, width, height, children, confirmable, showFooter, showCancel, showConfirm, showClose, cancelText, confirmText, bottomText, language } = props\n\n typeof showCancel === 'undefined' && (showCancel = true)\n typeof showClose === 'undefined' && (showClose = true)\n typeof showConfirm === 'undefined' && (showConfirm = true)\n\n const childComponent = (\n <div className={'bf-modal ' + (className || '')}>\n <div className='bf-modal-mask'></div>\n <div onTransitionEnd={this.handleTransitionEnd} style={{width, height}} className='bf-modal-content'>\n <div className='bf-modal-header'>\n <h3 className='bf-modal-caption'>{title}</h3>\n {showClose && <button type='button' onClick={this.close} className='bf-modal-close-button'><i className='bf-icon-close'></i></button>}\n </div>\n <div className='bf-modal-body'>{children}</div>\n {showFooter ? (\n <div className='bf-modal-footer'>\n <div className='bf-modal-addon-text'>{bottomText}</div>\n <div className='bf-modal-buttons'>\n {showCancel && <button type='button' onClick={this.handleCancel} className='bf-modal-cancel'>{cancelText || language.base.cancel}</button>}\n {showConfirm && <button type='button' onClick={this.handleConfirm} className={'bf-modal-confirm ' + (!confirmable ? 'disabled' : '')}>{confirmText || language.base.confirm}</button>}\n </div>\n </div>\n ) : null}\n </div>\n </div>\n )\n\n this.rootElement = document.querySelector('#' + this.componentId)\n\n if (!this.rootElement) {\n this.rootElement = document.createElement('div')\n this.rootElement.id = this.componentId\n this.rootElement.className = 'bf-modal-root'\n document.body.appendChild(this.rootElement)\n }\n\n ReactDOM.render(childComponent, this.rootElement)\n\n this.activeId = window.setImmediate(() => {\n this.rootElement.classList.add('active')\n })\n\n }\n\n handleCancel = () => {\n this.props.closeOnCancel && this.close()\n this.props.onCancel && this.props.onCancel()\n }\n\n handleConfirm = () => {\n this.props.closeOnConfirm && this.close()\n this.props.onConfirm && this.props.onConfirm()\n }\n\n close = () => {\n this.unrenderComponent()\n this.props.onClose && this.props.onClose()\n }\n\n}\n\nexport const showModal = (props) => {\n\n const hostNode = document.createElement('div')\n hostNode.style.display = 'none'\n document.body.appendChild(hostNode)\n\n const close = () => {\n ReactDOM.unmountComponentAtNode(hostNode) && hostNode.parentNode.removeChild(hostNode)\n }\n\n const onConfirm = () => {\n close()\n props.onConfirm && props.onConfirm()\n }\n\n const onCancel = () => {\n close()\n props.onCancel && props.onCancel()\n }\n\n const onClose = () => {\n close()\n props.onClose && props.onClose()\n }\n\n const extProps = {\n onConfirm, onCancel, onClose,\n visible: true,\n closeOnConfirm: true,\n closeOnCancel: true\n }\n\n const modalInstance = ReactDOM.render(<Modal { ...props } { ...extProps }/>, hostNode)\n modalInstance.destroy = close\n modalInstance.update = modalInstance.renderComponent\n\n return modalInstance\n\n}","import './style.scss'\nimport React from 'react'\nimport getEditorControls from 'configs/controls'\nimport LinkEditor from 'components/business/LinkEditor'\nimport HeadingPicker from 'components/business/Headings'\nimport TextColorPicker from 'components/business/TextColor'\nimport FontSizePicker from 'components/business/FontSize'\nimport LineHeightPicker from 'components/business/LineHeight'\nimport FontFamilyPicker from 'components/business/FontFamily'\nimport TextAlign from 'components/business/TextAlign'\nimport EmojiPicker from 'components/business/EmojiPicker'\nimport LetterSpacingPicker from 'components/business/LetterSpacing'\nimport TextIndentPicker from 'components/business/TextIndent'\nimport DropDown from 'components/common/DropDown'\nimport { ContentUtils } from 'braft-utils'\nimport { showModal } from 'components/common/Modal'\n\nconst commandHookMap = {\n 'inline-style': 'toggle-inline-style',\n 'block-type': 'change-block-type',\n 'editor-method': 'exec-editor-command'\n}\n\nexport default class ControlBar extends React.Component {\n\n mediaLibiraryModal = null\n extendedModals = {}\n\n componentDidUpdate () {\n\n const { controls, language } = this.props\n\n controls.forEach(item => {\n if (item.type === 'modal') {\n if (item.modal && item.modal.id && this.extendedModals[item.modal.id]) {\n this.extendedModals[item.modal.id].update({ ...item.modal, language })\n }\n }\n })\n\n }\n\n getControlItemClassName (data) {\n\n let className = 'control-item button'\n let { type, command } = data\n\n if (type === 'inline-style' && ContentUtils.selectionHasInlineStyle(this.props.editorState, command)) {\n className += ' active'\n } else if (type === 'block-type' && ContentUtils.getSelectionBlockType(this.props.editorState) === command) {\n className += ' active'\n }\n\n return className\n\n }\n\n applyControl (command, type) {\n\n const hookReturns = this.props.hooks(commandHookMap[type] || type, command)(command)\n\n if (hookReturns === false) {\n return false\n }\n\n if (typeof hookReturns === 'string') {\n command = hookReturns\n }\n\n if (type === 'inline-style') {\n this.props.editor.setValue(ContentUtils.toggleSelectionInlineStyle(this.props.editorState, command))\n } else if (type === 'block-type') {\n this.props.editor.setValue(ContentUtils.toggleSelectionBlockType(this.props.editorState, command))\n } else if (type === 'editor-method') {\n this.props.editor[command] && this.props.editor[command]()\n }\n\n this.props.editor.requestFocus()\n\n }\n\n openBraftFinder = () => {\n\n if (!this.props.braftFinder || !this.props.braftFinder.ReactComponent) {\n return false\n }\n\n if (this.props.hooks('open-braft-finder')() === false) {\n return false\n }\n\n const mediaProps = this.props.media\n const MediaLibrary = this.props.braftFinder.ReactComponent\n\n this.mediaLibiraryModal = showModal({\n title: this.props.language.controls.mediaLibirary,\n language: this.props.language,\n width: 640,\n showFooter: false,\n children: (\n <MediaLibrary\n onCancel={this.closeBraftFinder}\n onInsert={this.insertMedias}\n onChange={mediaProps.onChange}\n externals={mediaProps.externals}\n onBeforeSelect={this.bindBraftFinderHook('select-medias')}\n onBeforeDeselect={this.bindBraftFinderHook('deselect-medias')}\n onBeforeRemove={this.bindBraftFinderHook('remove-medias')}\n onBeforeInsert={this.bindBraftFinderHook('insert-medias')}\n onFileSelect={this.bindBraftFinderHook('select-files')}\n />\n )\n })\n\n }\n\n bindBraftFinderHook = (hookName) => (...params) => {\n return this.props.hooks(hookName, params[0])(...params)\n }\n\n insertMedias = (medias) => {\n\n this.props.editor.setValue(ContentUtils.insertMedias(this.props.editorState, medias))\n this.props.editor.requestFocus()\n this.props.media.onInsert && this.props.media.onInsert(medias)\n this.closeBraftFinder()\n\n }\n\n closeBraftFinder = () => {\n\n this.props.media.onCancel && this.props.media.onCancel()\n this.mediaLibiraryModal && this.mediaLibiraryModal.close()\n\n }\n\n render() {\n\n const { editor, editorState, controls, media, extendControls, language, hooks, colors, fontSizes, fontFamilies, emojis, containerNode, lineHeights, letterSpacings, textAligns, textBackgroundColor, textIndents} = this.props\n const currentBlockType = ContentUtils.getSelectionBlockType(editorState)\n const editorControls = getEditorControls(language)\n const commonProps = { editor, editorState, language, containerNode, hooks }\n const renderedControls = []\n\n return (\n <div className='bf-controlbar'>\n {\n [\n ...controls,\n ...extendControls\n ].map((item, index) => {\n let itemKey = typeof item === 'string' ? item : item.key\n if (typeof itemKey !== 'string') {\n return null\n }\n if (renderedControls.indexOf(itemKey) > -1) {\n return null\n }\n if (itemKey.toLowerCase() === 'separator') {\n return <span key={index} className='separator-line'></span>\n }\n let controlItem = editorControls.find((subItem) => {\n return subItem.key.toLowerCase() === itemKey.toLowerCase()\n })\n if (typeof item !== 'string') {\n controlItem = { ...controlItem, ...item }\n }\n if (!controlItem) {\n return null\n }\n renderedControls.push(itemKey)\n if (controlItem.type === 'headings') {\n return <HeadingPicker\n key={index}\n current={currentBlockType}\n onChange={(command) => this.applyControl(command, 'block-type')}\n {...commonProps}\n />\n } else if (controlItem.type === 'text-color') {\n return <TextColorPicker\n key={index}\n colors={colors}\n enableBackgroundColor={textBackgroundColor}\n {...commonProps}\n />\n } else if (controlItem.type === 'font-size') {\n return <FontSizePicker\n key={index}\n fontSizes={fontSizes}\n defaultCaption={controlItem.title}\n {...commonProps}\n />\n } else if (controlItem.type === 'line-height') {\n return <LineHeightPicker\n key={index}\n lineHeights={lineHeights}\n defaultCaption={controlItem.title}\n {...commonProps}\n />\n } else if (controlItem.type === 'letter-spacing') {\n return <LetterSpacingPicker\n key={index}\n letterSpacings={letterSpacings}\n defaultCaption={controlItem.title}\n {...commonProps}\n />\n } else if (controlItem.type === 'text-indent') {\n return <TextIndentPicker\n key={index}\n textIndents={textIndents}\n defaultCaption={controlItem.title}\n {...commonProps}\n />\n } else if (controlItem.type === 'font-family') {\n return <FontFamilyPicker\n key={index}\n fontFamilies={fontFamilies}\n defaultCaption={controlItem.title}\n {...commonProps}\n />\n } else if (controlItem.type === 'emoji') {\n return <EmojiPicker\n key={index}\n emojis={emojis}\n defaultCaption={controlItem.text}\n {...commonProps}\n />\n } else if (controlItem.type === 'link') {\n return <LinkEditor\n key={index}\n {...commonProps}\n />\n } else if (controlItem.type === 'text-align') {\n return (\n <TextAlign\n key={index}\n textAligns={textAligns}\n {...commonProps}\n />\n )\n } else if (controlItem.type === 'media') {\n if (!media.image && !media.video && !media.audio) {\n return null\n }\n return (\n <button\n type='button'\n key={index}\n data-title={controlItem.title}\n className='control-item media button'\n onClick={this.openBraftFinder}\n >\n {controlItem.text}\n </button>\n )\n } else if (controlItem.type === 'dropdown') {\n return (\n <DropDown\n key={index}\n className={'control-item extend-control-item dropdown ' + controlItem.className}\n caption={controlItem.text}\n htmlCaption={controlItem.html}\n showArrow={controlItem.showArrow}\n containerNode={controlItem.containerNode}\n title={controlItem.title}\n arrowActive={controlItem.arrowActive}\n autoHide={controlItem.autoHide}\n disabled={controlItem.disabled}\n ref={controlItem.ref}\n >\n {controlItem.component}\n </DropDown>\n )\n } else if (controlItem.type === 'modal') {\n return (\n <button\n type='button'\n key={index}\n data-title={controlItem.title}\n className={'control-item extend-control-item button ' + controlItem.className}\n dangerouslySetInnerHTML={controlItem.html ? { __html: controlItem.html } : null}\n onClick={(event) => {\n if (controlItem.modal && controlItem.modal.id) {\n if (this.extendedModals[controlItem.modal.id]) {\n this.extendedModals[controlItem.modal.id].active = true\n this.extendedModals[controlItem.modal.id].update({ ...controlItem.modal, language })\n } else {\n this.extendedModals[controlItem.modal.id] = showModal({ ...controlItem.modal, language })\n controlItem.modal.onCreate && controlItem.modal.onCreate(this.extendedModals[controlItem.modal.id])\n }\n }\n controlItem.onClick && controlItem.onClick(event)\n }}\n >\n {!controlItem.html ? controlItem.text : null}\n </button>\n )\n } else if (controlItem.type === 'component') {\n return (\n <div\n key={index}\n className={'control-item component-wrapper ' + controlItem.className}\n >{controlItem.component}</div>\n )\n } else if (controlItem.type === 'button') {\n return (\n <button\n type='button'\n key={index}\n data-title={controlItem.title}\n className={'control-item button ' + controlItem.className}\n dangerouslySetInnerHTML={controlItem.html ? { __html: controlItem.html } : null}\n onClick={(event) => controlItem.onClick && controlItem.onClick(event)}\n >\n {!controlItem.html ? controlItem.text : null}\n </button>\n )\n } else {\n return (\n <button\n type='button'\n key={index}\n data-title={controlItem.title}\n className={this.getControlItemClassName({\n type: controlItem.type,\n command: controlItem.command\n })}\n onClick={() => this.applyControl(controlItem.command, controlItem.type)}\n >\n {controlItem.text}\n </button>\n )\n }\n })\n }\n </div>\n )\n\n }\n\n}","import 'draft-js/dist/Draft.css'\nimport 'assets/scss/_base.scss'\nimport React from 'react'\nimport languages from 'languages'\nimport BraftFinder from 'braft-finder'\nimport { ColorUtils, ContentUtils } from 'braft-utils'\nimport { CompositeDecorator, DefaultDraftBlockRenderMap, Editor } from 'draft-js'\nimport getKeyBindingFn from 'configs/keybindings'\nimport defaultProps from 'configs/props'\nimport { getBlockRendererFn, customBlockRenderMap, getBlockStyleFn, getCustomStyleMap, decorators } from 'renderers'\nimport ControlBar from 'components/business/ControlBar'\n\nconst buildHooks= (hooks) => (hookName, defaultReturns = {}) => {\n return hooks[hookName] || (() => defaultReturns)\n}\n\nexport const editorDecorators = new CompositeDecorator(decorators)\n\nexport default class BraftEditor extends React.Component {\n\n static defaultProps = defaultProps\n\n constructor (props) {\n\n super(props)\n\n this.isFocused = false\n this.keyBindingFn = getKeyBindingFn(props.customKeyBindingFn)\n this.blockStyleFn = getBlockStyleFn(props.blockStyleFn)\n this.blockRenderMap = DefaultDraftBlockRenderMap.merge(customBlockRenderMap)\n\n if (props.blockRenderMapFn) {\n this.blockRenderMap = props.blockRenderMapFn(this.blockRenderMap)\n }\n\n this.braftFinder = null\n const defaultEditorState = ContentUtils.isEditorState(props.defaultValue) ? props.defaultValue : ContentUtils.createEmptyEditorState(editorDecorators)\n\n this.state = {\n containerNode: null,\n tempColors: [],\n editorState: defaultEditorState,\n draftProps: {}\n }\n\n }\n\n componentWillMount () {\n\n const { controls, extendControls } = this.props\n\n if ([...controls, ...extendControls].find(item => item === 'media' || item.key === 'media')) {\n this.braftFinder = new BraftFinder({\n language: this.props.language,\n uploader: this.props.media.uploadFn,\n validator: this.props.media.validateFn\n })\n this.forceUpdate()\n }\n\n }\n\n componentDidMount () {\n\n const { value: editorState } = this.props\n\n if (ContentUtils.isEditorState(editorState)) {\n this.setState({ editorState })\n } else if (editorState) {\n // console.warn('')\n }\n\n }\n\n componentWillReceiveProps (nextProps) {\n\n const { value: editorState } = nextProps\n\n if (ContentUtils.isEditorState(editorState)) {\n this.setState({ editorState })\n } else if (editorState) {\n // console.warn('')\n }\n\n }\n\n onChange = (editorState) => {\n this.setState({ editorState }, () => {\n this.props.onChange && this.props.onChange(editorState)\n })\n }\n\n getDraftInstance = () => {\n return this.draftInstance\n }\n\n getFinderInstance = () => {\n return this.braftFinder\n }\n\n getValue = () => {\n return this.state.editorState\n }\n\n setValue = (editorState) => {\n return this.onChange(editorState)\n }\n\n forceRender = () => {\n return this.setValue(ContentUtils.createEditorState(this.state.editorState.getCurrentContent(), editorDecorators))\n }\n\n onTab = (event) => {\n\n if (ContentUtils.getSelectionBlockType(this.state.editorState) === 'code-block') {\n this.setValue(ContentUtils.insertText(this.state.editorState, ' '.repeat(this.props.tabIndents)))\n event.preventDefault()\n return false\n }\n\n this.props.onTab && this.props.onTab(event)\n\n }\n\n onFocus = () => {\n this.isFocused = true\n this.props.onFocus && this.props.onFocus()\n }\n\n onBlur = () => {\n this.isFocused = false\n this.props.onBlur && this.props.onBlur()\n }\n\n requestFocus = () => {\n setTimeout(() => this.draftInstance.focus(), 0)\n }\n\n handleKeyCommand = (command) => {\n\n if (command === 'braft-save') {\n this.props.onSave && this.props.onSave()\n return 'handled'\n }\n\n const nextEditorState = ContentUtils.handleKeyCommand(this.state.editorState, command)\n\n if (nextEditorState) {\n this.setValue(nextEditorState)\n return 'handled'\n }\n\n return 'not-handled'\n\n }\n\n handleReturn = (event) => {\n\n const currentBlock = ContentUtils.getSelectionBlock(this.state.editorState)\n const currentBlockType = currentBlock.getType()\n\n if (currentBlockType === 'unordered-list-item' || currentBlockType === 'ordered-list-item') {\n\n if (currentBlock.getLength() === 0) {\n this.setValue(ContentUtils.toggleSelectionBlockType(this.state.editorState, 'unstyled'))\n return 'handled'\n }\n\n return 'not-handled'\n\n } else if (currentBlockType === 'code-block') {\n\n if (\n event.which === 13 && (\n event.getModifierState('Shift') ||\n event.getModifierState('Alt') ||\n event.getModifierState('Control')\n )) {\n this.setValue(ContentUtils.toggleSelectionBlockType(this.state.editorState, 'unstyled'))\n return 'handled'\n }\n\n return 'not-handled'\n\n } else {\n\n const nextEditorState = ContentUtils.handleNewLine(this.state.editorState, event)\n\n if (nextEditorState) {\n this.setValue(nextEditorState)\n return 'handled'\n }\n\n return 'not-handled'\n\n }\n\n }\n\n handleDrop = (selectionState, dataTransfer) => {\n\n if (window && window.__BRAFT_DRAGING__IMAGE__) {\n\n let editorState = ContentUtils.removeBlock(this.state.editorState, window.__BRAFT_DRAGING__IMAGE__.block, selectionState)\n editorState = ContentUtils.insertMedias(editorState, [window.__BRAFT_DRAGING__IMAGE__.mediaData])\n\n window.__BRAFT_DRAGING__IMAGE__ = null\n\n this.setDraftProps({ readOnly: false })\n this.setValue(editorState)\n\n return 'handled'\n\n } else if (!dataTransfer || !dataTransfer.getText()) {\n return 'handled'\n }\n\n return 'not-handled'\n\n }\n\n handleDroppedFiles = (selectionState, files) => {\n return this.resolveFiles(files)\n }\n\n handlePastedFiles = (files) => {\n return this.resolveFiles(files)\n }\n\n handlePastedText = (text, htmlString) => {\n\n if (!htmlString || this.props.stripPastedStyles) {\n return false\n }\n\n const tempColors = ColorUtils.detectColorsFromHTMLString(htmlString)\n\n this.setState({\n tempColors: [...this.state.tempColors, ...tempColors].filter(item => this.props.colors.indexOf(item) === -1).filter((item, index, array) => array.indexOf(item) === index)\n }, () => {\n this.setValue(ContentUtils.insertHTML(this.state.editorState, htmlString))\n })\n\n return true\n\n }\n\n resolveFiles = (files) => {\n\n if (files[0] && files[0].type.indexOf('image') > -1 && this.props.media && this.props.media.pasteImage) {\n\n this.braftFinder.uploadImage(files[0], image => {\n this.setValue(ContentUtils.insertMedias(this.state.editorState, [image]))\n })\n \n return 'handled'\n\n }\n\n return 'not-handled'\n\n }\n\n undo = () => {\n this.setValue(ContentUtils.undo(this.state.editorState))\n }\n\n redo = () => {\n this.setValue(ContentUtils.redo(this.state.editorState))\n }\n\n removeSelectionInlineStyles = () => {\n this.setValue(ContentUtils.removeSelectionInlineStyles(this.state.editorState))\n }\n\n insertHorizontalLine = () => {\n this.setValue(ContentUtils.insertHorizontalLine(this.state.editorState))\n }\n\n clearEditorContent = () => {\n this.setValue(ContentUtils.clear(this.state.editorState))\n }\n\n render () {\n\n let {\n controls, excludeControls, extendControls, disabled, media, language, colors, hooks,\n fontSizes, fontFamilies, emojis, placeholder, imageControls, lineHeights, letterSpacings, textIndents, textAligns, textBackgroundColor,\n extendAtomics, className, style, controlBarClassName, controlBarStyle, contentClassName, contentStyle, stripPastedStyles, componentBelowControlBar\n } = this.props\n\n hooks = buildHooks(hooks)\n controls = controls.filter(item => excludeControls.indexOf(item) === -1)\n language = languages[language] || languages[defaultProps.language]\n\n const externalMedias = media && media.externals ? {\n ...defaultProps.media.externals,\n ...media.externals\n } : defaultProps.media.externals\n\n media = { ...defaultProps.media, ...media, externalMedias }\n\n if (!media.uploadFn) {\n media.video = false\n media.audio = false\n }\n\n const controlBarProps = {\n editor: this,\n editorState: this.state.editorState,\n braftFinder: this.braftFinder,\n ref: instance => this.controlBarInstance = instance,\n containerNode: this.state.containerNode,\n className: controlBarClassName,\n style: controlBarStyle, hooks,\n colors: [...colors, ...this.state.tempColors],\n media, controls, language, extendControls, fontSizes, fontFamilies,\n emojis, lineHeights, letterSpacings, textIndents, textAligns, textBackgroundColor\n }\n\n const blockRendererFn = getBlockRendererFn({\n editor: this, hooks,\n editorState: this.state.editorState,\n containerNode: this.state.containerNode,\n imageControls, language, extendAtomics\n }, this.props.blockRendererFn)\n\n const customStyleMap = getCustomStyleMap({\n colors: [...colors, ...this.state.tempColors],\n fontSizes, fontFamilies, lineHeights, letterSpacings, textIndents\n }, this.props.customStyleMap)\n\n const draftProps = {\n ref: instance => { this.draftInstance = instance },\n editorState: this.state.editorState,\n handleKeyCommand: this.handleKeyCommand,\n handleReturn: this.handleReturn,\n handleDrop: this.handleDrop,\n handleDroppedFiles: this.handleDroppedFiles,\n handlePastedText: this.handlePastedText,\n handlePastedFiles: this.handlePastedFiles,\n onChange: this.onChange,\n onTab: this.onTab,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n readOnly: disabled,\n blockRenderMap: this.blockRenderMap,\n blockStyleFn: this.blockStyleFn,\n keyBindingFn: this.keyBindingFn,\n customStyleMap, blockRendererFn,\n placeholder, stripPastedStyles,\n ...this.props.draftProps,\n ...this.state.draftProps\n }\n\n return (\n <div ref={this.setEditorContainerNode} className={`bf-container ${className} ${(disabled ? 'disabled' : '')}`} style={style}>\n <ControlBar {...controlBarProps} />\n {componentBelowControlBar}\n <div className={`bf-content ${contentClassName}`} style={contentStyle}>\n <Editor {...draftProps} />\n </div>\n </div>\n )\n\n }\n\n setDraftProps (draftProps) {\n this.setState({\n draftProps: {\n ...this.state.draftProps,\n ...draftProps\n }\n })\n }\n\n setEditorContainerNode = (containerNode) => {\n this.setState({ containerNode }, this.forceRender)\n }\n\n}","import BraftEditor, { editorDecorators } from './editor'\nimport { EditorState } from 'draft-js'\nimport { convertRawToEditorState, convertHTMLToEditorState, convertEditorStateToRaw, convertEditorStateToHTML } from 'braft-convert'\n\n// 为EditorState对象增加toHTML原型方法,用于将editorState转换成HTML字符串\nEditorState.prototype.toHTML = function () {\n return convertEditorStateToHTML(this)\n}\n\n// 为EditorState对象增加toRAW原型方法,用于将editorState转换成RAW JSON对象或RAW JSON字符串\nEditorState.prototype.toRAW = function (noStringify) {\n return noStringify ? convertEditorStateToRaw(this) : JSON.stringify(convertEditorStateToRaw(this))\n}\n\n// 为EditorState对象增加新的静态方法,用于从raw或者html内容创建ediorState\nEditorState.createFrom = (content, options) => {\n\n if (typeof content === 'object' && content && content.blocks && content.entityMap) {\n return convertRawToEditorState(content, editorDecorators)\n } else if (typeof content === 'string') {\n try {\n return EditorState.createFrom(JSON.parse(content), options)\n } catch (error) {\n return convertHTMLToEditorState(content, editorDecorators, options)\n }\n } else {\n return EditorState.createEmpty(editorDecorators)\n }\n\n}\n\nexport default BraftEditor\nexport { EditorState, editorDecorators }\n\n// 2.0.0开发计划\n// [ ]完善各模块文档说明\n// [√]添加更多钩子(插入链接、切换样式等)\n// [√]优化内置的图片伪上传功能,用base64代替blob\n// [√]支持自定义图片工具栏按钮\n// [√]支持通过属性扩展customStyleMap, blockStyleFn, keyBindingFn, blockRendererFn, blockRenderMap等\n// [√]允许完全设置控制栏的按钮(['media', { key: 'blod', text: 'xxx' })\n// [√]允许在工具栏和内容区域直接插入自定义的组件[componentBelowControlBar]\n// [√]支持定义DropDown组件的样式\n// [√]media.validateFn支持异步函数\n// [√]优化音视频在编辑器内的预览体验\n// [√]标准化代码,引入ESLint\n// ---------------------------\n// 优化全选会选择上传中的项目的问题\n// 支持param.success时设置媒体文件的更多属性(尺寸等)\n\n// 2.1.0版本开发计划\n// [ ]美化UI,包括图标和界面风格\n// [ ]优化控件title提示\n\n// 2.2.0版本开发计划\n// [ ]允许自定义快捷键\n// [ ]优化图片param.success,支持传入link等\n// [ ]简化上传配置流程\n// [ ]支持draftjs插件机制\n// [ ]支持媒体库组件的更多个性化配置(placeholder等)\n// [ ]支持非媒体类附件\n// [ ]优化HTML格式无法存储媒体名称的问题 \n// [ ]完成font-size等样式的全量支持\n\n// 2.3.0版本开发计划\n// [ ]优化换行与空格\n// [ ]支持自定义Atomic组件\n// [ ]图片裁切等简单的编辑功能\n// [ ]代码块交互强化\n// [ ]初级表格功能\n","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin","// removed by extract-text-webpack-plugin"],"sourceRoot":""}