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

HTMLEditor: setText + focus leads to disabled toolbars

    Details

    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      STR:
      0. set focus on any other element
      1. load html
      2. click on HTMLEditor
      All buttons in ToolBars become inactive (even if them were active for same html)

      I've used snipped below for for point #1:
      {code}
              Thread t = new Thread(() -> {
                  while(true) {
                      try {Thread.sleep(100);} catch (InterruptedException e) {}
                      Platform.runLater(() -> {editor.setHtmlText("<html dir=\"ltr\"><head></head><body contenteditable=\"true\"><p><br></p></body></html>");});
                  }
              });
      {code}


        Attachments

          Activity

            People

            • Assignee:
              pmangal Priyanka Mangal (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: