Return-Path:
I've narrowed down the bug, but still have no idea how to fix it :(
The bug is caused by SimpleMDE itself or by 'gfm' (markdown) mode of CodeMirror when lineWrapping
is enabled and you have particular pattern of lines and actions. I.e. first line is exactly as long as the editor, so typing next symbol will wrap the line, and the second one is longer, so it is wrapped already. Plus, you must have some long text before and after it.
Plain CodeMirror does not have it and I was not able to create a jsfiddle with CodeMirror + 'gfm' mode yet (see github issue below).
Opened an issue for SimpleMDE https://github.com/NextStepWebs/simplemde-markdown-editor/issues/39
Maybe someone will shed a light on it...
[tickets:#7948] Cursor position often wrong in new markdown editor
Status: open
Milestone: unreleased
Labels: ux sf-current
Created: Mon Aug 03, 2015 07:27 PM UTC by Dave Brondsema
Last Updated: Tue Aug 04, 2015 10:35 AM UTC
Owner: Igor Bondarenko
When editing text in the new markdown editor, the cursor can be off by a line (or few?). This seems to happen reliably, but exact cause is not narrowed down yet. Seems to only be when editing existing content, not when creating new content (even pasting the exact same text). I think it has to do with the initial height of the input area being tall. Sometimes I can get the cursor to work properly again if I add or delete enough rows to make the textarea resize some amount.
Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.