Nav apraksta

1
  1. {"version":3,"sources":["../../src/RichEditor/index.js"],"names":["RichEditor","defaultProps","controls","props","React","Component"],"mappings":";;;;;;;;;;AAAA;;;;AAEA;;;;AAEA;;;;;;;;;AAHA;;AAEA;;;IAGqBA,U;;;;;;;;;;;iCACP;AACN,gBAAMC,eAAe;AACjBC,0BAAU,CACN,UADM,EACM,YADN,EACoB,MADpB,EAC4B,QAD5B,EACsC,WADtC,EACmD,gBADnD,EACqE,WADrE,EAEN,aAFM,EAES,WAFT,EAEsB,eAFtB,EAEuC,OAFvC,EAEgD,YAFhD,EAE8D,WAF9D,EAGN,SAHM,EAGK,SAHL,EAGgB,YAHhB,EAG8B,MAH9B,EAGsC,WAHtC,EAIN,MAJM,EAIE,WAJF,EAIe,IAJf,EAIqB,WAJrB,EAKN,OALM,EAKG,WALH,EAKiB,MALjB,EAKyB,MALzB;AADO,aAArB;;AAUA,gBAAMC,qBACCF,YADD,EAEC,KAAKE,KAFN,CAAN;AAIA,mBACE,8BAAC,qBAAD,EAAiBA,KAAjB,CADF;AAGH;;;;EAnBmCC,gBAAMC,S;;kBAAzBL,U","file":"index.js","sourcesContent":["import React from 'react'\n// 引入编辑器以及EditorState子模块\nimport BraftEditor from 'braft-editor'\n// 引入编辑器样式\nimport 'braft-editor/dist/index.css'\n\nexport default class RichEditor extends React.Component {\n render () {\n const defaultProps = {\n controls: [\n 'headings', 'text-color', 'bold', 'italic', 'underline', 'strike-through', 'separator',\n 'superscript', 'subscript', 'remove-styles', 'emoji', 'text-align', 'separator',\n 'list-ul', 'list-ol', 'blockquote', 'code', 'separator',\n 'link', 'separator', 'hr', 'separator',\n 'media', 'separator', 'undo', 'redo',\n ]\n }\n\n const props = {\n ...defaultProps,\n ...this.props,\n }\n return (\n <BraftEditor {...props} />\n )\n }\n}"]}