You are assumed to using the following setup:
- jwplayer is installed on your site in the folder /js/jwplayer
- You have already completed the TinyMCE update to the latest version as per this guide
- that you are integrating with ISC
(If you're not integrating with ISC then you'll need to locate the correct theme/template set you're using instead of the "InterspireShoppingCart" one)
- Open: /templates/InterspireShoppingCart/Questions.html
Find:Before, Add:Code: Select all
%%Panel.PageHeader%%
.Code: Select all
<script type="text/javascript" src="/js/jwplayer/jwplayer.js"></script>
- Download a copy of this plugin:
https://github.com/ssm2017/TinyMce-JwPl ... /downloads
. - Extract the plugin then rename the folder "ssm2017-TinyMce-JwPlayer-plugin-..." to "jwplayer"
Note: Ignore the readme as the instructions are aimed more at Drupal and confused me for quite a while
. - Copy this folder to /admin/includes/tiny_mce/plugins
. - Open: /admin/includes/tiny_mce/plugins/jwplayer/editor_plugin.src.js
Find:Replace with:Code: Select all
var jwplayer_url = full_url.substring(0,(full_url.length - 26))+ '/jwplayer';
Code: Select all
var jwplayer_url = '/js/jwplayer';
- Open: /admin/includes/tiny_mce/plugins/jwplayer/editor_plugin.js
Find:Replace with:Code: Select all
k=j.substring(0,(j.length-26))+'/jwplayer'
Code: Select all
k='/js/jwplayer'
- Open: /admin/templates/editor.tpl
Find:Replace with:Code: Select all
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,cleanup,|,bullist,numlist,|,table,|,outdent,indent,|,link,unlink,anchor,image,media,|,forecolor,backcolor,|,|,code,syntaxhl,preview",
Find:Code: Select all
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,cleanup,|,bullist,numlist,|,table,|,outdent,indent,|,link,unlink,anchor,image,jwplayer,media,|,forecolor,backcolor,|,|,code,syntaxhl,preview",
Replace with:Code: Select all
plugins : "safari,pagebreak,style,layer,table,save,advimage,advlink,media,searchreplace,print,contextmenu,paste,fullscreen,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,preview",
Code: Select all
plugins : "safari,pagebreak,style,layer,table,save,advimage,advlink,media,searchreplace,print,contextmenu,paste,fullscreen,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,preview, jwplayer",
You should then see the JWPlayer logo next to the media icon and be able to add in your videos to play...