configureAsObject

How to get configureAsObject

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

Type: Function

An object may contain arbitrary HTML. Therefore, its inner display and behavior are not controlled by Fonto. Examples of this family are media objects and formulas.

The element itself is not visible by default. Objects are recognizable by their content, which can be anything.

As Fonto doesn't edit objects, we define no keyboard flow inside them. Objects cannot be deleted by pressing Backspace or Delete.

Use this family if you need an element to have a custom visual representation and/or custom behavior which cannot be accomplished by any of the other families. Use the createInnerJsonMl callback to render the object to HTML.

A clickOperation may be used to execute something on click.

The following widget areas are available:

  • blockHeaderLeft

  • blockHeaderRight

  • blockBefore

  • blockAfter

  • blockFooter

  • blockOutsideBefore

  • blockOutsideAfter

The following visualization options are visualized by this family:

  • textAlign

Arguments

# Name Type Description
1. sxModule SxModule
2. selector XPathTest
3. markupLabel String
4. options CvkOptions