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

Writing multiple ´-characters make the editor freeze. #22

Closed
tormodvm opened this issue Apr 19, 2018 · 3 comments
Closed

Writing multiple ´-characters make the editor freeze. #22

tormodvm opened this issue Apr 19, 2018 · 3 comments

Comments

@tormodvm
Copy link

I tried the live demo here and accidentally typed in a couple of ´-characters at the start of a header. The editor froze and I couldn't delete it.

@trompx
Copy link

trompx commented Apr 20, 2018

Just confirmed that. Opening the devtools performance shows (on my computer : i7) 1 keypress takes 40-80ms with a really deep tree of (value).

@chilijung
Copy link
Contributor

I think this is because our demo is generating and parsing HTML syntax(prism) in realtime. I didn't take time to optimize our demo.

https://github.com/Canner/slate-md-editor/blob/master/docs/App.js#L28-L30

@chilijung
Copy link
Contributor

chilijung commented Sep 6, 2018

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