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 521
Line 7... Line 7...
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
8
 * 
8
 * 
9
 * For further information visit:
9
 * For further information visit:
10
 * 		http://www.fckeditor.net/
10
 * 		http://www.fckeditor.net/
11
 * 
11
 * 
-
 
12
 * "Support Open Source software. What about a donation today?"
-
 
13
 * 
12
 * File Name: fck_placeholder.html
14
 * File Name: fck_placeholder.html
13
 * 	Placeholder Plugin.
15
 * 	Placeholder Plugin.
14
 * 
16
 * 
15
 * File Authors:
17
 * File Authors:
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
Line 43... Line 45...
43
{
45
{
44
	if ( !eSelected )
46
	if ( !eSelected )
45
		return ;
47
		return ;
Line 46... Line 48...
46
 
48
 
47
	if ( eSelected.tagName == 'SPAN' && eSelected._fckplaceholder )
49
	if ( eSelected.tagName == 'SPAN' && eSelected._fckplaceholder )
48
		txtName.value = eSelected._fckplaceholder ;
50
		document.getElementById('txtName').value = eSelected._fckplaceholder ;
49
	else
51
	else
50
		eSelected == null ;
52
		eSelected == null ;
Line 51... Line 53...
51
}
53
}
52
 
54
 
-
 
55
function Ok()
-
 
56
{
53
function Ok()
57
	var sValue = document.getElementById('txtName').value ;
54
{
58
	
Line 55... Line 59...
55
	if ( eSelected && eSelected._fckplaceholder == document.getElementById('txtName').value )
59
	if ( eSelected && eSelected._fckplaceholder == sValue )
56
		return true ;
60
		return true ;
57
 
61
 
58
	if ( document.getElementById('txtName').value.length == 0 )
62
	if ( sValue.length == 0 )
59
	{
63
	{
Line 60... Line 64...
60
		alert( FCKLang.PlaceholderErrNoName ) ;
64
		alert( FCKLang.PlaceholderErrNoName ) ;
61
		return false ;
65
		return false ;
62
	}
66
	}
63
	
67
	
64
	if ( FCKPlaceholders.Exist( document.getElementById('txtName').value ) )
68
	if ( FCKPlaceholders.Exist( sValue ) )
Line 65... Line 69...
65
	{
69
	{
66
		alert( FCKLang.PlaceholderErrNameInUse ) ;
70
		alert( FCKLang.PlaceholderErrNameInUse ) ;
67
		return false ;
71
		return false ;
Line 68... Line 72...
68
	}
72
	}
69
 
73