Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleChange: (editor: Editor) => toggleItalic(editor)
},
onClick: editor => toggleItalic(editor),
};
handleChange: (editor: Editor) => toggleItalic(editor)
},
document.getElementById('italicButton').addEventListener('click', function() {
toggleItalic(getCurrentEditor());
});