CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Type Alias LanguageByClass

    LanguageByClass: (classListEntry: string) => string | undefined

    Used to extract a language from a given entry in HTMLElement.classList.

    Note that matched language tokens must not contain reserved characters such as [ or ] that will break BBCode parsing.

    A falsy return value will skip any further language processing and especially will not add any language identifier to the resulting BBCode.

    Type Declaration

      • (classListEntry: string): string | undefined
      • Parameters

        • classListEntry: string

        Returns string | undefined