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

htmlText property of HTMLEditor doesn't have its initial value right after instance is created

XMLWordPrintable

      The code below gives this output with FX 2.2.40 b33 as well as with FX 8 b98:

      <html><body></body></html>
      <html><head></head><body></body></html>

              final HTMLEditor editor = new HTMLEditor();
              System.out.println(editor.getHtmlText());
              Platform.runLater(new Runnable() {

                  @Override
                  public void run() {
                      System.out.println(editor.getHtmlText());
                  }
              });

      I get this on a recent Dell laptop (core i5) running Win 7.

      If you using SceneBuilder 1.1 b29, drop an HTMLEditor then Duplicate it the htmlText property value reads initially:

      <html><head></head><body></body></html>

      then if you select something else and reselect the HTMLEditor it reads:

      <html><head></head><body contenteditable="true"></body></html>

            jgiles Jonathan Giles
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: