react-lz-editor icon indicating copy to clipboard operation
react-lz-editor copied to clipboard

Can't use editor according to the demo

Open MikeMiller3 opened this issue 8 years ago • 3 comments

desc

I saw this editor from antd docs, so I npm install react-lz-editor --save and tried in my project, but this did not work. It seemed I haven't pass the props right, but whatever I tried, it always showing the same error. my project ejected from 'create-react-app' os: win7

error

tim 20171129153903

code

import React, {Component} from 'react'
import {LzEditor} from 'react-lz-editor'

export default class Article extends Component {
    constructor(props) {
        super(props)
    }
    render() {
        return (
            <LzEditor />
        )
    }
}

dependencies

"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-lz-editor": "^0.11.6",
"antd": "^2.13.10",

MikeMiller3 avatar Nov 29 '17 08:11 MikeMiller3

Sorry about this bug, I have fixed it and will publish to npm. PropTypes is no longer supported and has been removed, this is why the bug appears. Pls refs: https://reactjs.org/warnings/dont-call-proptypes.html

leejaen avatar Nov 29 '17 09:11 leejaen

Hi @MikeMiller3 , I have released a new version 0.11.7 on npm, could you please upgrade and try it again? Thank you!

leejaen avatar Nov 29 '17 09:11 leejaen

@leejaen It works , thank you !

MikeMiller3 avatar Nov 29 '17 09:11 MikeMiller3