Skip to content

Commit

Permalink
fix: imageUrl props is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
chenwenhua committed Mar 11, 2019
1 parent 4e8da44 commit 393eeca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -28,16 +28,16 @@ npm install react-markdown-editor-lite --save

| Property | Description | Type | default | Remarks |
| --- | --- | --- | --- | --- |
| value | markdown content | String | '' | |
| style | component container style | Object | {height: '100%'} | |
| config | component config | Object | {view: {...}, logger: {...}} | |
| value | markdown content | String | '' | required |
| style | component container style | Object | {height: '100%'} | not required |
| config | component config | Object | {view: {...}, logger: {...}} | not required |
| config.view | component UI | Object | {menu: true, md: true, html: true} | |
| config.imageUrl | default image url | String | '' | |
| config.linkUrl | default link url | String | '' | |
| config.table | table maximum value of row and column | Object | {maxRow: 4, maxCol: 6} | |
| config.logger | logger in order to undo or redo | Object | {interval: 3000} | |
| config.synchScroll | Does it support synch scroll? | Boolean | true | |
| onChange | emitting when editor has changed | Function | ({html, md}) => {} | |
| onChange | emitting when editor has changed | Function | ({html, md}) => {} | not required |
| onImageUpload | when image uploaded, callback emitting will get image markdown text | Function | ({file, callback}) => {} | not required |

## API
Expand Down
4 changes: 2 additions & 2 deletions lib/react-markdown-editor-lite.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-markdown-editor-lite",
"version": "0.3.8",
"version": "0.3.9",
"description": "a light-weight Markdown editor based on markdown-it and React",
"main": "./lib/react-markdown-editor-lite.min.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/MdEditor/index.js
Expand Up @@ -203,7 +203,7 @@ class MdEditor extends React.Component {
})
}

handleDecorate = (type, option) => {
handleDecorate = (type, option={}) => {
const clearList = [
'h1',
'h2',
Expand Down

0 comments on commit 393eeca

Please sign in to comment.