Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7997

bbcode selection not retained

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.7
    • 3.0.4
    • Posting
    • None
    • PHP Environment:
      Database:

      (this can be experienced here on phpbb.com as well)

      [list: vk231pcz]* start a new topic (or reply to an existing one)

      • highlight some text
      • click a bbcode (bold, for example)
      • click another bbcode (italics, for example)

      this works perfecty in IE, but not FF. the fix below will work with both.

      OEPN:

      styles/prosilver/template/editor.js

      FIND:

      	txtarea.selectionStart = selEnd + open.length + close.length;
      	txtarea.selectionEnd = txtarea.selectionStart;

      REPLACE WITH:

      	txtarea.selectionStart = selStart + open.length;
      	txtarea.selectionEnd = selEnd + open.length;

            A_Jelly_Doughnut A_Jelly_Doughnut [X] (Inactive)
            A_O_C A_O_C [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: