Subversion Repositories wpShopGermany4

Rev

Rev 6304 | 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) {
6315 daniel 30
 
1071 daniel 31
			return null;
6315 daniel 32
 
1071 daniel 33
		},
34
 
35
		getInfo : function() {
36
			return {
37
				longname : 'wpShopGermany Produktauswahl',
1767 daniel 38
				author : 'maennchen1.de',
1071 daniel 39
				authorurl : 'http://maennchen1.de',
40
				version : "3.0"
41
			};
42
		}
6315 daniel 43
 
1071 daniel 44
	});
45
 
46
	tinymce.PluginManager.add('wpsg', tinymce.plugins.wpsgPlugin);
47
 
48
})();