Ticket #5745: iframedialog.patch

File iframedialog.patch, 1.1 KB (added by Geecu, 14 years ago)
Line 
1*** ckeditor/_source/plugins/iframedialog/plugin.js     Thu May 20 11:58:11 2010
2--- ckeditor_gls/plugins/iframedialog/plugin.js Tue May 25 15:51:23 2010
3*************** CKEDITOR.plugins.add( 'iframedialog',
4*** 12,18 ****
5        requires : [ 'dialog' ],
6        onLoad : function()
7        {
8!               CKEDITOR.dialog.addIframe = function( name, title, src, width, height, onContentLoad )
9                {
10                        var element =
11                        {
12--- 12,18 ----
13        requires : [ 'dialog' ],
14        onLoad : function()
15        {
16!               CKEDITOR.dialog.addIframe = function( name, title, src, width, height, onContentLoad, userDefinition )
17                {
18                        var element =
19                        {
20*************** CKEDITOR.plugins.add( 'iframedialog',
21*** 38,45 ****
22                                                expand : true,
23                                                elements : [ element ]
24                                        }
25!                               ]
26                        };
27 
28                        return this.add( name, function(){ return definition; } );
29                };
30--- 38,49 ----
31                                                expand : true,
32                                                elements : [ element ]
33                                        }
34!                               ],
35                        };
36+       for (var i in userDefinition)
37+       {
38+         definition[i] = userDefinition[i];
39+       }
40 
41                        return this.add( name, function(){ return definition; } );
42                };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy