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

bbfontstyle uses the non-existent mozWrap amd fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.3.17
    • JavaScript / AJAX
    • v3.3.15 running on dreamhost shared server. the client is running on firefox 153.0.1 (64 bit)+

      function bbfontstyle has the lines :

          } else if (textarea.selectionEnd && (textarea.selectionEnd - textarea.selectionStart > 0)) {
              mozWrap(textarea, bbopen, bbclose);
              textarea.focus();
              theSelection = '';
              return;
          }

      When the selection is of non-zero length, the test is true and this clause is executed. mozWrap is undefined, so nothing is done. The selected text is not wrapped with the style. The affected BBCode does not work.

            Unassigned Unassigned
            ZweiBieren ZweiBieren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: