Skip to main content

Non-Breaking Space

Plugin alias: nonbreaking

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

OptionTypeDefaultDescription
nonbreaking_force_tabboolean/numberfalseWhen true (=3) or a number, Tab inserts that many &nbsp; instead of default tab behavior.
nonbreaking_wrapbooleantrueWrap in <span class="editor42-m-nbsp-wrap">.

Commands

CommandDescription
editor42NonBreakingInserts a non-breaking space.

Toolbar buttons

ButtonTypeDescription
nonbreakingButtonInserts a non-breaking space.
ItemDescription
nonbreakingInserts a non-breaking space.