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

JS function addquote() works incorrectly in Opera

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.11-RC1
    • 3.0.10, 3.1.0-dev
    • JavaScript / AJAX
    • None
    • Opera 11.62, 9.64 (probably all versions)

      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.

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

              Created:
              Updated:
              Resolved: