Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1071 daniel 1
(function() {
2
 
3
	tinymce.create('tinymce.plugins.wpsgPlugin', {
4
 
5
		init : function(ed, url) {
6
 
7
			ed.addCommand('mcewpsg', function() {
8
				ed.windowManager.open({
9
					file : 'admin.php?page=wpsg-Produkt&action=select&noheader=1',
10
					width : 350,
6304 daniel 11
					height : 450,
1071 daniel 12
					inline : 1
13
				}, {
14
					plugin_url : url
15
				});
16
			});
17
 
18
			ed.addButton('wpsg', {
19
				title : 'Produkt aus dem Produktkatalog einfügen',
20
				cmd : 'mcewpsg',
2226 daniel 21
				image : url + '/../gfx/basket_select.png'
1071 daniel 22
			});
23
 
24
			ed.onNodeChange.add(function(ed, cm, n) {
25
				cm.setActive('wpsg', n.nodeName == 'IMG');
26
			});
27
		},
28
 
29
		createControl : function(n, cm) {
30
			return null;
31
		},
32
 
33
		getInfo : function() {
34
			return {
35
				longname : 'wpShopGermany Produktauswahl',
1767 daniel 36
				author : 'maennchen1.de',
1071 daniel 37
				authorurl : 'http://maennchen1.de',
38
				version : "3.0"
39
			};
40
		}
41
	});
42
 
43
	tinymce.PluginManager.add('wpsg', tinymce.plugins.wpsgPlugin);
44
 
45
})();