-
Notifications
You must be signed in to change notification settings - Fork 12
Asynchrony and Promises
⚠⚠ ⚠⚠ ⚠⚠
This wiki served in the early days of CKEditor 5 development and can be severely outdated.
Refer to the official CKEditor 5 documentation for up-to-date information.
Several editor operations are asynchronous, like the creation of instances and file pasting. In an attempt to uniformize (and modernize) the way such operations are handled, we're adopting the Promises approach.
The promise API has been introduced to JavaScript in ES2015 and it's supported by all modern browsers. Polyfills for older browsers exist as well.
Full documentation about this API is available at the MDN. We also recommend you read the Promises for asynchronous programming chapter from Dr. Axel Rauschmayer's great book Exploring ES6: Upgrade to the next version of JavaScript.