• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ckeditor / ckeditor5-vue / 509

pending completion
509

cron

travis-ci-com

pomek
Release: v5.1.0.

15 of 15 branches covered (100.0%)

Branch coverage included in aggregate %.

46 of 46 relevant lines covered (100.0%)

19.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/plugin.ts
1
/**
2
 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
 * For licensing, see LICENSE.md.
4
 */
5

6
/* eslint-env browser */
7
import * as Vue from 'vue';
8
import CKEditorComponent from './ckeditor';
9

10
/* istanbul ignore if */
11
if ( !Vue.version || !Vue.version.startsWith( '3.' ) ) {
1✔
12
        throw new Error(
13
                'The CKEditor plugin works only with Vue 3+. ' +
14
                'For more information, please refer to ' +
15
                'https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html'
16
        );
17
}
18

19
export default {
20
        /**
21
         * Installs the plugin, registering the `<ckeditor>` component.
22
         *
23
         * @param app The application instance.
24
         */
25
        install( app: Vue.App ): void {
26
                app.component( 'Ckeditor', CKEditorComponent );
1✔
27
        },
28

29
        component: CKEditorComponent
30
};
31

32
declare module 'vue' {
33
  interface GlobalComponents {
34
    Ckeditor: typeof CKEditorComponent;
35
  }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc