Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Base64PngPage Envelope Locator
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