Bad link pasting offset in Composer
-
Copying a link from somewhere, selecting a portion of text that has a final space (e.g. double-clicking a word) in the Composer, clicking the link button, and pasting the link messes up the link formatting.
Here is a link to test with: http://www.google.com
Here is some text with spaces.
Here is some with spaces after clicking the link button. (Notice that "ink url)" is the selected text.)
Here is some [text](lhttp://www.google.com with spaces after clicking the link button and then pasting the copied link.Here is some text with spaces.
Here is some [text](link url) with spaces after clicking the link button.
Here is some [text](lhttp://www.google.com with spaces after clicking the link button and then pasting the copied link.
-
You'll notice this is true for almost all of the buttons, actually. Bold , Italics ,
StrikeThroughIns/DelThe only ones that do work is List Item, FullScreen (I have a hunch that doesn't actually modify the textbox), Smileys. Upload.
-
@Tsaukpaetra The formatting buttons used to not work at all if you selected a trailing space. @ben_lubar tried to fix that here. He moved the formatting characters (*, ~, etc) before the trailing space, but that doesn't change the length of the selected text. The ins/del button uses the length of the selection to position the cursor, and it can't do it correctly because it doesn't know that the trailing space was moved.