Skip to main content

Install Blk42 plugin for CKEditor 4

Blk42 adds Bootstrap and Tailwind grids to your CKEditor 4: insert a block with the grid layout you pick, edit the grid, fill the block with content and save it as a template for later.

  • Download​

    Get the Blk42 plugin for installing into your existing CKEditor 4 editor.

    Note: using the latest free version of CKEditor (4.22.1) is recommended.

    Download Plugin
  • Unpack​

    Unpack the archive into the CKEditor folder, the one that holds plugins/. The plugin lands here:

    ckeditor/
    plugins/
    blk42/
    plugin.js
  • Enable​

    Enable the Blk42 add-on in the CKEditor 4 config:

    CKEDITOR.editorConfig = function(config) {
    config.extraPlugins = "blk42";
    config.versionCheck = false; // skip its upgrade notice of CKEditor itself

    // config.apiKey = "...";
    // Get your own key in the Dashboard: https://blk42.com/dashboard
    }

    Please avoid using spaces in extraPlugins if you have other plugins enabled. Use a comma only as the separator.

  • Ready to Use

Configuration​

Configure your Blk42 CKEditor 4 installation in the Dashboard: set the Bootstrap or Tailwind options and share your custom blocks between your websites, all without touching the code.

Blk42 uses the editor's own image upload and browse settings (filebrowserBrowseUrl), block backgrounds included. For blocks together with a file manager and an image editor in one plugin, use N1ED.

Dashboard

Examples​

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