# Quick Toolbars

> Editor42 Quick Toolbars plugin — provides floating context toolbars that appear based on selection or cursor position.

Source: https://editor42.com/plugins/quickbars  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

Plugin alias: `quickbars`

```js
editor42.init({
  plugins: 'quickbars'
});
```

Provides floating context toolbars that appear automatically based on the user's selection or cursor position. Three distinct toolbars: one for text selection (formatting shortcuts), one on empty block-level lines (insert shortcuts), and one on selected images (alignment controls). Also registers `quickimage` (native file picker for image insertion) and `quicktable` (one-click 2x2 table insert) buttons.

## Options

| Option | Type | Default | Description |
|---|---|---|---|
| `quickbars_selection_toolbar` | string/boolean | `bold italic \| quicklink h2 h3 blockquote` | Items for text selection toolbar; `false` or empty string to disable. |
| `quickbars_insert_toolbar` | string/boolean | `quickimage quicktable` | Items for empty-line toolbar. |
| `quickbars_image_toolbar` | string/boolean | `alignleft aligncenter alignright` | Items for image toolbar. |

## Toolbar buttons

| Button | Type | Description |
|---|---|---|
| `quickimage` | Button | Insert image via native file picker. |
| `quicktable` | Button | Insert 2x2 table. |
