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

JS function addquote() works incorrectly in Opera

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 3.0.10, 3.1.0-dev
    • 3.0.11-RC1
    • JavaScript / AJAX
    • None
    • 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

            Arty Vjacheslav Trushkin [X] (Inactive)
            Nekstati Nekstati
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: