Use getResource to get the location of the local image resource.
editor.setHtmlText(
"<img src=\"" +
getClass().getResource("categoryButton.fw.png") +
"\" width=\"32\" height=\"32\" >"
);
It works the same as loading content into a WebView , as in:
How to get to css and image files from the html page loaded by javafx.scene.web.WebEngine # loadContent?
Here is a screenshot:

And executable sample:
import javafx.application.*;
import javafx.scene.Scene;
import javafx.scene.web.HTMLEditor;
import javafx.stage.Stage;
public class HTMLEditorWithImage extends Application {
@Override public void start(Stage stage) {
HTMLEditor editor = new HTMLEditor();
editor.setHtmlText(
"<img src=\"" +
getClass().getResource("Blue-Fish-icon.png") +
"\" width=\"32\" height=\"32\" >"
);
stage.setScene(new Scene(editor));
stage.show();
}
public static void main(String[] args) { launch(args); }
}
, - ?
. , . , JavaFX: HTMLEditor WebView contenteditable true , JavaScript.
JavaFX, WebView HTMLEditor, , .