getkirby / editor

A new type of WYSIWYG editor for Kirby
https://getkirby.com
205 stars 28 forks source link

Unable to write after a sequence of two dash characters #256

Closed hdodov closed 4 years ago

hdodov commented 4 years ago

Describe the bug If I have the following content:

Praesent nonummy -- mi in odio. Quisque libero metus, condimentum nec, tempor a, commodo mollis, magna. Ut tincidunt tincidunt erat. Fusce pharetra convallis urna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero.

I'd be unable to write anywhere after the -- sequence. That's because Kirby converts two dashes to a long dash. It works while you're writing it, but not if you copy-paste some content that contains --. If that happens, you're unable to write.

Here's a video where I display this bug: kirby-editor-bug-video.zip

I think the best solution is to have Kirby check if the current position of the caret is in-between the sequence of dashes.

Kirby Version 3.4.2

afbora commented 4 years ago

Duplicated with https://github.com/getkirby/editor/issues/184