Rich Text Editor Switch between Visual and Text mode has problems with Issue Links

XMLWordPrintable

    • 7.02
    • 6
    • Severity 3 - Minor
    • 0

      Issue links continually gain extra hyphens "-" when using Rich Text Editor.

      • Ensure that Rich Text Editor is enabled
      • Video of problems attached
      Problem 1 - copy/paste issue link
      1. Edit Description box and add an closed issue that will automatically render into a link, example:
        JRA-1
        
      1. Save - this will render into a link with a strikethrough, as expected. (ie. -JRA-1-)
      2. Copy the rendered text
        • Do not choose to "copy link", just simply "copy"
      1. Edit the description again
      2. Switch to Visual mode and paste the copied text
      3. Observe that the -JRA-1- text has been auto-formated as a link
      4. Switch to Text mode
      5. The text now shows as:
        -JRA-1-
        
        -JRA-1-
        
      1. Save
      2. Repeat: Edit description, switch to Visual mode, and paste the same link
      3. Switch to text and now we see:
        --JRA-1--
        
        --JRA-1--
        
        -JRA-1-
        
      1. Upon saving you will see ---JRA-1--- (note the extra -)
      2. Repeating the same steps will continue to add more -
      Problem 2 - editing in visual mode
      1. Maintain what we see from problem 1 in text mode:
        --JRA-1--
        
        --JRA-1--
        
        -JRA-1-
        
      1. Switch to Visual mode and save
      2. Edit again, which will automatically be in Visual mode
      3. Add some random text without modifying the existing links
      4. Switch to Text mode
      5. Observe that it now looks like this:
        ---JRA-1---
        
        ---JRA-1---
        
        --JRA-1--
        
        asdf
        
      1. Save
      2. Now the render has double extra hypens around the struck-through link, like so: ----JRA-1----

            Assignee:
            Unassigned
            Reporter:
            David Chan
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: