HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/woocommerce-smart-coupons/assets/js/sc-shortcode.js
/**
 * WooCommerce Smart Coupons JavaScript
 *
 * @package WooCommerce Smart Coupons/Assets/JS
 */

jQuery( document ).ready(
	function($) {

		tinymce.create(
			'tinymce.plugins.smart_coupons_shortcode_plugin',
			{
				init : function(ed, url) {
					var assetsUrl = url.substr( 0, url.lastIndexOf( "/js" ) );
					// Register command for when button is clicked.
					ed.addCommand(
						'smart_coupons_insert_shortcode',
						function() {

							ed.windowManager.open(
								{
									id : 'sc_coupons_attributes',
									width : "auto",
									height : "auto",
									wpDialog : true
								},
								{
									plugin_url : url // Plugin absolute URL.
								}
							);
						}
					);

					// Register buttons - trigger above command when clicked.
					ed.addButton( 'sc_shortcode_button', {title : 'Insert Smart Coupons shortcode', cmd : 'smart_coupons_insert_shortcode', classes: 'smart-coupon-shortcode btn' } );
				},
			}
		);

		// Register our TinyMCE plugin.
		// first parameter is the button ID1.
		// second parameter must match the first parameter of the tinymce.create() function above.
		tinymce.PluginManager.add( 'sc_shortcode_button', tinymce.plugins.smart_coupons_shortcode_plugin );
	}
);