Skip to main content

Horizontal Rule Plugin

This page focuses on implementing the horizontal rule plugin and the code you need to embed a horizontal rule into your editor. You can check out the CodeSandbox directly or view, edit and try out the code in real-time inside the embed.

To add a horizontal rule in a sample text (i.e., check out the list plugin example and the prepopulated text inside of the editor), use $createHorizontalRuleNode or check out the source code on GitHub.