ckbox/utils
@ckeditor/ckeditor5-ckbox/src/utils
module
Filtering
Functions
-
blurHashToDataUrl( [ hash ] ) → string | undefined
module:ckbox/utils~blurHashToDataUrl
Generates an image data URL from its
blurhash
representation.Parameters
[ hash ] : string
Returns
string | undefined
-
getImageUrls( imageUrls ) → object
module:ckbox/utils~getImageUrls
Converts image source set provided by the CKBox into an object containing:
- responsive URLs for the "webp" image format,
- one fallback URL for browsers that do not support the "webp" format.
Parameters
imageUrls : CKBoxImageUrls
Returns
object
-
getWorkspaceId( token, [ defaultWorkspaceId ] ) → string | null
module:ckbox/utils~getWorkspaceId
Returns a workspace id to use for communication with the CKBox service.
Parameters
token : InitializedToken
[ defaultWorkspaceId ] : string
The default workspace to use taken from editor config.
Returns
string | null
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.