Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Style rich text with keyboard shortcuts using slate js


    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.