Update
This commit is contained in:
22
public/admin/plugins/tmce/cpYouTube/plugin.min.js
vendored
Normal file
22
public/admin/plugins/tmce/cpYouTube/plugin.min.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
tinymce.PluginManager.add('youTube', function(editor, url) {
|
||||
|
||||
editor.addButton('youTube', {
|
||||
image: url + '/images/youtube.png',
|
||||
tooltip: 'YouTube Video',
|
||||
onclick: open_youTube
|
||||
});
|
||||
|
||||
function open_youTube() {
|
||||
|
||||
editor.windowManager.open({
|
||||
title: 'Select YouTube Video',
|
||||
width: 900,
|
||||
height: 655,
|
||||
url: url + '/youTube.php'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user