editorjs-embed-pornhub
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

editorjs-embed-pornhub

This is an EditorJS plugin extension for embedding videos from pornhub.

Installation

# Via npm:
npm i editorjs-embed-pornhub

# Via yarn:
yarn add editorjs-embed-pornhub

Usage

import EditorJS from '@editorjs/editorjs';
import Embed from '@editorjs/embed';
import { pornhubUrl, pornhubEmbed } from 'editorjs-embed-pornhub';

/*
  pornhubUrl example - https://www.pornhub.com/view_video.php?viewkey=1849749437

  pornhubEmbed example - https://www.pornhub.com/embed/1849749437
*/

new EditorJS({
  tools: {
    embed: {
      class: Embed,
      config: {
        services: {
          youtube: true,
          pornhubUrl,
          pornhubEmbed,
        },
      },
    },
  },
});

Package Sidebar

Install

npm i editorjs-embed-pornhub

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

12.2 kB

Total Files

10

Last publish

Collaborators

  • admaers