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

Allow custom notifications in config #159

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Allow custom notifications in config #159

wants to merge 4 commits into from

Conversation

Ramil2911
Copy link

@Ramil2911 Ramil2911 commented Aug 23, 2021

Covers #150 as notifications may be supressed by passing an empty function.
Added new config variable to define notification function, an example of usage is below
editor = new EditorJS({ tools: { image: { class: ImageTool, config: { uploader: uploader, notifier: async function(text) {/* do whatewer you want here */} } } } });

@Ramil2911 Ramil2911 changed the title Allow overloading notifications in config Allow custom notifications in config Aug 26, 2021
@MaximumQuiet
Copy link

@robonetphy could you please check this PR? It'll be very helpful to have a custom notifier

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

Successfully merging this pull request may close these issues.

2 participants