Commit dc60a61e authored by Axel Howind's avatar Axel Howind

fix race condition

parent 43e83e86
Pipeline #54361244 failed with stages
in 19 minutes and 27 seconds
......@@ -160,13 +160,13 @@ public abstract class EditorBase extends BorderPane {
public void setText(String text) {
LOG.fine("setting editor content");
String script = String.format("jSetContent('%s');", escape(text));
bridge.executeScript(script);
bridge.callScript(script);
}
public void setText(String text, String ext) {
LOG.fine("setting editor content");
String script = String.format("jSetContent('%s','%s');", escape(text), escape(ext));
bridge.executeScript(script);
bridge.callScript(script);
}
public String getText() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment