Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better export of the Ckeditor component #284

Open
filipsobol opened this issue Jun 26, 2024 · 0 comments · May be fixed by #281
Open

Better export of the Ckeditor component #284

filipsobol opened this issue Jun 26, 2024 · 0 comments · May be fixed by #281

Comments

@filipsobol
Copy link
Member

Currently this integration exposes two things:

  • Vue.js plugin that register the global Ckeditor component.
  • The Ckeditor component itself.

The plugin can be easily imported using the default export like so:

import Plugin from '@ckeditor/ckeditor5-vue';

However, the component itself is only available as the key of the default object:

import Plugin from '@ckeditor/ckeditor5-vue';

const Ckeditor = Plugin.component

This integration should have a better export for this component. Example:

import Plugin, { Ckeditor } from '@ckeditor/ckeditor5-vue';

// `Plugin` is the Vue.js plugin
// `Ckeditor` is Vue component
@filipsobol filipsobol linked a pull request Jun 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant