title: JavaFX HTMLEditor text wrap
body: <p>Is there a way to make a <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/web/HTMLEditor.html" rel="nofollow">HTMLEditor</a> text wrap in JavaFX? </p>
  
  <ul>
  <li><a href="http://docs.oracle.com/javafx/2/api/javafx/scene/control/TextArea.html" rel="nofollow">TextArea</a> has the method <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/control/TextArea.html#setWrapText%28boolean%29" rel="nofollow">setWrapText</a>. </li>
  <li>HTML can have text wrapping set through CSS.</li>
  <li>The <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html" rel="nofollow">JavaFX CSS documentation</a> specifies <code>-fx-wrap-text</code> for Labeled nodes, but that doesn't seem to work. </li>
  </ul>
  
  <p>To be specific, the following code doesn't make the text wrap:</p>
  
  <pre><code>HTMLEditor htmlEditor = new HTMLEditor();
  htmlEditor.setStyle("-fx-text-wrap: false;");
  </code></pre>