Created
October 14, 2020 20:41
-
-
Save ljmotta/ce2eb021dc2d8ad804c6ab156bc285dd to your computer and use it in GitHub Desktop.
Base64PngPage Envelope Locator
This file contains 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 Base64PngPage() { | |
// ... | |
const editorEnvelopeLocator: EditorEnvelopeLocator = useMemo(() => { | |
return { | |
targetOrigin: window.location.origin, | |
mapping: new Map([ | |
[ | |
"base64png", | |
{ | |
resourcesPathPrefix: `envelope/`, | |
envelopePath: `envelope/base64-editor.html`, | |
}, | |
], | |
]), | |
}; | |
}, []); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment