CoreMedia CKEditor 5 Plugins
    Preparing search index...
    • Possibly formats a new link if the given link is either a CoreMedia Unified API (UAPI) Content or Content Blob Identifier. Otherwise, returns the given string unmodified.

      Parameters

      • href: string

        link href to possibly adjust

      Returns string

      the original href or in case of UAPI references, references suitable for use in Studio Client.

      formatLink("https://example.org")
      => "https://example.org"
      formatLink("content/2")
      => "content/2"
      formatLink("coremedia:///cap/content/2")
      => "content/2"
      formatLink("content/2#properties.data")
      => "content/2#properties.data"
      formatLink("coremedia:///cap/blob/content/2#data")
      => "content/2#properties.data"