Skip to content

custom-image-library #442

Open
Open
@Bolisetti-Srihari

Description

@Bolisetti-Srihari

<EmailEditor
ref={emailEditorRef}
onReady={onReady}
onLoad={onLoad}
style={{
height: "calc(100vh - 56px)",
minHeight: "500px",
}}
options={{
version: "latest",
id: "editor",
displayMode: "email",
appearance: {
theme: "light",
panels: {
tools: {
dock: "left",
},
},
},
features: {
imageEditor: {
enabled: true,
},
},
tools: {
image: {
enabled: true,
},
},
}}
/>

im unable to open the my custom image library when using these listeners

const onLoad: EmailEditorProps["onLoad"] = (unlayer: any) => {
unlayer.registerCallback("selectImage", (data: any, done: any) => {
setIsModalOpen(true);
});
};

and version is [email protected]

can you resolve this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions