Fix custom block view (#12104)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
This commit is contained in:
@@ -174,13 +174,13 @@
|
||||
filterCssClass: "not-allowed",
|
||||
select: node => {
|
||||
const filepath = decodeURIComponent(node.id.replace(/\+/g, " "));
|
||||
block.view = "~/" + filepath;
|
||||
block.view = "~/" + filepath.replace("wwwroot/", "");
|
||||
editorService.close();
|
||||
},
|
||||
close: () => editorService.close()
|
||||
};
|
||||
|
||||
editorService.filePicker(filePicker);
|
||||
editorService.staticFilePicker(filePicker);
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user