Get started with medium-editor-insert-plugin CDN

MIT licensed

Adds custom HTML to Medium Editor via medium-editor-insert-plugin.

Tags:
  • contenteditable
  • editor
  • medium
  • wysiwyg
  • rich-text
  • images
  • embeds
  • videos

Stable version

Copied!

How to start using medium-editor-insert-plugin CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with medium-editor-insert-plugin CDN - cdnhub.io</title>
  <link href="https://cdn.jsdelivr.net/npm/medium-editor@latest/dist/css/medium-editor.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/medium-editor@latest/dist/js/medium-editor.min.js"></script>
  <script src="https://cdn.cdnhub.io/medium-editor-insert-plugin/2.5.1/js/medium-editor-insert-plugin.min.js"></script>
</head>
<body>
  <div id="editor"></div>
  <script>
    const editor = new MediumEditor('editor', {
      toolbar: {
        buttons: ['bold', 'italic', 'underline', 'strikethrough', '|', 'link', 'image', 'table']
      }
    });

    editor.plugins.add('insertTable', {
      name: 'insertTable',
      version: '1.0.0'
    });

    editor.plugins.add('insertImage', {
      name: 'insertImage',
      version: '1.0.0'
    });

    editor.plugins.add('insertLink', {
      name: 'insertLink',
      version: '1.0.0'
    });

    editor.plugins.add('insertTable', {
      name: 'insertTable',
      version: '1.0.0',
      config: {
        tableColumns: 3,
        tableRows: 3
      }
    });

    editor.init();
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions