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

1.0.1 • Public • Published

editorjs-embed-xvideos

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

Installation

# Via npm:
npm i editorjs-embed-xvideos

# Via yarn:
yarn add editorjs-embed-xvideos

Usage

import EditorJS from '@editorjs/editorjs';
import Embed from '@editorjs/embed';
import { xvideosUrl, xvideosEmbed } from 'editorjs-embed-xvideos';

/*
  xvideosUrl example - https://www.xvideos.com/video57180129/the_less_i_know_the_better_sexy_rk777.exe

  xvideosEmbed example - https://www.xvideos.com/embedframe/57180129
*/

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

Package Sidebar

Install

npm i editorjs-embed-xvideos

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

12.4 kB

Total Files

10

Last publish

Collaborators

  • admaers