# virtue-toolkit/2.4/shortcodes/pullquote/quote_shortgen.js

Virtue/Ascend/Pinnacle Toolkit, version 2.4. 36 lines.

- Page: https://pluginprobe.com/plugins/virtue-toolkit/2.4/code/shortcodes/pullquote/quote_shortgen.js
- Raw: https://pluginprobe.com/plugins/virtue-toolkit/2.4/raw/shortcodes/pullquote/quote_shortgen.js
- Modified: 2014-01-22T19:56:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/virtue-toolkit/2.4/code/shortcodes/pullquote/quote_shortgen.js#L10-L20`.

```javascript
(function() {
	tinymce.create('tinymce.plugins.kadquote', {
		init : function(ed, url) {
			// Register commands
			ed.addCommand('mcekadquote', function() {
				ed.windowManager.open({
					file: ajaxurl + '?action=kadquote_tinymce',
					width : 350 + parseInt(ed.getLang('button.delta_width', 0)), // size of our window
					height : 190 + parseInt(ed.getLang('button.delta_height', 0)), // size of our window
					inline : 1
				}, {
					plugin_url : url
				});
			});
			 
			// Register buttons
			ed.addButton('kadquote', {title : 'Insert Styled Quote', cmd : 'mcekadquote', image: url + '/img/quote.png' });
		},
		 
		getInfo : function() {
			return {
				longname : 'Insert Styled Quote',
				author : 'Benjamin Ritner',
				authorurl : 'http://kadencethemes.com',
				infourl : 'http://kadencethemes.com',
				version : tinymce.majorVersion + "." + tinymce.minorVersion
			};
		}
	});
	 
	// Register plugin
	// first parameter is the button ID and must match ID elsewhere
	// second parameter must match the first parameter of the tinymce.create() function above
	tinymce.PluginManager.add('kadquote', tinymce.plugins.kadquote);

})();
```
