---
title: "Horizontal Rule plugin"
description: "Insert a horizontal line."
canonical_url: "https://www.tiny.cloud/docs/tinymce/5/hr/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/hr/index.md"
version: "5"
last_updated: "2024-04-16T01:50:26Z"
tokens: 130
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/).
# Horizontal Rule plugin

The Horizontal Rule (`hr`) plugin allows a user to insert a horizontal rule on the page at the cursor insertion point. It also adds a toolbar button and a menu item `Horizontal line` under the `Insert` menu.

## Basic setup

```js
tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'hr',
  toolbar: 'hr'
});
```
