CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Function replaceFontInDocumentFragment

    • Recursively replaces the characters in direct children and removes their font-family style property if a font mapping for the font-family exists. The documentFragment given as the first parameter of this function will be altered directly.

      Parameters

      • documentFragment: ViewDocumentFragment | ViewElement

        the document fragment

      • OptionalparentFontMapping: FontMapping

        parent font mapping to be respected in calculation of the applied font mapping.

      Returns void