Skip to main content

Install Blk42 plugin for TinyMCE (React)

Blk42 adds Bootstrap and Tailwind grids to your TinyMCE in a React app: 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 upgrading your existing TinyMCE installation in a React app, managed with the standard @tinymce/tinymce-react package:

    • TinyMCE 8, 7 and 6, and its forks
    Download Plugin
  • Unpack​

    Unpack the archive into the public/tinymce/ folder of your project, the one that holds plugins/. The plugin lands here:

    public/
    tinymce/
    plugins/
    blk42/
    plugin.js
    plugin.min.js
  • Enable​

    Enable the Blk42 add-on in the init of your Editor component:

    import { Editor } from '@tinymce/tinymce-react';
    import { useState } from 'react';

    function MyEditor() {
    const [content, setContent] = useState('');

    return (
    <Editor
    tinymceScriptSrc="/tinymce/tinymce.min.js"
    value={content}
    onEditorChange={(newContent) => setContent(newContent)}
    init={{
    plugins: 'image link blk42',
    // apiKey: "...",
    // Get your own key in the Dashboard: https://blk42.com/dashboard
    }}
    />
    );
    }
  • Ready to Use

Configuration​

Configure your Blk42 TinyMCE (React) 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 (file_picker_callback), block backgrounds included. For blocks together with a file manager and an image editor in one plugin, use N1ED.

Dashboard