Style rich text with keyboard shortcuts using slate js

InstructorJulian Krispel

Share this video with your friends

Send Tweet

Using the onKeyDown event handler, we'll learn how to toggle styles (in slate, styles are called mark's) for your currently selected text when certain keys are pressed. We'll also use the renderMark method to render these styles.