CoreMedia CKEditor 5 Plugins
    Preparing search index...
    • Sets attributes that originate from xlink attributes as dataset entries instead. This method is meant to be used in toView mapping as a suggestion how to secure xlink attributes that may otherwise get lost outside the CKEditor 5 data layer (thus, model and editing view).

      Parameters

      • element: HTMLElement

        the elemant to set the attributes at

      • attributes: XLinkAttributes

        the key-value pairs of attributes to set

      • allowEmpty: boolean = true

        if to ignore entries with empty values or not; default: true

      Returns void

      setXLinkDataSetEntries(element, {
      // empty: Ignored, if allowEmpty=false
      "title": "",
      "href": "https://example.org/"
      });