@cesdk/cesdk-js
TypeScript icon, indicating that this package has built-in type declarations

1.28.0 • Public • Published

Hero image showing the configuration abilities of CE.SDK

CreativeEditor SDK

The CreativeEditor SDK (CE.SDK) for Web is a fully customizable, simple-to-use design editor.

Seamlessly integrate it into any Web app with just a few lines of code. The editor combines the best of layout, typography and photo editing. CE.SDK also facilitates both template creation and adaption workflows, also featuring constraints and text placeholders for database automations.

Visit our website for more tutorials on how to integrate and customize the editor for your specific use-case.

Usage

1. Install the CreativeEditor SDK

Install the SDK with npm

npm install --save @cesdk/cesdk-js

or with yarn

yarn add @cesdk/cesdk-js

2. Create an empty Container

We need to add an empty <div> with an id or class as container for the SDK.

<div id="cesdk_container" style="width: 100vw; height: 100vh"></div>

In this example, we set the inline style to create a <div> element that fills the whole browser window.

3. Instantiate SDK

The last step involves the configuration and instantiation of the SDK.

import CreativeEditorSDK from '@cesdk/cesdk-js'

CreativeEditorSDK
  .create('#cesdk_container', {license: '<your-api-key>'})
  .then(async (instance) => {
    await cesdk.addDefaultAssetSources();
    await cesdk.addDemoAssetSources({ sceneMode: 'Design' });
    await cesdk.createDesignScene();

    /** do something with the instance of CreativeEditor SDK **/
  });

Documentation

The full documentation of the CreativeEditor SDK can be found at https://img.ly/docs/cesdk/.

License

The CreativeEditor SDK is a commercial product. To use it you need to unlock the SDK with a license file. You can purchase a license at https://img.ly/pricing.

Readme

Keywords

none

Package Sidebar

Install

npm i @cesdk/cesdk-js

Homepage

www.img.ly

Weekly Downloads

3,224

Version

1.28.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

99.2 MB

Total Files

763

Last publish

Collaborators

  • mirko314-imgly
  • maltebaumann
  • danielhauschildt
  • sascha_
  • schiewe
  • maerch