HEX
Server: Apache
System: Linux p3plzcpnl489499.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: dwauav0tm6jp (6177017)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/dwauav0tm6jp/public_html/wp-content/themes/photographer-wp/admin/shortcode-generator.js
// -----------------------------------------------------------------------------------------------------------------------------------------------

	function tiny_plugin( url, params )
	{
		var popup = params;
		
		tb_show( "Insert Shortcode", url + '/shortcode-generator-content.php?popup=' + popup + "&width=" + 800 );
	}
	
	(function()
	{
		tinymce.create( 'tinymce.plugins.tinyplugin',
							{
								init: function( ed, url )
								{
									ed.addButton( 'tinyplugin',
													{
														title: 'Insert Shortcode',
														onclick: function()
														{
															ed.execCommand( 'mceInsertContent',
																				false,
																				tiny_plugin( url )
																			);
														},
														image: url + "/shortcode-generator.png"
													}
												);
								}
							}
						);
	
		tinymce.PluginManager.add( 'tinyplugin', tinymce.plugins.tinyplugin );
	
	})();

// -----------------------------------------------------------------------------------------------------------------------------------------------