• 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

CTXMedia

Formerly CyclingTribe
#1
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.
 

Jeremy

Well-known member
#2
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.
The quote seems wrong.
 

CTXMedia

Formerly CyclingTribe
#3
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
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.
quote doesn't reflect the original formatting of the post. BUG.
 

CTXMedia

Formerly CyclingTribe
#5
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.
 

CTXMedia

Formerly CyclingTribe
#7
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?
 

Mike

XenForo developer
Staff member
#8
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.
 

CTXMedia

Formerly CyclingTribe
#9
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)