Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- tinymce.PluginManager.requireLangPack('pullquotes');
- tinymce.create('tinymce.plugins.PullQuotesPlugin', {
- init : function(ed, url) {
- tinyMCE.activeEditor.execCommand('mcePullQuote');
- ed.addCommand('mcePullQuotes', function() {
- ed.windowManager.open({
- file : url + '/dialog.htm',
- width : 480 + parseInt(ed.getLang('style.delta_width', 0)),
- height : 340 + parseInt(ed.getLang('style.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url, // Plugin absolute URL
- some_custom_arg : 'custom arg' // Custom argument
- });
- });
- ed.addButton('pullquotes', {
- title : 'PullQuotes',
- text: 'PQ',
- cmd : 'mcePullQuotes',
- icon: false,
- image : url + '/img/example.gif'
- });
- },
- getInfo : function() {
- return {
- longname : 'Pull Quotes plugin',
- author : 'Adrian Cotter',
- authorurl : 'adrian.cotter@sierraclub.org',
- infourl : 'http://www.sierraclub.org',
- version : "1.0"
- };
- }
- });
- tinymce.PluginManager.add('pullquotes', tinymce.plugins.PullQuotesPlugin);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement