CKEditor5.Components.Cloud.Importmap (ckeditor5 v0.2.0)

View Source

A component for rendering an import map in Phoenix. This component generates a script tag with type "importmap" containing an empty imports object. It can be used to define module imports for JavaScript in a Phoenix application.

⚠️ Warning

Import maps can only be used if the preset has the Cloud option enabled, which is not available under the GPL license key. You must specify your own Cloud or use a commercial license to utilize this feature.

Summary

Functions

Renders the import map script tag. This component does not take any specific assigns, but it can be customized with a :preset assign to specify which preset's import map to use.

Functions

render(assigns)

Renders the import map script tag. This component does not take any specific assigns, but it can be customized with a :preset assign to specify which preset's import map to use.

Attributes

  • preset (:string) - The name of the preset to use. Defaults to "default".
  • nonce (:string) - The CSP nonce to use for the script tag. Defaults to nil.