How to get configureAsImage
import configureAsImage from 'fontoxml-families/src/configureAsImage.js'
The image family is used for, as its name implies, images. Specifically images that are resolved from a permanent identifier on one of their attributes.
Images are displayed as themselves. If they are wider than the available block with, they are shown scaled.
As Fonto doesn't edit images, we define no keyboard flow inside them.
Images cannot be deleted by pressing Backspace or Delete.
Used for elements that represent images. These images may be represented by a permanent id or a non-permanent id. By setting the option
options.isPermanentId to true, the result of the query is interpreted as a permanent id, which will be resolved.
options parameter can be both the name of the attribute containing the permanent id, or the options object. This options object may then contain an XPath query resolving to the reference (either permanent or relative) which points to the image.
For backwards compatibility, the fourth argument to this function may be the name of an attribute. If the attribute name is passed as the fourth parameter, the image is assumed to use permanent ids. This is deprecated, using an options object as the fourth argument is preferred.
The following widget areas are available:
This family has a number of additional options which affect how it behaves:
The options, or the name of the attribute in which the permanent id referencing this image is located. The generic CvkOptions are expanded with two properties: