Giter Site home page Giter Site logo

yahav / oembed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from typhonjs-tinymce/oembed

0.0 0.0 0.0 2.28 MB

Provides a media embed plugin connecting to various oEmbed content providers.

License: Other

JavaScript 86.34% CSS 13.65% HTML 0.01%

oembed's Introduction

@typhonjs-tinymce/ombed

License

Provides a media embed plugin for TinyMCE connecting to various oEmbed content providers. Please bear with us as this is a new release. The benefit of this plugin is that it provides a streamlined single panel UI and allows import from various oEmbed providers. Right now just YouTube / Vimeo for external video embeds. Another plus is that the thumbnail provided in oEmbed data returned from the provider is automatically used as a poster image allowing the display of applying styles during interactive editing which the default media plugin can not accomplish.


Release 0.4.0 has sub-package exports for TinyMCE v5 & v6 versions of the plugin though the default export is also the v6 version.

Auto-registration of the plugin:

  • For TinyMCE v5 use: import '@typhonjs-tinymce/oembed/v5
  • For TinyMCE v6 use: import '@typhonjs-tinymce/oembed/v6 or just import '@typhonjs-tinymce/oembed

However, if you need to manually invoke the plugin registration this is handy when you don't know the TinyMCE version:

  • For TinyMCE v5 use: import initPluginv5 from '@typhonjs-tinymce/oembed/v5/plugin
  • For TinyMCE v6 use: import initPluginv6 from '@typhonjs-tinymce/oembed/v6/plugin

initPlugin<XX> is a function to invoke plugin registration.


There are also bundled distributions in ./dist in this repo and UMD builds as well.

It should be noted that presently it is not possible to run both the standard OSS media plugin alongside typhonjs-oembed. A lot more is coming along with details on configuration.

Pict below: shows the simple GUI with a YouTube link added and automatic filling of all data fields. The bottom left shows adding styles w/ the thumbnail poster image and the final result on the lower right.

oembed

oembed's People

Contributors

typhonrt avatar yahav avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.