---
title: "Cordova: A plugin made for JavaScript developers"
description: "Integrating third-party libraries requires either native platform experience or a time-consuming learning curve. To set you on a smoother path, we are introducing a new Cordova plugin that integrates our native iOS and Android SDK for you!"
url: "https://img.ly/blog/cordova-plugin/"
type: "blog"
date: "2020-09-09"
author: "Hasan"
tags: ["Cordova","App Development","Photo Editor","Video Editor","Push2Medium","Company"]
---

> This is the markdown version of [Cordova: A plugin made for JavaScript developers](https://img.ly/blog/cordova-plugin/). For all pages in one file, see [llms-full.txt](https://img.ly/llms-full.txt). For an index of all available pages, see [llms.txt](https://img.ly/llms.txt).

---

In a perfect world, Cordova should enable web developers to target multiple platforms with one codebase. Yet in reality, developers using Cordova to build cross-platform apps, need to be experienced with the development tool stacks and programming languages of the native platforms. This is particularly the case when integrating native third-party libraries from scratch, as we detailed in a [previous blog post](https://img.ly/blog/photoeditor-sdk-cordova-dabe146e6c13.md?utm_campaign=wrapper%20support&utm_medium=blog&utm_source=ghost&utm_content=cordova%20plugin).

We are proud to introduce our all-new **Cordova plugin** integrations `[cordova-plugin-photoeditorsdk](https://www.npmjs.com/package/cordova-plugin-photoeditorsdk)` and `[cordova-plugin-videoeditorsdk](https://www.npmjs.com/package/cordova-plugin-videoeditorsdk)` for our native [PhotoEditor SDK](https://img.ly/products/photo-sdk.md) and [VideoEditor SDK](https://img.ly/products/video-sdk.md) versions. The interplay of both products allows you to add comprehensive image and video editing tools to your Cordova app for iOS and Android - within minutes.

While crafting our new plugins, the primary objective was to minimize the required platform-specific knowledge and skillset. We are thrilled to provide a wealth of [configuration and customization options](https://github.com/imgly/pesdk-cordova/blob/master/types/configuration.ts) to developers without forcing them to leave their JavaScript tooling and programming environment.

## Bye-bye native platform-specific asset management

Our new utility function `loadResource()` simplifies the process to pass static assets to the native SDKs. By using it, e.g., in your `index.js` file, our plugins will take care of resolving the correct platform-specific asset file paths.

The following snippet demonstrates this convenience for customizing the sticker tool (lines `15` to `30`) and for passing an input image to the editor (line `33`). The only requirement is to make the corresponding images available in your app's `www/assets` folder.

<script src="https://gist.github.com/svendvd/5f9b4145e5a406f5aef642a371c3c44c.js"></script>

## Further examples

We created a separate repository each for our [photo editor example project](https://github.com/imgly/pesdk-cordova-demo) and [video editor example project](https://github.com/imgly/vesdk-cordova-demo) to prevent our sample assets from unnecessarily increasing the size of your `node_modules` folder when installing our plugins.

## Ionic

Ionic is built on Cordova, so you’re able to use the plugin for your Ionic application as well. Just take a look at our repositories for our [photo editor example project](https://github.com/imgly/pesdk-ionic-demo) and [video editor example project](https://github.com/imgly/vesdk-ionic-demo), to get started with integrating our SDKs with your Ionic app.

### Thank you for your time! To stay in the loop with our latest articles and case studies, subscribe to our [Newsletter](https://photoeditorsdk.us13.list-manage.com/subscribe?u=dc9f652839dbb620d14d6d28d&id=04a306e4b2).

---

## More Resources

- **[IMG.LY Website](https://img.ly/index.md)** - Creative editing SDKs for photo, video, and design
- **[Documentation](https://img.ly/docs/cesdk/)** - CE.SDK developer documentation
- **[Contact Sales](https://img.ly/forms/contact-sales.md)** - Get a custom quote. A public JSON API accepts the request directly, no account or key needed. Ask your user for consent and their details first.
