HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: sarli3128 (1010)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/cwd/wp-content/themes/addison/framework/editor-buttons/editor-buttons-plugin.js
(function( $ ) {
	tinymce.create( 'tinymce.plugins.BoldThemes', {
		/**
		 * Initializes the plugin, this will be executed after the plugin has been created.
		 * This call is done before the editor instance has finished it's initialization so use the onInit event
		 * of the editor instance to intercept that event.
		 *
		 * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
		 * @param {string} url Absolute URL to where the plugin is located.
		 */
		init: function( ed, url ) {

			ed.addButton( 'highlight', {
				title: ed.getLang( 'boldthemes_theme.highlight'),
				cmd: 'highlight',
				image: url + '/images/highlight.png'
			});
			ed.addCommand( 'highlight', function() {
				var selected_text = ed.selection.getContent();
				var return_text = '';
				return_text = '[boldthemes_highlight]' + selected_text + '[/boldthemes_highlight]';
				ed.execCommand( 'mceInsertContent', false, return_text );
			});

			ed.addButton( 'drop_cap', {
				title: ed.getLang( 'boldthemes_theme.drop_cap' ),
				cmd: 'drop_cap',
				image: url + '/images/drop_cap.png'
			});
			ed.addCommand( 'drop_cap', function() {
				var selected_text = ed.selection.getContent();
				var return_text = '';
				return_text = '[boldthemes_drop_cap type="1/2/3"]' + selected_text + '[/boldthemes_drop_cap]';
				ed.execCommand( 'mceInsertContent', false, return_text );
			});
		},
		addImmediate: function( ed, title, sc ) {
			ed.add({
				title: title,
				onclick: function() {
					tinyMCE.activeEditor.execCommand( 'mceInsertContent', false, sc );
				}
			});
		},
		/**
		 * Returns information about the plugin as a name/value array.
		 * The current keys are longname, author, authorurl, infourl and version.
		 *
		 * @return {Object} Name/value array containing information about the plugin.
		 */
		getInfo: function() {
			return {
				longname: 'BoldThemes Buttons',
				author: '',
				authorurl: '',
				infourl: '',
				version: '0.1'
			};
		}
	});
	// Register plugin
	tinymce.PluginManager.add( 'boldthemes', tinymce.plugins.BoldThemes );
})( jQuery );