Created
October 14, 2020 20:52
-
-
Save ljmotta/159004ef8708c3f08782f2a0c75f6664 to your computer and use it in GitHub Desktop.
DmnPage Editor Envelope Locator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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