Forum Stats

  • 3,839,816 Users
  • 2,262,538 Discussions
  • 7,901,063 Comments

Discussions

How add image at the cursor position in the HtmlEditor in JavaFX

2849120
2849120 Member Posts: 1
edited Jan 29, 2015 5:42AM in JavaFX 2.0 and Later

Hi guys, I know how to add text at the cursor position in the HtmlEditor, https://community.oracle.com/message/12486226#12486226  . How to add a image at the cursor position in the HtmlEditor.:

I know only this method:

this.setHTMLText(this.getHTMLText() + "<img src=" + URL + ">");

However, this method adds an image to the end.

Sorry for my english.

Tagged:
This discussion has been closed.