# Install Blk42 plugin for TinyMCE (React)

> Install the Blk42 Tailwind and Bootstrap editor into a self-hosted TinyMCE run by @tinymce/tinymce-react: the plugin in your public folder, enabled in init.

Source: https://blk42.com/docs/install/tinymce-react  
Section: Installation > TinyMCE (React)  
Every page of blk42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://blk42.com/llms-full.txt

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.

## Step 1: 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](https://blk42.com/download/blk42-tinymce.zip)

## Step 2: Unpack

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

```text
public/
  tinymce/
    plugins/
      blk42/
        plugin.js
        plugin.min.js
```

## Step 3: Enable

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

```tsx
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](https://n1ed.com).

[Dashboard](https://blk42.com/dashboard)
