close

Filter

loading table of contents...

Release Notes / Version 11.2307

Table Of Contents

Strict Signature of Content Initializers

The Content Initializer API has been stated more formally precise by specifying the initializer function signature as a TypeScript type (content: Content) => void . This concerns the following methods in IEditorContext ( @coremedia/studio-client.main.editor-components/sdk/IEditorContext ) and IContentTypeContext ( @coremedia/studio-client.cap-base-models/content/IContentTypeContext ):

  • registerContentInitializer()

  • extendContentInitializer()

  • getContentInitializer()

  • lookupContentInitializer()

If adhering to the documentation of these methods, your client code should already have the required function signature. If not, it should be easy to adapt by changing your function signature accordingly or by using an adapter arrow function like this:

(content: Content) => { this.myContentInitializer(content) }

(CMS-20652)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.