---
title: Autosize
description: Configure Jodit to automatically adjust height based on content.
keywords: autosize, auto height, editor height
---

# Autosize

By default Jodit set height by content

Include Jodit

```html
<link rel="stylesheet" href="build/jodit.min.css" />
<script src="build/jodit.min.js"></script>
```

Create input element

```html
<textarea id="editor"></textarea>
```

Create Jodit instance

```javascript
const editor = Jodit.make('#editor');
editor.setEditorValue('<p>test</p>'.repeat(50));
```

## Result

```html
<!-- Example Start -->
<textarea id="editor">Some text</textarea>

<script>
	const editor = Jodit.make('#editor');
	editor.setEditorValue('<p>test</p>'.repeat(50));
</script>
<!-- Example End -->
```
