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/hosted/natoinalparksquest_com/wp-content/themes/mercor/js/shortcode_plugin.js
/* Adapted from http://brettterpstra.com/adding-a-tinymce-button/ */



(function() {

	tinymce.create('tinymce.plugins.flShortcodes', {

		init : function(ed, url) {

			ed.addButton('flshortcodes', {

				title : 'Theme Shortcodes',

				image : url+'/shortcode.png',

				onclick : function() {

					ed.windowManager.open({

						file : url + '/tinymce_shortcodes.php',

						width : 320,

						height : 120,

						inline : 1

					});

				}



			});

		},

		createControl : function(n, cm) {

			return null;

		},

		getInfo : function() {

			return {

				longname : "Shortcodes",

				author : 'd7',

				version : "1.0"

			};

		}

	});

	tinymce.PluginManager.add('flshortcodes', tinymce.plugins.flShortcodes);

})();