Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持react #52

Open
chay-0206 opened this issue Aug 27, 2018 · 2 comments
Open

是否支持react #52

chay-0206 opened this issue Aug 27, 2018 · 2 comments

Comments

@chay-0206
Copy link

是否支持react

@xhb
Copy link

xhb commented Nov 11, 2018

不知道怎么办,

componentDidMount(){
    const eleTextarea = document.getElementById('md_editor');
    this.mditor = window.Mditor.fromTextarea(eleTextarea);
    this.mditor.height = '760px'
    this.mditor.on('ready', ()=>{console.log('ready')});
  }

这里的 ready 事件一直没有触发。。。

@YuZongYangHi
Copy link

自己写监听事件吧,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants