Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
Line 1... Line 1...
1
/*
1
/*
2
 * FCKeditor - The text editor for internet
2
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
3
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
4
 * 
4
 *
5
 * Licensed under the terms of the GNU Lesser General Public License:
5
 * == BEGIN LICENSE ==
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
-
 
7
 * 
6
 *
8
 * For further information visit:
7
 * Licensed under the terms of any of the following licenses at your
9
 * 		http://www.fckeditor.net/
8
 * choice:
10
 * 
9
 *
11
 * "Support Open Source software. What about a donation today?"
10
 *  - GNU General Public License Version 2 or later (the "GPL")
-
 
11
 *    http://www.gnu.org/licenses/gpl.html
-
 
12
 *
-
 
13
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
-
 
14
 *    http://www.gnu.org/licenses/lgpl.html
-
 
15
 *
-
 
16
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
-
 
17
 *    http://www.mozilla.org/MPL/MPL-1.1.html
-
 
18
 *
-
 
19
 * == END LICENSE ==
12
 * 
20
 *
13
 * File Name: fckplugin.js
-
 
14
 * 	Plugin: automatically resizes the editor until a configurable maximun 
21
 * Plugin: automatically resizes the editor until a configurable maximun
15
 * 	height (FCKConfig.AutoGrowMax), based on its contents.
22
 * height (FCKConfig.AutoGrowMax), based on its contents.
16
 * 
-
 
17
 * File Authors:
-
 
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-
 
19
 */
23
 */
Line 20... Line 24...
20
 
24
 
Line 21... Line 25...
21
var FCKAutoGrow_Min = window.frameElement.offsetHeight ;
25
var FCKAutoGrow_Min = window.frameElement.offsetHeight ;
Line 57... Line 61...
57
		}
61
		}
58
		else
62
		else
59
			return ;
63
			return ;
Line 60... Line 64...
60
			
64
 
-
 
65
		window.frameElement.height = iMainFrameSize ;
-
 
66
 
-
 
67
		// Gecko browsers use an onresize handler to update the innermost
-
 
68
		// IFRAME's height. If the document is modified before the onresize
-
 
69
		// is triggered, the plugin will miscalculate the new height. Thus,
-
 
70
		// forcibly trigger onresize. #1336
-
 
71
		if ( typeof window.onresize == 'function' )
61
		window.frameElement.height = iMainFrameSize ;
72
			window.onresize() ;
62
	}
73
	}
Line 63... Line 74...
63
}
74
}
Line 64... Line 75...
64
 
75
 
65
FCK.AttachToOnSelectionChange( FCKAutoGrow_Check ) ;
76
FCK.AttachToOnSelectionChange( FCKAutoGrow_Check ) ;
-
 
77
 
-
 
78
function FCKAutoGrow_SetListeners()
-
 
79
{
66
 
80
	if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
67
function FCKAutoGrow_SetListeners()
81
		return ;
68
{
82
 
Line 69... Line 83...
69
	FCK.EditorWindow.attachEvent( 'onscroll', FCKAutoGrow_Check ) ;
83
	FCK.EditorWindow.attachEvent( 'onscroll', FCKAutoGrow_Check ) ;