# Non-Breaking Space

> Editor42 Non-Breaking Space plugin: inserts non-breaking spaces from a toolbar button, or with Tab when configured, optionally in a span that shows them.

Source: https://editor42.com/plugins/nonbreaking  
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: `nonbreaking`

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

Inserts non-breaking space characters (`&nbsp;`) into the editor content, either via a toolbar button or by pressing Tab (when configured). The inserted `&nbsp;` can optionally be wrapped in a `<span>` for visual identification and integrates with the `visualchars` plugin.

## Options

| Option | Type | Default | Description |
|---|---|---|---|
| `nonbreaking_force_tab` | boolean/number | `false` | When `true` (=3) or a number, Tab inserts that many `&nbsp;` instead of default tab behavior. |
| `nonbreaking_wrap` | boolean | `true` | Wrap in `<span class="editor42-m-nbsp-wrap">`. |

## Commands

| Command | Description |
|---|---|
| `editor42NonBreaking` | Inserts a non-breaking space. |

## Toolbar buttons

| Button | Type | Description |
|---|---|---|
| `nonbreaking` | Button | Inserts a non-breaking space. |

## Menu items

| Item | Description |
|---|---|
| `nonbreaking` | Inserts a non-breaking space. |
