2023年10月7日17:21:38
parent
f3fc26c724
commit
587f087c2a
|
|
@ -96,7 +96,7 @@ public class MonacoEdit extends AnchorPane {
|
||||||
* 设置模式
|
* 设置模式
|
||||||
*/
|
*/
|
||||||
private void setMonacoMode(MonacoMode mode) {
|
private void setMonacoMode(MonacoMode mode) {
|
||||||
window.call("setEditorMode", mode.getValue());
|
window.call("setModelLanguage", mode.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -324,6 +324,8 @@ public class MonacoHelper {
|
||||||
function getValue(){
|
function getValue(){
|
||||||
alert(Areacode)
|
alert(Areacode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue