laobubu / HyperMD

A WYSIWYG Markdown Editor for browsers. Break the Wall between writing and previewing.
MIT License
1.47k stars 137 forks source link

how to rerender a node when editor loses focus? #64

Open zcaudate opened 5 years ago

zcaudate commented 5 years ago

When the cursor leaves the editor, the edited element does not rerender to html.

Screen Shot 2019-08-17 at 8 43 40 am

Is there a function to call so that the document will do a refresh on blur?

Screen Shot 2019-08-17 at 8 43 32 am
zcaudate commented 5 years ago

hello?

niemes commented 4 years ago

I think that the cursor control the line rendering.

You can add an event to move the cursor to the end of the line on blur event.