ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.54k stars 3.7k forks source link

Importing plugin to web application #17023

Open batistellabr opened 2 months ago

batistellabr commented 2 months ago

Hello,

I wrote a plugin based on this step by step tutorial: https://ckeditor.com/docs/ckeditor5/latest/framework/tutorials/widgets/implementing-an-inline-widget.html

The plugin is working well when executed using npm run dev.

Now, I have to use the plugin in my web app. My web app is a simple one, not using node nor NPM as a packaging tool. It's a simple html and js files.

So, I imported CKEditor using CDN (UMD build) and now I need to use my plugin build as well.

What are the steps to be able to use my plugin inside my web app? When I run npm build in my plugin, it generates a .js file which is ~1MB, probably because it contains CKEditor the dependencies. Do I have to put this .js file inside a script tag in my html file?

Thank you.

batistellabr commented 2 months ago

Here is my plugin code.

plugin.zip