Update
This commit is contained in:
25
public/admin/plugins/tmce/youTube/plugin.min.js
vendored
Normal file
25
public/admin/plugins/tmce/youTube/plugin.min.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
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