joshfrench/react-mobiledoc-editor

add cursorDidChange callback or add CSS class to ‌

nerdware-timmmi opened this issue · 1 comments

After and before my MobileDoc cards the following string is inserted: "&zwnj";
If the cursor is inserted at this point after editing the cards, you can't write anything.

With the function cursorDidChange I could perhaps adapt the editor at this point. Or insert the next section automatically.

Alternatively, you might want to add a CSS class to these control characters. Then I can at least hide the cursor there.

Or is there a better solution for "&zwnj"?

bildschirmfoto 2018-12-02 um 23 32 26

Looks like it may be an issue in mobiledoc-kit itself, not this react wrapper
bustle/mobiledoc-kit#640