Type: Function

How to get configureAsFrameWithBlock?


import configureAsFrameWithBlock from 'fontoxml-families/src/configureAsFrameWithBlock.js'

Use this family for block level elements that apply a semantic connotation to their content and have direct children which will be configured as inline. This way, the element is simultaneously a frame and a block.

As this family indicates a semantic structure, it is visualized through a border and optionally a background color to delimit the content to which the semantics apply.

Elements belonging to this family cannot be split in two by pressing Enter, and two adjacent elements will not be merged into one. Either would defeat the purpose of semantics.

Use this family for elements that may directly contain text and/or inline elements, but also represent certain semantic units.

The following visualization options are visualized by the frameWithBlock family:

  • backgroundColor

  • showWhen

  • textAlign

The following widget areas are available:

  • blockHeaderLeft

  • blockHeaderRight

  • blockBefore

  • blockAfter

  • blockFooter

  • blockOutsideBefore

  • blockOutsideAfter

This family has a number of additional options which affect how it behaves:

  • isRemovableIfEmpty

  • defaultTextContainer


  1. sxModule


    Type: SxModule

  2. selector


    Type: XPathTest

  3. markupLabel


    Type: String

  4. options