最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - tinymce how to insert video? - Stack Overflow

programmeradmin10浏览0评论

Is there a plugin for tinymce to insert a video direct to the editor?

jwplayer(id).setup({
                    file: video.href,
                    image: video.img,
                    title: video.title,
                    width: '640',
                    height: '360',
                    primary: 'flash',
                    aspectratio: '16:9'
                });

or how to insert a jwplayer into the editor directly , does anyone has did this?

Is there a plugin for tinymce to insert a video direct to the editor?

jwplayer(id).setup({
                    file: video.href,
                    image: video.img,
                    title: video.title,
                    width: '640',
                    height: '360',
                    primary: 'flash',
                    aspectratio: '16:9'
                });

or how to insert a jwplayer into the editor directly , does anyone has did this?

Share Improve this question edited Apr 17, 2014 at 10:45 Mayuri 4226 silver badges13 bronze badges asked Apr 17, 2014 at 10:40 user3518675user3518675 1251 gold badge4 silver badges7 bronze badges 4
  • Which version of TinyMCE are you using? 3.x series or 4.x? – Chankey Pathak Commented Apr 17, 2014 at 10:46
  • @ChankeyPathak, 4x tinymce...I want to insert the jwplayer programmatically to the editor, or any other plugin if its possible, for example I click a button(whereas have a link to the video) and then it appears in the editor....as, but the problem is that jwplayer is not inserting as html, it executes as javascript, i can't find examples for this... – user3518675 Commented Apr 17, 2014 at 10:50
  • Check this: stackoverflow./questions/1839345/jwplayer-and-tinymce – Chankey Pathak Commented Apr 17, 2014 at 11:07
  • tiny.cloud/docs/tinymce/6/media – Jose Manuel Abarca Rodríguez Commented Feb 13, 2023 at 19:30
Add a ment  | 

1 Answer 1

Reset to default 5

Yes there is:

You can use the media plugin.

tinymce.init({
    plugins: "media"
});

This plugin adds the ability to add HTML5 video and audio elements to TinyMCE.

Also check out TinyMce-JwPlayer-plugin

发布评论

评论列表(0)

  1. 暂无评论