Skip to content
Discussion options

You must be logged in to vote

Got it. Not super clear of how to do it, but for anyone chasing this answer, it's like this:

Just create a custom object which "implements" the interface and set the props.

 const editorConfig: EditorConfig = {
     autofocus: true,
     placeholder: 'Let`s write an awesome story!',
     inlineToolbar: ['link'],
     /**
      * onReady callback
      */
     onReady: () => {
         console.log('Editor.js is ready to work!')
     }
 };

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by domingoladron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant