Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113257

WebView should insert paragraphs rather than line breaks in edit mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • None
    • web

      When WebView is in edit mode mode, <br> tags are inserted into the document when the Enter key is pressed. Most modern browsers, including Safari 5, IE 9, Firefox 4, and Chrome 11, insert <p> tags when Enter is pressed. To reproduce, visit this page, position the caret in the middle of the word "paragraph", and press Enter:

      http://html5demos.com/contenteditable

      This breaks RichTextArea, which uses WebView internally and also expects paragraphs to be inserted on Enter.

            pbothner Per Bothner (Inactive)
            gkbrown Greg Brown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: