Skip to content

Commit ef761e8

Browse files
committed
new version with improved jfx property -> webkit support
1 parent 723bb59 commit ef761e8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ wrapper {
1616

1717
sourceCompatibility = '11'
1818
targetCompatibility = '11'
19+
[compileJava, compileTestJava]*.options*.release = 11
1920
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
2021

22+
2123
repositories {
2224
jcenter()
2325
}

gradle/project-info.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// -----------------------------------------------------------------------------
44
ext.publishing.artifactId = project.name.toLowerCase()
55
ext.publishing.groupId = 'eu.mihosoft.monacofx'
6-
ext.publishing.versionId = '0.0.6'
6+
ext.publishing.versionId = '0.0.7'
77

88
ext.publishing.developerName = 'Michael Hoffer'
99
ext.publishing.developerAlias = 'miho'

src/main/java/eu/mihosoft/monacofx/Document.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void setEditor(WebEngine engine, JSObject window, JSObject editor) {
6161
if(text!=null) {
6262
try {
6363
updatingText = true;
64-
setText(text);
64+
textProperty().set(text);
6565
}finally {
6666
updatingText=false;
6767
}
@@ -80,7 +80,17 @@ public StringProperty textProperty() {
8080
}
8181

8282
public void setText(String text) {
83-
textProperty().set(text);
83+
if(editor==null) {
84+
textProperty.set(text);
85+
} else {
86+
try {
87+
updatingText = true;
88+
textProperty().set(text);
89+
}finally {
90+
updatingText=false;
91+
}
92+
editor.call("setValue", text);
93+
}
8494
}
8595

8696
public String getText() {

0 commit comments

Comments
 (0)