Skip to content

How to integrate a new plugin with default plugins #16396

@kerwin-ly

Description

@kerwin-ly

📝 Ask a question

Hi, I implemented a new plugin with ckeditor5 v38.1.1. But after get thru the doc, I'm still confused is there any easier way to contact new plugins/toolbars with default one in editor config. I tried the below way, but not working.

import { DecoupledEditor } from '@ckeditor/ckeditor5-editor-decoupled';
import FullScreen from '@/core/plugins/ckeditor/FullScreen';

const editorConfig = {
  plugins: [FullScreen, ...DecoupledEditor.builtinPlugins],
}

So i'm not sure if I need add default plugins one by one? like below

import { DecoupledEditor } from '@ckeditor/ckeditor5-editor-decoupled';
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import Heading from '@ckeditor/ckeditor5-heading/src/heading';
import List from '@ckeditor/ckeditor5-list/src/list';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';

DecoupledEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ Essentials, Paragraph, Heading, List, Bold, Italic ]
    } )

if there's anything i missed, pls let me know, thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution:resolvedThis issue was already resolved (e.g. by another ticket).type:questionThis issue asks a question (how to...).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions