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

HTMLEditor: setText + focus leads to disabled toolbars

XMLWordPrintable

    • web
    • x86_64
    • windows_10

      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}


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

              Created:
              Updated:
              Resolved: