You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are excited to announce a new major release of the Vue integration.
7
+
8
+
In this release, we have introduced the following breaking changes that should make using the integration more intuitive and easier.
9
+
10
+
***Composition API**: The integration has been rewritten in Composition API, which follows the recommended way of writing components in Vue 3.
11
+
***Vue 3.4+**: The minimum required version of Vue is now 3.4+ because we are using the [Generics](https://vuejs.org/api/sfc-script-setup.html#generics) and [`defineModel()`](https://vuejs.org/api/sfc-script-setup.html#definemodel) features to provide better typings for the `editor` prop and component events.
12
+
***ESM-first**: Besides the UMD build, the integration is now available in ESM format. In most projects, the new ESM build should be automatically prioritized by bundlers and other tools.
13
+
***Changed exports**: We have changed how the Vue plugin and component are exported. The Vue plugin is no longer the `default` export but is exported as `CkeditorPlugin`. The component is now exported as `Ckeditor` instead of `default.component`.
14
+
15
+
Here's a comparison of how you can import the Vue plugin that registers a global `<ckeditor>` component:
***Remove the `editor` argument from the `destroy` event**: The `destroy` event no longer has an `editor` argument since it was always `null`.
40
+
***New name of the global variable**: The name of the global variable used in the UMD build changed from `CKEditor` to `CKEDITOR_VUE`.
41
+
6
42
### BREAKING CHANGES
7
43
8
44
* Bump required version to Vue 3.4+. See [#282](https://github.com/ckeditor/ckeditor5-vue/issues/282).
@@ -12,11 +48,6 @@ Changelog
12
48
* Migrate to ESM. See [ckeditor/ckeditor5#16616](https://github.com/ckeditor/ckeditor5/issues/16616).
13
49
* Remove argument from the `destroy` event, as it was always `null`. Closes [#283](https://github.com/ckeditor/ckeditor5-vue/issues/283).
14
50
* Rename main package exports to `CkeditorPlugin` and `Ckeditor`.
15
-
* Replace the default export with named `CKEditorPlugin` export.
16
-
17
-
### Features
18
-
19
-
* Add UMD for better backward compatibility. ([commit](https://github.com/ckeditor/ckeditor5-vue/commit/0412b19f26ef954a7cf8fb8c2bc7d1bce686e0e6))
20
51
21
52
### Bug fixes
22
53
@@ -27,8 +58,6 @@ Changelog
27
58
### Other changes
28
59
29
60
* Rename exports to improve name of the editor component in Vue. ([commit](https://github.com/ckeditor/ckeditor5-vue/commit/fac44822ca6f41c9a7ea4b529b6274da1ee66cfc))
30
-
* Updated yarn.lock to fix dependabot alert. ([commit](https://github.com/ckeditor/ckeditor5-vue/commit/e0d7a9e9c974025f6d0060b70d1d19718cb14f48))
0 commit comments