wip fix
This commit is contained in:
parent
7937a1d772
commit
065f389da0
|
|
@ -287,10 +287,9 @@ export const EdScriptMonaco: FC<{}> = () => {
|
||||||
{ css: "scss", js: "typescript", html: "html" }[p.ui.popup.script.mode]
|
{ css: "scss", js: "typescript", html: "html" }[p.ui.popup.script.mode]
|
||||||
}
|
}
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
return;
|
|
||||||
const stype = p.ui.popup.script.type;
|
const stype = p.ui.popup.script.type;
|
||||||
if ((value || "").includes("/** SOURCE START **/")) {
|
if ((value || "").includes(IMPORT_SEPARATOR)) {
|
||||||
const valparts = (value || "").split("/** SOURCE START **/\n");
|
const valparts = (value || "").split(IMPORT_SEPARATOR + "\n");
|
||||||
if (valparts.length === 2) local.value = valparts[1];
|
if (valparts.length === 2) local.value = valparts[1];
|
||||||
if (
|
if (
|
||||||
stype === "prop-instance" &&
|
stype === "prop-instance" &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue