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

JS function addquote() works incorrectly in Opera

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.10, 3.1.0-dev
    • Fix Version/s: 3.0.11-RC1
    • Component/s: JavaScript / AJAX
    • Labels:
      None
    • Environment:
      Opera 11.62, 9.64 (probably all versions)

      Description

      When quoting selected text (not entire post) in the topic review, Opera misses the linebreaks. Possible solution: force Opera to use document.getSelection() instead of window.getSelection().

      Find in editor.js

      	if (window.getSelection && !is_ie)
      	{
      		theSelection = window.getSelection().toString();
      	}
      	else if (document.getSelection && !is_ie)
      	{
      		theSelection = document.getSelection();
      	}
      

      Replace first line with

      	if (window.getSelection && !is_ie && !window.opera)
      

      Tested on Opera 11.62 & 9.64.

        Attachments

          Activity

            People

            • Assignee:
              Arty Vjacheslav Trushkin
              Reporter:
              Nekstati Nekstati
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: