allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Bondarenko" <>
Subject [allura:tickets] #7948 Cursor position often wrong in new markdown editor
Date Thu, 06 Aug 2015 12:48:11 GMT
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

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 because is subscribed to

To unsubscribe from further messages, a project admin can change settings at
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message