Scrivr
API ReferenceCore Nodes

Paragraph

The default block node — plain text with alignment and font family support.

The default block type. Every document must include Paragraph.

import { Paragraph } from '@scrivr/core';

No configurable options.


Attributes

AttributeTypeDefaultDescription
align'left' | 'center' | 'right' | 'justify''left'Text alignment.
fontFamilystring | nullnullBlock-level font family override. null inherits from pageConfig.

Commands

CommandDescription
setParagraph()Converts the current block to a paragraph.

Keyboard: Mod-Alt-0


Behaviour

  • Enter splits the block and carries align and fontFamily onto the new paragraph.
  • When splitting a heading, the new block becomes a paragraph (not another heading) but inherits fontFamily.

On this page