Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to load custom block with the JavaScript API #94

Open
nu1ww opened this issue Oct 27, 2023 · 1 comment
Open

trying to load custom block with the JavaScript API #94

nu1ww opened this issue Oct 27, 2023 · 1 comment

Comments

@nu1ww
Copy link

nu1ww commented Oct 27, 2023

how can we create a custom block JSON? this is my sample code ?
<EmailEditor ref="emailEditor" :min-height="minHeight" :locale="locale" @load="editorLoaded" @ready="editorReady" />

This is the load function

`
const editorLoaded = () => {

 // This is the variable I need fill 
let blocks = [];

emailEditor.value.editor.registerProvider('blocks', function (params, done) {
    console.log('blocks provider', params);
    done(blocks);
});
};

`

@Daveyvdweide
Copy link

have you found a way to do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants