title: How to let users interact with text in JavaFX?
body: <p>I want to create a JavaFX tool where users annotate entities in text, such as persons. In JavaScript this is easy, for example:</p>
  
  <p><code>&lt;span onClick="openMenu('Joana')"&gt;Joana&lt;/span&gt; eats an apple.</code></p>
  
  <p>I can use the HTMLEditor class in JavaFX, but how can I call Java functions from within that HTML. Is that even possible? Or is there another way to create click listeners to words in text in JavaFX?</p>