Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13011

Javascript bug when selecting first one or two characters of a post

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.12, 3.1.0-RC4
    • Fix Version/s: 3.1.0-RC5
    • Component/s: JavaScript / AJAX, Styles
    • Labels:
      None
    • Environment:
      Firefox updated, W8.1

      Description

      Hi,

      First, sorry for my poor English, I'm french and doing my best

      Now to the bug : if you select the first or the two characters of a post (wathever they are, even part of a word or spaces), then left clic with mouse the B style (for example) for bolding this character (or these two characters), all the message (wathewer his length), will be bolded.

      So, in this special case, the close of the bold is misplaced and set at the end of the message instead of being placed after the first character (or after the second character).

      Hope this help ! And thanks for the great job on phpbb !

      Sincerely,

      SLX

        Activity

        Hide
        PayBas PayBas added a comment -

        Confirmed for FF, Chrome and IE11.

        Show
        PayBas PayBas added a comment - Confirmed for FF, Chrome and IE11.
        Hide
        prototech prototech added a comment -

        This seems intentional, at least going by the code, but there doesn't seem to be any explanation as to why: https://github.com/phpbb/phpbb/blob/develop-ascraeus/phpBB/assets/javascript/editor.js#L269-L271

        I'll test this to see if it has any effect besides what's reported here. If not, I'll remove it.

        Show
        prototech prototech added a comment - This seems intentional, at least going by the code, but there doesn't seem to be any explanation as to why: https://github.com/phpbb/phpbb/blob/develop-ascraeus/phpBB/assets/javascript/editor.js#L269-L271 I'll test this to see if it has any effect besides what's reported here. If not, I'll remove it.

          People

          • Assignee:
            prototech prototech
            Reporter:
            dwaianu dwaianu [X] (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development