CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Interface LinkCleanupRegistry

    Provides configuration options for attributes, which must not exist without corresponding linkHref attribute.

    interface LinkCleanupRegistry {
        registerDependentAttribute(modelAttributeName: string): void;
        unregisterDependentAttribute(modelAttributeName: string): boolean;
    }

    Implemented by

    Index

    Methods

    • Registers an attribute to be removed from a given range, when a linkHref attribute got removed.

      Parameters

      • modelAttributeName: string

        name of the model attribute to possibly remove

      Returns void

    • Unregisters an attribute, which in return, will not be removed anymore when a linkHref attribute got removed.

      Parameters

      • modelAttributeName: string

        name of the model attribute not to remove anymore

      Returns boolean

      true if attribute got removed; false if that attribute was not registered anymore