Return-Path: X-Original-To: apmail-allura-dev-archive@www.apache.org Delivered-To: apmail-allura-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A46C418EF5 for ; Thu, 6 Aug 2015 12:48:11 +0000 (UTC) Received: (qmail 57491 invoked by uid 500); 6 Aug 2015 12:48:11 -0000 Delivered-To: apmail-allura-dev-archive@allura.apache.org Received: (qmail 57466 invoked by uid 500); 6 Aug 2015 12:48:11 -0000 Mailing-List: contact dev-help@allura.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@allura.apache.org Delivered-To: mailing list dev@allura.apache.org Received: (qmail 57455 invoked by uid 99); 6 Aug 2015 12:48:11 -0000 Received: from allura-vm.apache.org (HELO allura-vm) (140.211.11.147) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2015 12:48:11 +0000 Received: from allura-vm.apache.org (localhost [127.0.0.1]) by allura-vm (Postfix) with ESMTP id 09E3A28018F for ; Thu, 6 Aug 2015 12:48:11 +0000 (UTC) Content-Type: multipart/related; boundary="===============7599719184523459481==" MIME-Version: 1.0 To: dev@allura.apache.org From: "Igor Bondarenko" Reply-To: "[allura:tickets] " <7948@tickets.allura.p.forge-allura.apache.org> Subject: [allura:tickets] #7948 Cursor position often wrong in new markdown editor Message-ID:

Sender: tickets@allura.p.forge-allura.apache.org In-Reply-To: <55bfc0ba6d19cd4a4a0f71cb.tickets@allura.p.forge-allura.apache.org> References: <55bfc0ba6d19cd4a4a0f71cb.tickets@allura.p.forge-allura.apache.org> Date: Thu, 6 Aug 2015 12:48:11 +0000 (UTC) --===============7599719184523459481== Content-Type: multipart/alternative; boundary="===============3021029427042272306==" MIME-Version: 1.0 --===============3021029427042272306== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. --===============3021029427042272306== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

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.

--===============3021029427042272306==-- --===============7599719184523459481==--