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

Browser Issue Rich Text Editor

Discussion in 'Resolved Bug Reports' started by evilmaniac, Mar 12, 2014.

  1. evilmaniac

    evilmaniac Member

    Please look at my test message (http://xenforo.com/community/threads/test.70294/) try editing "Generic Community Rules" such that it is a link. You will see how the text editor just messes up. It seems the text editor has all sorts of seizures when it comes down to nested lists. This is one of the issues I have run into with the text editor. Even if I manually edit using the BB editor, the editor still messes up the posts.

    I have more examples where it messes up with other tags as-well; such as the FONT tag.
     
  2. imthebest

    imthebest Formerly Super120

  3. evilmaniac

    evilmaniac Member

    Chrome. Did you edit the links into your post AFTER making the post ? That is the condition for repeating this
    also your replicated post in my test thread is missing the FONT tag. This is the message

    Code:
    [FONT=Helvetica][SIZE=5][COLOR=rgb(37, 44, 47)][U]Contents:[/U][/COLOR][/SIZE][/FONT]
    [LIST=1]
    [*][COLOR=#252c2f]Naming Policy[/COLOR]
    [*][COLOR=#252c2f]Generic Community Rules[/COLOR]
    [*][COLOR=#252c2f]Server Rules[/COLOR]
    [*][COLOR=#252c2f]Minecraft Exclusive Rules & Agreements[/COLOR]
    [*][COLOR=#252c2f]Forum Exclusive Rules & Agreements[/COLOR]
    [/LIST]
    [FONT=Helvetica][SIZE=5][COLOR=rgb(37, 44, 47)][U]Naming Policy[/U]:[/COLOR][/SIZE]
    
    All names found to maliciously target a group of people shall constitute your immediate removal from any of our services. This applies to all social classifications within the scope of (but not limited to) gender, race, sexual orientation, and/or religion.[/FONT]
    
     
  4. AndyB

    AndyB Well-Known Member

    One issue I noticed:

    1) Quoted the post as instructed in post #1
    2) Highlighted "Generic Community Rules"
    3) Made into hyperlink

    The text does not turn blue to indicate a link, yet the hyperlink is created.

    Mac OSX using Firefox.
     
  5. imthebest

    imthebest Formerly Super120

    Same behavior here, Firefox 27.0.1
    Appart from that everything went fine.
     
  6. Martok

    Martok Well-Known Member

    1. Quoted the post (then removed the QUOTE tags)
    2. Highlighted "Generic Community Rules"
    3. Made into a hyperlink.
    The text did turn blue to indicate a hyperlink. I also got a blank line immediately below.

    http://xenforo.com/community/threads/test.70294/#post-734566

    On examining the BBCode, this is what it has done:

    Code:
    [*][COLOR=#252c2f][URL='http://xenforo.com/']Generic Community Rules[/URL][/COLOR]
    [URL='http://xenforo.com/'] [/URL]
    It has added two lots of URL tags, the second around a space that didn't exist (I checked the code).
    I have tested this 3 times now with the same result.

    Windows 7, Chrome 33
     
    evilmaniac likes this.
  7. Mike

    Mike XenForo Developer Staff Member

    We do defer to the browser to add the link and I'm not sure we can (reasonably) do much to change that, but I'm not sure why Chrome is adding that.

    As for the link color not changing, that will be because of the colors that are hardcoded in the post. Firefox is likely adding the link outside the color. (This is another one of those cases of ambiguity.)
     
    evilmaniac and AndyB like this.
  8. evilmaniac

    evilmaniac Member

    Chrome is doing all sorts of weird things with the text editor. I have had it separate each item in a list into its own list
    so it would take this:
    Code:
    [LIST]
    [*]item 1
    [*]item 2
    [/LIST]
    
    And convert it into this
    Code:
    [LIST]
    [*]item 1
    [/LIST]
    [LIST]
    [*]item 2
    [/LIST]
    
    It is making edits of large posts with nested lists quite tedious :c
     
  9. Mike

    Mike XenForo Developer Staff Member

    This looks like a browser issue in Chrome (or possibly dating back to Webkit). It actually only has the text selected, but it appears to get confused when it inserts the link and adds another entry outside the <li> (which isn't actually selected). I don't really see a decent way of detecting this and any change to something like this would require fairly significant changes (basically not using the browser).
     
  10. Mike Creuzer

    Mike Creuzer Well-Known Member

    Is the rich text editor disabled in Firefox for Android, by chance? Just curious if there are browsers which we intentionally do not run the editor - or if thats something that Redactor is doing.
     
  11. Mike

    Mike XenForo Developer Staff Member

    There are a bunch of cases where the editor is explicitly disabled by XF.
     

Share This Page