Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15647

Extra paragraphs added when pasting text from websites in non IE browsers

    XMLWordPrintable

Details

    Description

      When pasting html from websites extra empty paragraphs are added between paragraphs.

      This is caused by the line breaks handling in ezxmltext/handlers/input/ezoexmlinput.php for non Trident (IE) browsers, ref:

                      $text = preg_replace( "/[\n\t]/", ' ', $text);
      

      Should / could instead be:

                      $text = str_replace( "\n", '', $text);
                      $text = str_replace( "\t", ' ', $text);
      
      Steps to reproduce

      Steps to reproduce:

      • Create/edit a folder
      • Paste text with line breaks into ezoe from http://www.lipsum.com/feed/html for instance - looks OK
      • Click "Store draft" - line breaks are duplicated, this is the bug!
      • Click "Store draft" again - duplicate line breaks are removed IF content.ini[paragraph]AllowEmpty is disabled (false).

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: