Skip to main content

Install N1ED plugin for CKEditor 5

N1ED comes to CKEditor 5 as one plugin: the blocks with a responsive Bootstrap or Tailwind grid, and the Flmngr file manager with the Image42 (formerly ImgPen) image editor. Which of them your editor runs is set for your API key in the same Dashboard as for TinyMCE and CKEditor 4, with no change to the build. The other N1ED features will come to CKEditor 5 later.

  • Install NPM package​

    The N1ED plugin is distributed in one npm package that is easy to add into your existing CKEditor 5 build project for further compilation.

    npm install --save-dev @edsdk/n1ed-ckeditor5

    Moving from @edsdk/blk42-ckeditor5 or @edsdk/flmngr-ckeditor5? Replace them, don't add to them: remove their imports and their Blk42 / Flmngr entries from plugins. An old version left in the build next to N1ED stops CKEditor 5 before it starts (two plugins named Flmngr).

  • Include to build​

    Add N1ED into your import section:

    import {
    ClassicEditor,
    Image,
    Essentials,
    Paragraph,
    Bold,
    Italic
    } from 'ckeditor5';
    import N1ED from "@edsdk/n1ed-ckeditor5";

    Then pass it to the plugins section of your ClassicEditor creation method call, put the three file manager buttons on the toolbar and set the API key:

    ClassicEditor.create(
    document.querySelector('#editor'), // your editor selector
    {
    licenseKey: "GPL", // or your commercial key: CKEditor 5 v44+ will not start without one
    plugins: [
    Essentials,
    Paragraph,
    Bold,
    Italic,
    Image, // the standard image plugin, the file manager needs it
    N1ED
    ],
    toolbar: [
    'bold',
    'italic',
    '|',
    'upload', // the three
    'flmngr', // buttons
    'imgpen' // of Flmngr
    ],
    apiKey: "N1ED24RR1234123412341234", // the demo key; yours is in the Dashboard: https://n1ed.com/dashboard
    }
    ).then( editor => {
    console.log(editor);
    } ).catch( error => {
    console.error(error.stack);
    } );

    The key decides what runs. The blocks, the file manager and the image editor are the plugin checkboxes of your key in the Dashboard, and a change there needs no rebuild. No need for the file manager? Switch it off there, or with N1ED: { plugins: { Flmngr: false } } in the editor's config, and leave its buttons out of the toolbar.

  • Build​

    Build your CKEditor 5 project or your project with CKEditor 5 imported to apply the newly added plugin.

    If you see the file manager buttons on the toolbar and a new bottom toolbar of the editor, everything works fine.

  • Install backend​

    Now you need to install the file manager server-side script on your server to enable the file manager in your editor. Follow the instructions provided in the link to complete the setup.

  • Ready to Use

Configuration​

The plugin checkboxes of your key in the Dashboard decide which parts run in CKEditor 5, the blocks, the file manager and the image editor, with no rebuild. Configure them there too: link the file storage, set the Bootstrap or Tailwind options and your own blocks, all without touching the code.

Dashboard

Examples​

Live CodePlay examples for CKEditor 5 with the JS/CSS/HTML code provided.