1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot Reproduce 1.2 - Redactor - Inserts additional BBcode and newline when colour applied to multiple lines

Discussion in 'Resolved Bug Reports' started by CyclingTribe, Jun 6, 2013.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    Okay, let's see if I can reproduce this here:
    1. Write three sentences of text
    2. Select all three lines and apply a colour using the BBCode toolbar
    3. Save the post


    First sentence
    three sentences of text
    goes here.

    Second sentance has a spelling mistake.
    Thrud sontance maks none sanse whutsomeva.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    The quote seems wrong.
     
    chulapi likes this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

    Okay, not sure what created the condition for it in my reply to another thread, but basically the formatted text ended up looking like this:

    First sentence
    three sentences of text
    goes here.
    Second sentance has a spelling mistake.
    Thrud sontance maks none sanse whutsomeva.
     
  4. chulapi

    chulapi Member

    quote doesn't reflect the original formatting of the post. BUG.
     
  5. CyclingTribe

    CyclingTribe Well-Known Member

    Ah, here you go - I've just gone to edit my post above and the colour formatting was removed:

    Code:
    Okay, not sure what created the condition for it in my reply to another thread, but basically the formatted text ended up looking like this:
    
    [COLOR=#1f497d]First sentence[/COLOR]
    [COLOR=#1f497d] three sentences of text[/COLOR]
    [COLOR=#1f497d] goes here.[/COLOR]
    Second sentance has a spelling mistake.
    Thrud sontance maks none sanse whutsomeva.
    
     
  6. chulapi

    chulapi Member

    poor Mike, I think he's getting crazy trying to make Redactor to work fine with XenForo :(
     
  7. CyclingTribe

    CyclingTribe Well-Known Member

    What happened previously though was that the COLOUR BBcode was inserted between the pasted lines with a single space betweent he start and end BBCode - rending on-screen as a newline (which was not intended).

    It looked like this in the plain view:

    Code:
    Okay, not sure what created the condition for it in my reply to another thread, but basically the formatted text ended up looking like this:
    
    [COLOR=#1f497d]First sentence[/COLOR]
    [COLOR=#1f497d] [/COLOR]
    [COLOR=#1f497d] three sentences of text[/COLOR]
    [COLOR=#1f497d] [/COLOR]
    [COLOR=#1f497d] goes here.[/COLOR]
    Second sentance has a spelling mistake.
    Thrud sontance maks none sanse whutsomeva.
    
    Notice the two additional (empty - apart from a space) colour codes?
     
  8. Mike

    Mike XenForo Developer Staff Member

    Ignoring the quote formatting issue (it's separate, but I'll have a fix for it shortly), I haven't been able to reproduce the original issue. Has anyone else?

    The problem is that the HTML being submitted to the server is very important and by the time you see if the issue is happening, you may not have the HTML any more unless you're testing via previewing.
     
  9. CyclingTribe

    CyclingTribe Well-Known Member

    Sorry Mike, I can't remember the full sequence that produced the bug so we'll have to leave it for now. If it comes up again I'll use the test forum to make sure it's repeatable before reporting. (y)
     

Share This Page