CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Definition of an attribute, closely related to DTD definition.

    interface AttributeDefinitionConfig {
        content?: AttributeContent;
        fixed?: string | null;
        localName: string;
        namespaceURI?: string | null;
        prefix?: string | null;
        required?: string | false;
        validateValue?: (
            value: string | null,
            strictness: ActiveStrictness,
        ) => boolean;
    }
    Index

    Properties

    Defines valid attribute value types.

    fixed?: string | null

    If the value is fixed. It is expected that at least strict validation would consider any other value despite the fixed value as invalid.

    localName: string

    The local name of an attribute.

    namespaceURI?: string | null

    Namespace URI of attribute. If unset, it may be guessed from prefix if it is a well-known prefix.

    prefix?: string | null

    The prefix of an attribute. null none.

    required?: string | false

    If required and missing: Use the given value as default value.

    validateValue?: (value: string | null, strictness: ActiveStrictness) => boolean

    Validate a given value. By default forwards to attribute content definition.

    Type Declaration

      • (value: string | null, strictness: ActiveStrictness): boolean
      • Parameters

        • value: string | null

          value to validate

        • strictness: ActiveStrictness

          strictness level to respect

        Returns boolean