@ckeditor/ckeditor5-vue
Version:
Official Vue.js 3+ component for CKEditor 5 – the best browser-based rich text editor.
33 lines (32 loc) • 1.21 kB
TypeScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
import * as Vue from 'vue';
import Ckeditor from './ckeditor.vue';
declare const CkeditorPlugin: {
/**
* Installs the plugin, registering the `<ckeditor>` component.
*
* @param app The application instance.
*/
install(app: Vue.App): void;
};
/**
* The component is exported as `Ckeditor` and not `CKEditor`, because of how Vue handles components with
* capitalized names. The component with more than one consecutive capital letter will also be be available
* in kebab-case, where each capital letter is separated by `-`. This way, the `CKEditor` component will
* be available as `c-k-editor`, which doesn't look good.
*/
export { CkeditorPlugin, Ckeditor };
/**
* CDN related exports.
*/
export { default as useCKEditorCloud } from './useCKEditorCloud.js';
export { loadCKEditorCloud, type CKEditorCloudResult, type CKEditorCloudConfig, type CdnPluginsPacks } from '@ckeditor/ckeditor5-integrations-common';
declare module 'vue' {
interface GlobalComponents {
Ckeditor: typeof Ckeditor;
ckeditor: typeof Ckeditor;
}
}