Skip to content

Instantly share code, notes, and snippets.

@ljmotta

ljmotta/DmnPage.tsx

Created Oct 14, 2020
Embed
What would you like to do?
DmnPage Editor Envelope Locator
import { EditorEnvelopeLocator } from "@kogito-tooling/editor/dist/api";
export function DmnPage() {
// ...
const editorEnvelopeLocator: EditorEnvelopeLocator = useMemo(() => {
return {
targetOrigin: window.location.origin,
mapping: new Map([
[
"dmn",
{
resourcesPathPrefix: "../gwt-editors/dmn/",
envelopePath: "envelope/gwt-editors.html",
},
],
]),
};
}, []);
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment