Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created October 14, 2020 20:52
Show Gist options
  • Save ljmotta/159004ef8708c3f08782f2a0c75f6664 to your computer and use it in GitHub Desktop.
Save ljmotta/159004ef8708c3f08782f2a0c75f6664 to your computer and use it in GitHub Desktop.
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