Subversion Repositories Applications.papyrus

Rev

Rev 431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 431 Rev 875
Line 1... Line 1...
1
/*
1
/*
2
 * FCKeditor - The text editor for internet
2
 * FCKeditor - The text editor for internet
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
3
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * 
4
 * 
5
 * Licensed under the terms of the GNU Lesser General Public License:
5
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
6
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 
7
 * 
8
 * For further information visit:
8
 * For further information visit:
9
 * 		http://www.fckeditor.net/
9
 * 		http://www.fckeditor.net/
10
 * 
10
 * 
-
 
11
 * "Support Open Source software. What about a donation today?"
-
 
12
 * 
11
 * File Name: fckplugin.js
13
 * File Name: fckplugin.js
12
 * 	Plugin to insert "Placeholders" in the editor.
14
 * 	Plugin to insert "Placeholders" in the editor.
13
 * 
15
 * 
14
 * File Authors:
16
 * File Authors:
15
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
17
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
Line 19... Line 21...
19
FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 170 ) ) ;
21
FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 170 ) ) ;
Line 20... Line 22...
20
 
22
 
21
// Create the "Plaholder" toolbar button.
23
// Create the "Plaholder" toolbar button.
22
var oPlaceholderItem = new FCKToolbarButton( 'Placeholder', FCKLang.PlaceholderBtn ) ;
24
var oPlaceholderItem = new FCKToolbarButton( 'Placeholder', FCKLang.PlaceholderBtn ) ;
-
 
25
oPlaceholderItem.IconPath = FCKPlugins.Items['placeholder'].Path + 'placeholder.gif' ;
23
oPlaceholderItem.IconPath = FCKPlugins.Items['placeholder'].Path + 'placeholder.gif' ;
26
 
Line 24... Line 27...
24
FCKToolbarItems.RegisterItem( 'Placeholder', oPlaceholderItem ) ;
27
FCKToolbarItems.RegisterItem( 'Placeholder', oPlaceholderItem ) ;
25
 
28
 
Line 158... Line 161...
158
	}
161
	}
159
}
162
}
Line 160... Line 163...
160
 
163
 
Line 161... Line -...
161
FCK.Events.AttachEvent( 'OnAfterSetHTML', FCKPlaceholders.Redraw ) ;
-
 
162
 
-
 
163
// The "Redraw" method must be called on startup.
-
 
164
FCKPlaceholders.Redraw() ;
164
FCK.Events.AttachEvent( 'OnAfterSetHTML', FCKPlaceholders.Redraw ) ;
165
 
165
 
166
// We must process the SPAN tags to replace then with the real resulting value of the placeholder.
166
// We must process the SPAN tags to replace then with the real resulting value of the placeholder.
167
FCKXHtml.TagProcessors['span'] = function( node, htmlNode )
167
FCKXHtml.TagProcessors['span'] = function( node, htmlNode )
168
{
168
{