CoreMedia CKEditor 5 Plugins
    Preparing search index...
    • Renames the given attribute to the given new name. aliases represent alternative names. Given a list of [name, ...aliases] the first existing value will be used for the target name. All attributes in that combined list will be removed.

      Parameters

      • node: ElementFilterParams

        Element filter parameters

        Named parameters to be passed to element filters. For overriding filter rules a typical pattern to start with is:

        params.parent && params.parent(args);
        
        • Readonlyeditor: Editor

          CKEditor instance, for example to access configuration.

        • Readonlynode: ElementProxy

          The node to process.

        • ReadonlyparentRule: ElementFilterRule

          A parent mapping to respect (or to ignore, thus override). It is required, so that it is easier to trigger a call to the parent rule. Just add it as empty function, if there is no parent.

      • name: string

        the original name to rename

      • targetName: string

        the new name of the attribute

      • ...aliases: string[]

        possible alternative original names

      Returns void