Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active October 13, 2020 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/5d626c7742b164fe59709a54afae924b to your computer and use it in GitHub Desktop.
Save ljmotta/5d626c7742b164fe59709a54afae924b to your computer and use it in GitHub Desktop.
Base64Png Editor Ref Forwarding Component
import { EditorApi, KogitoEditorEnvelopeContextType } from "@kogito-tooling/editor/dist/api";
interface Props {
envelopeContext: KogitoEditorEnvelopeContextType;
}
export const Base64PngEditor = React.forwardRef<EditorApi, Props>((props, forwardedRef) => {
// All the editor code is here.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment