mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 16:28:51 +00:00
merge of '326cbf2748cd4309c0cacb9702c86cdb705dadfe'
and 'ba6d913f4f8a20f6769ab7fd45973e1fbdee1e68' Monotone-Parent: 326cbf2748cd4309c0cacb9702c86cdb705dadfe Monotone-Parent: ba6d913f4f8a20f6769ab7fd45973e1fbdee1e68 Monotone-Revision: 3c15622e01ba189cb753c80fb8cf4c1a57e85c29 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-26T17:31:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
||||
2009-06-26 Cyril Robert <crobert@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/UIxPreferences.js: Fixed a bug when
|
||||
ComposeMessagesType isn't set, removed an "alert"
|
||||
|
||||
2009-06-25 Cyril Robert <crobert@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailReply.m: Added proper blockquote
|
||||
* UI/WebServerResources/UIxMailEditor.js: Use CKeditor
|
||||
* SoObjects/Mailer/SOGoMailForward.m: Added htmlComposition property,
|
||||
changed almost all methods to escape what needsto be escaped.
|
||||
* UI/WebServerResources/UIxPreferences.js: Fixed CKeditor toggle issue
|
||||
|
||||
2009-06-23 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoGCSFolder.m (-davSyncCollection:): certain
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
SOGoMailObject *sourceMail;
|
||||
NSString *field;
|
||||
NSString *currentValue;
|
||||
BOOL htmlComposition;
|
||||
}
|
||||
|
||||
- (void) setSourceMail: (SOGoMailObject *) newSourceMail;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
#import <NGExtensions/NSString+misc.h>
|
||||
|
||||
#import <SoObjects/SOGo/SOGoDateFormatter.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
@@ -34,6 +35,10 @@
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
NSUserDefaults *ud;
|
||||
ud = [[context activeUser] userDefaults];
|
||||
htmlComposition = [[ud objectForKey: @"ComposeMessagesType"] isEqualToString: @"html"];
|
||||
|
||||
sourceMail = nil;
|
||||
currentValue = nil;
|
||||
}
|
||||
@@ -53,6 +58,16 @@
|
||||
ASSIGN (sourceMail, newSourceMail);
|
||||
}
|
||||
|
||||
- (NSString *) newLine
|
||||
{
|
||||
NSString *rc = [NSString stringWithString: @" "];
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithString: @"<br/>"];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (NSString *) subject
|
||||
{
|
||||
return [sourceMail decodedSubject];
|
||||
@@ -69,7 +84,14 @@
|
||||
|
||||
- (NSString *) from
|
||||
{
|
||||
return [[sourceMail mailHeaders] objectForKey: @"from"];
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [[[sourceMail mailHeaders] objectForKey: @"from"] stringByEscapingHTMLString];
|
||||
else
|
||||
rc = [[sourceMail mailHeaders] objectForKey: @"from"];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (NSString *) _headerField: (NSString *) fieldName
|
||||
@@ -91,8 +113,15 @@
|
||||
|
||||
- (NSString *) replyTo
|
||||
{
|
||||
return ([NSString stringWithFormat: @"%@\n",
|
||||
[self _headerField: @"reply-to"]]);
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>",
|
||||
[[self _headerField: @"reply-to"] stringByEscapingHTMLString]];
|
||||
else
|
||||
rc = ([NSString stringWithFormat: @"%@\n", [self _headerField: @"reply-to"]]);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (BOOL) hasOrganization
|
||||
@@ -102,13 +131,26 @@
|
||||
|
||||
- (NSString *) organization
|
||||
{
|
||||
return ([NSString stringWithFormat: @"%@\n",
|
||||
[self _headerField: @"organization"]]);
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [self _headerField: @"organization"]];
|
||||
else
|
||||
rc = [NSString stringWithFormat: @"%@\n", [self _headerField: @"organization"]];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (NSString *) to
|
||||
{
|
||||
return [[sourceMail mailHeaders] objectForKey: @"to"];
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [[[sourceMail mailHeaders] objectForKey: @"to"] stringByEscapingHTMLString];
|
||||
else
|
||||
rc = [[sourceMail mailHeaders] objectForKey: @"to"];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (BOOL) hasCc
|
||||
@@ -118,8 +160,15 @@
|
||||
|
||||
- (NSString *) cc
|
||||
{
|
||||
return ([NSString stringWithFormat: @"%@\n",
|
||||
[self _headerField: @"cc"]]);
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>",
|
||||
[[self _headerField: @"cc"] stringByEscapingHTMLString]];
|
||||
else
|
||||
rc = ([NSString stringWithFormat: @"%@\n", [self _headerField: @"cc"]]);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (BOOL) hasNewsGroups
|
||||
@@ -129,8 +178,14 @@
|
||||
|
||||
- (NSString *) newsgroups
|
||||
{
|
||||
return ([NSString stringWithFormat: @"%@\n",
|
||||
[self _headerField: @"newsgroups"]]);
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [self _headerField: @"newsgroups"]];
|
||||
else
|
||||
rc = [NSString stringWithFormat: @"%@\n", [self _headerField: @"newsgroups"]];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (BOOL) hasReferences
|
||||
@@ -140,8 +195,14 @@
|
||||
|
||||
- (NSString *) references
|
||||
{
|
||||
return ([NSString stringWithFormat: @"%@\n",
|
||||
[self _headerField: @"references"]]);
|
||||
NSString *rc;
|
||||
|
||||
if (htmlComposition)
|
||||
rc = [NSString stringWithFormat: @"%@<br/>", [self _headerField: @"references"]];
|
||||
else
|
||||
rc = [NSString stringWithFormat: @"%@\n", [self _headerField: @"references"]];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (NSString *) messageBody
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Message original --------
|
||||
Sujet: <#subject/>
|
||||
Date: <#date/>
|
||||
De: <#from/>
|
||||
<#hasReplyTo>Répondre à: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>Pour: <#to/>
|
||||
<#hasCc>Copie: <#cc/></#hasCc><#hasNewsGroups>Forums de discussion: <#newsgroups/></#hasNewsGroups><#hasReferences>Références: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Message original --------<#newLine/>
|
||||
Sujet: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
De: <#from/><#newLine/>
|
||||
<#hasReplyTo>Répondre à: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>Pour: <#to/><#newLine/>
|
||||
<#hasCc>Copie: <#cc/></#hasCc><#hasNewsGroups>Forums de discussion: <#newsgroups/></#hasNewsGroups><#hasReferences>Références: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Message original --------
|
||||
Sujet: <#subject/>
|
||||
Date: <#date/>
|
||||
De: <#from/>
|
||||
<#hasReplyTo>Répondre à: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>Pour: <#to/>
|
||||
<#hasCc>Copie: <#cc/></#hasCc><#hasNewsGroups>Forums de discussion: <#newsgroups/></#hasNewsGroups><#hasReferences>Références: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>Le <#date/>, <#from/> a écrit:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Message original --------<#newLine/>
|
||||
Sujet: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
De: <#from/><#newLine/>
|
||||
<#hasReplyTo>Répondre à: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>Pour: <#to/><#newLine/>
|
||||
<#hasCc>Copie: <#cc/></#hasCc><#hasNewsGroups>Forums de discussion: <#newsgroups/></#hasNewsGroups><#hasReferences>Références: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>Le <#date/>, <#from/> a écrit:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Original-Nachricht --------
|
||||
Betreff: <#subject/>
|
||||
Datum: <#date/>
|
||||
Von: <#from/>
|
||||
<#hasReplyTo>Antwort an: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>An: <#to/>
|
||||
<#hasCc>Kopie: <#cc/></#hasCc><#hasNewsGroups>Newsgroup: <#newsgroups/></#hasNewsGroups><#hasReferences>Referenzen: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Original-Nachricht --------<#newLine/>
|
||||
Betreff: <#subject/><#newLine/>
|
||||
Datum: <#date/><#newLine/>
|
||||
Von: <#from/><#newLine/>
|
||||
<#hasReplyTo>Antwort an: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>An: <#to/><#newLine/>
|
||||
<#hasCc>Kopie: <#cc/></#hasCc><#hasNewsGroups>Newsgroup: <#newsgroups/></#hasNewsGroups><#hasReferences>Referenzen: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original-Nachricht --------
|
||||
Betreff: <#subject/>
|
||||
Datum: <#date/>
|
||||
Von: <#from/>
|
||||
<#hasReplyTo>Antwort an: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>An: <#to/>
|
||||
<#hasCc>Kopie: <#cc/></#hasCc><#hasNewsGroups>Newsgroup: <#newsgroups/></#hasNewsGroups><#hasReferences>Referenzen: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>Am <#date/>, <#from/> schrieb:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original-Nachricht --------<#newLine/>
|
||||
Betreff: <#subject/><#newLine/>
|
||||
Datum: <#date/><#newLine/>
|
||||
Von: <#from/><#newLine/>
|
||||
<#hasReplyTo>Antwort an: <#replyTo/></#hasReplyTo><#hasOrganization>Organisation: <#organization/></#hasOrganization>An: <#to/><#newLine/>
|
||||
<#hasCc>Kopie: <#cc/></#hasCc><#hasNewsGroups>Newsgroup: <#newsgroups/></#hasNewsGroups><#hasReferences>Referenzen: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>Am <#date/>, <#from/> schrieb:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Messaggio originale --------
|
||||
Oggetto: <#subject/>
|
||||
Data: <#date/>
|
||||
Da: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organizzazione: <#organization/></#hasOrganization>A: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>Riferimento: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Messaggio originale --------<#newLine/>
|
||||
Oggetto: <#subject/><#newLine/>
|
||||
Data: <#date/><#newLine/>
|
||||
Da: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organizzazione: <#organization/></#hasOrganization>A: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>Riferimento: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Messaggio originale --------
|
||||
Oggetto: <#subject/>
|
||||
Data: <#date/>
|
||||
Da: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organizzazione: <#organization/></#hasOrganization>A: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>Riferimento: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>Il giorno <#date/>, <#from/> ha scritto:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Messaggio originale --------<#newLine/>
|
||||
Oggetto: <#subject/><#newLine/>
|
||||
Data: <#date/><#newLine/>
|
||||
Da: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organizzazione: <#organization/></#hasOrganization>A: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>Riferimento: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>Il giorno <#date/>, <#from/> ha scritto:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -74,18 +74,21 @@
|
||||
|
||||
- (NSString *) messageBody
|
||||
{
|
||||
NSString *s;
|
||||
NSUserDefaults *ud;
|
||||
|
||||
ud = [[context activeUser] userDefaults];
|
||||
NSString *s, *msgid;
|
||||
NSRange r;
|
||||
|
||||
s = [sourceMail contentForEditing];
|
||||
|
||||
if (s)
|
||||
{
|
||||
if ([[ud objectForKey: @"ComposeMessagesType"] isEqualToString: @"html"])
|
||||
if (htmlComposition)
|
||||
{
|
||||
s = [NSString stringWithFormat: @"<blockquote type=\"cite\">%@</blockquote>", s];
|
||||
msgid = [[sourceMail envelope] messageID];
|
||||
r = NSMakeRange (1, [msgid length] - 2);
|
||||
msgid = [msgid substringWithRange: r];
|
||||
s = [NSString stringWithFormat:
|
||||
@"<blockquote type=\"cite\" cite=\"%@\">%@</blockquote>",
|
||||
msgid, s];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<#signaturePlacementOnTop>
|
||||
|
||||
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop>
|
||||
<#outlookMode>-------- Original Message --------
|
||||
Subject: <#subject/>
|
||||
Date: <#date/>
|
||||
From: <#from/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
|
||||
<#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#signaturePlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#newLine/>
|
||||
<#outlookMode>-------- Original Message --------<#newLine/>
|
||||
Subject: <#subject/><#newLine/>
|
||||
Date: <#date/><#newLine/>
|
||||
From: <#from/><#newLine/>
|
||||
<#hasReplyTo>Reply-To: <#replyTo/></#hasReplyTo><#hasOrganization>Organization: <#organization/></#hasOrganization>To: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Newsgroups: <#newsgroups/></#hasNewsGroups><#hasReferences>References: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>On <#date/>, <#from/> wrote:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
|
||||
|
||||
-------- Original Message --------
|
||||
Testun: <#subject/>
|
||||
Dyddiad: <#date/>
|
||||
Oddi wrth: <#from/>
|
||||
<#hasReplyTo>Ymateb i: <#replyTo/><#hasOrganization>Sefydliad: <#organization/></#hasOrganization>I: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Grwpiau newyddion: <#newsgroups/></#hasNewsGroups><#hasReferences>Cyfeirnodau: <#references/></#hasReferences>
|
||||
|
||||
<#messageBody/>
|
||||
|
||||
<#signature/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
<#newLine/>
|
||||
-------- Original Message --------<#newLine/>
|
||||
Testun: <#subject/><#newLine/>
|
||||
Dyddiad: <#date/><#newLine/>
|
||||
Oddi wrth: <#from/><#newLine/>
|
||||
<#hasReplyTo>Ymateb i: <#replyTo/><#hasOrganization>Sefydliad: <#organization/></#hasOrganization>I: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Grwpiau newyddion: <#newsgroups/></#hasNewsGroups><#hasReferences>Cyfeirnodau: <#references/></#hasReferences><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
|
||||
@@ -13,6 +13,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<#replyPlacementOnTop>
|
||||
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop>
|
||||
<#signature/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Neges Wreiddiol --------
|
||||
Testun: <#subject/>
|
||||
Dyddiad: <#date/>
|
||||
Oddi wrth: <#from/>
|
||||
<#hasReplyTo>Ymateb i: <#replyTo/></#hasReplyTo><#hasOrganization>Sefydliad: <#organization/></#hasOrganization>I: <#to/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Grwpiau newyddion: <#newsgroups/></#hasNewsGroups><#hasReferences>Cyfeirnodau: <#references/></#hasReferences></#outlookMode>
|
||||
<#standardMode>Ar <#date/>, <#from/> ysgrifennodd:</#standardMode>
|
||||
|
||||
<#messageBody/>
|
||||
<#replyPlacementOnBottom>
|
||||
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom>
|
||||
<#replyPlacementOnTop><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnTop><#signaturePlacementOnTop><#newLine/>
|
||||
<#signature/><#newLine/>
|
||||
</#signaturePlacementOnTop><#outlookMode>-------- Neges Wreiddiol --------<#newLine/>
|
||||
Testun: <#subject/><#newLine/>
|
||||
Dyddiad: <#date/><#newLine/>
|
||||
Oddi wrth: <#from/><#newLine/>
|
||||
<#hasReplyTo>Ymateb i: <#replyTo/></#hasReplyTo><#hasOrganization>Sefydliad: <#organization/></#hasOrganization>I: <#to/><#newLine/>
|
||||
<#hasCc>CC: <#cc/></#hasCc><#hasNewsGroups>Grwpiau newyddion: <#newsgroups/></#hasNewsGroups><#hasReferences>Cyfeirnodau: <#references/></#hasReferences></#outlookMode><#newLine/>
|
||||
<#standardMode>Ar <#date/>, <#from/> ysgrifennodd:</#standardMode><#newLine/>
|
||||
<#newLine/>
|
||||
<#messageBody/><#newLine/>
|
||||
<#replyPlacementOnBottom><#newLine/>
|
||||
<#newLine/>
|
||||
</#replyPlacementOnBottom><#signaturePlacementOnBottom><#signature/></#signaturePlacementOnBottom><#newLine/>
|
||||
|
||||
@@ -22,6 +22,11 @@ from: WOString {
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
newLine: WOString {
|
||||
value = newLine;
|
||||
escapeHTML = NO;
|
||||
}
|
||||
|
||||
hasReplyTo: WOConditional {
|
||||
condition = hasReplyTo;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
className="UIxPageFrame"
|
||||
title="panelTitle"
|
||||
const:popup="YES"
|
||||
const:jsFiles="UIxMailToSelection.js,fckeditor/fckeditor.js">
|
||||
const:jsFiles="UIxMailToSelection.js,ckeditor/ckeditor.js">
|
||||
<script type="text/javascript">
|
||||
var mailIsReply = <var:string value="isMailReply"/>;
|
||||
</script>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
className="UIxPageFrame"
|
||||
title="title"
|
||||
const:popup="YES"
|
||||
const:jsFiles="fckeditor/fckeditor.js"
|
||||
const:jsFiles="ckeditor/ckeditor.js"
|
||||
>
|
||||
<form id="mainForm" var:href="ownPath">
|
||||
<div class="tabsContainer" id="preferencesTabs">
|
||||
|
||||
@@ -12,7 +12,7 @@ install ::
|
||||
else \
|
||||
mkdir -p $(SOGO_WEBSERVERRESOURCESDIR); \
|
||||
cp $(WEBSERVER_RESOURCE_FILES) $(SOGO_WEBSERVERRESOURCESDIR); \
|
||||
cp -r fckeditor $(SOGO_WEBSERVERRESOURCESDIR); \
|
||||
cp -r ckeditor $(SOGO_WEBSERVERRESOURCESDIR); \
|
||||
fi
|
||||
|
||||
clean ::
|
||||
|
||||
@@ -561,10 +561,7 @@ function initMailEditor() {
|
||||
|
||||
var subjectField = $$("div#subjectRow input").first();
|
||||
initTabIndex($("addressList"), subjectField, textarea);
|
||||
onWindowResize.defer();
|
||||
|
||||
Event.observe(window, "resize", onWindowResize);
|
||||
Event.observe(window, "beforeunload", onMailEditorClose);
|
||||
//onWindowResize.defer();
|
||||
|
||||
var focusField = (mailIsReply ? textarea : $("addr_0"));
|
||||
focusField.focus();
|
||||
@@ -573,12 +570,23 @@ function initMailEditor() {
|
||||
|
||||
var composeMode = UserDefaults["ComposeMessagesType"];
|
||||
if (composeMode == "html") {
|
||||
var oFCKeditor = new FCKeditor ('text');
|
||||
oFCKeditor.BasePath = "/SOGo.woa/WebServerResources/fckeditor/";
|
||||
oFCKeditor.ToolbarSet = 'Basic';
|
||||
oFCKeditor.ReplaceTextarea ();
|
||||
CKEDITOR.replace('text',
|
||||
{
|
||||
skin: "v2",
|
||||
toolbar :
|
||||
[['Bold', 'Italic', '-', 'NumberedList',
|
||||
'BulletedList', '-', 'Link', 'Unlink', 'Image',
|
||||
'JustifyLeft','JustifyCenter','JustifyRight',
|
||||
'JustifyBlock','Font','FontSize','-','TextColor',
|
||||
'BGColor']
|
||||
]
|
||||
}
|
||||
);
|
||||
}
|
||||
onWindowResize (null);
|
||||
|
||||
Event.observe(window, "resize", onWindowResize);
|
||||
Event.observe(window, "beforeunload", onMailEditorClose);
|
||||
onWindowResize.defer();
|
||||
}
|
||||
|
||||
function initializePriorityMenu() {
|
||||
@@ -731,10 +739,17 @@ function onWindowResize(event) {
|
||||
// Resize the textarea (message content)
|
||||
var composeMode = UserDefaults["ComposeMessagesType"];
|
||||
if (composeMode == "html") {
|
||||
var editor = $('text___Frame');
|
||||
editor.height = Math.floor(window.height() - editor.offsetTop) + "px";
|
||||
editor.style.height = Math.floor(window.height() - editor.offsetTop) + "px";
|
||||
editor.setStyle({ 'top': hr.offsetTop + 'px' });
|
||||
var editor = $('cke_text');
|
||||
if (editor == null) {
|
||||
setTimeout ('onWindowResize ()', 100);
|
||||
return;
|
||||
}
|
||||
var content = $("cke_contents_text");
|
||||
var height = Math.floor(window.height() - editor.offsetTop);
|
||||
|
||||
content.height = (height-60) + "px";
|
||||
content.style.height = (height-60) + "px";
|
||||
content.setStyle({ 'top': hr.offsetTop + 'px' });
|
||||
}
|
||||
textarea.rows = Math.floor((window.height() - textarea.offsetTop) / rowheight);
|
||||
}
|
||||
|
||||
@@ -30,25 +30,30 @@ function onChoiceChanged(event) {
|
||||
}
|
||||
|
||||
function initPreferences() {
|
||||
CKEDITOR.replace('signature',
|
||||
{
|
||||
skin: "v2",
|
||||
height: "90px",
|
||||
toolbar :
|
||||
[['Bold', 'Italic', '-', 'Link',
|
||||
'Font','FontSize','-','TextColor',
|
||||
'BGColor']
|
||||
]
|
||||
}
|
||||
);
|
||||
|
||||
_setupEvents(true);
|
||||
if (typeof (initAdditionalPreferences) != "undefined")
|
||||
initAdditionalPreferences();
|
||||
$("replyPlacementList").observe ("change", onReplyPlacementListChange);
|
||||
onReplyPlacementListChange();
|
||||
|
||||
var oFCKeditor = new FCKeditor ('signature');
|
||||
oFCKeditor.BasePath = "/SOGo.woa/WebServerResources/fckeditor/";
|
||||
oFCKeditor.ToolbarSet = 'Basic';
|
||||
oFCKeditor.ReplaceTextarea ();
|
||||
$('signature___Frame').style.height = "150px";
|
||||
$('signature___Frame').height = "150px";
|
||||
|
||||
if (UserDefaults["ComposeMessagesType"] != "html") {
|
||||
$("signature").style.display = 'inline';
|
||||
$('signature___Frame').style.display = 'none';
|
||||
}
|
||||
|
||||
$("composeMessagesType").observe ("change", onComposeMessagesTypeChange);
|
||||
|
||||
if (!UserDefaults["ComposeMessagesType"])
|
||||
UserDefaults["ComposeMessagesType"] = "text";
|
||||
|
||||
onComposeMessagesTypeChange ();
|
||||
}
|
||||
|
||||
function onReplyPlacementListChange() {
|
||||
@@ -64,18 +69,21 @@ function onReplyPlacementListChange() {
|
||||
|
||||
function onComposeMessagesTypeChange () {
|
||||
var textArea = $('signature');
|
||||
var oEditor = FCKeditorAPI.GetInstance('signature');
|
||||
var editor = $('signature___Frame');
|
||||
var editor = $('cke_signature');
|
||||
|
||||
if (!editor) {
|
||||
setTimeout ("onComposeMessagesTypeChange ()", 10);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($("composeMessagesType").value == 0) {
|
||||
textArea.style.display = 'inline';
|
||||
textArea.style.display = 'block';
|
||||
textArea.style.visibility = '';
|
||||
editor.style.display = 'none';
|
||||
textArea.value = oEditor.GetData();
|
||||
}
|
||||
else {
|
||||
textArea.style.display = 'none';
|
||||
editor.style.display = '';
|
||||
oEditor.SetHTML(textArea.value);
|
||||
editor.style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
24
UI/WebServerResources/ckeditor/.htaccess
Normal file
24
UI/WebServerResources/ckeditor/.htaccess
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
# For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
#
|
||||
|
||||
#
|
||||
# On some specific Linux installations you could face problems with Firefox.
|
||||
# It could give you errors when loading the editor saying that some illegal
|
||||
# characters were found (three strange chars in the beginning of the file).
|
||||
# This could happen if you map the .js or .css files to PHP, for example.
|
||||
#
|
||||
# Those characters are the Byte Order Mask (BOM) of the Unicode encoded files.
|
||||
# All FCKeditor files are Unicode encoded.
|
||||
#
|
||||
|
||||
AddType application/x-javascript .js
|
||||
AddType text/css .css
|
||||
|
||||
#
|
||||
# If PHP is mapped to handle XML files, you could have some issues. The
|
||||
# following will disable it.
|
||||
#
|
||||
|
||||
AddType text/xml .xml
|
||||
@@ -1,5 +1,13 @@
|
||||
FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
||||
Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!--
|
||||
== BEGIN TEXT ONLY VERSION ==
|
||||
|
||||
Software License Agreement
|
||||
==========================
|
||||
|
||||
CKEditor - The text editor for Internet - http://ckeditor.com
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
|
||||
Licensed under the terms of any of the following licenses at your
|
||||
choice:
|
||||
@@ -24,6 +32,26 @@ license choice. In any case, your choice will not restrict any
|
||||
recipient of your version of this software to use, reproduce, modify
|
||||
and distribute this software under any of the above licenses.
|
||||
|
||||
Sources of Intellectual Property Included in CKEditor
|
||||
=====================================================
|
||||
|
||||
Where not otherwise indicated, all CKEditor content is authored by
|
||||
CKSource engineers and consists of CKSource-owned intellectual
|
||||
property. In some specific instances, CKEditor will incorporate work
|
||||
done by developers outside of CKSource with their express permission.
|
||||
|
||||
YUI Test: At _source/tests/yuitest.js can be found part of the source
|
||||
code of YUI, which is licensed under the terms of the BSD License
|
||||
(http://developer.yahoo.com/yui/license.txt). YUI is Copyright (C)
|
||||
2008, Yahoo! Inc.
|
||||
|
||||
Trademarks
|
||||
==========
|
||||
|
||||
CKEditor is a trademark of CKSource - Frederico Knabben. All other brand
|
||||
and product names are trademarks, registered trademarks or service
|
||||
marks of their respective holders.
|
||||
|
||||
Appendix A: The GPL License
|
||||
===========================
|
||||
|
||||
@@ -40,7 +68,7 @@ Appendix A: The GPL License
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
software-to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
@@ -329,10 +357,10 @@ Appendix B: The LGPL License
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
free software-to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
specially designated software packages-typically libraries-of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
@@ -778,7 +806,7 @@ Appendix C: The MPL License
|
||||
MOZILLA PUBLIC LICENSE
|
||||
Version 1.1
|
||||
|
||||
---------------
|
||||
===============
|
||||
|
||||
1. Definitions.
|
||||
|
||||
@@ -1244,3 +1272,63 @@ EXHIBIT A -Mozilla Public License.
|
||||
the notices in the Source Code files of the Original Code. You should
|
||||
use the text of this Exhibit A rather than the text found in the
|
||||
Original Code Source Code for Your Modifications.]
|
||||
|
||||
== END TEXT ONLY VERSION ==
|
||||
-->
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>License - CKEditor</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
Software License Agreement
|
||||
</h1>
|
||||
<p>
|
||||
<strong>CKEditor™</strong> - The text editor for Internet™ - <a href="http://ckeditor.com">
|
||||
http://ckeditor.com</a><br />
|
||||
Copyright © 2003-2009, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
|
||||
</p>
|
||||
<p>
|
||||
Licensed under the terms of any of the following licenses at your choice:
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> Version
|
||||
2 or later (the "GPL");</li>
|
||||
<li><a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License</a>
|
||||
Version 2.1 or later (the "LGPL");</li>
|
||||
<li><a href="http://www.mozilla.org/MPL/MPL-1.1.html">Mozilla Public License</a> Version
|
||||
1.1 or later (the "MPL").</li>
|
||||
</ul>
|
||||
<p>
|
||||
You are not required to, but if you want to explicitly declare the license you have
|
||||
chosen to be bound to when using, reproducing, modifying and distributing this software,
|
||||
just include a text file titled "LEGAL" in your version of this software, indicating
|
||||
your license choice. In any case, your choice will not restrict any recipient of
|
||||
your version of this software to use, reproduce, modify and distribute this software
|
||||
under any of the above licenses.
|
||||
</p>
|
||||
<h2>
|
||||
Sources of Intellectual Property Included in CKEditor
|
||||
</h2>
|
||||
<p>
|
||||
Where not otherwise indicated, all CKEditor content is authored by CKSource engineers
|
||||
and consists of CKSource-owned intellectual property. In some specific instances,
|
||||
CKEditor will incorporate work done by developers outside of CKSource with their
|
||||
express permission.
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://developer.yahoo.com/yui/yuitest/">YUI Test</a>: At _source/tests/yuitest.js
|
||||
can be found part of the source code of YUI, which is licensed under the terms of
|
||||
the <a href="http://developer.yahoo.com/yui/license.txt">BSD License</a>. YUI is
|
||||
Copyright © 2008, Yahoo! Inc.
|
||||
</p>
|
||||
<h2>
|
||||
Trademarks
|
||||
</h2>
|
||||
<p>
|
||||
CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product
|
||||
names are trademarks, registered trademarks or service marks of their respective
|
||||
holders.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
64
UI/WebServerResources/ckeditor/_source/core/_bootstrap.js
Normal file
64
UI/WebServerResources/ckeditor/_source/core/_bootstrap.js
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview API initialization code.
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
// Check is High Contrast is active by creating a temporary element with a
|
||||
// background image.
|
||||
|
||||
var testImage = ( CKEDITOR.env.ie && CKEDITOR.env.version < 7 ) ? ( CKEDITOR.basePath + 'images/spacer.gif' ) : 'about:blank';
|
||||
|
||||
var hcDetect = CKEDITOR.dom.element.createFromHtml(
|
||||
'<div style="width:0px;height:0px;' +
|
||||
'position:absolute;left:-10000px;' +
|
||||
'background-image:url(' + testImage + ')"></div>', CKEDITOR.document );
|
||||
|
||||
hcDetect.appendTo( CKEDITOR.document.getHead() );
|
||||
|
||||
// Update CKEDITOR.env.
|
||||
if ( ( CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ) ) )
|
||||
CKEDITOR.env.cssClass += ' cke_hc';
|
||||
|
||||
hcDetect.remove();
|
||||
})();
|
||||
|
||||
// Load core plugins.
|
||||
CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function()
|
||||
{
|
||||
CKEDITOR.status = 'loaded';
|
||||
CKEDITOR.fire( 'loaded' );
|
||||
|
||||
// Process all instances created by the "basic" implementation.
|
||||
var pending = CKEDITOR._.pending;
|
||||
if ( pending )
|
||||
{
|
||||
delete CKEDITOR._.pending;
|
||||
|
||||
for ( var i = 0 ; i < pending.length ; i++ )
|
||||
CKEDITOR.add( pending[ i ] );
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
TODO: Enable the following and check if effective.
|
||||
|
||||
if ( CKEDITOR.env.ie )
|
||||
{
|
||||
// Remove IE mouse flickering on IE6 because of background images.
|
||||
try
|
||||
{
|
||||
document.execCommand( 'BackgroundImageCache', false, true );
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
// We have been reported about loading problems caused by the above
|
||||
// line. For safety, let's just ignore errors.
|
||||
}
|
||||
}
|
||||
*/
|
||||
143
UI/WebServerResources/ckeditor/_source/core/ajax.js
Normal file
143
UI/WebServerResources/ckeditor/_source/core/ajax.js
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.ajax} object, which holds ajax methods for
|
||||
* data loading.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Ajax methods for data loading.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.ajax = (function()
|
||||
{
|
||||
var createXMLHttpRequest = function()
|
||||
{
|
||||
// In IE, using the native XMLHttpRequest for local files may throw
|
||||
// "Access is Denied" errors.
|
||||
if ( !CKEDITOR.env.ie || location.protocol != 'file:' )
|
||||
try { return new XMLHttpRequest(); } catch(e) {}
|
||||
|
||||
try { return new ActiveXObject( 'Msxml2.XMLHTTP' ); } catch (e) {}
|
||||
try { return new ActiveXObject( 'Microsoft.XMLHTTP' ); } catch (e) {}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
var checkStatus = function( xhr )
|
||||
{
|
||||
// HTTP Status Codes:
|
||||
// 2xx : Success
|
||||
// 304 : Not Modified
|
||||
// 0 : Returned when running locally (file://)
|
||||
// 1223 : IE may change 204 to 1223 (see http://dev.jquery.com/ticket/1450)
|
||||
|
||||
return ( xhr.readyState == 4 &&
|
||||
( ( xhr.status >= 200 && xhr.status < 300 ) ||
|
||||
xhr.status == 304 ||
|
||||
xhr.status === 0 ||
|
||||
xhr.status == 1223 ) );
|
||||
};
|
||||
|
||||
var getResponseText = function( xhr )
|
||||
{
|
||||
if ( checkStatus( xhr ) )
|
||||
return xhr.responseText;
|
||||
return null;
|
||||
};
|
||||
|
||||
var getResponseXml = function( xhr )
|
||||
{
|
||||
if ( checkStatus( xhr ) )
|
||||
{
|
||||
var xml = xhr.responseXML;
|
||||
return new CKEDITOR.xml( xml && xml.firstChild ? xml : xhr.responseText );
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
var load = function( url, callback, getResponseFn )
|
||||
{
|
||||
var async = !!callback;
|
||||
|
||||
var xhr = createXMLHttpRequest();
|
||||
|
||||
if ( !xhr )
|
||||
return null;
|
||||
|
||||
xhr.open( 'GET', url, async );
|
||||
|
||||
if ( async )
|
||||
{
|
||||
// TODO: perform leak checks on this closure.
|
||||
/** @ignore */
|
||||
xhr.onreadystatechange = function()
|
||||
{
|
||||
if ( xhr.readyState == 4 )
|
||||
{
|
||||
callback( getResponseFn( xhr ) );
|
||||
xhr = null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
xhr.send(null);
|
||||
|
||||
return async ? '' : getResponseFn( xhr );
|
||||
};
|
||||
|
||||
return /** @lends CKEDITOR.ajax */ {
|
||||
|
||||
/**
|
||||
* Loads data from an URL as plain text.
|
||||
* @param {String} url The URL from which load data.
|
||||
* @param {Function} [callback] A callback function to be called on
|
||||
* data load. If not provided, the data will be loaded
|
||||
* asynchronously, passing the data value the function on load.
|
||||
* @returns {String} The loaded data. For asynchronous requests, an
|
||||
* empty string. For invalid requests, null.
|
||||
* @example
|
||||
* // Load data synchronously.
|
||||
* var data = CKEDITOR.ajax.load( 'somedata.txt' );
|
||||
* alert( data );
|
||||
* @example
|
||||
* // Load data asynchronously.
|
||||
* var data = CKEDITOR.ajax.load( 'somedata.txt', function( data )
|
||||
* {
|
||||
* alert( data );
|
||||
* } );
|
||||
*/
|
||||
load : function( url, callback )
|
||||
{
|
||||
return load( url, callback, getResponseText );
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads data from an URL as XML.
|
||||
* @param {String} url The URL from which load data.
|
||||
* @param {Function} [callback] A callback function to be called on
|
||||
* data load. If not provided, the data will be loaded
|
||||
* asynchronously, passing the data value the function on load.
|
||||
* @returns {CKEDITOR.xml} An XML object holding the loaded data. For asynchronous requests, an
|
||||
* empty string. For invalid requests, null.
|
||||
* @example
|
||||
* // Load XML synchronously.
|
||||
* var xml = CKEDITOR.ajax.loadXml( 'somedata.xml' );
|
||||
* alert( xml.getInnerXml( '//' ) );
|
||||
* @example
|
||||
* // Load XML asynchronously.
|
||||
* var data = CKEDITOR.ajax.loadXml( 'somedata.xml', function( xml )
|
||||
* {
|
||||
* alert( xml.getInnerXml( '//' ) );
|
||||
* } );
|
||||
*/
|
||||
loadXml : function( url, callback )
|
||||
{
|
||||
return load( url, callback, getResponseXml );
|
||||
}
|
||||
};
|
||||
})();
|
||||
96
UI/WebServerResources/ckeditor/_source/core/ckeditor.js
vendored
Normal file
96
UI/WebServerResources/ckeditor/_source/core/ckeditor.js
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Contains the third and last part of the {@link CKEDITOR} object
|
||||
* definition.
|
||||
*/
|
||||
|
||||
// Remove the CKEDITOR.loadFullCore reference defined on ckeditor_basic.
|
||||
delete CKEDITOR.loadFullCore;
|
||||
|
||||
/**
|
||||
* Holds references to all editor instances created. The name of the properties
|
||||
* in this object correspond to instance names, and their values contains the
|
||||
* {@link CKEDITOR.editor} object representing them.
|
||||
* @type {Object}
|
||||
* @example
|
||||
* alert( <b>CKEDITOR.instances</b>.editor1.name ); // "editor1"
|
||||
*/
|
||||
CKEDITOR.instances = {};
|
||||
|
||||
/**
|
||||
* The document of the window holding the CKEDITOR object.
|
||||
* @type {CKEDITOR.dom.document}
|
||||
* @example
|
||||
* alert( <b>CKEDITOR.document</b>.getBody().getName() ); // "body"
|
||||
*/
|
||||
CKEDITOR.document = new CKEDITOR.dom.document( document );
|
||||
|
||||
/**
|
||||
* Adds an editor instance to the global {@link CKEDITOR} object. This function
|
||||
* is available for internal use mainly.
|
||||
* @param {CKEDITOR.editor} editor The editor instance to be added.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.add = function( editor )
|
||||
{
|
||||
CKEDITOR.instances[ editor.name ] = editor;
|
||||
|
||||
editor.on( 'focus', function()
|
||||
{
|
||||
if ( CKEDITOR.currentInstance != editor )
|
||||
{
|
||||
CKEDITOR.currentInstance = editor;
|
||||
CKEDITOR.fire( 'currentInstance' );
|
||||
}
|
||||
});
|
||||
|
||||
editor.on( 'blur', function()
|
||||
{
|
||||
if ( CKEDITOR.currentInstance == editor )
|
||||
{
|
||||
CKEDITOR.currentInstance = null;
|
||||
CKEDITOR.fire( 'currentInstance' );
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Removes and editor instance from the global {@link CKEDITOR} object. his function
|
||||
* is available for internal use mainly.
|
||||
* @param {CKEDITOR.editor} editor The editor instance to be added.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.remove = function( editor )
|
||||
{
|
||||
delete CKEDITOR.instances[ editor.name ];
|
||||
};
|
||||
|
||||
// Load the bootstrap script.
|
||||
CKEDITOR.loader.load( 'core/_bootstrap' ); // @Packager.RemoveLine
|
||||
|
||||
// Tri-state constants.
|
||||
|
||||
/**
|
||||
* Used to indicate the ON or ACTIVE state.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.TRISTATE_ON = 1;
|
||||
|
||||
/**
|
||||
* Used to indicate the OFF or NON ACTIVE state.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.TRISTATE_OFF = 2;
|
||||
|
||||
/**
|
||||
* Used to indicate DISABLED state.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.TRISTATE_DISABLED = 0;
|
||||
190
UI/WebServerResources/ckeditor/_source/core/ckeditor_base.js
Normal file
190
UI/WebServerResources/ckeditor/_source/core/ckeditor_base.js
Normal file
@@ -0,0 +1,190 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Contains the first and essential part of the {@link CKEDITOR}
|
||||
* object definition.
|
||||
*/
|
||||
|
||||
// #### Compressed Code
|
||||
// Must be updated on changes in the script, as well as updated in the
|
||||
// ckeditor_source.js and ckeditor_basic_source.js files.
|
||||
|
||||
// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.0 RC',rev:'3753',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf('://')==-1)if(d.indexOf('/')===0)d=location.href.match(/^.*?:\/\/[^\/]*/)[0]+d;else d=location.href.match(/^[^\?]*\/(?:)/)[0]+d;return d;})(),getUrl:function(d){if(d.indexOf('://')==-1&&d.indexOf('/')!==0)d=this.basePath+d;if(this.timestamp&&d.charAt(d.length-1)!='/')d+=(d.indexOf('?')>=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})();
|
||||
|
||||
// #### Raw code
|
||||
// ATTENTION: read the above "Compressed Code" notes when changing this code.
|
||||
|
||||
if ( !window.CKEDITOR )
|
||||
{
|
||||
/**
|
||||
* This is the API entry point. The entire CKEditor code runs under this object.
|
||||
* @name CKEDITOR
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
window.CKEDITOR = (function()
|
||||
{
|
||||
var CKEDITOR =
|
||||
/** @lends CKEDITOR */
|
||||
{
|
||||
|
||||
/**
|
||||
* A constant string unique for each release of CKEditor. Its value
|
||||
* is used, by default, to build the URL for all resources loaded
|
||||
* by the editor code, guaranteing clean cache results when
|
||||
* upgrading.
|
||||
* @type String
|
||||
* @example
|
||||
* alert( CKEDITOR.timestamp ); // e.g. '87dm'
|
||||
*/
|
||||
// The production implementation contains a fixed timestamp, unique
|
||||
// for each release, generated by the releaser.
|
||||
// (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122)
|
||||
timestamp : '95MI',
|
||||
|
||||
/**
|
||||
* Contains the CKEditor version number.
|
||||
* @type String
|
||||
* @example
|
||||
* alert( CKEDITOR.version ); // e.g. 'CKEditor 3.0 Beta'
|
||||
*/
|
||||
version : '3.0 RC',
|
||||
|
||||
/**
|
||||
* Contains the CKEditor revision number.
|
||||
* Revision number is incremented automatically after each modification of CKEditor source code.
|
||||
* @type String
|
||||
* @example
|
||||
* alert( CKEDITOR.revision ); // e.g. '3975'
|
||||
*/
|
||||
revision : '3753',
|
||||
|
||||
/**
|
||||
* Private object used to hold core stuff. It should not be used out of
|
||||
* the API code as properties defined here may change at any time
|
||||
* without notice.
|
||||
* @private
|
||||
*/
|
||||
_ : {},
|
||||
|
||||
/**
|
||||
* Indicates the API loading status. The following status are available:
|
||||
* <ul>
|
||||
* <li><b>unloaded</b>: the API is not yet loaded.</li>
|
||||
* <li><b>basic_loaded</b>: the basic API features are available.</li>
|
||||
* <li><b>basic_ready</b>: the basic API is ready to load the full core code.</li>
|
||||
* <li><b>loading</b>: the full API is being loaded.</li>
|
||||
* <li><b>ready</b>: the API can be fully used.</li>
|
||||
* </ul>
|
||||
* @type String
|
||||
* @example
|
||||
* if ( <b>CKEDITOR.status</b> == 'ready' )
|
||||
* {
|
||||
* // The API can now be fully used.
|
||||
* }
|
||||
*/
|
||||
status : 'unloaded',
|
||||
|
||||
/**
|
||||
* Contains the full URL for the CKEditor installation directory.
|
||||
* It's possible to manually provide the base path by setting a
|
||||
* global variable named CKEDITOR_BASEPATH. This global variable
|
||||
* must be set "before" the editor script loading.
|
||||
* @type String
|
||||
* @example
|
||||
* alert( <b>CKEDITOR.basePath</b> ); // "http://www.example.com/ckeditor/" (e.g.)
|
||||
*/
|
||||
basePath : (function()
|
||||
{
|
||||
// ATTENTION: fixes on this code must be ported to
|
||||
// var basePath in "core/loader.js".
|
||||
|
||||
// Find out the editor directory path, based on its <script> tag.
|
||||
var path = window.CKEDITOR_BASEPATH || '';
|
||||
|
||||
if ( !path )
|
||||
{
|
||||
var scripts = document.getElementsByTagName( 'script' );
|
||||
|
||||
for ( var i = 0 ; i < scripts.length ; i++ )
|
||||
{
|
||||
var match = scripts[i].src.match( /(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i );
|
||||
|
||||
if ( match )
|
||||
{
|
||||
path = match[1];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// In IE (only) the script.src string is the raw valued entered in the
|
||||
// HTML. Other browsers return the full resolved URL instead.
|
||||
if ( path.indexOf('://') == -1 )
|
||||
{
|
||||
// Absolute path.
|
||||
if ( path.indexOf( '/' ) === 0 )
|
||||
path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
|
||||
// Relative path.
|
||||
else
|
||||
path = location.href.match( /^[^\?]*\/(?:)/ )[0] + path;
|
||||
}
|
||||
|
||||
return path;
|
||||
})(),
|
||||
|
||||
/**
|
||||
* Gets the full URL for CKEditor resources. By default, URLs
|
||||
* returned by this function contains a querystring parameter ("t")
|
||||
* set to the {@link CKEDITOR.timestamp} value.
|
||||
* It's possible to provide a custom implementation to this
|
||||
* function by setting a global variable named CKEDITOR_GETURL.
|
||||
* This global variable must be set "before" the editor script
|
||||
* loading. If the custom implementation returns nothing, the
|
||||
* default implementation is used.
|
||||
* @returns {String} The full URL.
|
||||
* @example
|
||||
* // e.g. http://www.example.com/ckeditor/skins/default/editor.css?t=87dm
|
||||
* alert( CKEDITOR.getUrl( 'skins/default/editor.css' ) );
|
||||
* @example
|
||||
* // e.g. http://www.example.com/skins/default/editor.css?t=87dm
|
||||
* alert( CKEDITOR.getUrl( '/skins/default/editor.css' ) );
|
||||
* @example
|
||||
* // e.g. http://www.somesite.com/skins/default/editor.css?t=87dm
|
||||
* alert( CKEDITOR.getUrl( 'http://www.somesite.com/skins/default/editor.css' ) );
|
||||
*/
|
||||
getUrl : function( resource )
|
||||
{
|
||||
// If this is not a full or absolute path.
|
||||
if ( resource.indexOf('://') == -1 && resource.indexOf( '/' ) !== 0 )
|
||||
resource = this.basePath + resource;
|
||||
|
||||
// Add the timestamp, except for directories.
|
||||
if ( this.timestamp && resource.charAt( resource.length - 1 ) != '/' )
|
||||
resource += ( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) + 't=' + this.timestamp;
|
||||
|
||||
return resource;
|
||||
}
|
||||
};
|
||||
|
||||
// Make it possible to override the getUrl function with a custom
|
||||
// implementation pointing to a global named CKEDITOR_GETURL.
|
||||
var newGetUrl = window.CKEDITOR_GETURL;
|
||||
if ( newGetUrl )
|
||||
{
|
||||
var originalGetUrl = CKEDITOR.getUrl;
|
||||
CKEDITOR.getUrl = function ( resource )
|
||||
{
|
||||
return newGetUrl.call( CKEDITOR, resource ) ||
|
||||
originalGetUrl.call( CKEDITOR, resource );
|
||||
};
|
||||
}
|
||||
|
||||
return CKEDITOR;
|
||||
})();
|
||||
}
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR )
|
||||
241
UI/WebServerResources/ckeditor/_source/core/ckeditor_basic.js
Normal file
241
UI/WebServerResources/ckeditor/_source/core/ckeditor_basic.js
Normal file
@@ -0,0 +1,241 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Contains the second part of the {@link CKEDITOR} object
|
||||
* definition, which defines the basic editor features to be available in
|
||||
* the root ckeditor_basic.js file.
|
||||
*/
|
||||
|
||||
if ( CKEDITOR.status == 'unloaded' )
|
||||
{
|
||||
(function()
|
||||
{
|
||||
CKEDITOR.event.implementOn( CKEDITOR );
|
||||
|
||||
/**
|
||||
* Forces the full CKEditor core code, in the case only the basic code has been
|
||||
* loaded (ckeditor_basic.js). This method self-destroys (becomes undefined) in
|
||||
* the first call or as soon as the full code is available.
|
||||
* @example
|
||||
* // Check if the full core code has been loaded and load it.
|
||||
* if ( CKEDITOR.loadFullCore )
|
||||
* <b>CKEDITOR.loadFullCore()</b>;
|
||||
*/
|
||||
CKEDITOR.loadFullCore = function()
|
||||
{
|
||||
// If not the basic code is not ready it, just mark it to be loaded.
|
||||
if ( CKEDITOR.status != 'basic_ready' )
|
||||
{
|
||||
CKEDITOR.loadFullCore._load = true;
|
||||
return;
|
||||
}
|
||||
|
||||
// Destroy this function.
|
||||
delete CKEDITOR.loadFullCore;
|
||||
|
||||
// Append the script to the head.
|
||||
var script = document.createElement( 'script' );
|
||||
script.type = 'text/javascript';
|
||||
script.src = CKEDITOR.basePath + 'ckeditor.js';
|
||||
|
||||
document.getElementsByTagName( 'head' )[0].appendChild( script );
|
||||
};
|
||||
|
||||
/**
|
||||
* The time to wait (in seconds) to load the full editor code after the
|
||||
* page load, if the "ckeditor_basic" file is used. If set to zero, the
|
||||
* editor is loaded on demand, as soon as an instance is created.
|
||||
*
|
||||
* This value must be set on the page before the page load completion.
|
||||
* @type Number
|
||||
* @default 0 (zero)
|
||||
* @example
|
||||
* // Loads the full source after five seconds.
|
||||
* CKEDITOR.loadFullCoreTimeout = 5;
|
||||
*/
|
||||
CKEDITOR.loadFullCoreTimeout = 0;
|
||||
|
||||
/**
|
||||
* The class name used to identify <textarea> elements to be replace
|
||||
* by CKEditor instances.
|
||||
* @type String
|
||||
* @default 'ckeditor'
|
||||
* @example
|
||||
* <b>CKEDITOR.replaceClass</b> = 'rich_editor';
|
||||
*/
|
||||
CKEDITOR.replaceClass = 'ckeditor';
|
||||
|
||||
/**
|
||||
* Enables the replacement of all textareas with class name matching
|
||||
* {@link CKEDITOR.replaceClass}.
|
||||
* @type Boolean
|
||||
* @default true
|
||||
* @example
|
||||
* // Disable the auto-replace feature.
|
||||
* <b>CKEDITOR.replaceByClassEnabled</b> = false;
|
||||
*/
|
||||
CKEDITOR.replaceByClassEnabled = true;
|
||||
|
||||
var createInstance = function( elementOrIdOrName, config, creationFunction )
|
||||
{
|
||||
if ( CKEDITOR.env.isCompatible )
|
||||
{
|
||||
// Load the full core.
|
||||
if ( CKEDITOR.loadFullCore )
|
||||
CKEDITOR.loadFullCore();
|
||||
|
||||
var editor = creationFunction( elementOrIdOrName, config );
|
||||
CKEDITOR.add( editor );
|
||||
return editor;
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
|
||||
* instance. For textareas, the initial value in the editor will be the
|
||||
* textarea value. For DOM elements, their innerHTML will be used
|
||||
* instead. We recommend using TEXTAREA and DIV elements only.
|
||||
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
|
||||
* ID or name.
|
||||
* @param {Object} [config] The specific configurations to apply to this
|
||||
* editor instance. Configurations set here will override global CKEditor
|
||||
* settings.
|
||||
* @returns {CKEDITOR.editor} The editor instance created.
|
||||
* @example
|
||||
* <textarea id="myfield" name="myfield"><:/textarea>
|
||||
* ...
|
||||
* <b>CKEDITOR.replace( 'myfield' )</b>;
|
||||
* @example
|
||||
* var textarea = document.body.appendChild( document.createElement( 'textarea' ) );
|
||||
* <b>CKEDITOR.replace( textarea )</b>;
|
||||
*/
|
||||
CKEDITOR.replace = function( elementOrIdOrName, config )
|
||||
{
|
||||
return createInstance( elementOrIdOrName, config, CKEDITOR.editor.replace );
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a new editor instance inside a specific DOM element.
|
||||
* @param {Object|String} elementOrId The DOM element or its ID.
|
||||
* @param {Object} [config] The specific configurations to apply to this
|
||||
* editor instance. Configurations set here will override global CKEditor
|
||||
* settings.
|
||||
* @returns {CKEDITOR.editor} The editor instance created.
|
||||
* @example
|
||||
* <div id="editorSpace"><:/div>
|
||||
* ...
|
||||
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;
|
||||
*/
|
||||
CKEDITOR.appendTo = function( elementOrId, config )
|
||||
{
|
||||
return createInstance( elementOrId, config, CKEDITOR.editor.appendTo );
|
||||
};
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
* Documented at ckeditor.js.
|
||||
*/
|
||||
CKEDITOR.add = function( editor )
|
||||
{
|
||||
// For now, just put the editor in the pending list. It will be
|
||||
// processed as soon as the full code gets loaded.
|
||||
var pending = this._.pending || ( this._.pending = [] );
|
||||
pending.push( editor );
|
||||
};
|
||||
|
||||
/**
|
||||
* Replace all <textarea> elements available in the document with
|
||||
* editor instances.
|
||||
* @example
|
||||
* // Replace all <textarea> elements in the page.
|
||||
* CKEDITOR.replaceAll();
|
||||
* @example
|
||||
* // Replace all <textarea class="myClassName"> elements in the page.
|
||||
* CKEDITOR.replaceAll( 'myClassName' );
|
||||
* @example
|
||||
* // Selectively replace <textarea> elements, based on custom assertions.
|
||||
* CKEDITOR.replaceAll( function( textarea, config )
|
||||
* {
|
||||
* // Custom code to evaluate the replace, returning false
|
||||
* // if it must not be done.
|
||||
* // It also passes the "config" parameter, so the
|
||||
* // developer can customize the instance.
|
||||
* } );
|
||||
*/
|
||||
CKEDITOR.replaceAll = function()
|
||||
{
|
||||
var textareas = document.getElementsByTagName( 'textarea' );
|
||||
|
||||
for ( var i = 0 ; i < textareas.length ; i++ )
|
||||
{
|
||||
var config = null;
|
||||
var textarea = textareas[i];
|
||||
var name = textarea.name;
|
||||
|
||||
// The "name" and/or "id" attribute must exist.
|
||||
if ( !textarea.name && !textarea.id )
|
||||
continue;
|
||||
|
||||
if ( typeof arguments[0] == 'string' )
|
||||
{
|
||||
// The textarea class name could be passed as the function
|
||||
// parameter.
|
||||
|
||||
var classRegex = new RegExp( '(?:^| )' + arguments[0] + '(?:$| )' );
|
||||
|
||||
if ( !classRegex.test( textarea.className ) )
|
||||
continue;
|
||||
}
|
||||
else if ( typeof arguments[0] == 'function' )
|
||||
{
|
||||
// An assertion function could be passed as the function parameter.
|
||||
// It must explicitly return "false" to ignore a specific <textarea>.
|
||||
config = {};
|
||||
if ( arguments[0]( textarea, config ) === false )
|
||||
continue;
|
||||
}
|
||||
|
||||
this.replace( textarea, config );
|
||||
}
|
||||
};
|
||||
|
||||
(function()
|
||||
{
|
||||
var onload = function()
|
||||
{
|
||||
var loadFullCore = CKEDITOR.loadFullCore,
|
||||
loadFullCoreTimeout = CKEDITOR.loadFullCoreTimeout;
|
||||
|
||||
// Replace all textareas with the default class name.
|
||||
if ( CKEDITOR.replaceByClassEnabled )
|
||||
CKEDITOR.replaceAll( CKEDITOR.replaceClass );
|
||||
|
||||
CKEDITOR.status = 'basic_ready';
|
||||
|
||||
if ( loadFullCore && loadFullCore._load )
|
||||
loadFullCore();
|
||||
else if ( loadFullCoreTimeout )
|
||||
{
|
||||
setTimeout( function()
|
||||
{
|
||||
if ( CKEDITOR.loadFullCore )
|
||||
CKEDITOR.loadFullCore();
|
||||
}
|
||||
, loadFullCoreTimeout * 1000 );
|
||||
}
|
||||
};
|
||||
|
||||
if ( window.addEventListener )
|
||||
window.addEventListener( 'load', onload, false );
|
||||
else if ( window.attachEvent )
|
||||
window.attachEvent( 'onload', onload );
|
||||
})();
|
||||
|
||||
CKEDITOR.status = 'basic_loaded';
|
||||
})();
|
||||
}
|
||||
70
UI/WebServerResources/ckeditor/_source/core/command.js
Normal file
70
UI/WebServerResources/ckeditor/_source/core/command.js
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.command = function( editor, commandDefinition )
|
||||
{
|
||||
this.exec = function( data )
|
||||
{
|
||||
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
|
||||
return false;
|
||||
|
||||
// The editor will always have the focus when executing a command.
|
||||
editor.focus();
|
||||
|
||||
return ( commandDefinition.exec.call( this, editor, data ) !== false );
|
||||
};
|
||||
|
||||
CKEDITOR.tools.extend( this, commandDefinition,
|
||||
// Defaults
|
||||
{
|
||||
modes : { wysiwyg : 1 },
|
||||
state : CKEDITOR.TRISTATE_OFF
|
||||
});
|
||||
|
||||
// Call the CKEDITOR.event constructor to initialize this instance.
|
||||
CKEDITOR.event.call( this );
|
||||
};
|
||||
|
||||
CKEDITOR.command.prototype =
|
||||
{
|
||||
enable : function()
|
||||
{
|
||||
if ( this.state == CKEDITOR.TRISTATE_DISABLED )
|
||||
this.setState( ( !this.preserveState || ( typeof this.previousState == 'undefined' ) ) ? CKEDITOR.TRISTATE_OFF : this.previousState );
|
||||
},
|
||||
|
||||
disable : function()
|
||||
{
|
||||
this.setState( CKEDITOR.TRISTATE_DISABLED );
|
||||
},
|
||||
|
||||
setState : function( newState )
|
||||
{
|
||||
// Do nothing if there is no state change.
|
||||
if ( this.state == newState )
|
||||
return false;
|
||||
|
||||
this.previousState = this.state;
|
||||
|
||||
// Set the new state.
|
||||
this.state = newState;
|
||||
|
||||
// Fire the "state" event, so other parts of the code can react to the
|
||||
// change.
|
||||
this.fire( 'state' );
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
toggleState : function()
|
||||
{
|
||||
if ( this.state == CKEDITOR.TRISTATE_OFF )
|
||||
this.setState( CKEDITOR.TRISTATE_ON );
|
||||
else if ( this.state == CKEDITOR.TRISTATE_ON )
|
||||
this.setState( CKEDITOR.TRISTATE_OFF );
|
||||
}
|
||||
};
|
||||
|
||||
CKEDITOR.event.implementOn( CKEDITOR.command.prototype, true );
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the "virtual" {@link CKEDITOR.commandDefinition} class,
|
||||
* which contains the defintion of a command. This file is for
|
||||
* documentation purposes only.
|
||||
*/
|
||||
|
||||
/**
|
||||
* (Virtual Class) Do not call this constructor. This class is not really part
|
||||
* of the API. It just illustrates the features of command objects to be
|
||||
* passed to the {@link CKEDITOR.editor.prototype.addCommand} function.
|
||||
* @name CKEDITOR.commandDefinition
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Executes the command.
|
||||
* @name CKEDITOR.commandDefinition.prototype.exec
|
||||
* @function
|
||||
* @param {CKEDITOR.editor} editor The editor within which run the command.
|
||||
* @param {Object} [data] Additional data to be used to execute the command.
|
||||
* @returns {Boolean} Whether the command has been successfully executed.
|
||||
* Defaults to "true", if nothing is returned.
|
||||
* @example
|
||||
* editorInstance.addCommand( 'sample',
|
||||
* {
|
||||
* exec : function( editor )
|
||||
* {
|
||||
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
|
||||
* }
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Whether the command need to be hooked into the redo/undo system.
|
||||
* @name CKEDITOR.commandDefinition.canUndo
|
||||
* @type {Boolean} If not defined or 'true' both hook into undo system, set it
|
||||
* to 'false' explicitly keep it out.
|
||||
* @field
|
||||
* @example
|
||||
* editorInstance.addCommand( 'alertName',
|
||||
* {
|
||||
* exec : function( editor )
|
||||
* {
|
||||
* alert( editor.name );
|
||||
* },
|
||||
* canUndo : false // No support for undo/redo
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Whether the command is asynchronous, which means the 'afterCommandExec' event
|
||||
* will be fired by the command itself manually, and the 'exec' function return value
|
||||
* of this command is not to be returned.
|
||||
* @name CKEDITOR.commandDefinition.async
|
||||
* @type {Boolean} If defined as 'true', the command is asynchronous.
|
||||
* @example
|
||||
* editorInstance.addCommand( 'alertName',
|
||||
* {
|
||||
* exec : function( editor )
|
||||
* {
|
||||
* // Asynchronous operation below.
|
||||
* CKEDITOR.ajax.loadXml( 'data.xml' );
|
||||
* },
|
||||
* async : true // The command need some time to complete after exec function returns.
|
||||
* });
|
||||
*/
|
||||
235
UI/WebServerResources/ckeditor/_source/core/config.js
Normal file
235
UI/WebServerResources/ckeditor/_source/core/config.js
Normal file
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.config} object, which holds the
|
||||
* default configuration settings.
|
||||
*/
|
||||
|
||||
CKEDITOR.ENTER_P = 1;
|
||||
CKEDITOR.ENTER_BR = 2;
|
||||
CKEDITOR.ENTER_DIV = 3;
|
||||
|
||||
/**
|
||||
* Holds the default configuration settings. Changes to this object are
|
||||
* reflected in all editor instances, if not specificaly specified for those
|
||||
* instances.
|
||||
* @namespace
|
||||
* @example
|
||||
* // All editor created after the following setting will not load custom
|
||||
* // configuration files.
|
||||
* CKEDITOR.config.customConfig = '';
|
||||
*/
|
||||
CKEDITOR.config =
|
||||
{
|
||||
/**
|
||||
* The URL path for the custom configuration file to be loaded. If not
|
||||
* overloaded with inline configurations, it defaults to the "config.js"
|
||||
* file present in the root of the CKEditor installation directory.<br /><br />
|
||||
*
|
||||
* CKEditor will recursively load custom configuration files defined inside
|
||||
* other custom configuration files.
|
||||
* @type String
|
||||
* @default '<CKEditor folder>/config.js'
|
||||
* @example
|
||||
* // Load a specific configuration file.
|
||||
* CKEDITOR.replace( 'myfiled', { customConfig : '/myconfig.js' } );
|
||||
* @example
|
||||
* // Do not load any custom configuration file.
|
||||
* CKEDITOR.replace( 'myfiled', { customConfig : '' } );
|
||||
*/
|
||||
customConfig : CKEDITOR.getUrl( 'config.js' ),
|
||||
|
||||
autoUpdateElement : true,
|
||||
|
||||
/**
|
||||
* The base href URL used to resolve relative and absolute URLs in the
|
||||
* editor content.
|
||||
* @type String
|
||||
* @default '' (empty string)
|
||||
* @example
|
||||
* config.baseHref = 'http://www.example.com/path/';
|
||||
*/
|
||||
baseHref : '',
|
||||
|
||||
/**
|
||||
* The CSS file to be used to apply style to the contents. It should
|
||||
* reflect the CSS used in the final pages where the contents are to be
|
||||
* used.
|
||||
* @type String
|
||||
* @default '<CKEditor folder>/contents.css'
|
||||
* @example
|
||||
* config.contentsCss = '/css/mysitestyles.css';
|
||||
*/
|
||||
contentsCss : CKEDITOR.basePath + 'contents.css',
|
||||
|
||||
/**
|
||||
* The writting direction of the language used to write the editor
|
||||
* contents. Allowed values are 'ltr' for Left-To-Right language (like
|
||||
* English), or 'rtl' for Right-To-Left languages (like Arabic).
|
||||
* @default 'ltr'
|
||||
* @type String
|
||||
* @example
|
||||
* config.contentsLangDirection = 'rtl';
|
||||
*/
|
||||
contentsLangDirection : 'ltr',
|
||||
|
||||
/**
|
||||
* The user interface language localization to use. If empty, the editor
|
||||
* automatically localize the editor to the user language, if supported,
|
||||
* otherwise the [@link #defaultLanguage] language is used.
|
||||
* @default true
|
||||
* @type Boolean
|
||||
* @example
|
||||
* // Load the German interface.
|
||||
* config.language = 'de';
|
||||
*/
|
||||
language : '',
|
||||
|
||||
/**
|
||||
* The language to be used if [@link #language] is left empty and it's not
|
||||
* possible to localize the editor to the user language.
|
||||
* @default 'en'
|
||||
* @type String
|
||||
* @example
|
||||
* config.defaultLanguage = 'it';
|
||||
*/
|
||||
defaultLanguage : 'en',
|
||||
|
||||
enterMode : CKEDITOR.ENTER_P,
|
||||
shiftEnterMode : CKEDITOR.ENTER_BR,
|
||||
|
||||
/**
|
||||
* A comma separated list of plugins that are not related to editor
|
||||
* instances. Reserved to plugins that extend the core code only.<br /><br />
|
||||
*
|
||||
* There are no ways to override this setting, except by editing the source
|
||||
* code of CKEditor (_source/core/config.js).
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
corePlugins : '',
|
||||
|
||||
/**
|
||||
* Sets the doctype to be used when loading the editor content as HTML.
|
||||
* @type String
|
||||
* @default '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
|
||||
* @example
|
||||
* // Set the doctype to the HTML 4 (quirks) mode.
|
||||
* config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
|
||||
*/
|
||||
docType : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
||||
|
||||
/**
|
||||
* Indicates whether the contents to be edited are being inputted as a full
|
||||
* HTML page. A full page includes the <html>, <head> and
|
||||
* <body> tags. The final output will also reflect this setting,
|
||||
* including the <body> contents only if this setting is disabled.
|
||||
* @type Boolean
|
||||
* @default false
|
||||
* @example
|
||||
* config.fullPage = true;
|
||||
*/
|
||||
fullPage : false,
|
||||
|
||||
/**
|
||||
* The editor height, in CSS size format or pixel integer.
|
||||
* @type String|Number
|
||||
* @default '200'
|
||||
* @example
|
||||
*/
|
||||
height : 200,
|
||||
|
||||
/**
|
||||
* Comma separated list of plugins to load and initialize for an editor
|
||||
* instance.
|
||||
* @type String
|
||||
* @example
|
||||
* config.plugins = 'basicstyles,button,htmldataprocessor,toolbar,wysiwygarea';
|
||||
*/
|
||||
plugins : 'about,basicstyles,blockquote,button,clipboard,colorbutton,contextmenu,elementspath,enterkey,entities,filebrowser,find,flash,font,format,forms,horizontalrule,htmldataprocessor,image,indent,justify,keystrokes,link,list,maximize,newpage,pagebreak,pastefromword,pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showblocks,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,toolbar,undo,wysiwygarea,wsc',
|
||||
|
||||
/**
|
||||
* List of additional plugins to be loaded. This is a tool setting which
|
||||
* makes it easier to add new plugins, whithout having to touch and
|
||||
* possibly breaking the <i>plugins</i> setting.
|
||||
* @type String
|
||||
* @example
|
||||
* config.extraPlugins = 'myplugin,anotherplugin';
|
||||
*/
|
||||
extraPlugins : '',
|
||||
|
||||
/**
|
||||
* List of plugins that must not be loaded. This is a tool setting which
|
||||
* makes it easier to avoid loading plugins definied in the <i>plugins</i>
|
||||
* setting, whithout having to touch and possibly breaking it.
|
||||
* @type String
|
||||
* @example
|
||||
* config.removePlugins = 'elementspath,save,font';
|
||||
*/
|
||||
removePlugins : '',
|
||||
|
||||
/**
|
||||
* List of regular expressions to be executed over the input HTML,
|
||||
* indicating code that must stay untouched.
|
||||
* @type Array
|
||||
* @example
|
||||
* config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP Code
|
||||
* config.protectedSource.push( /<%[\s\S]*?%>/g ); // ASP Code
|
||||
* config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ); // ASP.Net Code
|
||||
*/
|
||||
protectedSource : [],
|
||||
|
||||
/**
|
||||
* The editor tabindex value.
|
||||
* @type Number
|
||||
* @default 0 (zero)
|
||||
* @example
|
||||
* config.tabIndex = 1;
|
||||
*/
|
||||
tabIndex : 0,
|
||||
|
||||
/**
|
||||
* The theme to be used to build the UI.
|
||||
* @type String
|
||||
* @default 'default'
|
||||
* @see CKEDITOR.config.skin
|
||||
* @example
|
||||
* config.theme = 'default';
|
||||
*/
|
||||
theme : 'default',
|
||||
|
||||
/**
|
||||
* The skin to load. It may be the name of the skin folder inside the
|
||||
* editor installation path, or the name and the path separated by a comma.
|
||||
* @type String
|
||||
* @default 'default'
|
||||
* @example
|
||||
* config.skin = 'v2';
|
||||
* @example
|
||||
* config.skin = 'myskin,/customstuff/myskin/';
|
||||
*/
|
||||
skin : 'kama',
|
||||
|
||||
/**
|
||||
* The editor width in CSS size format or pixel integer.
|
||||
* @type String|Number
|
||||
* @default '100%'
|
||||
* @example
|
||||
*/
|
||||
width : '100%',
|
||||
|
||||
/**
|
||||
* The base Z-index for floating dialogs and popups.
|
||||
* @type Number
|
||||
* @default 10000
|
||||
* @example
|
||||
* config.baseFloatZIndex = 2000
|
||||
*/
|
||||
baseFloatZIndex : 10000
|
||||
|
||||
};
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.config )
|
||||
21
UI/WebServerResources/ckeditor/_source/core/dom.js
Normal file
21
UI/WebServerResources/ckeditor/_source/core/dom.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dom} object, which contains DOM
|
||||
* manipulation objects and function.
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOM manipulation objects and function.<br /><br />
|
||||
* @see CKEDITOR.dom.element
|
||||
* @see CKEDITOR.dom.node
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.dom =
|
||||
{};
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.dom )
|
||||
210
UI/WebServerResources/ckeditor/_source/core/dom/document.js
Normal file
210
UI/WebServerResources/ckeditor/_source/core/dom/document.js
Normal file
@@ -0,0 +1,210 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dom.document} class, which
|
||||
* represents a DOM document.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a DOM document.
|
||||
* @constructor
|
||||
* @augments CKEDITOR.dom.domObject
|
||||
* @param {Object} domDocument A native DOM document.
|
||||
* @example
|
||||
* var document = new CKEDITOR.dom.document( document );
|
||||
*/
|
||||
CKEDITOR.dom.document = function( domDocument )
|
||||
{
|
||||
CKEDITOR.dom.domObject.call( this, domDocument );
|
||||
};
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.dom.document )
|
||||
|
||||
CKEDITOR.dom.document.prototype = new CKEDITOR.dom.domObject();
|
||||
|
||||
CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype,
|
||||
/** @lends CKEDITOR.dom.document.prototype */
|
||||
{
|
||||
/**
|
||||
* Appends a CSS file to the document.
|
||||
* @param {String} cssFileUrl The CSS file URL.
|
||||
* @example
|
||||
* <b>CKEDITOR.document.appendStyleSheet( '/mystyles.css' )</b>;
|
||||
*/
|
||||
appendStyleSheet : function( cssFileUrl )
|
||||
{
|
||||
if ( this.$.createStyleSheet )
|
||||
this.$.createStyleSheet( cssFileUrl );
|
||||
else
|
||||
{
|
||||
var link = new CKEDITOR.dom.element( 'link' );
|
||||
link.setAttributes(
|
||||
{
|
||||
rel :'stylesheet',
|
||||
type : 'text/css',
|
||||
href : cssFileUrl
|
||||
});
|
||||
|
||||
this.getHead().append( link );
|
||||
}
|
||||
},
|
||||
|
||||
createElement : function( name, attribsAndStyles )
|
||||
{
|
||||
var element = new CKEDITOR.dom.element( name, this );
|
||||
|
||||
if ( attribsAndStyles )
|
||||
{
|
||||
if ( attribsAndStyles.attributes )
|
||||
element.setAttributes( attribsAndStyles.attributes );
|
||||
|
||||
if ( attribsAndStyles.styles )
|
||||
element.setStyles( attribsAndStyles.styles );
|
||||
}
|
||||
|
||||
return element;
|
||||
},
|
||||
|
||||
createText : function( text )
|
||||
{
|
||||
return new CKEDITOR.dom.text( text, this );
|
||||
},
|
||||
|
||||
focus : function()
|
||||
{
|
||||
this.getWindow().focus();
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets and element based on its id.
|
||||
* @param {String} elementId The element id.
|
||||
* @returns {CKEDITOR.dom.element} The element instance, or null if not found.
|
||||
* @example
|
||||
* var element = <b>CKEDITOR.document.getById( 'myElement' )</b>;
|
||||
* alert( element.getId() ); // "myElement"
|
||||
*/
|
||||
getById : function( elementId )
|
||||
{
|
||||
var $ = this.$.getElementById( elementId );
|
||||
return $ ? new CKEDITOR.dom.element( $ ) : null;
|
||||
},
|
||||
|
||||
getByAddress : function( address, normalized )
|
||||
{
|
||||
var $ = this.$.documentElement;
|
||||
|
||||
for ( var i = 0 ; $ && i < address.length ; i++ )
|
||||
{
|
||||
var target = address[ i ];
|
||||
|
||||
if ( !normalized )
|
||||
{
|
||||
$ = $.childNodes[ target ];
|
||||
continue;
|
||||
}
|
||||
|
||||
var currentIndex = -1;
|
||||
|
||||
for (var j = 0 ; j < $.childNodes.length ; j++ )
|
||||
{
|
||||
var candidate = $.childNodes[ j ];
|
||||
|
||||
if ( normalized === true &&
|
||||
candidate.nodeType == 3 &&
|
||||
candidate.previousSibling &&
|
||||
candidate.previousSibling.nodeType == 3 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
currentIndex++;
|
||||
|
||||
if ( currentIndex == target )
|
||||
{
|
||||
$ = candidate;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $ ? new CKEDITOR.dom.node( $ ) : null;
|
||||
},
|
||||
|
||||
getElementsByTag : function( tagName, namespace )
|
||||
{
|
||||
if ( !CKEDITOR.env.ie && namespace )
|
||||
tagName = namespace + ':' + tagName;
|
||||
return new CKEDITOR.dom.nodeList( this.$.getElementsByTagName( tagName ) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the <head> element for this document.
|
||||
* @returns {CKEDITOR.dom.element} The <head> element.
|
||||
* @example
|
||||
* var element = <b>CKEDITOR.document.getHead()</b>;
|
||||
* alert( element.getName() ); // "head"
|
||||
*/
|
||||
getHead : function()
|
||||
{
|
||||
var head = this.$.getElementsByTagName( 'head' )[0];
|
||||
head = new CKEDITOR.dom.element( head );
|
||||
|
||||
return (
|
||||
/** @ignore */
|
||||
this.getHead = function()
|
||||
{
|
||||
return head;
|
||||
})();
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the <body> element for this document.
|
||||
* @returns {CKEDITOR.dom.element} The <body> element.
|
||||
* @example
|
||||
* var element = <b>CKEDITOR.document.getBody()</b>;
|
||||
* alert( element.getName() ); // "body"
|
||||
*/
|
||||
getBody : function()
|
||||
{
|
||||
var body = new CKEDITOR.dom.element( this.$.body );
|
||||
|
||||
return (
|
||||
/** @ignore */
|
||||
this.getBody = function()
|
||||
{
|
||||
return body;
|
||||
})();
|
||||
},
|
||||
|
||||
getDocumentElement : function()
|
||||
{
|
||||
var documentElement = new CKEDITOR.dom.element( this.$.documentElement );
|
||||
|
||||
return (
|
||||
/** @ignore */
|
||||
this.getDocumentElement = function()
|
||||
{
|
||||
return documentElement;
|
||||
})();
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the window object that holds this document.
|
||||
* @returns {CKEDITOR.dom.window} The window object.
|
||||
* @example
|
||||
*/
|
||||
getWindow : function()
|
||||
{
|
||||
var win = new CKEDITOR.dom.window( this.$.parentWindow || this.$.defaultView );
|
||||
|
||||
return (
|
||||
/** @ignore */
|
||||
this.getWindow = function()
|
||||
{
|
||||
return win;
|
||||
})();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
/**
|
||||
* DocumentFragment is a "lightweight" or "minimal" Document object. It is
|
||||
* commonly used to extract a portion of a document's tree or to create a new
|
||||
* fragment of a document. Various operations may take DocumentFragment objects
|
||||
* as arguments and results in all the child nodes of the DocumentFragment being
|
||||
* moved to the child list of this node.
|
||||
*
|
||||
* @param {Object} ownerDocument
|
||||
*/
|
||||
CKEDITOR.dom.documentFragment = function( ownerDocument )
|
||||
{
|
||||
ownerDocument = ownerDocument || CKEDITOR.document;
|
||||
this.$ = ownerDocument.$.createDocumentFragment();
|
||||
};
|
||||
|
||||
CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
|
||||
CKEDITOR.dom.element.prototype,
|
||||
{
|
||||
type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
|
||||
insertAfterNode : function( node )
|
||||
{
|
||||
node = node.$;
|
||||
node.parentNode.insertBefore( this.$, node.nextSibling );
|
||||
}
|
||||
},
|
||||
true,
|
||||
{
|
||||
'append' : 1,
|
||||
'getFirst' : 1,
|
||||
'getLast' : 1,
|
||||
'appendTo' : 1,
|
||||
'moveChildren' : 1,
|
||||
'insertBefore' : 1,
|
||||
'insertAfterNode' : 1,
|
||||
'replace' : 1,
|
||||
'trim' : 1,
|
||||
'ltrim' : 1,
|
||||
'rtrim' : 1,
|
||||
'getDocument' : 1,
|
||||
'getChildCount' : 1,
|
||||
'getChild' : 1,
|
||||
'getChildren' : 1
|
||||
} );
|
||||
242
UI/WebServerResources/ckeditor/_source/core/dom/domwalker.js
Normal file
242
UI/WebServerResources/ckeditor/_source/core/dom/domwalker.js
Normal file
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var fireDomWalkerEvent = function( transistionType, fromNode, toNode )
|
||||
{
|
||||
var eventData = { from : fromNode, to : toNode, type : transistionType };
|
||||
this.fire( transistionType, eventData );
|
||||
this._.actionEvents.push( eventData );
|
||||
};
|
||||
|
||||
CKEDITOR.dom.domWalker = function( node )
|
||||
{
|
||||
if ( arguments.length < 1 )
|
||||
return;
|
||||
|
||||
this._ = { currentNode : node, actionEvents : [], stopFlag : false };
|
||||
CKEDITOR.event.implementOn( this );
|
||||
};
|
||||
|
||||
CKEDITOR.dom.domWalker.prototype = {
|
||||
next : (function()
|
||||
{
|
||||
var dfsStepForward = function()
|
||||
{
|
||||
var current = this._.currentNode, next;
|
||||
|
||||
if ( !current )
|
||||
return null;
|
||||
|
||||
if ( current.getChildCount && current.getChildCount() > 0 )
|
||||
{
|
||||
next = current.getChild( 0 );
|
||||
fireDomWalkerEvent.call( this, 'down', current, next );
|
||||
return next;
|
||||
}
|
||||
else if ( current.getNext() )
|
||||
{
|
||||
next = current.getNext();
|
||||
fireDomWalkerEvent.call( this, 'sibling', current, next );
|
||||
return next;
|
||||
}
|
||||
else
|
||||
{
|
||||
var ancestor = current.getParent();
|
||||
fireDomWalkerEvent.call( this, 'up', current, ancestor );
|
||||
|
||||
while ( ancestor )
|
||||
{
|
||||
if ( ancestor.getNext() )
|
||||
{
|
||||
next = ancestor.getNext();
|
||||
fireDomWalkerEvent.call( this, 'sibling', ancestor, next );
|
||||
return next;
|
||||
}
|
||||
else
|
||||
{
|
||||
next = ancestor.getParent();
|
||||
fireDomWalkerEvent.call( this, 'up', ancestor, next );
|
||||
ancestor = next;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
return function()
|
||||
{
|
||||
this._.actionEvents = [];
|
||||
return {
|
||||
node : ( this._.currentNode = dfsStepForward.apply( this ) ),
|
||||
events : this._.actionEvents
|
||||
};
|
||||
};
|
||||
})(),
|
||||
|
||||
back : (function()
|
||||
{
|
||||
var dfsStepBackward = function()
|
||||
{
|
||||
var current = this._.currentNode, next;
|
||||
|
||||
if ( !current )
|
||||
return null;
|
||||
|
||||
if ( current.getPrevious() )
|
||||
{
|
||||
var lastChild = current.getPrevious();
|
||||
fireDomWalkerEvent.call( this, 'sibling', current, lastChild );
|
||||
while ( lastChild.getChildCount && lastChild.getChildCount() > 0 )
|
||||
{
|
||||
next = lastChild.getChild( lastChild.getChildCount() - 1 );
|
||||
fireDomWalkerEvent.call( this, 'down', lastChild, next );
|
||||
lastChild = next;
|
||||
}
|
||||
return lastChild;
|
||||
}
|
||||
else
|
||||
{
|
||||
next = current.getParent();
|
||||
fireDomWalkerEvent.call( this, 'up', current, next );
|
||||
return next;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
return function()
|
||||
{
|
||||
this._.actionEvents = [];
|
||||
return {
|
||||
node : ( this._.currentNode = dfsStepBackward.apply( this ) ),
|
||||
events : this._.actionEvents
|
||||
};
|
||||
};
|
||||
})(),
|
||||
|
||||
forward : function( guardFunc )
|
||||
{
|
||||
var retval;
|
||||
this._.stopFlag = false;
|
||||
|
||||
// The default behavior is to stop once the end of document is reached.
|
||||
guardFunc = guardFunc || function( evt ) {};
|
||||
|
||||
this.on( 'sibling', guardFunc );
|
||||
this.on( 'up', guardFunc );
|
||||
this.on( 'down', guardFunc );
|
||||
while( ( !retval || retval.node ) && !this._.stopFlag )
|
||||
{
|
||||
retval = this.next();
|
||||
this.fire( 'step', retval );
|
||||
}
|
||||
this.removeListener( 'sibling', guardFunc );
|
||||
this.removeListener( 'up', guardFunc );
|
||||
this.removeListener( 'down', guardFunc );
|
||||
return retval;
|
||||
},
|
||||
|
||||
reverse : function( guardFunc )
|
||||
{
|
||||
var retval;
|
||||
this._.stopFlag = false;
|
||||
|
||||
// The default behavior is top stop once the start of document is reached.
|
||||
guardFunc = guardFunc || function( evt ) {};
|
||||
|
||||
this.on( 'sibling', guardFunc );
|
||||
this.on( 'up', guardFunc );
|
||||
this.on( 'down', guardFunc );
|
||||
while( ( !retval || retval.node ) && !this._.stopFlag )
|
||||
{
|
||||
retval = this.back();
|
||||
this.fire( 'step', retval );
|
||||
}
|
||||
this.removeListener( 'sibling', guardFunc );
|
||||
this.removeListener( 'up', guardFunc );
|
||||
this.removeListener( 'down', guardFunc );
|
||||
return retval;
|
||||
},
|
||||
|
||||
stop : function()
|
||||
{
|
||||
this._.stopFlag = true;
|
||||
return this;
|
||||
},
|
||||
|
||||
stopped : function()
|
||||
{
|
||||
return this._.stopFlag;
|
||||
},
|
||||
|
||||
setNode : function( node )
|
||||
{
|
||||
this._.currentNode = node;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* Anything whose display computed style is block, list-item, table,
|
||||
* table-row-group, table-header-group, table-footer-group, table-row,
|
||||
* table-column-group, table-column, table-cell, table-caption, or whose node
|
||||
* name is hr, br (when enterMode is br only) is a block boundary.
|
||||
*/
|
||||
var blockBoundaryDisplayMatch =
|
||||
{
|
||||
block : 1,
|
||||
'list-item' : 1,
|
||||
table : 1,
|
||||
'table-row-group' : 1,
|
||||
'table-header-group' : 1,
|
||||
'table-footer-group' : 1,
|
||||
'table-row' : 1,
|
||||
'table-column-group' : 1,
|
||||
'table-column' : 1,
|
||||
'table-cell' : 1,
|
||||
'table-caption' : 1
|
||||
},
|
||||
blockBoundaryNodeNameMatch = { hr : 1 };
|
||||
|
||||
CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames )
|
||||
{
|
||||
var nodeNameMatches = CKEDITOR.tools.extend( {}, blockBoundaryNodeNameMatch, customNodeNames || {} );
|
||||
|
||||
return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] ||
|
||||
nodeNameMatches[ this.getName() ];
|
||||
};
|
||||
|
||||
CKEDITOR.dom.domWalker.blockBoundary = function( customNodeNames )
|
||||
{
|
||||
return function( evt )
|
||||
{
|
||||
var to = evt.data.to,
|
||||
from = evt.data.from;
|
||||
if ( to && to.type == CKEDITOR.NODE_ELEMENT )
|
||||
{
|
||||
if ( to.isBlockBoundary( customNodeNames ) )
|
||||
{
|
||||
evt.stop();
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if ( ( evt.data.type == 'up' || evt.data.type == 'sibling' ) && from && from.type == CKEDITOR.NODE_ELEMENT )
|
||||
{
|
||||
if ( from.isBlockBoundary( customNodeNames ) )
|
||||
{
|
||||
evt.stop();
|
||||
this.stop();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
CKEDITOR.dom.domWalker.listItemBoundary = function()
|
||||
{
|
||||
return CKEDITOR.dom.domWalker.blockBoundary( { br : 1 } );
|
||||
};
|
||||
})();
|
||||
1385
UI/WebServerResources/ckeditor/_source/core/dom/element.js
Normal file
1385
UI/WebServerResources/ckeditor/_source/core/dom/element.js
Normal file
File diff suppressed because it is too large
Load Diff
104
UI/WebServerResources/ckeditor/_source/core/dom/elementpath.js
Normal file
104
UI/WebServerResources/ckeditor/_source/core/dom/elementpath.js
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
// Elements that may be considered the "Block boundary" in an element path.
|
||||
var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,de:1 };
|
||||
|
||||
// Elements that may be considered the "Block limit" in an element path.
|
||||
var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1 };
|
||||
|
||||
// Check if an element contains any block element.
|
||||
var checkHasBlock = function( element )
|
||||
{
|
||||
var childNodes = element.getChildren();
|
||||
|
||||
for ( var i = 0, count = childNodes.count() ; i < count ; i++ )
|
||||
{
|
||||
var child = childNodes.getItem( i );
|
||||
|
||||
if ( child.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$block[ child.getName() ] )
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
CKEDITOR.dom.elementPath = function( lastNode )
|
||||
{
|
||||
var block = null;
|
||||
var blockLimit = null;
|
||||
var elements = [];
|
||||
|
||||
var e = lastNode;
|
||||
|
||||
while ( e )
|
||||
{
|
||||
if ( e.type == CKEDITOR.NODE_ELEMENT )
|
||||
{
|
||||
if ( !this.lastElement )
|
||||
this.lastElement = e;
|
||||
|
||||
var elementName = e.getName();
|
||||
if ( CKEDITOR.env.ie && e.$.scopeName != 'HTML' )
|
||||
elementName = e.$.scopeName.toLowerCase() + ':' + elementName;
|
||||
|
||||
if ( !blockLimit )
|
||||
{
|
||||
if ( !block && pathBlockElements[ elementName ] )
|
||||
block = e;
|
||||
|
||||
if ( pathBlockLimitElements[ elementName ] )
|
||||
{
|
||||
// DIV is considered the Block, if no block is available (#525)
|
||||
// and if it doesn't contain other blocks.
|
||||
if ( !block && elementName == 'div' && !checkHasBlock( e ) )
|
||||
block = e;
|
||||
else
|
||||
blockLimit = e;
|
||||
}
|
||||
}
|
||||
|
||||
elements.push( e );
|
||||
|
||||
if ( elementName == 'body' )
|
||||
break;
|
||||
}
|
||||
e = e.getParent();
|
||||
}
|
||||
|
||||
this.block = block;
|
||||
this.blockLimit = blockLimit;
|
||||
this.elements = elements;
|
||||
};
|
||||
})();
|
||||
|
||||
CKEDITOR.dom.elementPath.prototype =
|
||||
{
|
||||
/**
|
||||
* Compares this element path with another one.
|
||||
* @param {CKEDITOR.dom.elementPath} otherPath The elementPath object to be
|
||||
* compared with this one.
|
||||
* @returns {Boolean} "true" if the paths are equal, containing the same
|
||||
* number of elements and the same elements in the same order.
|
||||
*/
|
||||
compare : function( otherPath )
|
||||
{
|
||||
var thisElements = this.elements;
|
||||
var otherElements = otherPath && otherPath.elements;
|
||||
|
||||
if ( !otherElements || thisElements.length != otherElements.length )
|
||||
return false;
|
||||
|
||||
for ( var i = 0 ; i < thisElements.length ; i++ )
|
||||
{
|
||||
if ( !thisElements[ i ].equals( otherElements[ i ] ) )
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
137
UI/WebServerResources/ckeditor/_source/core/dom/event.js
Normal file
137
UI/WebServerResources/ckeditor/_source/core/dom/event.js
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dom.event} class, which
|
||||
* represents the a native DOM event object.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a native DOM event object.
|
||||
* @constructor
|
||||
* @param {Object} domEvent A native DOM event object.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.dom.event = function( domEvent )
|
||||
{
|
||||
/**
|
||||
* The native DOM event object represented by this class instance.
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
this.$ = domEvent;
|
||||
};
|
||||
|
||||
CKEDITOR.dom.event.prototype =
|
||||
{
|
||||
/**
|
||||
* Gets the key code associated to the event.
|
||||
* @returns {Number} The key code.
|
||||
* @example
|
||||
* alert( event.getKey() ); "65" is "a" has been pressed
|
||||
*/
|
||||
getKey : function()
|
||||
{
|
||||
return this.$.keyCode || this.$.which;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets a number represeting the combination of the keys pressed during the
|
||||
* event. It is the sum with the current key code and the {@link CKEDITOR.CTRL},
|
||||
* {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} constants.
|
||||
* @returns {Number} The number representing the keys combination.
|
||||
* @example
|
||||
* alert( event.getKeystroke() == 65 ); // "a" key
|
||||
* alert( event.getKeystroke() == CKEDITOR.CTRL + 65 ); // CTRL + "a" key
|
||||
* alert( event.getKeystroke() == CKEDITOR.CTRL + CKEDITOR.SHIFT + 65 ); // CTRL + SHIFT + "a" key
|
||||
*/
|
||||
getKeystroke : function()
|
||||
{
|
||||
var keystroke = this.getKey();
|
||||
|
||||
if ( this.$.ctrlKey || this.$.metaKey )
|
||||
keystroke += CKEDITOR.CTRL;
|
||||
|
||||
if ( this.$.shiftKey )
|
||||
keystroke += CKEDITOR.SHIFT;
|
||||
|
||||
if ( this.$.altKey )
|
||||
keystroke += CKEDITOR.ALT;
|
||||
|
||||
return keystroke;
|
||||
},
|
||||
|
||||
/**
|
||||
* Prevents the original behavior of the event to happen. It can optionally
|
||||
* stop propagating the event in the event chain.
|
||||
* @param {Boolean} [stopPropagation] Stop propagating this event in the
|
||||
* event chain.
|
||||
* @example
|
||||
* var element = CKEDITOR.document.getById( 'myElement' );
|
||||
* element.on( 'click', function( ev )
|
||||
* {
|
||||
* // The DOM event object is passed by the "data" property.
|
||||
* var domEvent = ev.data;
|
||||
* // Prevent the click to chave any effect in the element.
|
||||
* domEvent.preventDefault();
|
||||
* });
|
||||
*/
|
||||
preventDefault : function( stopPropagation )
|
||||
{
|
||||
var $ = this.$;
|
||||
if ( $.preventDefault )
|
||||
$.preventDefault();
|
||||
else
|
||||
$.returnValue = false;
|
||||
|
||||
if ( stopPropagation )
|
||||
{
|
||||
if ( $.stopPropagation )
|
||||
$.stopPropagation();
|
||||
else
|
||||
$.cancelBubble = true;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Returns the DOM node where the event was targeted to.
|
||||
* @returns {CKEDITOR.dom.node} The target DOM node.
|
||||
* @example
|
||||
* var element = CKEDITOR.document.getById( 'myElement' );
|
||||
* element.on( 'click', function( ev )
|
||||
* {
|
||||
* // The DOM event object is passed by the "data" property.
|
||||
* var domEvent = ev.data;
|
||||
* // Add a CSS class to the event target.
|
||||
* domEvent.getTarget().addClass( 'clicked' );
|
||||
* });
|
||||
*/
|
||||
|
||||
getTarget : function()
|
||||
{
|
||||
var rawNode = this.$.target || this.$.srcElement;
|
||||
return rawNode ? new CKEDITOR.dom.node( rawNode ) : null;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* CTRL key (1000).
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.CTRL = 1000;
|
||||
|
||||
/**
|
||||
* SHIFT key (2000).
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.SHIFT = 2000;
|
||||
|
||||
/**
|
||||
* ALT key (4000).
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.ALT = 4000;
|
||||
646
UI/WebServerResources/ckeditor/_source/core/dom/node.js
Normal file
646
UI/WebServerResources/ckeditor/_source/core/dom/node.js
Normal file
@@ -0,0 +1,646 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dom.node} class, which is the base
|
||||
* class for classes that represent DOM nodes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base class for classes representing DOM nodes. This constructor may return
|
||||
* and instance of classes that inherits this class, like
|
||||
* {@link CKEDITOR.dom.element} or {@link CKEDITOR.dom.text}.
|
||||
* @augments CKEDITOR.dom.domObject
|
||||
* @param {Object} domNode A native DOM node.
|
||||
* @constructor
|
||||
* @see CKEDITOR.dom.element
|
||||
* @see CKEDITOR.dom.text
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.dom.node = function( domNode )
|
||||
{
|
||||
if ( domNode )
|
||||
{
|
||||
switch ( domNode.nodeType )
|
||||
{
|
||||
case CKEDITOR.NODE_ELEMENT :
|
||||
return new CKEDITOR.dom.element( domNode );
|
||||
|
||||
case CKEDITOR.NODE_TEXT :
|
||||
return new CKEDITOR.dom.text( domNode );
|
||||
}
|
||||
|
||||
// Call the base constructor.
|
||||
CKEDITOR.dom.domObject.call( this, domNode );
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
CKEDITOR.dom.node.prototype = new CKEDITOR.dom.domObject();
|
||||
|
||||
/**
|
||||
* Element node type.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.NODE_ELEMENT = 1;
|
||||
|
||||
/**
|
||||
* Text node type.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.NODE_TEXT = 3;
|
||||
|
||||
/**
|
||||
* Comment node type.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.NODE_COMMENT = 8;
|
||||
|
||||
CKEDITOR.NODE_DOCUMENT_FRAGMENT = 11;
|
||||
|
||||
CKEDITOR.POSITION_IDENTICAL = 0;
|
||||
CKEDITOR.POSITION_DISCONNECTED = 1;
|
||||
CKEDITOR.POSITION_FOLLOWING = 2;
|
||||
CKEDITOR.POSITION_PRECEDING = 4;
|
||||
CKEDITOR.POSITION_IS_CONTAINED = 8;
|
||||
CKEDITOR.POSITION_CONTAINS = 16;
|
||||
|
||||
CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype,
|
||||
/** @lends CKEDITOR.dom.node.prototype */
|
||||
{
|
||||
/**
|
||||
* Makes this node child of another element.
|
||||
* @param {CKEDITOR.dom.element} element The target element to which append
|
||||
* this node.
|
||||
* @returns {CKEDITOR.dom.element} The target element.
|
||||
* @example
|
||||
* var p = new CKEDITOR.dom.element( 'p' );
|
||||
* var strong = new CKEDITOR.dom.element( 'strong' );
|
||||
* strong.appendTo( p );
|
||||
*
|
||||
* // result: "<p><strong></strong></p>"
|
||||
*/
|
||||
appendTo : function( element, toStart )
|
||||
{
|
||||
element.append( this, toStart );
|
||||
return element;
|
||||
},
|
||||
|
||||
clone : function( includeChildren, cloneId )
|
||||
{
|
||||
var $clone = this.$.cloneNode( includeChildren );
|
||||
|
||||
if ( !cloneId )
|
||||
{
|
||||
var removeIds = function( node )
|
||||
{
|
||||
if ( node.nodeType != CKEDITOR.NODE_ELEMENT )
|
||||
return;
|
||||
|
||||
node.removeAttribute( 'id', false ) ;
|
||||
node.removeAttribute( '_cke_expando', false ) ;
|
||||
|
||||
var childs = node.childNodes;
|
||||
for ( var i=0 ; i < childs.length ; i++ )
|
||||
removeIds( childs[ i ] );
|
||||
};
|
||||
|
||||
// The "id" attribute should never be cloned to avoid duplication.
|
||||
removeIds( $clone );
|
||||
}
|
||||
|
||||
return new CKEDITOR.dom.node( $clone );
|
||||
},
|
||||
|
||||
hasPrevious : function()
|
||||
{
|
||||
return !!this.$.previousSibling;
|
||||
},
|
||||
|
||||
hasNext : function()
|
||||
{
|
||||
return !!this.$.nextSibling;
|
||||
},
|
||||
|
||||
/**
|
||||
* Inserts this element after a node.
|
||||
* @param {CKEDITOR.dom.node} node The that will preceed this element.
|
||||
* @returns {CKEDITOR.dom.node} The node preceeding this one after
|
||||
* insertion.
|
||||
* @example
|
||||
* var em = new CKEDITOR.dom.element( 'em' );
|
||||
* var strong = new CKEDITOR.dom.element( 'strong' );
|
||||
* strong.insertAfter( em );
|
||||
*
|
||||
* // result: "<em></em><strong></strong>"
|
||||
*/
|
||||
insertAfter : function( node )
|
||||
{
|
||||
node.$.parentNode.insertBefore( this.$, node.$.nextSibling );
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
* Inserts this element before a node.
|
||||
* @param {CKEDITOR.dom.node} node The that will be after this element.
|
||||
* @returns {CKEDITOR.dom.node} The node being inserted.
|
||||
* @example
|
||||
* var em = new CKEDITOR.dom.element( 'em' );
|
||||
* var strong = new CKEDITOR.dom.element( 'strong' );
|
||||
* strong.insertBefore( em );
|
||||
*
|
||||
* // result: "<strong></strong><em></em>"
|
||||
*/
|
||||
insertBefore : function( node )
|
||||
{
|
||||
node.$.parentNode.insertBefore( this.$, node.$ );
|
||||
return node;
|
||||
},
|
||||
|
||||
insertBeforeMe : function( node )
|
||||
{
|
||||
this.$.parentNode.insertBefore( node.$, this.$ );
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
* Retrieves a uniquely identifiable tree address for this node.
|
||||
* The tree address returns is an array of integers, with each integer
|
||||
* indicating a child index of a DOM node, starting from
|
||||
* document.documentElement.
|
||||
*
|
||||
* For example, assuming <body> is the second child from <html> (<head>
|
||||
* being the first), and we'd like to address the third child under the
|
||||
* fourth child of body, the tree address returned would be:
|
||||
* [1, 3, 2]
|
||||
*
|
||||
* The tree address cannot be used for finding back the DOM tree node once
|
||||
* the DOM tree structure has been modified.
|
||||
*/
|
||||
getAddress : function( normalized )
|
||||
{
|
||||
var address = [];
|
||||
var $documentElement = this.getDocument().$.documentElement;
|
||||
var node = this.$;
|
||||
|
||||
while ( node && node != $documentElement )
|
||||
{
|
||||
var parentNode = node.parentNode;
|
||||
var currentIndex = -1;
|
||||
|
||||
for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
|
||||
{
|
||||
var candidate = parentNode.childNodes[i];
|
||||
|
||||
if ( normalized &&
|
||||
candidate.nodeType == 3 &&
|
||||
candidate.previousSibling &&
|
||||
candidate.previousSibling.nodeType == 3 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
currentIndex++;
|
||||
|
||||
if ( candidate == node )
|
||||
break;
|
||||
}
|
||||
|
||||
address.unshift( currentIndex );
|
||||
|
||||
node = node.parentNode;
|
||||
}
|
||||
|
||||
return address;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the document containing this element.
|
||||
* @returns {CKEDITOR.dom.document} The document.
|
||||
* @example
|
||||
* var element = CKEDITOR.document.getById( 'example' );
|
||||
* alert( <b>element.getDocument().equals( CKEDITOR.document )</b> ); // "true"
|
||||
*/
|
||||
getDocument : function()
|
||||
{
|
||||
var document = new CKEDITOR.dom.document( this.$.ownerDocument || this.$.parentNode.ownerDocument );
|
||||
|
||||
return (
|
||||
/** @ignore */
|
||||
this.getDocument = function()
|
||||
{
|
||||
return document;
|
||||
})();
|
||||
},
|
||||
|
||||
getIndex : function()
|
||||
{
|
||||
var $ = this.$;
|
||||
|
||||
var currentNode = $.parentNode && $.parentNode.firstChild;
|
||||
var currentIndex = -1;
|
||||
|
||||
while ( currentNode )
|
||||
{
|
||||
currentIndex++;
|
||||
|
||||
if ( currentNode == $ )
|
||||
return currentIndex;
|
||||
|
||||
currentNode = currentNode.nextSibling;
|
||||
}
|
||||
|
||||
return -1;
|
||||
},
|
||||
|
||||
getNextSourceNode : function( startFromSibling, nodeType, guard )
|
||||
{
|
||||
// If "guard" is a node, transform it in a function.
|
||||
if ( guard && !guard.call )
|
||||
{
|
||||
var guardNode = guard;
|
||||
guard = function( node )
|
||||
{
|
||||
return !node.equals( guardNode );
|
||||
};
|
||||
}
|
||||
|
||||
var node = ( !startFromSibling && this.getFirst && this.getFirst() ),
|
||||
parent;
|
||||
|
||||
// Guarding when we're skipping the current element( no children or 'startFromSibling' ).
|
||||
// send the 'moving out' signal even we don't actually dive into.
|
||||
if ( !node )
|
||||
{
|
||||
if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false )
|
||||
return null;
|
||||
node = this.getNext();
|
||||
}
|
||||
|
||||
while ( !node && ( parent = ( parent || this ).getParent() ) )
|
||||
{
|
||||
// The guard check sends the "true" paramenter to indicate that
|
||||
// we are moving "out" of the element.
|
||||
if ( guard && guard( parent, true ) === false )
|
||||
return null;
|
||||
|
||||
node = parent.getNext();
|
||||
}
|
||||
|
||||
if ( !node )
|
||||
return null;
|
||||
|
||||
if ( guard && guard( node ) === false )
|
||||
return null;
|
||||
|
||||
if ( nodeType && nodeType != node.type )
|
||||
return node.getNextSourceNode( false, nodeType, guard );
|
||||
|
||||
return node;
|
||||
},
|
||||
|
||||
getPreviousSourceNode : function( startFromSibling, nodeType, guard )
|
||||
{
|
||||
if ( guard && !guard.call )
|
||||
{
|
||||
var guardNode = guard;
|
||||
guard = function( node )
|
||||
{
|
||||
return !node.equals( guardNode );
|
||||
};
|
||||
}
|
||||
|
||||
var node = ( !startFromSibling && this.getLast && this.getLast() ),
|
||||
parent;
|
||||
|
||||
// Guarding when we're skipping the current element( no children or 'startFromSibling' ).
|
||||
// send the 'moving out' signal even we don't actually dive into.
|
||||
if ( !node )
|
||||
{
|
||||
if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false )
|
||||
return null;
|
||||
node = this.getPrevious();
|
||||
}
|
||||
|
||||
while ( !node && ( parent = ( parent || this ).getParent() ) )
|
||||
{
|
||||
// The guard check sends the "true" paramenter to indicate that
|
||||
// we are moving "out" of the element.
|
||||
if ( guard && guard( parent, true ) === false )
|
||||
return null;
|
||||
|
||||
node = parent.getPrevious();
|
||||
}
|
||||
|
||||
if ( !node )
|
||||
return null;
|
||||
|
||||
if ( guard && guard( node ) === false )
|
||||
return null;
|
||||
|
||||
if ( nodeType && node.type != nodeType )
|
||||
return node.getPreviousSourceNode( false, nodeType, guard );
|
||||
|
||||
return node;
|
||||
},
|
||||
|
||||
getPrevious : function( ignoreSpaces )
|
||||
{
|
||||
var previous = this.$.previousSibling;
|
||||
while ( ignoreSpaces && previous && ( previous.nodeType == CKEDITOR.NODE_TEXT )
|
||||
&& !CKEDITOR.tools.trim( previous.nodeValue ) )
|
||||
previous = previous.previousSibling;
|
||||
|
||||
return previous ? new CKEDITOR.dom.node( previous ) : null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the node that follows this element in its parent's child list.
|
||||
* @param {Boolean} ignoreSpaces Whether should ignore empty text nodes.
|
||||
* @returns {CKEDITOR.dom.node} The next node or null if not
|
||||
* available.
|
||||
* @example
|
||||
* var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b> <i>next</i></div>' );
|
||||
* var first = <b>element.getFirst().getNext()</b>;
|
||||
* alert( first.getName() ); // "i"
|
||||
*/
|
||||
getNext : function( ignoreSpaces )
|
||||
{
|
||||
var next = this.$.nextSibling;
|
||||
while ( ignoreSpaces && next && ( next.nodeType == CKEDITOR.NODE_TEXT )
|
||||
&& !CKEDITOR.tools.trim( next.nodeValue ) )
|
||||
next = next.nextSibling;
|
||||
|
||||
return next ? new CKEDITOR.dom.node( next ) : null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the parent element for this node.
|
||||
* @returns {CKEDITOR.dom.element} The parent element.
|
||||
* @example
|
||||
* var node = editor.document.getBody().getFirst();
|
||||
* var parent = node.<b>getParent()</b>;
|
||||
* alert( node.getName() ); // "body"
|
||||
*/
|
||||
getParent : function()
|
||||
{
|
||||
var parent = this.$.parentNode;
|
||||
return ( parent && parent.nodeType == 1 ) ? new CKEDITOR.dom.node( parent ) : null;
|
||||
},
|
||||
|
||||
getParents : function()
|
||||
{
|
||||
var node = this;
|
||||
var parents = [];
|
||||
|
||||
do
|
||||
{
|
||||
parents.unshift( node );
|
||||
}
|
||||
while ( ( node = node.getParent() ) )
|
||||
|
||||
return parents;
|
||||
},
|
||||
|
||||
getCommonAncestor : function( node )
|
||||
{
|
||||
if ( node.equals( this ) )
|
||||
return this;
|
||||
|
||||
if ( node.contains && node.contains( this ) )
|
||||
return node;
|
||||
|
||||
var start = this.contains ? this : this.getParent();
|
||||
|
||||
do
|
||||
{
|
||||
if ( start.contains( node ) )
|
||||
return start;
|
||||
}
|
||||
while ( ( start = start.getParent() ) );
|
||||
|
||||
return null;
|
||||
},
|
||||
|
||||
getPosition : function( otherNode )
|
||||
{
|
||||
var $ = this.$;
|
||||
var $other = otherNode.$;
|
||||
|
||||
if ( $.compareDocumentPosition )
|
||||
return $.compareDocumentPosition( $other );
|
||||
|
||||
// IE and Safari have no support for compareDocumentPosition.
|
||||
|
||||
if ( $ == $other )
|
||||
return CKEDITOR.POSITION_IDENTICAL;
|
||||
|
||||
// Only element nodes support contains and sourceIndex.
|
||||
if ( this.type == CKEDITOR.NODE_ELEMENT && otherNode.type == CKEDITOR.NODE_ELEMENT )
|
||||
{
|
||||
if ( $.contains )
|
||||
{
|
||||
if ( $.contains( $other ) )
|
||||
return CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING;
|
||||
|
||||
if ( $other.contains( $ ) )
|
||||
return CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING;
|
||||
}
|
||||
|
||||
if ( 'sourceIndex' in $ )
|
||||
{
|
||||
return ( $.sourceIndex < 0 || $other.sourceIndex < 0 ) ? CKEDITOR.POSITION_DISCONNECTED :
|
||||
( $.sourceIndex < $other.sourceIndex ) ? CKEDITOR.POSITION_PRECEDING :
|
||||
CKEDITOR.POSITION_FOLLOWING;
|
||||
}
|
||||
}
|
||||
|
||||
// For nodes that don't support compareDocumentPosition, contains
|
||||
// or sourceIndex, their "address" is compared.
|
||||
|
||||
var addressOfThis = this.getAddress(),
|
||||
addressOfOther = otherNode.getAddress(),
|
||||
minLevel = Math.min( addressOfThis.length, addressOfOther.length );
|
||||
|
||||
// Determinate preceed/follow relationship.
|
||||
for ( var i = 0 ; i <= minLevel - 1 ; i++ )
|
||||
{
|
||||
if ( addressOfThis[ i ] != addressOfOther[ i ] )
|
||||
{
|
||||
if ( i < minLevel )
|
||||
{
|
||||
return addressOfThis[ i ] < addressOfOther[ i ] ?
|
||||
CKEDITOR.POSITION_PRECEDING : CKEDITOR.POSITION_FOLLOWING;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Determinate contains/contained relationship.
|
||||
return ( addressOfThis.length < addressOfOther.length ) ?
|
||||
CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING :
|
||||
CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the closes ancestor node of a specified node name.
|
||||
* @param {String} name Node name of ancestor node.
|
||||
* @param {Boolean} includeSelf (Optional) Whether to include the current
|
||||
* node in the calculation or not.
|
||||
* @returns {CKEDITOR.dom.node} Ancestor node.
|
||||
*/
|
||||
getAscendant : function( name, includeSelf )
|
||||
{
|
||||
var $ = this.$;
|
||||
|
||||
if ( !includeSelf )
|
||||
$ = $.parentNode;
|
||||
|
||||
while ( $ )
|
||||
{
|
||||
if ( $.nodeName && $.nodeName.toLowerCase() == name )
|
||||
return new CKEDITOR.dom.node( $ );
|
||||
|
||||
$ = $.parentNode;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
hasAscendant : function( name, includeSelf )
|
||||
{
|
||||
var $ = this.$;
|
||||
|
||||
if ( !includeSelf )
|
||||
$ = $.parentNode;
|
||||
|
||||
while ( $ )
|
||||
{
|
||||
if ( $.nodeName && $.nodeName.toLowerCase() == name )
|
||||
return true;
|
||||
|
||||
$ = $.parentNode;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
move : function( target, toStart )
|
||||
{
|
||||
target.append( this.remove(), toStart );
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes this node from the document DOM.
|
||||
* @param {Boolean} [preserveChildren] Indicates that the children
|
||||
* elements must remain in the document, removing only the outer
|
||||
* tags.
|
||||
* @example
|
||||
* var element = CKEDITOR.dom.element.getById( 'MyElement' );
|
||||
* <b>element.remove()</b>;
|
||||
*/
|
||||
remove : function( preserveChildren )
|
||||
{
|
||||
var $ = this.$;
|
||||
var parent = $.parentNode;
|
||||
|
||||
if ( parent )
|
||||
{
|
||||
if ( preserveChildren )
|
||||
{
|
||||
// Move all children before the node.
|
||||
for ( var child ; ( child = $.firstChild ) ; )
|
||||
{
|
||||
parent.insertBefore( $.removeChild( child ), $ );
|
||||
}
|
||||
}
|
||||
|
||||
parent.removeChild( $ );
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
replace : function( nodeToReplace )
|
||||
{
|
||||
this.insertBefore( nodeToReplace );
|
||||
nodeToReplace.remove();
|
||||
},
|
||||
|
||||
trim : function()
|
||||
{
|
||||
this.ltrim();
|
||||
this.rtrim();
|
||||
},
|
||||
|
||||
ltrim : function()
|
||||
{
|
||||
var child;
|
||||
while ( this.getFirst && ( child = this.getFirst() ) )
|
||||
{
|
||||
if ( child.type == CKEDITOR.NODE_TEXT )
|
||||
{
|
||||
var trimmed = CKEDITOR.tools.ltrim( child.getText() ),
|
||||
originalLength = child.getLength();
|
||||
|
||||
if ( !trimmed )
|
||||
{
|
||||
child.remove();
|
||||
continue;
|
||||
}
|
||||
else if ( trimmed.length < originalLength )
|
||||
{
|
||||
child.split( originalLength - trimmed.length );
|
||||
|
||||
// IE BUG: child.remove() may raise JavaScript errors here. (#81)
|
||||
this.$.removeChild( this.$.firstChild );
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
rtrim : function()
|
||||
{
|
||||
var child;
|
||||
while ( this.getLast && ( child = this.getLast() ) )
|
||||
{
|
||||
if ( child.type == CKEDITOR.NODE_TEXT )
|
||||
{
|
||||
var trimmed = CKEDITOR.tools.rtrim( child.getText() ),
|
||||
originalLength = child.getLength();
|
||||
|
||||
if ( !trimmed )
|
||||
{
|
||||
child.remove();
|
||||
continue;
|
||||
}
|
||||
else if ( trimmed.length < originalLength )
|
||||
{
|
||||
child.split( trimmed.length );
|
||||
|
||||
// IE BUG: child.getNext().remove() may raise JavaScript errors here.
|
||||
// (#81)
|
||||
this.$.lastChild.parentNode.removeChild( this.$.lastChild );
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ( !CKEDITOR.env.ie && !CKEDITOR.env.opera )
|
||||
{
|
||||
child = this.$.lastChild;
|
||||
|
||||
if ( child && child.type == 1 && child.nodeName.toLowerCase() == 'br' )
|
||||
{
|
||||
// Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#324).
|
||||
child.parentNode.removeChild( child ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
23
UI/WebServerResources/ckeditor/_source/core/dom/nodelist.js
Normal file
23
UI/WebServerResources/ckeditor/_source/core/dom/nodelist.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.dom.nodeList = function( nativeList )
|
||||
{
|
||||
this.$ = nativeList;
|
||||
};
|
||||
|
||||
CKEDITOR.dom.nodeList.prototype =
|
||||
{
|
||||
count : function()
|
||||
{
|
||||
return this.$.length;
|
||||
},
|
||||
|
||||
getItem : function( index )
|
||||
{
|
||||
var $node = this.$[ index ];
|
||||
return $node ? new CKEDITOR.dom.node( $node ) : null;
|
||||
}
|
||||
};
|
||||
1643
UI/WebServerResources/ckeditor/_source/core/dom/range.js
Normal file
1643
UI/WebServerResources/ckeditor/_source/core/dom/range.js
Normal file
File diff suppressed because it is too large
Load Diff
123
UI/WebServerResources/ckeditor/_source/core/dom/text.js
Normal file
123
UI/WebServerResources/ckeditor/_source/core/dom/text.js
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents
|
||||
* a DOM text node.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a DOM text node.
|
||||
* @constructor
|
||||
* @augments CKEDITOR.dom.node
|
||||
* @param {Object|String} text A native DOM text node or a string containing
|
||||
* the text to use to create a new text node.
|
||||
* @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain
|
||||
* the node in case of new node creation. Defaults to the current document.
|
||||
* @example
|
||||
* var nativeNode = document.createTextNode( 'Example' );
|
||||
* var text = CKEDITOR.dom.text( nativeNode );
|
||||
* @example
|
||||
* var text = CKEDITOR.dom.text( 'Example' );
|
||||
*/
|
||||
CKEDITOR.dom.text = function( text, ownerDocument )
|
||||
{
|
||||
if ( typeof text == 'string' )
|
||||
text = ( ownerDocument ? ownerDocument.$ : document ).createTextNode( text );
|
||||
|
||||
// Theoretically, we should call the base constructor here
|
||||
// (not CKEDITOR.dom.node though). But, IE doesn't support expando
|
||||
// properties on text node, so the features provided by domObject will not
|
||||
// work for text nodes (which is not a big issue for us).
|
||||
//
|
||||
// CKEDITOR.dom.domObject.call( this, element );
|
||||
|
||||
/**
|
||||
* The native DOM text node represented by this class instance.
|
||||
* @type Object
|
||||
* @example
|
||||
* var element = new CKEDITOR.dom.text( 'Example' );
|
||||
* alert( element.$.nodeType ); // "3"
|
||||
*/
|
||||
this.$ = text;
|
||||
};
|
||||
|
||||
CKEDITOR.dom.text.prototype = new CKEDITOR.dom.node();
|
||||
|
||||
CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype,
|
||||
/** @lends CKEDITOR.dom.text.prototype */
|
||||
{
|
||||
/**
|
||||
* The node type. This is a constant value set to
|
||||
* {@link CKEDITOR.NODE_TEXT}.
|
||||
* @type Number
|
||||
* @example
|
||||
*/
|
||||
type : CKEDITOR.NODE_TEXT,
|
||||
|
||||
getLength : function()
|
||||
{
|
||||
return this.$.nodeValue.length;
|
||||
},
|
||||
|
||||
getText : function()
|
||||
{
|
||||
return this.$.nodeValue;
|
||||
},
|
||||
|
||||
/**
|
||||
* Breaks this text node into two nodes at the specified offset,
|
||||
* keeping both in the tree as siblings. This node then only contains
|
||||
* all the content up to the offset point. A new text node, which is
|
||||
* inserted as the next sibling of this node, contains all the content
|
||||
* at and after the offset point. When the offset is equal to the
|
||||
* length of this node, the new node has no data.
|
||||
* @param {Number} The position at which to split, starting from zero.
|
||||
* @returns {CKEDITOR.dom.text} The new text node.
|
||||
*/
|
||||
split : function( offset )
|
||||
{
|
||||
// If the offset is after the last char, IE creates the text node
|
||||
// on split, but don't include it into the DOM. So, we have to do
|
||||
// that manually here.
|
||||
if ( CKEDITOR.env.ie && offset == this.getLength() )
|
||||
{
|
||||
var next = this.getDocument().createText( '' );
|
||||
next.insertAfter( this );
|
||||
return next;
|
||||
}
|
||||
|
||||
var doc = this.getDocument();
|
||||
var retval = new CKEDITOR.dom.text( this.$.splitText( offset ), doc );
|
||||
|
||||
// IE BUG: IE8 does not update the childNodes array in DOM after splitText(),
|
||||
// we need to make some DOM changes to make it update. (#3436)
|
||||
if ( CKEDITOR.env.ie8 )
|
||||
{
|
||||
var workaround = new CKEDITOR.dom.text( '', doc );
|
||||
workaround.insertAfter( retval );
|
||||
workaround.remove();
|
||||
}
|
||||
|
||||
return retval;
|
||||
},
|
||||
|
||||
/**
|
||||
* Extracts characters from indexA up to but not including indexB.
|
||||
* @param {Number} indexA An integer between 0 and one less than the
|
||||
* length of the text.
|
||||
* @param {Number} [indexB] An integer between 0 and the length of the
|
||||
* string. If omitted, extracts characters to the end of the text.
|
||||
*/
|
||||
substring : function( indexA, indexB )
|
||||
{
|
||||
// We need the following check due to a Firefox bug
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=458886
|
||||
if ( typeof indexB != 'number' )
|
||||
return this.$.nodeValue.substr( indexA );
|
||||
else
|
||||
return this.$.nodeValue.substring( indexA, indexB );
|
||||
}
|
||||
});
|
||||
392
UI/WebServerResources/ckeditor/_source/core/dom/walker.js
Normal file
392
UI/WebServerResources/ckeditor/_source/core/dom/walker.js
Normal file
@@ -0,0 +1,392 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
// This function is to be called under a "walker" instance scope.
|
||||
function iterate( rtl, breakOnFalse )
|
||||
{
|
||||
// Return null if we have reached the end.
|
||||
if ( this._.end )
|
||||
return null;
|
||||
|
||||
var node,
|
||||
range = this.range,
|
||||
guard,
|
||||
userGuard = this.guard,
|
||||
type = this.type,
|
||||
getSourceNodeFn = ( rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' );
|
||||
|
||||
// This is the first call. Initialize it.
|
||||
if ( !this._.start )
|
||||
{
|
||||
this._.start = 1;
|
||||
|
||||
// Trim text nodes and optmize the range boundaries. DOM changes
|
||||
// may happen at this point.
|
||||
range.trim();
|
||||
|
||||
// A collapsed range must return null at first call.
|
||||
if ( range.collapsed )
|
||||
{
|
||||
this.end();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Create the LTR guard function, if necessary.
|
||||
if ( !rtl && !this._.guardLTR )
|
||||
{
|
||||
// Gets the node that stops the walker when going LTR.
|
||||
var limitLTR = range.endContainer,
|
||||
blockerLTR = limitLTR.getChild( range.endOffset );
|
||||
|
||||
this._.guardLTR = function( node, movingOut )
|
||||
{
|
||||
return ( ( !movingOut || !limitLTR.equals( node ) )
|
||||
&& ( !blockerLTR || !node.equals( blockerLTR ) )
|
||||
&& ( node.type != CKEDITOR.NODE_ELEMENT || node.getName() != 'body' ) );
|
||||
};
|
||||
}
|
||||
|
||||
// Create the RTL guard function, if necessary.
|
||||
if ( rtl && !this._.guardRTL )
|
||||
{
|
||||
// Gets the node that stops the walker when going LTR.
|
||||
var limitRTL = range.startContainer,
|
||||
blockerRTL = ( range.startOffset > 0 ) && limitRTL.getChild( range.startOffset - 1 );
|
||||
|
||||
this._.guardRTL = function( node, movingOut )
|
||||
{
|
||||
return ( ( !movingOut || !limitRTL.equals( node ) )
|
||||
&& ( !blockerRTL || !node.equals( blockerRTL ) )
|
||||
&& ( node.type != CKEDITOR.NODE_ELEMENT || node.getName() != 'body' ) );
|
||||
};
|
||||
}
|
||||
|
||||
// Define which guard function to use.
|
||||
var stopGuard = rtl ? this._.guardRTL : this._.guardLTR;
|
||||
|
||||
// Make the user defined guard function participate in the process,
|
||||
// otherwise simply use the boundary guard.
|
||||
if ( userGuard )
|
||||
{
|
||||
guard = function( node, movingOut )
|
||||
{
|
||||
if ( stopGuard( node, movingOut ) === false )
|
||||
return false;
|
||||
|
||||
return userGuard( node );
|
||||
};
|
||||
}
|
||||
else
|
||||
guard = stopGuard;
|
||||
|
||||
if ( this.current )
|
||||
node = this.current[ getSourceNodeFn ]( false, type, guard );
|
||||
else
|
||||
{
|
||||
// Get the first node to be returned.
|
||||
|
||||
if ( rtl )
|
||||
{
|
||||
node = range.endContainer;
|
||||
|
||||
if ( range.endOffset > 0 )
|
||||
{
|
||||
node = node.getChild( range.endOffset - 1 );
|
||||
if ( guard( node ) === false )
|
||||
node = null;
|
||||
}
|
||||
else
|
||||
node = ( guard ( node ) === false ) ?
|
||||
null : node.getPreviousSourceNode( true, type, guard );
|
||||
}
|
||||
else
|
||||
{
|
||||
node = range.startContainer;
|
||||
node = node.getChild( range.startOffset );
|
||||
|
||||
if ( node )
|
||||
{
|
||||
if ( guard( node ) === false )
|
||||
node = null;
|
||||
}
|
||||
else
|
||||
node = ( guard ( range.startContainer ) === false ) ?
|
||||
null : range.startContainer.getNextSourceNode( true, type, guard ) ;
|
||||
}
|
||||
}
|
||||
|
||||
while ( node && !this._.end )
|
||||
{
|
||||
this.current = node;
|
||||
|
||||
if ( !this.evaluator || this.evaluator( node ) !== false )
|
||||
{
|
||||
if ( !breakOnFalse )
|
||||
return node;
|
||||
}
|
||||
else if ( breakOnFalse && this.evaluator )
|
||||
return false;
|
||||
|
||||
node = node[ getSourceNodeFn ]( false, type, guard );
|
||||
}
|
||||
|
||||
this.end();
|
||||
return this.current = null;
|
||||
}
|
||||
|
||||
function iterateToLast( rtl )
|
||||
{
|
||||
var node, last = null;
|
||||
|
||||
while ( ( node = iterate.call( this, rtl ) ) )
|
||||
last = node;
|
||||
|
||||
return last;
|
||||
}
|
||||
|
||||
CKEDITOR.dom.walker = CKEDITOR.tools.createClass(
|
||||
{
|
||||
/**
|
||||
* Utility class to "walk" the DOM inside a range boundaries. If
|
||||
* necessary, partially included nodes (text nodes) are broken to
|
||||
* reflect the boundaries limits, so DOM and range changes may happen.
|
||||
* Outside changes to the range may break the walker.
|
||||
*
|
||||
* The walker may return nodes that are not totaly included into the
|
||||
* range boundaires. Let's take the following range representation,
|
||||
* where the square brackets indicate the boundaries:
|
||||
*
|
||||
* [<p>Some <b>sample] text</b>
|
||||
*
|
||||
* While walking forward into the above range, the following nodes are
|
||||
* returned: <p>, "Some ", <b> and "sample". Going
|
||||
* backwards instead we have: "sample" and "Some ". So note that the
|
||||
* walker always returns nodes when "entering" them, but not when
|
||||
* "leaving" them. The guard function is instead called both when
|
||||
* entering and leaving nodes.
|
||||
*
|
||||
* @constructor
|
||||
* @param {CKEDITOR.dom.range} range The range within which walk.
|
||||
*/
|
||||
$ : function( range )
|
||||
{
|
||||
this.range = range;
|
||||
|
||||
/**
|
||||
* A function executed for every matched node, to check whether
|
||||
* it's to be considered into the walk or not. If not provided, all
|
||||
* matched nodes are considered good.
|
||||
* If the function returns "false" the node is ignored.
|
||||
* @name CKEDITOR.dom.walker.prototype.evaluator
|
||||
* @property
|
||||
* @type Function
|
||||
*/
|
||||
// this.evaluator = null;
|
||||
|
||||
/**
|
||||
* A function executed for every node the walk pass by to check
|
||||
* whether the walk is to be finished. It's called when both
|
||||
* entering and exiting nodes, as well as for the matched nodes.
|
||||
* If this function returns "false", the walking ends and no more
|
||||
* nodes are evaluated.
|
||||
* @name CKEDITOR.dom.walker.prototype.guard
|
||||
* @property
|
||||
* @type Function
|
||||
*/
|
||||
// this.guard = null;
|
||||
|
||||
/** @private */
|
||||
this._ = {};
|
||||
},
|
||||
|
||||
// statics :
|
||||
// {
|
||||
// /* Creates a CKEDITOR.dom.walker instance to walk inside DOM boundaries set by nodes.
|
||||
// * @param {CKEDITOR.dom.node} startNode The node from wich the walk
|
||||
// * will start.
|
||||
// * @param {CKEDITOR.dom.node} [endNode] The last node to be considered
|
||||
// * in the walk. No more nodes are retrieved after touching or
|
||||
// * passing it. If not provided, the walker stops at the
|
||||
// * <body> closing boundary.
|
||||
// * @returns {CKEDITOR.dom.walker} A DOM walker for the nodes between the
|
||||
// * provided nodes.
|
||||
// */
|
||||
// createOnNodes : function( startNode, endNode, startInclusive, endInclusive )
|
||||
// {
|
||||
// var range = new CKEDITOR.dom.range();
|
||||
// if ( startNode )
|
||||
// range.setStartAt( startNode, startInclusive ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ) ;
|
||||
// else
|
||||
// range.setStartAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_AFTER_START ) ;
|
||||
//
|
||||
// if ( endNode )
|
||||
// range.setEndAt( endNode, endInclusive ? CKEDITOR.POSITION_AFTER_END : CKEDITOR.POSITION_BEFORE_START ) ;
|
||||
// else
|
||||
// range.setEndAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_BEFORE_END ) ;
|
||||
//
|
||||
// return new CKEDITOR.dom.walker( range );
|
||||
// }
|
||||
// },
|
||||
//
|
||||
proto :
|
||||
{
|
||||
/**
|
||||
* Stop walking. No more nodes are retrieved if this function gets
|
||||
* called.
|
||||
*/
|
||||
end : function()
|
||||
{
|
||||
this._.end = 1;
|
||||
},
|
||||
|
||||
/**
|
||||
* Retrieves the next node (at right).
|
||||
* @returns {CKEDITOR.dom.node} The next node or null if no more
|
||||
* nodes are available.
|
||||
*/
|
||||
next : function()
|
||||
{
|
||||
return iterate.call( this );
|
||||
},
|
||||
|
||||
/**
|
||||
* Retrieves the previous node (at left).
|
||||
* @returns {CKEDITOR.dom.node} The previous node or null if no more
|
||||
* nodes are available.
|
||||
*/
|
||||
previous : function()
|
||||
{
|
||||
return iterate.call( this, true );
|
||||
},
|
||||
|
||||
/**
|
||||
* Check all nodes at right, executing the evaluation fuction.
|
||||
* @returns {Boolean} "false" if the evaluator function returned
|
||||
* "false" for any of the matched nodes. Otherwise "true".
|
||||
*/
|
||||
checkForward : function()
|
||||
{
|
||||
return iterate.call( this, false, true ) !== false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Check all nodes at left, executing the evaluation fuction.
|
||||
* @returns {Boolean} "false" if the evaluator function returned
|
||||
* "false" for any of the matched nodes. Otherwise "true".
|
||||
*/
|
||||
checkBackward : function()
|
||||
{
|
||||
return iterate.call( this, true, true ) !== false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Executes a full walk forward (to the right), until no more nodes
|
||||
* are available, returning the last valid node.
|
||||
* @returns {CKEDITOR.dom.node} The last node at the right or null
|
||||
* if no valid nodes are available.
|
||||
*/
|
||||
lastForward : function()
|
||||
{
|
||||
return iterateToLast.call( this );
|
||||
},
|
||||
|
||||
/**
|
||||
* Executes a full walk backwards (to the left), until no more nodes
|
||||
* are available, returning the last valid node.
|
||||
* @returns {CKEDITOR.dom.node} The last node at the left or null
|
||||
* if no valid nodes are available.
|
||||
*/
|
||||
lastBackward : function()
|
||||
{
|
||||
return iterateToLast.call( this, true );
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
* Anything whose display computed style is block, list-item, table,
|
||||
* table-row-group, table-header-group, table-footer-group, table-row,
|
||||
* table-column-group, table-column, table-cell, table-caption, or whose node
|
||||
* name is hr, br (when enterMode is br only) is a block boundary.
|
||||
*/
|
||||
var blockBoundaryDisplayMatch =
|
||||
{
|
||||
block : 1,
|
||||
'list-item' : 1,
|
||||
table : 1,
|
||||
'table-row-group' : 1,
|
||||
'table-header-group' : 1,
|
||||
'table-footer-group' : 1,
|
||||
'table-row' : 1,
|
||||
'table-column-group' : 1,
|
||||
'table-column' : 1,
|
||||
'table-cell' : 1,
|
||||
'table-caption' : 1
|
||||
},
|
||||
blockBoundaryNodeNameMatch = { hr : 1 };
|
||||
|
||||
CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames )
|
||||
{
|
||||
var nodeNameMatches = CKEDITOR.tools.extend( {},
|
||||
blockBoundaryNodeNameMatch, customNodeNames || {} );
|
||||
|
||||
return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] ||
|
||||
nodeNameMatches[ this.getName() ];
|
||||
};
|
||||
|
||||
CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )
|
||||
{
|
||||
return function( node , type )
|
||||
{
|
||||
return ! ( node.type == CKEDITOR.NODE_ELEMENT
|
||||
&& node.isBlockBoundary( customNodeNames ) );
|
||||
};
|
||||
};
|
||||
|
||||
CKEDITOR.dom.walker.listItemBoundary = function()
|
||||
{
|
||||
return this.blockBoundary( { br : 1 } );
|
||||
};
|
||||
/**
|
||||
* Whether the node is a bookmark node's inner text node.
|
||||
*/
|
||||
CKEDITOR.dom.walker.bookmarkContents = function( node )
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether the to-be-evaluated node is a bookmark node OR bookmark node
|
||||
* inner contents.
|
||||
* @param {Boolean} contentOnly Whether only test againt the text content of
|
||||
* bookmark node instead of the element itself(default).
|
||||
* @param {Boolean} isReject Whether should return 'false' for the bookmark
|
||||
* node instead of 'true'(default).
|
||||
*/
|
||||
CKEDITOR.dom.walker.bookmark = function( contentOnly, isReject )
|
||||
{
|
||||
function isBookmarkNode( node )
|
||||
{
|
||||
return ( node && node.getName
|
||||
&& node.getName() == 'span'
|
||||
&& node.hasAttribute('_fck_bookmark') );
|
||||
}
|
||||
|
||||
return function( node )
|
||||
{
|
||||
var retval, parent;
|
||||
// Is bookmark inner text node?
|
||||
retval = ( node && !node.getName && ( parent = node.getParent() )
|
||||
&& isBookmarkNode( parent ) );
|
||||
// Is bookmark node?
|
||||
retval = contentOnly ? retval : retval || isBookmarkNode( node );
|
||||
return isReject ? !retval : !!retval;
|
||||
};
|
||||
};
|
||||
|
||||
})();
|
||||
93
UI/WebServerResources/ckeditor/_source/core/dom/window.js
Normal file
93
UI/WebServerResources/ckeditor/_source/core/dom/window.js
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dom.document} class, which
|
||||
* represents a DOM document.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a DOM window.
|
||||
* @constructor
|
||||
* @augments CKEDITOR.dom.domObject
|
||||
* @param {Object} domWindow A native DOM window.
|
||||
* @example
|
||||
* var document = new CKEDITOR.dom.window( window );
|
||||
*/
|
||||
CKEDITOR.dom.window = function( domWindow )
|
||||
{
|
||||
CKEDITOR.dom.domObject.call( this, domWindow );
|
||||
};
|
||||
|
||||
CKEDITOR.dom.window.prototype = new CKEDITOR.dom.domObject();
|
||||
|
||||
CKEDITOR.tools.extend( CKEDITOR.dom.window.prototype,
|
||||
/** @lends CKEDITOR.dom.window.prototype */
|
||||
{
|
||||
/**
|
||||
* Moves the selection focus to this window.
|
||||
* @function
|
||||
* @example
|
||||
* var win = new CKEDITOR.dom.window( window );
|
||||
* <b>win.focus()</b>;
|
||||
*/
|
||||
focus : function()
|
||||
{
|
||||
this.$.focus();
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the width and height of this window's viewable area.
|
||||
* @function
|
||||
* @returns {Object} An object with the "width" and "height"
|
||||
* properties containing the size.
|
||||
* @example
|
||||
* var win = new CKEDITOR.dom.window( window );
|
||||
* var size = <b>win.getViewPaneSize()</b>;
|
||||
* alert( size.width );
|
||||
* alert( size.height );
|
||||
*/
|
||||
getViewPaneSize : function()
|
||||
{
|
||||
var doc = this.$.document,
|
||||
stdMode = doc.compatMode == 'CSS1Compat';
|
||||
return {
|
||||
width : ( stdMode ? doc.documentElement.clientWidth : doc.body.clientWidth ) || 0,
|
||||
height : ( stdMode ? doc.documentElement.clientHeight : doc.body.clientHeight ) || 0
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the current position of the window's scroll.
|
||||
* @function
|
||||
* @returns {Object} An object with the "x" and "y" properties
|
||||
* containing the scroll position.
|
||||
* @example
|
||||
* var win = new CKEDITOR.dom.window( window );
|
||||
* var pos = <b>win.getScrollPosition()</b>;
|
||||
* alert( pos.x );
|
||||
* alert( pos.y );
|
||||
*/
|
||||
getScrollPosition : function()
|
||||
{
|
||||
var $ = this.$;
|
||||
|
||||
if ( 'pageXOffset' in $ )
|
||||
{
|
||||
return {
|
||||
x : $.pageXOffset || 0,
|
||||
y : $.pageYOffset || 0
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
var doc = $.document;
|
||||
return {
|
||||
x : doc.documentElement.scrollLeft || doc.body.scrollLeft || 0,
|
||||
y : doc.documentElement.scrollTop || doc.body.scrollTop || 0
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
200
UI/WebServerResources/ckeditor/_source/core/dtd.js
Normal file
200
UI/WebServerResources/ckeditor/_source/core/dtd.js
Normal file
@@ -0,0 +1,200 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.dtd} object, which holds the DTD
|
||||
* mapping for XHTML 1.0 Transitional. This file was automatically
|
||||
* generated from the file: xhtml1-transitional.dtd.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Holds and object representation of the HTML DTD to be used by the editor in
|
||||
* its internal operations.
|
||||
*
|
||||
* Each element in the DTD is represented by a
|
||||
* property in this object. Each property contains the list of elements that
|
||||
* can be contained by the element. Text is represented by the "#" property.
|
||||
*
|
||||
* Several special grouping properties are also available. Their names start
|
||||
* with the "$" character.
|
||||
* @namespace
|
||||
* @example
|
||||
* // Check if "div" can be contained in a "p" element.
|
||||
* alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] ); "false"
|
||||
* @example
|
||||
* // Check if "p" can be contained in a "div" element.
|
||||
* alert( !!CKEDITOR.dtd[ 'div' ][ 'p' ] ); "true"
|
||||
* @example
|
||||
* // Check if "p" is a block element.
|
||||
* alert( !!CKEDITOR.dtd.$block[ 'p' ] ); "true"
|
||||
*/
|
||||
CKEDITOR.dtd = (function()
|
||||
{
|
||||
var X = CKEDITOR.tools.extend,
|
||||
|
||||
A = {isindex:1,fieldset:1},
|
||||
B = {input:1,button:1,select:1,textarea:1,label:1},
|
||||
C = X({a:1},B),
|
||||
D = X({iframe:1},C),
|
||||
E = {hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},
|
||||
F = {ins:1,del:1,script:1},
|
||||
G = X({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},F),
|
||||
H = X({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},G),
|
||||
I = X({p:1},H),
|
||||
J = X({iframe:1},H,B),
|
||||
K = {img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},
|
||||
|
||||
L = X({a:1},J),
|
||||
M = {tr:1},
|
||||
N = {'#':1},
|
||||
O = X({param:1},K),
|
||||
P = X({form:1},A,D,E,I),
|
||||
Q = {li:1};
|
||||
|
||||
var block = {address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
|
||||
|
||||
return /** @lends CKEDITOR.dtd */ {
|
||||
|
||||
// The "$" items have been added manually.
|
||||
|
||||
/**
|
||||
* List of block elements, like "p" or "div".
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$block : block,
|
||||
|
||||
$body : X({script:1}, block),
|
||||
|
||||
$cdata : {script:1,style:1},
|
||||
|
||||
/**
|
||||
* List of empty (self-closing) elements, like "br" or "img".
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$empty : {area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},
|
||||
|
||||
/**
|
||||
* List of list item elements, like "li" or "dd".
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$listItem : {dd:1,dt:1,li:1},
|
||||
|
||||
/**
|
||||
* Elements that accept text nodes, but are not possible to edit into
|
||||
* the browser.
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1},
|
||||
|
||||
/**
|
||||
* List of elements that can be ignored if empty, like "b" or "span".
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$removeEmpty : {abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},
|
||||
|
||||
/**
|
||||
* List of elements that have tabindex set to zero by default.
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$tabIndex : {a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},
|
||||
|
||||
/**
|
||||
* List of elements used inside the "table" element, like "tbody" or "td".
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
$tableContent : {caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},
|
||||
|
||||
col : {},
|
||||
tr : {td:1,th:1},
|
||||
img : {},
|
||||
colgroup : {col:1},
|
||||
noscript : P,
|
||||
td : P,
|
||||
br : {},
|
||||
th : P,
|
||||
center : P,
|
||||
kbd : L,
|
||||
button : X(I,E),
|
||||
basefont : {},
|
||||
h5 : L,
|
||||
h4 : L,
|
||||
samp : L,
|
||||
h6 : L,
|
||||
ol : Q,
|
||||
h1 : L,
|
||||
h3 : L,
|
||||
option : N,
|
||||
h2 : L,
|
||||
form : X(A,D,E,I),
|
||||
select : {optgroup:1,option:1},
|
||||
font : L,
|
||||
ins : P,
|
||||
menu : Q,
|
||||
abbr : L,
|
||||
label : L,
|
||||
table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},
|
||||
code : L,
|
||||
script : N,
|
||||
tfoot : M,
|
||||
cite : L,
|
||||
li : P,
|
||||
input : {},
|
||||
iframe : P,
|
||||
strong : L,
|
||||
textarea : N,
|
||||
noframes : P,
|
||||
big : L,
|
||||
small : L,
|
||||
span : L,
|
||||
hr : {},
|
||||
dt : L,
|
||||
sub : L,
|
||||
optgroup : {option:1},
|
||||
param : {},
|
||||
bdo : L,
|
||||
'var' : L,
|
||||
div : P,
|
||||
object : O,
|
||||
sup : L,
|
||||
dd : P,
|
||||
strike : L,
|
||||
area : {},
|
||||
dir : Q,
|
||||
map : X({area:1,form:1,p:1},A,F,E),
|
||||
applet : O,
|
||||
dl : {dt:1,dd:1},
|
||||
del : P,
|
||||
isindex : {},
|
||||
fieldset : X({legend:1},K),
|
||||
thead : M,
|
||||
ul : Q,
|
||||
acronym : L,
|
||||
b : L,
|
||||
a : J,
|
||||
blockquote : P,
|
||||
caption : L,
|
||||
i : L,
|
||||
u : L,
|
||||
tbody : M,
|
||||
s : L,
|
||||
address : X(D,I),
|
||||
tt : L,
|
||||
legend : L,
|
||||
q : L,
|
||||
pre : X(G,C),
|
||||
p : L,
|
||||
em : L,
|
||||
dfn : L
|
||||
};
|
||||
})();
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.dtd )
|
||||
639
UI/WebServerResources/ckeditor/_source/core/editor.js
Normal file
639
UI/WebServerResources/ckeditor/_source/core/editor.js
Normal file
@@ -0,0 +1,639 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.editor} class, which represents an
|
||||
* editor instance.
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
// The counter for automatic instance names.
|
||||
var nameCounter = 0;
|
||||
|
||||
var getNewName = function()
|
||||
{
|
||||
var name = 'editor' + ( ++nameCounter );
|
||||
return ( CKEDITOR.instances && CKEDITOR.instances[ name ] ) ? getNewName() : name;
|
||||
};
|
||||
|
||||
// ##### START: Config Privates
|
||||
|
||||
// These function loads custom configuration files and cache the
|
||||
// CKEDITOR.editorConfig functions defined on them, so there is no need to
|
||||
// download them more than once for several instances.
|
||||
var loadConfigLoaded = {};
|
||||
var loadConfig = function( editor )
|
||||
{
|
||||
var customConfig = editor.config.customConfig;
|
||||
|
||||
// Check if there is a custom config to load.
|
||||
if ( !customConfig )
|
||||
return false;
|
||||
|
||||
var loadedConfig = loadConfigLoaded[ customConfig ] || ( loadConfigLoaded[ customConfig ] = {} );
|
||||
|
||||
// If the custom config has already been downloaded, reuse it.
|
||||
if ( loadedConfig.fn )
|
||||
{
|
||||
// Call the cached CKEDITOR.editorConfig defined in the custom
|
||||
// config file for the editor instance depending on it.
|
||||
loadedConfig.fn.call( editor, editor.config );
|
||||
|
||||
// If there is no other customConfig in the chain, fire the
|
||||
// "configLoaded" event.
|
||||
if ( editor.config.customConfig == customConfig || !loadConfig( editor ) )
|
||||
editor.fireOnce( 'customConfigLoaded' );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Load the custom configuration file.
|
||||
CKEDITOR.scriptLoader.load( customConfig, function()
|
||||
{
|
||||
// If the CKEDITOR.editorConfig function has been properly
|
||||
// defined in the custom configuration file, cache it.
|
||||
if ( CKEDITOR.editorConfig )
|
||||
loadedConfig.fn = CKEDITOR.editorConfig;
|
||||
else
|
||||
loadedConfig.fn = function(){};
|
||||
|
||||
// Call the load config again. This time the custom
|
||||
// config is already cached and so it will get loaded.
|
||||
loadConfig( editor );
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
var initConfig = function( editor, instanceConfig )
|
||||
{
|
||||
// Setup the lister for the "customConfigLoaded" event.
|
||||
editor.on( 'customConfigLoaded', function()
|
||||
{
|
||||
if ( instanceConfig )
|
||||
{
|
||||
// Register the events that may have been set at the instance
|
||||
// configuration object.
|
||||
if ( instanceConfig.on )
|
||||
{
|
||||
for ( var eventName in instanceConfig.on )
|
||||
{
|
||||
editor.on( eventName, instanceConfig.on[ eventName ] );
|
||||
}
|
||||
}
|
||||
|
||||
// Overwrite the settings from the in-page config.
|
||||
CKEDITOR.tools.extend( editor.config, instanceConfig, true );
|
||||
|
||||
delete editor.config.on;
|
||||
}
|
||||
|
||||
onConfigLoaded( editor );
|
||||
});
|
||||
|
||||
// The instance config may override the customConfig setting to avoid
|
||||
// loading the default ~/config.js file.
|
||||
if ( instanceConfig && instanceConfig.customConfig != undefined )
|
||||
editor.config.customConfig = instanceConfig.customConfig;
|
||||
|
||||
// Load configs from the custom configuration files.
|
||||
if ( !loadConfig( editor ) )
|
||||
editor.fireOnce( 'customConfigLoaded' );
|
||||
};
|
||||
|
||||
// ##### END: Config Privates
|
||||
|
||||
var onConfigLoaded = function( editor )
|
||||
{
|
||||
// Set config related properties.
|
||||
|
||||
var skin = editor.config.skin.split( ',' ),
|
||||
skinName = skin[ 0 ],
|
||||
skinPath = CKEDITOR.getUrl( skin[ 1 ] || (
|
||||
'skins/' + skinName + '/' ) );
|
||||
|
||||
editor.skinName = skinName;
|
||||
editor.skinPath = skinPath;
|
||||
editor.skinClass = 'cke_skin_' + skinName;
|
||||
|
||||
// Fire the "configLoaded" event.
|
||||
editor.fireOnce( 'configLoaded' );
|
||||
|
||||
// Load language file.
|
||||
loadLang( editor );
|
||||
};
|
||||
|
||||
var loadLang = function( editor )
|
||||
{
|
||||
CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang )
|
||||
{
|
||||
editor.langCode = languageCode;
|
||||
|
||||
// As we'll be adding plugin specific entries that could come
|
||||
// from different language code files, we need a copy of lang,
|
||||
// not a direct reference to it.
|
||||
editor.lang = CKEDITOR.tools.prototypedCopy( lang );
|
||||
|
||||
// We're not able to support RTL in Firefox 2 at this time.
|
||||
if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' )
|
||||
editor.lang.dir = 'ltr';
|
||||
|
||||
loadPlugins( editor );
|
||||
});
|
||||
};
|
||||
|
||||
var loadPlugins = function( editor )
|
||||
{
|
||||
var config = editor.config,
|
||||
plugins = config.plugins,
|
||||
extraPlugins = config.extraPlugins,
|
||||
removePlugins = config.removePlugins;
|
||||
|
||||
if ( extraPlugins )
|
||||
{
|
||||
// Remove them first to avoid duplications.
|
||||
var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
|
||||
plugins = plugins.replace( removeRegex, '' );
|
||||
|
||||
plugins += ',' + extraPlugins;
|
||||
}
|
||||
|
||||
if ( removePlugins )
|
||||
{
|
||||
removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' );
|
||||
plugins = plugins.replace( removeRegex, '' );
|
||||
}
|
||||
|
||||
// Load all plugins defined in the "plugins" setting.
|
||||
CKEDITOR.plugins.load( plugins.split( ',' ), function( plugins )
|
||||
{
|
||||
// The list of plugins.
|
||||
var pluginsArray = [];
|
||||
|
||||
// The language code to get loaded for each plugin. Null
|
||||
// entries will be appended for plugins with no language files.
|
||||
var languageCodes = [];
|
||||
|
||||
// The list of URLs to language files.
|
||||
var languageFiles = [];
|
||||
|
||||
// Cache the loaded plugin names.
|
||||
editor.plugins = plugins;
|
||||
|
||||
// Loop through all plugins, to build the list of language
|
||||
// files to get loaded.
|
||||
for ( var pluginName in plugins )
|
||||
{
|
||||
var plugin = plugins[ pluginName ],
|
||||
pluginLangs = plugin.lang,
|
||||
pluginPath = CKEDITOR.plugins.getPath( pluginName ),
|
||||
lang = null;
|
||||
|
||||
// Set the plugin path in the plugin.
|
||||
plugin.path = pluginPath;
|
||||
|
||||
// If the plugin has "lang".
|
||||
if ( pluginLangs )
|
||||
{
|
||||
// Resolve the plugin language. If the current language
|
||||
// is not available, get the first one (default one).
|
||||
lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] );
|
||||
|
||||
if ( !plugin.lang[ lang ] )
|
||||
{
|
||||
// Put the language file URL into the list of files to
|
||||
// get downloaded.
|
||||
languageFiles.push( CKEDITOR.getUrl( pluginPath + 'lang/' + lang + '.js' ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
CKEDITOR.tools.extend( editor.lang, plugin.lang[ lang ] );
|
||||
lang = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Save the language code, so we know later which
|
||||
// language has been resolved to this plugin.
|
||||
languageCodes.push( lang );
|
||||
|
||||
pluginsArray.push( plugin );
|
||||
}
|
||||
|
||||
// Load all plugin specific language files in a row.
|
||||
CKEDITOR.scriptLoader.load( languageFiles, function()
|
||||
{
|
||||
// Initialize all plugins that have the "beforeInit" and "init" methods defined.
|
||||
var methods = [ 'beforeInit', 'init', 'afterInit' ];
|
||||
for ( var m = 0 ; m < methods.length ; m++ )
|
||||
{
|
||||
for ( var i = 0 ; i < pluginsArray.length ; i++ )
|
||||
{
|
||||
var plugin = pluginsArray[ i ];
|
||||
|
||||
// Uses the first loop to update the language entries also.
|
||||
if ( m === 0 && languageCodes[ i ] && plugin.lang )
|
||||
CKEDITOR.tools.extend( editor.lang, plugin.lang[ languageCodes[ i ] ] );
|
||||
|
||||
// Call the plugin method (beforeInit and init).
|
||||
if ( plugin[ methods[ m ] ] )
|
||||
plugin[ methods[ m ] ]( editor );
|
||||
}
|
||||
}
|
||||
|
||||
// Load the editor skin.
|
||||
editor.fire( 'pluginsLoaded' );
|
||||
loadSkin( editor );
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var loadSkin = function( editor )
|
||||
{
|
||||
CKEDITOR.skins.load( editor, 'editor', function()
|
||||
{
|
||||
loadTheme( editor );
|
||||
});
|
||||
};
|
||||
|
||||
var loadTheme = function( editor )
|
||||
{
|
||||
var theme = editor.config.theme;
|
||||
CKEDITOR.themes.load( theme, function()
|
||||
{
|
||||
var editorTheme = editor.theme = CKEDITOR.themes.get( theme );
|
||||
editorTheme.path = CKEDITOR.themes.getPath( theme );
|
||||
editorTheme.build( editor );
|
||||
|
||||
if ( editor.config.autoUpdateElement )
|
||||
attachToForm( editor );
|
||||
});
|
||||
};
|
||||
|
||||
var attachToForm = function( editor )
|
||||
{
|
||||
var element = editor.element;
|
||||
|
||||
// If are replacing a textarea, we must
|
||||
if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.is( 'textarea' ) )
|
||||
{
|
||||
var form = element.$.form && new CKEDITOR.dom.element( element.$.form );
|
||||
if ( form )
|
||||
{
|
||||
form.on( 'submit', function()
|
||||
{
|
||||
editor.updateElement();
|
||||
});
|
||||
|
||||
// Setup the submit function because it doesn't fire the
|
||||
// "submit" event.
|
||||
if ( !form.$.submit.nodeName )
|
||||
{
|
||||
form.$.submit = CKEDITOR.tools.override( form.$.submit, function( originalSubmit )
|
||||
{
|
||||
return function()
|
||||
{
|
||||
editor.updateElement();
|
||||
|
||||
// For IE, the DOM submit function is not a
|
||||
// function, so we need thid check.
|
||||
if ( originalSubmit.apply )
|
||||
originalSubmit.apply( this, arguments );
|
||||
else
|
||||
originalSubmit();
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function updateCommandsMode()
|
||||
{
|
||||
var command,
|
||||
commands = this._.commands,
|
||||
mode = this.mode;
|
||||
|
||||
for ( var name in commands )
|
||||
{
|
||||
command = commands[ name ];
|
||||
command[ command.modes[ mode ] ? 'enable' : 'disable' ]();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the editor instance. This function is called by the editor
|
||||
* contructor (editor_basic.js).
|
||||
* @private
|
||||
*/
|
||||
CKEDITOR.editor.prototype._init = function()
|
||||
{
|
||||
// Get the properties that have been saved in the editor_base
|
||||
// implementation.
|
||||
var element = CKEDITOR.dom.element.get( this._.element ),
|
||||
instanceConfig = this._.instanceConfig;
|
||||
delete this._.element;
|
||||
delete this._.instanceConfig;
|
||||
|
||||
this._.commands = {};
|
||||
this._.styles = [];
|
||||
|
||||
/**
|
||||
* The DOM element that has been replaced by this editor instance. This
|
||||
* element holds the editor data on load and post.
|
||||
* @name CKEDITOR.editor.prototype.element
|
||||
* @type CKEDITOR.dom.element
|
||||
* @example
|
||||
* var editor = CKEDITOR.instances.editor1;
|
||||
* alert( <b>editor.element</b>.getName() ); "textarea"
|
||||
*/
|
||||
this.element = element;
|
||||
|
||||
/**
|
||||
* The editor instance name. It hay be the replaced element id, name or
|
||||
* a default name using a progressive counter (editor1, editor2, ...).
|
||||
* @name CKEDITOR.editor.prototype.name
|
||||
* @type String
|
||||
* @example
|
||||
* var editor = CKEDITOR.instances.editor1;
|
||||
* alert( <b>editor.name</b> ); "editor1"
|
||||
*/
|
||||
this.name = ( element && ( this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
||||
&& ( element.getId() || element.getNameAtt() ) )
|
||||
|| getNewName();
|
||||
|
||||
/**
|
||||
* The configurations for this editor instance. It inherits all
|
||||
* settings defined in (@link CKEDITOR.config}, combined with settings
|
||||
* loaded from custom configuration files and those defined inline in
|
||||
* the page when creating the editor.
|
||||
* @name CKEDITOR.editor.prototype.config
|
||||
* @type Object
|
||||
* @example
|
||||
* var editor = CKEDITOR.instances.editor1;
|
||||
* alert( <b>editor.config.theme</b> ); "default" e.g.
|
||||
*/
|
||||
this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config );
|
||||
|
||||
/**
|
||||
* Namespace containing UI features related to this editor instance.
|
||||
* @name CKEDITOR.editor.prototype.ui
|
||||
* @type CKEDITOR.ui
|
||||
* @example
|
||||
*/
|
||||
this.ui = new CKEDITOR.ui( this );
|
||||
|
||||
/**
|
||||
* Controls the focus state of this editor instance. This property
|
||||
* is rarely used for normal API operations. It is mainly
|
||||
* destinated to developer adding UI elements to the editor interface.
|
||||
* @name CKEDITOR.editor.prototype.focusManager
|
||||
* @type CKEDITOR.focusManager
|
||||
* @example
|
||||
*/
|
||||
this.focusManager = new CKEDITOR.focusManager( this );
|
||||
|
||||
CKEDITOR.fire( 'instanceCreated', null, this );
|
||||
|
||||
this.on( 'mode', updateCommandsMode, null, null, 1 );
|
||||
|
||||
initConfig( this, instanceConfig );
|
||||
};
|
||||
})();
|
||||
|
||||
CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
|
||||
/** @lends CKEDITOR.editor.prototype */
|
||||
{
|
||||
/**
|
||||
* Adds a command definition to the editor instance. Commands added with
|
||||
* this function can be later executed with {@link #execCommand}.
|
||||
* @param {String} commandName The indentifier name of the command.
|
||||
* @param {CKEDITOR.commandDefinition} commandDefinition The command definition.
|
||||
* @example
|
||||
* editorInstance.addCommand( 'sample',
|
||||
* {
|
||||
* exec : function( editor )
|
||||
* {
|
||||
* alert( 'Executing a command for the editor name "' + editor.name + '"!' );
|
||||
* }
|
||||
* });
|
||||
*/
|
||||
addCommand : function( commandName, commandDefinition )
|
||||
{
|
||||
return this._.commands[ commandName ] = new CKEDITOR.command( this, commandDefinition );
|
||||
},
|
||||
|
||||
addCss : function( css )
|
||||
{
|
||||
this._.styles.push( css );
|
||||
},
|
||||
|
||||
/**
|
||||
* Destroys the editor instance, releasing all resources used by it.
|
||||
* If the editor replaced an element, the element will be recovered.
|
||||
* @param {Boolean} [noUpdate] If the instance is replacing a DOM
|
||||
* element, this parameter indicates whether or not to update the
|
||||
* element with the instance contents.
|
||||
* @example
|
||||
* alert( CKEDITOR.instances.editor1 ); e.g "object"
|
||||
* <b>CKEDITOR.instances.editor1.destroy()</b>;
|
||||
* alert( CKEDITOR.instances.editor1 ); "undefined"
|
||||
*/
|
||||
destroy : function( noUpdate )
|
||||
{
|
||||
if ( !noUpdate )
|
||||
this.updateElement();
|
||||
|
||||
this.theme.destroy( this );
|
||||
CKEDITOR.remove( this );
|
||||
},
|
||||
|
||||
/**
|
||||
* Executes a command.
|
||||
* @param {String} commandName The indentifier name of the command.
|
||||
* @param {Object} [data] Data to be passed to the command
|
||||
* @returns {Boolean} "true" if the command has been successfuly
|
||||
* executed, otherwise "false".
|
||||
* @example
|
||||
* editorInstance.execCommand( 'Bold' );
|
||||
*/
|
||||
execCommand : function( commandName, data )
|
||||
{
|
||||
var command = this.getCommand( commandName );
|
||||
|
||||
var eventData =
|
||||
{
|
||||
name: commandName,
|
||||
commandData: data,
|
||||
command: command
|
||||
};
|
||||
|
||||
if ( command && command.state != CKEDITOR.TRISTATE_DISABLED )
|
||||
{
|
||||
if ( this.fire( 'beforeCommandExec', eventData ) !== true )
|
||||
{
|
||||
eventData.returnValue = command.exec( eventData.commandData );
|
||||
|
||||
// Fire the 'afterCommandExec' immediately if command is synchronous.
|
||||
if ( !command.async && this.fire( 'afterCommandExec', eventData ) !== true )
|
||||
return eventData.returnValue;
|
||||
}
|
||||
}
|
||||
|
||||
// throw 'Unknown command name "' + commandName + '"';
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets one of the registered commands. Note that, after registering a
|
||||
* command definition with addCommand, it is transformed internally
|
||||
* into an instance of {@link CKEDITOR.command}, which will be then
|
||||
* returned by this function.
|
||||
* @param {String} commandName The name of the command to be returned.
|
||||
* This is the same used to register the command with addCommand.
|
||||
* @returns {CKEDITOR.command} The command object identified by the
|
||||
* provided name.
|
||||
*/
|
||||
getCommand : function( commandName )
|
||||
{
|
||||
return this._.commands[ commandName ];
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the editor data. The data will be in raw format. It is the same
|
||||
* data that is posted by the editor.
|
||||
* @type String
|
||||
* @returns (String) The editor data.
|
||||
* @example
|
||||
* if ( CKEDITOR.instances.editor1.<b>getData()</b> == '' )
|
||||
* alert( 'There is no data available' );
|
||||
*/
|
||||
getData : function()
|
||||
{
|
||||
this.fire( 'beforeGetData' );
|
||||
|
||||
var eventData = this._.data;
|
||||
|
||||
if ( typeof eventData != 'string' )
|
||||
{
|
||||
var element = this.element;
|
||||
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
||||
eventData = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
|
||||
else
|
||||
eventData = '';
|
||||
}
|
||||
|
||||
eventData = { dataValue : eventData };
|
||||
|
||||
// Fire "getData" so data manipulation may happen.
|
||||
this.fire( 'getData', eventData );
|
||||
|
||||
return eventData.dataValue;
|
||||
},
|
||||
|
||||
getSnapshot : function()
|
||||
{
|
||||
var data = this.fire( 'getSnapshot' );
|
||||
|
||||
if ( typeof data != 'string' )
|
||||
{
|
||||
var element = this.element;
|
||||
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
||||
data = element.is( 'textarea' ) ? element.getValue() : element.getHtml();
|
||||
}
|
||||
|
||||
return data;
|
||||
},
|
||||
|
||||
loadSnapshot : function( snapshot )
|
||||
{
|
||||
this.fire( 'loadSnapshot', snapshot );
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the editor data. The data must be provided in raw format.
|
||||
* @param {String} data HTML code to replace the curent content in the editor.
|
||||
* @example
|
||||
* CKEDITOR.instances.editor1.<b>setData( '<p>This is the editor data.</p>' )</b>;
|
||||
*/
|
||||
setData : function( data )
|
||||
{
|
||||
// Fire "setData" so data manipulation may happen.
|
||||
var eventData = { dataValue : data };
|
||||
this.fire( 'setData', eventData );
|
||||
|
||||
this._.data = eventData.dataValue;
|
||||
|
||||
this.fire( 'afterSetData', eventData );
|
||||
},
|
||||
|
||||
/**
|
||||
* Inserts HTML into the currently selected position in the editor.
|
||||
* @param {String} data HTML code to be inserted into the editor.
|
||||
* @example
|
||||
* CKEDITOR.instances.editor1.<b>insertHtml( '<p>This is a new paragraph.</p>' )</b>;
|
||||
*/
|
||||
insertHtml : function( data )
|
||||
{
|
||||
this.fire( 'insertHtml', data );
|
||||
},
|
||||
|
||||
/**
|
||||
* Inserts an element into the currently selected position in the
|
||||
* editor.
|
||||
* @param {CKEDITOR.dom.element} element The element to be inserted
|
||||
* into the editor.
|
||||
* @example
|
||||
* var element = CKEDITOR.dom.element.createFromHtml( '<img src="hello.png" border="0" title="Hello" />' );
|
||||
* CKEDITOR.instances.editor1.<b>insertElement( element )</b>;
|
||||
*/
|
||||
insertElement : function( element )
|
||||
{
|
||||
this.fire( 'insertElement', element );
|
||||
},
|
||||
|
||||
checkDirty : function()
|
||||
{
|
||||
return ( this.mayBeDirty && this._.previousValue !== this.getSnapshot() );
|
||||
},
|
||||
|
||||
resetDirty : function()
|
||||
{
|
||||
if ( this.mayBeDirty )
|
||||
this._.previousValue = this.getSnapshot();
|
||||
},
|
||||
|
||||
/**
|
||||
* Updates the <textarea> element that has been replaced by the editor with
|
||||
* the current data available in the editor.
|
||||
* @example
|
||||
* CKEDITOR.instances.editor1.updateElement();
|
||||
* alert( document.getElementById( 'editor1' ).value ); // The current editor data.
|
||||
*/
|
||||
updateElement : function()
|
||||
{
|
||||
var element = this.element;
|
||||
if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
|
||||
{
|
||||
if ( element.is( 'textarea' ) )
|
||||
element.setValue( this.getData() );
|
||||
else
|
||||
element.setHtml( this.getData() );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
CKEDITOR.on( 'loaded', function()
|
||||
{
|
||||
// Run the full initialization for pending editors.
|
||||
var pending = CKEDITOR.editor._pending;
|
||||
if ( pending )
|
||||
{
|
||||
delete CKEDITOR.editor._pending;
|
||||
|
||||
for ( var i = 0 ; i < pending.length ; i++ )
|
||||
pending[ i ]._init();
|
||||
}
|
||||
});
|
||||
178
UI/WebServerResources/ckeditor/_source/core/editor_basic.js
Normal file
178
UI/WebServerResources/ckeditor/_source/core/editor_basic.js
Normal file
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
if ( !CKEDITOR.editor )
|
||||
{
|
||||
/**
|
||||
* No element is linked to the editor instance.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.ELEMENT_MODE_NONE = 0;
|
||||
|
||||
/**
|
||||
* The element is to be replaced by the editor instance.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.ELEMENT_MODE_REPLACE = 1;
|
||||
|
||||
/**
|
||||
* The editor is to be created inside the element.
|
||||
* @constant
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.ELEMENT_MODE_APPENDTO = 2;
|
||||
|
||||
/**
|
||||
* Represents an editor instance. This constructor should be rarely used,
|
||||
* being the {@link CKEDITOR} methods preferible.
|
||||
* @constructor
|
||||
* @param {Object} instanceConfig Configuration values for this specific
|
||||
* instance.
|
||||
* @param {CKEDITOR.dom.element} [element] The element linked to this
|
||||
* instance.
|
||||
* @param {Number} [mode] The mode in which the element is linked to this
|
||||
* instance.
|
||||
* @augments CKEDITOR.event
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.editor = function( instanceConfig, element, mode )
|
||||
{
|
||||
this._ =
|
||||
{
|
||||
// Save the config to be processed later by the full core code.
|
||||
instanceConfig : instanceConfig,
|
||||
element : element
|
||||
};
|
||||
|
||||
/**
|
||||
* The mode in which the {@link #element} is linked to this editor
|
||||
* instance. It can be any of the following values:
|
||||
* <ul>
|
||||
* <li><b>CKEDITOR.ELEMENT_MODE_NONE</b>: No element is linked to the
|
||||
* editor instance.</li>
|
||||
* <li><b>CKEDITOR.ELEMENT_MODE_REPLACE</b>: The element is to be
|
||||
* replaced by the editor instance.</li>
|
||||
* <li><b>CKEDITOR.ELEMENT_MODE_APPENDTO</b>: The editor is to be
|
||||
* created inside the element.</li>
|
||||
* </ul>
|
||||
* @name CKEDITOR.editor.prototype.elementMode
|
||||
* @type Number
|
||||
* @example
|
||||
* var editor = CKEDITOR.replace( 'editor1' );
|
||||
* alert( <b>editor.elementMode</b> ); "1"
|
||||
*/
|
||||
this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE;
|
||||
|
||||
// Call the CKEDITOR.event constructor to initialize this instance.
|
||||
CKEDITOR.event.call( this );
|
||||
|
||||
this._init();
|
||||
};
|
||||
|
||||
/**
|
||||
* Replaces a <textarea> or a DOM element (DIV) with a CKEditor
|
||||
* instance. For textareas, the initial value in the editor will be the
|
||||
* textarea value. For DOM elements, their innerHTML will be used
|
||||
* instead. We recommend using TEXTAREA and DIV elements only. Do not use
|
||||
* this function directly. Use {@link CKEDITOR.replace} instead.
|
||||
* @param {Object|String} elementOrIdOrName The DOM element (textarea), its
|
||||
* ID or name.
|
||||
* @param {Object} [config] The specific configurations to apply to this
|
||||
* editor instance. Configurations set here will override global CKEditor
|
||||
* settings.
|
||||
* @returns {CKEDITOR.editor} The editor instance created.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.editor.replace = function( elementOrIdOrName, config )
|
||||
{
|
||||
var element = elementOrIdOrName;
|
||||
|
||||
if ( typeof element != 'object' )
|
||||
{
|
||||
// Look for the element by id. We accept any kind of element here.
|
||||
element = document.getElementById( elementOrIdOrName );
|
||||
|
||||
// If not found, look for elements by name. In this case we accept only
|
||||
// textareas.
|
||||
if ( !element )
|
||||
{
|
||||
var i = 0,
|
||||
textareasByName = document.getElementsByName( elementOrIdOrName );
|
||||
|
||||
while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' )
|
||||
{ /*jsl:pass*/ }
|
||||
}
|
||||
|
||||
if ( !element )
|
||||
throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.';
|
||||
}
|
||||
|
||||
// Do not replace the textarea right now, just hide it. The effective
|
||||
// replacement will be done by the _init function.
|
||||
element.style.visibility = 'hidden';
|
||||
|
||||
// Create the editor instance.
|
||||
return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE );
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a new editor instance inside a specific DOM element. Do not use
|
||||
* this function directly. Use {@link CKEDITOR.appendTo} instead.
|
||||
* @param {Object|String} elementOrId The DOM element or its ID.
|
||||
* @param {Object} [config] The specific configurations to apply to this
|
||||
* editor instance. Configurations set here will override global CKEditor
|
||||
* settings.
|
||||
* @returns {CKEDITOR.editor} The editor instance created.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.editor.appendTo = function( elementOrId, config )
|
||||
{
|
||||
if ( typeof elementOrId != 'object' )
|
||||
{
|
||||
elementOrId = document.getElementById( elementOrId );
|
||||
|
||||
if ( !elementOrId )
|
||||
throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.';
|
||||
}
|
||||
|
||||
// Create the editor instance.
|
||||
return new CKEDITOR.editor( config, elementOrId, CKEDITOR.ELEMENT_MODE_APPENDTO );
|
||||
};
|
||||
|
||||
CKEDITOR.editor.prototype =
|
||||
{
|
||||
/**
|
||||
* Initializes the editor instance. This function will be overriden by the
|
||||
* full CKEDITOR.editor implementation (editor.js).
|
||||
* @private
|
||||
*/
|
||||
_init : function()
|
||||
{
|
||||
var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] );
|
||||
pending.push( this );
|
||||
},
|
||||
|
||||
// Both fire and fireOnce will always pass this editor instance as the
|
||||
// "editor" param in CKEDITOR.event.fire. So, we override it to do that
|
||||
// automaticaly.
|
||||
|
||||
/** @ignore */
|
||||
fire : function( eventName, data )
|
||||
{
|
||||
return CKEDITOR.event.prototype.fire.call( this, eventName, data, this );
|
||||
},
|
||||
|
||||
/** @ignore */
|
||||
fireOnce : function( eventName, data )
|
||||
{
|
||||
return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this );
|
||||
}
|
||||
};
|
||||
|
||||
// "Inherit" (copy actually) from CKEDITOR.event.
|
||||
CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true );
|
||||
}
|
||||
219
UI/WebServerResources/ckeditor/_source/core/env.js
Normal file
219
UI/WebServerResources/ckeditor/_source/core/env.js
Normal file
@@ -0,0 +1,219 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.env} object, which constains
|
||||
* environment and browser information.
|
||||
*/
|
||||
|
||||
if ( !CKEDITOR.env )
|
||||
{
|
||||
/**
|
||||
* Environment and browser information.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.env = (function()
|
||||
{
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
var opera = window.opera;
|
||||
|
||||
var env =
|
||||
/** @lends CKEDITOR.env */
|
||||
{
|
||||
/**
|
||||
* Indicates that CKEditor is running on Internet Explorer.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.ie )
|
||||
* alert( "I'm on IE!" );
|
||||
*/
|
||||
ie : /*@cc_on!@*/false,
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on Opera.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.opera )
|
||||
* alert( "I'm on Opera!" );
|
||||
*/
|
||||
opera : ( !!opera && opera.version ),
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on a WebKit based browser, like
|
||||
* Safari.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.webkit )
|
||||
* alert( "I'm on WebKit!" );
|
||||
*/
|
||||
webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ),
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on Adobe AIR.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.air )
|
||||
* alert( "I'm on AIR!" );
|
||||
*/
|
||||
air : ( agent.indexOf( ' adobeair/' ) > -1 ),
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on Macintosh.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.mac )
|
||||
* alert( "I love apples!" );
|
||||
*/
|
||||
mac : ( agent.indexOf( 'macintosh' ) > -1 ),
|
||||
|
||||
quirks : ( document.compatMode == 'BackCompat' ),
|
||||
|
||||
isCustomDomain : function()
|
||||
{
|
||||
return this.ie && document.domain != window.location.hostname;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on a Gecko based browser, like
|
||||
* Firefox.
|
||||
* @name CKEDITOR.env.gecko
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.gecko )
|
||||
* alert( "I'm riding a gecko!" );
|
||||
*/
|
||||
env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera );
|
||||
|
||||
var version = 0;
|
||||
|
||||
// Internet Explorer 6.0+
|
||||
if ( env.ie )
|
||||
{
|
||||
version = parseFloat( agent.match( /msie (\d+)/ )[1] );
|
||||
|
||||
/**
|
||||
* Indicate IE8 browser.
|
||||
*/
|
||||
env.ie8 = !!document.documentMode;
|
||||
|
||||
/**
|
||||
* Indicte IE8 document mode.
|
||||
*/
|
||||
env.ie8Compat = document.documentMode == 8;
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on an IE7-like environment, which
|
||||
* includes IE7 itself and IE8's IE7 document mode.
|
||||
* @type Boolean
|
||||
*/
|
||||
env.ie7Compat = ( ( version == 7 && !document.documentMode )
|
||||
|| document.documentMode == 7 );
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on an IE6-like environment, which
|
||||
* includes IE6 itself and IE7 and IE8 quirks mode.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.ie6Compat )
|
||||
* alert( "I'm on IE6 or quirks mode!" );
|
||||
*/
|
||||
env.ie6Compat = ( version < 7 || env.quirks );
|
||||
|
||||
}
|
||||
|
||||
// Gecko.
|
||||
if ( env.gecko )
|
||||
{
|
||||
var geckoRelease = agent.match( /rv:([\d\.]+)/ );
|
||||
if ( geckoRelease )
|
||||
{
|
||||
geckoRelease = geckoRelease[1].split( '.' );
|
||||
version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Opera 9.50+
|
||||
if ( env.opera )
|
||||
version = parseFloat( opera.version() );
|
||||
|
||||
// Adobe AIR 1.0+
|
||||
// Checked before Safari because AIR have the WebKit rich text editor
|
||||
// features from Safari 3.0.4, but the version reported is 420.
|
||||
if ( env.air )
|
||||
version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] );
|
||||
|
||||
// WebKit 522+ (Safari 3+)
|
||||
if ( env.webkit )
|
||||
version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] );
|
||||
|
||||
/**
|
||||
* Contains the browser version.
|
||||
*
|
||||
* For gecko based browsers (like Firefox) it contains the revision
|
||||
* number with first three parts concatenated with a padding zero
|
||||
* (e.g. for revision 1.9.0.2 we have 10900).
|
||||
*
|
||||
* For webkit based browser (like Safari and Chrome) it contains the
|
||||
* WebKit build version (e.g. 522).
|
||||
* @name CKEDITOR.env.version
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.ie && <b>CKEDITOR.env.version</b> <= 6 )
|
||||
* alert( "Ouch!" );
|
||||
*/
|
||||
env.version = version;
|
||||
|
||||
/**
|
||||
* Indicates that CKEditor is running on a compatible browser.
|
||||
* @name CKEDITOR.env.isCompatible
|
||||
* @type Boolean
|
||||
* @example
|
||||
* if ( CKEDITOR.env.isCompatible )
|
||||
* alert( "Your browser is pretty cool!" );
|
||||
*/
|
||||
env.isCompatible =
|
||||
( env.ie && version >= 6 ) ||
|
||||
( env.gecko && version >= 10801 ) ||
|
||||
( env.opera && version >= 9.5 ) ||
|
||||
( env.air && version >= 1 ) ||
|
||||
( env.webkit && version >= 522 ) ||
|
||||
false;
|
||||
|
||||
// The CSS class to be appended on the main UI containers, making it
|
||||
// easy to apply browser specific styles to it.
|
||||
env.cssClass =
|
||||
'cke_browser_' + (
|
||||
env.ie ? 'ie' :
|
||||
env.gecko ? 'gecko' :
|
||||
env.opera ? 'opera' :
|
||||
env.air ? 'air' :
|
||||
env.webkit ? 'webkit' :
|
||||
'unknown' );
|
||||
|
||||
if ( env.quirks )
|
||||
env.cssClass += ' cke_browser_quirks';
|
||||
|
||||
if ( env.ie )
|
||||
{
|
||||
env.cssClass += ' cke_browser_ie' + (
|
||||
env.version < 7 ? '6' :
|
||||
env.version >= 8 ? '8' :
|
||||
'7' );
|
||||
|
||||
if ( env.quirks )
|
||||
env.cssClass += ' cke_browser_iequirks';
|
||||
}
|
||||
|
||||
if ( env.gecko && version < 10900 )
|
||||
env.cssClass += ' cke_browser_gecko18';
|
||||
|
||||
return env;
|
||||
})();
|
||||
}
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.env )
|
||||
// PACKAGER_RENAME( CKEDITOR.env.ie )
|
||||
335
UI/WebServerResources/ckeditor/_source/core/event.js
Normal file
335
UI/WebServerResources/ckeditor/_source/core/event.js
Normal file
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.event} class, which serves as the
|
||||
* base for classes and objects that require event handling features.
|
||||
*/
|
||||
|
||||
if ( !CKEDITOR.event )
|
||||
{
|
||||
/**
|
||||
* This is a base class for classes and objects that require event handling
|
||||
* features.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.event = function()
|
||||
{};
|
||||
|
||||
/**
|
||||
* Implements the {@link CKEDITOR.event} features in an object.
|
||||
* @param {Object} targetObject The object in which implement the features.
|
||||
* @example
|
||||
* var myObject = { message : 'Example' };
|
||||
* <b>CKEDITOR.event.implementOn( myObject }</b>;
|
||||
* myObject.on( 'testEvent', function()
|
||||
* {
|
||||
* alert( this.message ); // "Example"
|
||||
* });
|
||||
* myObject.fire( 'testEvent' );
|
||||
*/
|
||||
CKEDITOR.event.implementOn = function( targetObject, isTargetPrototype )
|
||||
{
|
||||
var eventProto = CKEDITOR.event.prototype;
|
||||
|
||||
for ( var prop in eventProto )
|
||||
{
|
||||
if ( targetObject[ prop ] == undefined )
|
||||
targetObject[ prop ] = eventProto[ prop ];
|
||||
}
|
||||
};
|
||||
|
||||
CKEDITOR.event.prototype = (function()
|
||||
{
|
||||
// Returns the private events object for a given object.
|
||||
var getPrivate = function( obj )
|
||||
{
|
||||
var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} );
|
||||
return _.events || ( _.events = {} );
|
||||
};
|
||||
|
||||
var eventEntry = function( eventName )
|
||||
{
|
||||
this.name = eventName;
|
||||
this.listeners = [];
|
||||
};
|
||||
|
||||
eventEntry.prototype =
|
||||
{
|
||||
// Get the listener index for a specified function.
|
||||
// Returns -1 if not found.
|
||||
getListenerIndex : function( listenerFunction )
|
||||
{
|
||||
for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ )
|
||||
{
|
||||
if ( listeners[i].fn == listenerFunction )
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
||||
return /** @lends CKEDITOR.event.prototype */ {
|
||||
/**
|
||||
* Registers a listener to a specific event in the current object.
|
||||
* @param {String} eventName The event name to which listen.
|
||||
* @param {Function} listenerFunction The function listening to the
|
||||
* event.
|
||||
* @param {Object} [scopeObj] The object used to scope the listener
|
||||
* call (the this object. If omitted, the current object is used.
|
||||
* @param {Object} [listenerData] Data to be sent as the
|
||||
* {@link CKEDITOR.eventInfo#listenerData} when calling the
|
||||
* listener.
|
||||
* @param {Number} [priority] The listener priority. Lower priority
|
||||
* listeners are called first. Listeners with the same priority
|
||||
* value are called in registration order. Defaults to 10.
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function()
|
||||
* {
|
||||
* alert( this == someObject ); // "true"
|
||||
* });
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function()
|
||||
* {
|
||||
* alert( this == anotherObject ); // "true"
|
||||
* }
|
||||
* , anotherObject );
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( event.listenerData ); // "Example"
|
||||
* }
|
||||
* , null, 'Example' );
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function() { ... } ); // 2nd called
|
||||
* someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called
|
||||
* someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called
|
||||
*/
|
||||
on : function( eventName, listenerFunction, scopeObj, listenerData, priority )
|
||||
{
|
||||
// Get the event entry (create it if needed).
|
||||
var events = getPrivate( this ),
|
||||
event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) );
|
||||
|
||||
if ( event.getListenerIndex( listenerFunction ) < 0 )
|
||||
{
|
||||
// Get the listeners.
|
||||
var listeners = event.listeners;
|
||||
|
||||
// Fill the scope.
|
||||
if ( !scopeObj )
|
||||
scopeObj = this;
|
||||
|
||||
// Default the priority, if needed.
|
||||
if ( isNaN( priority ) )
|
||||
priority = 10;
|
||||
|
||||
var me = this;
|
||||
|
||||
// Create the function to be fired for this listener.
|
||||
var listenerFirer = function( editor, publisherData, stopFn, cancelFn )
|
||||
{
|
||||
var ev =
|
||||
{
|
||||
name : eventName,
|
||||
sender : this,
|
||||
editor : editor,
|
||||
data : publisherData,
|
||||
listenerData : listenerData,
|
||||
stop : stopFn,
|
||||
cancel : cancelFn,
|
||||
removeListener : function()
|
||||
{
|
||||
me.removeListener( eventName, listenerFunction );
|
||||
}
|
||||
};
|
||||
|
||||
listenerFunction.call( scopeObj, ev );
|
||||
|
||||
return ev.data;
|
||||
};
|
||||
listenerFirer.fn = listenerFunction;
|
||||
listenerFirer.priority = priority;
|
||||
|
||||
// Search for the right position for this new listener, based on its
|
||||
// priority.
|
||||
for ( var i = listeners.length - 1 ; i >= 0 ; i-- )
|
||||
{
|
||||
// Find the item which should be before the new one.
|
||||
if ( listeners[ i ].priority <= priority )
|
||||
{
|
||||
// Insert the listener in the array.
|
||||
listeners.splice( i + 1, 0, listenerFirer );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// If no position has been found (or zero length), put it in
|
||||
// the front of list.
|
||||
listeners.unshift( listenerFirer );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Fires an specific event in the object. All registered listeners are
|
||||
* called at this point.
|
||||
* @function
|
||||
* @param {String} eventName The event name to fire.
|
||||
* @param {Object} [data] Data to be sent as the
|
||||
* {@link CKEDITOR.eventInfo#data} when calling the
|
||||
* listeners.
|
||||
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
|
||||
* {@link CKEDITOR.eventInfo#editor} when calling the
|
||||
* listener.
|
||||
* @returns {Boolean|Object} A booloan indicating that the event is to be
|
||||
* canceled, or data returned by one of the listeners.
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function() { ... } );
|
||||
* someObject.on( 'someEvent', function() { ... } );
|
||||
* <b>someObject.fire( 'someEvent' )</b>; // both listeners are called
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( event.data ); // "Example"
|
||||
* });
|
||||
* <b>someObject.fire( 'someEvent', 'Example' )</b>;
|
||||
*/
|
||||
fire : (function()
|
||||
{
|
||||
// Create the function that marks the event as stopped.
|
||||
var stopped = false;
|
||||
var stopEvent = function()
|
||||
{
|
||||
stopped = true;
|
||||
};
|
||||
|
||||
// Create the function that marks the event as canceled.
|
||||
var canceled = false;
|
||||
var cancelEvent = function()
|
||||
{
|
||||
canceled = true;
|
||||
};
|
||||
|
||||
return function( eventName, data, editor )
|
||||
{
|
||||
// Get the event entry.
|
||||
var event = getPrivate( this )[ eventName ];
|
||||
|
||||
// Save the previous stopped and cancelled states. We may
|
||||
// be nesting fire() calls.
|
||||
var previousStopped = stopped,
|
||||
previousCancelled = canceled;
|
||||
|
||||
// Reset the stopped and canceled flags.
|
||||
stopped = canceled = false;
|
||||
|
||||
if ( event )
|
||||
{
|
||||
var listeners = event.listeners;
|
||||
|
||||
if ( listeners.length )
|
||||
{
|
||||
// As some listeners may remove themselves from the
|
||||
// event, the original array length is dinamic. So,
|
||||
// let's make a copy of all listeners, so we are
|
||||
// sure we'll call all of them.
|
||||
listeners = listeners.slice( 0 );
|
||||
|
||||
// Loop through all listeners.
|
||||
for ( var i = 0 ; i < listeners.length ; i++ )
|
||||
{
|
||||
// Call the listener, passing the event data.
|
||||
var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent );
|
||||
|
||||
if ( typeof retData != 'undefined' )
|
||||
data = retData;
|
||||
|
||||
// No further calls is stopped or canceled.
|
||||
if ( stopped || canceled )
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var ret = canceled || ( typeof data == 'undefined' ? false : data );
|
||||
|
||||
// Restore the previous stopped and canceled states.
|
||||
stopped = previousStopped;
|
||||
canceled = previousCancelled;
|
||||
|
||||
return ret;
|
||||
};
|
||||
})(),
|
||||
|
||||
/**
|
||||
* Fires an specific event in the object, releasing all listeners
|
||||
* registered to that event. The same listeners are not called again on
|
||||
* successive calls of it or of {@link #fire}.
|
||||
* @param {String} eventName The event name to fire.
|
||||
* @param {Object} [data] Data to be sent as the
|
||||
* {@link CKEDITOR.eventInfo#data} when calling the
|
||||
* listeners.
|
||||
* @param {CKEDITOR.editor} [editor] The editor instance to send as the
|
||||
* {@link CKEDITOR.eventInfo#editor} when calling the
|
||||
* listener.
|
||||
* @returns {Boolean|Object} A booloan indicating that the event is to be
|
||||
* canceled, or data returned by one of the listeners.
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function() { ... } );
|
||||
* someObject.fire( 'someEvent' ); // above listener called
|
||||
* <b>someObject.fireOnce( 'someEvent' )</b>; // above listener called
|
||||
* someObject.fire( 'someEvent' ); // no listeners called
|
||||
*/
|
||||
fireOnce : function( eventName, data, editor )
|
||||
{
|
||||
var ret = this.fire( eventName, data, editor );
|
||||
delete getPrivate( this )[ eventName ];
|
||||
return ret;
|
||||
},
|
||||
|
||||
/**
|
||||
* Unregisters a listener function from being called at the specified
|
||||
* event. No errors are thrown if the listener has not been
|
||||
* registered previously.
|
||||
* @param {String} eventName The event name.
|
||||
* @param {Function} listenerFunction The listener function to unregister.
|
||||
* @example
|
||||
* var myListener = function() { ... };
|
||||
* someObject.on( 'someEvent', myListener );
|
||||
* someObject.fire( 'someEvent' ); // myListener called
|
||||
* <b>someObject.removeListener( 'someEvent', myListener )</b>;
|
||||
* someObject.fire( 'someEvent' ); // myListener not called
|
||||
*/
|
||||
removeListener : function( eventName, listenerFunction )
|
||||
{
|
||||
// Get the event entry.
|
||||
var event = getPrivate( this )[ eventName ];
|
||||
|
||||
if ( event )
|
||||
{
|
||||
var index = event.getListenerIndex( listenerFunction );
|
||||
if ( index >= 0 )
|
||||
event.listeners.splice( index, 1 );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if there is any listener registered to a given event.
|
||||
* @param {String} eventName The event name.
|
||||
* @example
|
||||
* var myListener = function() { ... };
|
||||
* someObject.on( 'someEvent', myListener );
|
||||
* alert( someObject.<b>hasListeners( 'someEvent' )</b> ); // "true"
|
||||
* alert( someObject.<b>hasListeners( 'noEvent' )</b> ); // "false"
|
||||
*/
|
||||
hasListeners : function( eventName )
|
||||
{
|
||||
var event = getPrivate( this )[ eventName ];
|
||||
return ( event && event.listeners.length > 0 ) ;
|
||||
}
|
||||
};
|
||||
})();
|
||||
}
|
||||
120
UI/WebServerResources/ckeditor/_source/core/eventInfo.js
Normal file
120
UI/WebServerResources/ckeditor/_source/core/eventInfo.js
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the "virtual" {@link CKEDITOR.eventInfo} class, which
|
||||
* contains the defintions of the event object passed to event listeners.
|
||||
* This file is for documentation purposes only.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class is not really part of the API. It just illustrates the features
|
||||
* of the event object passed to event listeners by a {@link CKEDITOR.event}
|
||||
* based object.
|
||||
* @name CKEDITOR.eventInfo
|
||||
* @constructor
|
||||
* @example
|
||||
* // Do not do this.
|
||||
* var myEvent = new CKEDITOR.eventInfo(); // Error: CKEDITOR.eventInfo is undefined
|
||||
*/
|
||||
|
||||
/**
|
||||
* The event name.
|
||||
* @name CKEDITOR.eventInfo.prototype.name
|
||||
* @field
|
||||
* @type String
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( <b>event.name</b> ); // "someEvent"
|
||||
* });
|
||||
* someObject.fire( 'someEvent' );
|
||||
*/
|
||||
|
||||
/**
|
||||
* The object that publishes (sends) the event.
|
||||
* @name CKEDITOR.eventInfo.prototype.sender
|
||||
* @field
|
||||
* @type Object
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( <b>event.sender</b> == someObject ); // "true"
|
||||
* });
|
||||
* someObject.fire( 'someEvent' );
|
||||
*/
|
||||
|
||||
/**
|
||||
* The editor instance that holds the sender. May be the same as sender. May be
|
||||
* null if the sender is not part of an editor instance, like a component
|
||||
* running in standalone mode.
|
||||
* @name CKEDITOR.eventInfo.prototype.editor
|
||||
* @field
|
||||
* @type CKEDITOR.editor
|
||||
* @example
|
||||
* myButton.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( <b>event.editor</b> == myEditor ); // "true"
|
||||
* });
|
||||
* myButton.fire( 'someEvent', null, <b>myEditor</b> );
|
||||
*/
|
||||
|
||||
/**
|
||||
* Any kind of additional data. Its format and usage is event dependent.
|
||||
* @name CKEDITOR.eventInfo.prototype.data
|
||||
* @field
|
||||
* @type Object
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( <b>event.data</b> ); // "Example"
|
||||
* });
|
||||
* someObject.fire( 'someEvent', <b>'Example'</b> );
|
||||
*/
|
||||
|
||||
/**
|
||||
* Any extra data appended during the listener registration.
|
||||
* @name CKEDITOR.eventInfo.prototype.listenerData
|
||||
* @field
|
||||
* @type Object
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* alert( <b>event.listenerData</b> ); // "Example"
|
||||
* }
|
||||
* , null, <b>'Example'</b> );
|
||||
*/
|
||||
|
||||
/**
|
||||
* Indicates that no further listeners are to be called.
|
||||
* @name CKEDITOR.eventInfo.prototype.stop
|
||||
* @function
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* <b>event.stop()</b>;
|
||||
* });
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* // This one will not be called.
|
||||
* });
|
||||
* alert( someObject.fire( 'someEvent' ) ); // "false"
|
||||
*/
|
||||
|
||||
/**
|
||||
* Indicates that the event is to be cancelled (if cancelable).
|
||||
* @name CKEDITOR.eventInfo.prototype.cancel
|
||||
* @function
|
||||
* @example
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* <b>event.cancel()</b>;
|
||||
* });
|
||||
* someObject.on( 'someEvent', function( event )
|
||||
* {
|
||||
* // This one will not be called.
|
||||
* });
|
||||
* alert( someObject.fire( 'someEvent' ) ); // "true"
|
||||
*/
|
||||
123
UI/WebServerResources/ckeditor/_source/core/focusmanager.js
Normal file
123
UI/WebServerResources/ckeditor/_source/core/focusmanager.js
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.focusManager} class, which is used
|
||||
* to handle the focus on editor instances..
|
||||
*/
|
||||
|
||||
/**
|
||||
* Manages the focus activity in an editor instance. This class is to be used
|
||||
* mainly by UI elements coders when adding interface elements to CKEditor.
|
||||
* @constructor
|
||||
* @param {CKEDITOR.editor} editor The editor instance.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.focusManager = function( editor )
|
||||
{
|
||||
if ( editor.focusManager )
|
||||
return editor.focusManager;
|
||||
|
||||
/**
|
||||
* Indicates that the editor instance has focus.
|
||||
* @type Boolean
|
||||
* @example
|
||||
* alert( CKEDITOR.instances.editor1.focusManager.hasFocus ); // e.g "true"
|
||||
*/
|
||||
this.hasFocus = false;
|
||||
|
||||
/**
|
||||
* Object used to hold private stuff.
|
||||
* @private
|
||||
*/
|
||||
this._ =
|
||||
{
|
||||
editor : editor
|
||||
};
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
CKEDITOR.focusManager.prototype =
|
||||
{
|
||||
/**
|
||||
* Indicates that the editor instance has the focus.
|
||||
*
|
||||
* This function is not used to set the focus in the editor. Use
|
||||
* {@link CKEDITOR.editor#focus} for it instead.
|
||||
* @example
|
||||
* var editor = CKEDITOR.instances.editor1;
|
||||
* <b>editor.focusManager.focus()</b>;
|
||||
*/
|
||||
focus : function()
|
||||
{
|
||||
if ( this._.timer )
|
||||
clearTimeout( this._.timer );
|
||||
|
||||
if ( !this.hasFocus )
|
||||
{
|
||||
// If another editor has the current focus, we first "blur" it. In
|
||||
// this way the events happen in a more logical sequence, like:
|
||||
// "focus 1" > "blur 1" > "focus 2"
|
||||
// ... instead of:
|
||||
// "focus 1" > "focus 2" > "blur 1"
|
||||
if ( CKEDITOR.currentInstance )
|
||||
CKEDITOR.currentInstance.focusManager.forceBlur();
|
||||
|
||||
var editor = this._.editor;
|
||||
|
||||
editor.container.getFirst().addClass( 'cke_focus' );
|
||||
|
||||
this.hasFocus = true;
|
||||
editor.fire( 'focus' );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Indicates that the editor instance has lost the focus. Note that this
|
||||
* functions acts asynchronously with a delay of 100ms to avoid subsequent
|
||||
* blur/focus effects. If you want the "blur" to happen immediately, use
|
||||
* the {@link #forceBlur} function instead.
|
||||
* @example
|
||||
* var editor = CKEDITOR.instances.editor1;
|
||||
* <b>editor.focusManager.blur()</b>;
|
||||
*/
|
||||
blur : function()
|
||||
{
|
||||
var focusManager = this;
|
||||
|
||||
if ( focusManager._.timer )
|
||||
clearTimeout( focusManager._.timer );
|
||||
|
||||
focusManager._.timer = setTimeout(
|
||||
function()
|
||||
{
|
||||
delete focusManager._.timer;
|
||||
focusManager.forceBlur();
|
||||
}
|
||||
, 100 );
|
||||
},
|
||||
|
||||
/**
|
||||
* Indicates that the editor instance has lost the focus. Unlike
|
||||
* {@link #blur}, this function is synchronous, marking the instance as
|
||||
* "blured" immediately.
|
||||
* @example
|
||||
* var editor = CKEDITOR.instances.editor1;
|
||||
* <b>editor.focusManager.forceBlur()</b>;
|
||||
*/
|
||||
forceBlur : function()
|
||||
{
|
||||
if ( this.hasFocus )
|
||||
{
|
||||
var editor = this._.editor;
|
||||
|
||||
editor.container.getFirst().removeClass( 'cke_focus' );
|
||||
|
||||
this.hasFocus = false;
|
||||
editor.fire( 'blur' );
|
||||
}
|
||||
}
|
||||
};
|
||||
212
UI/WebServerResources/ckeditor/_source/core/htmlparser.js
Normal file
212
UI/WebServerResources/ckeditor/_source/core/htmlparser.js
Normal file
@@ -0,0 +1,212 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* HTML text parser.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.htmlParser = function()
|
||||
{
|
||||
this._ =
|
||||
{
|
||||
htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^"\'>]+)|(?:"[^"]*")|(?:\'[^\']*\'))*)\\/?>))', 'g' )
|
||||
};
|
||||
};
|
||||
|
||||
(function()
|
||||
{
|
||||
var attribsRegex = /([\w:]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,
|
||||
emptyAttribs = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};
|
||||
|
||||
CKEDITOR.htmlParser.prototype =
|
||||
{
|
||||
/**
|
||||
* Function to be fired when a tag opener is found. This function
|
||||
* should be overriden when using this class.
|
||||
* @param {String} tagName The tag name. The name is guarantted to be
|
||||
* lowercased.
|
||||
* @param {Object} attributes An object containing all tag attributes. Each
|
||||
* property in this object represent and attribute name and its
|
||||
* value is the attribute value.
|
||||
* @param {Boolean} selfClosing true if the tag closes itself, false if the
|
||||
* tag doesn't.
|
||||
* @example
|
||||
* var parser = new CKEDITOR.htmlParser();
|
||||
* parser.onTagOpen = function( tagName, attributes, selfClosing )
|
||||
* {
|
||||
* alert( tagName ); // e.g. "b"
|
||||
* });
|
||||
* parser.parse( "<!-- Example --><b>Hello</b>" );
|
||||
*/
|
||||
onTagOpen : function() {},
|
||||
|
||||
/**
|
||||
* Function to be fired when a tag closer is found. This function
|
||||
* should be overriden when using this class.
|
||||
* @param {String} tagName The tag name. The name is guarantted to be
|
||||
* lowercased.
|
||||
* @example
|
||||
* var parser = new CKEDITOR.htmlParser();
|
||||
* parser.onTagClose = function( tagName )
|
||||
* {
|
||||
* alert( tagName ); // e.g. "b"
|
||||
* });
|
||||
* parser.parse( "<!-- Example --><b>Hello</b>" );
|
||||
*/
|
||||
onTagClose : function() {},
|
||||
|
||||
/**
|
||||
* Function to be fired when text is found. This function
|
||||
* should be overriden when using this class.
|
||||
* @param {String} text The text found.
|
||||
* @example
|
||||
* var parser = new CKEDITOR.htmlParser();
|
||||
* parser.onText = function( text )
|
||||
* {
|
||||
* alert( text ); // e.g. "Hello"
|
||||
* });
|
||||
* parser.parse( "<!-- Example --><b>Hello</b>" );
|
||||
*/
|
||||
onText : function() {},
|
||||
|
||||
/**
|
||||
* Function to be fired when CDATA section is found. This function
|
||||
* should be overriden when using this class.
|
||||
* @param {String} cdata The CDATA been found.
|
||||
* @example
|
||||
* var parser = new CKEDITOR.htmlParser();
|
||||
* parser.onCDATA = function( cdata )
|
||||
* {
|
||||
* alert( cdata ); // e.g. "var hello;"
|
||||
* });
|
||||
* parser.parse( "<script>var hello;</script>" );
|
||||
*/
|
||||
onCDATA : function() {},
|
||||
|
||||
/**
|
||||
* Function to be fired when a commend is found. This function
|
||||
* should be overriden when using this class.
|
||||
* @param {String} comment The comment text.
|
||||
* @example
|
||||
* var parser = new CKEDITOR.htmlParser();
|
||||
* parser.onText = function( comment )
|
||||
* {
|
||||
* alert( comment ); // e.g. " Example "
|
||||
* });
|
||||
* parser.parse( "<!-- Example --><b>Hello</b>" );
|
||||
*/
|
||||
onComment : function() {},
|
||||
|
||||
/**
|
||||
* Parses text, looking for HTML tokens, like tag openers or closers,
|
||||
* or comments. This function fires the onTagOpen, onTagClose, onText
|
||||
* and onComment function during its execution.
|
||||
* @param {String} html The HTML to be parsed.
|
||||
* @example
|
||||
* var parser = new CKEDITOR.htmlParser();
|
||||
* // The onTagOpen, onTagClose, onText and onComment should be overriden
|
||||
* // at this point.
|
||||
* parser.parse( "<!-- Example --><b>Hello</b>" );
|
||||
*/
|
||||
parse : function( html )
|
||||
{
|
||||
var parts,
|
||||
tagName,
|
||||
nextIndex = 0,
|
||||
cdata; // The collected data inside a CDATA section.
|
||||
|
||||
while ( ( parts = this._.htmlPartsRegex.exec( html ) ) )
|
||||
{
|
||||
var tagIndex = parts.index;
|
||||
if ( tagIndex > nextIndex )
|
||||
{
|
||||
var text = html.substring( nextIndex, tagIndex );
|
||||
|
||||
if ( cdata )
|
||||
cdata.push( text );
|
||||
else
|
||||
this.onText( text );
|
||||
}
|
||||
|
||||
nextIndex = this._.htmlPartsRegex.lastIndex;
|
||||
|
||||
/*
|
||||
"parts" is an array with the following items:
|
||||
0 : The entire match for opening/closing tags and comments.
|
||||
1 : Group filled with the tag name for closing tags.
|
||||
2 : Group filled with the comment text.
|
||||
3 : Group filled with the tag name for opening tags.
|
||||
4 : Group filled with the attributes part of opening tags.
|
||||
*/
|
||||
|
||||
// Closing tag
|
||||
if ( ( tagName = parts[ 1 ] ) )
|
||||
{
|
||||
tagName = tagName.toLowerCase();
|
||||
|
||||
if ( cdata && CKEDITOR.dtd.$cdata[ tagName ] )
|
||||
{
|
||||
// Send the CDATA data.
|
||||
this.onCDATA( cdata.join('') );
|
||||
cdata = null;
|
||||
}
|
||||
|
||||
if ( !cdata )
|
||||
{
|
||||
this.onTagClose( tagName );
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// If CDATA is enabled, just save the raw match.
|
||||
if ( cdata )
|
||||
{
|
||||
cdata.push( parts[ 0 ] );
|
||||
continue;
|
||||
}
|
||||
|
||||
// Opening tag
|
||||
if ( ( tagName = parts[ 3 ] ) )
|
||||
{
|
||||
tagName = tagName.toLowerCase();
|
||||
var attribs = {},
|
||||
attribMatch,
|
||||
attribsPart = parts[ 4 ],
|
||||
selfClosing = !!( attribsPart && attribsPart.charAt( attribsPart.length - 1 ) == '/' );
|
||||
|
||||
if ( attribsPart )
|
||||
{
|
||||
while ( ( attribMatch = attribsRegex.exec( attribsPart ) ) )
|
||||
{
|
||||
var attName = attribMatch[1].toLowerCase(),
|
||||
attValue = attribMatch[2] || attribMatch[3] || attribMatch[4] || '';
|
||||
|
||||
if ( !attValue && emptyAttribs[ attName ] )
|
||||
attribs[ attName ] = attName;
|
||||
else
|
||||
attribs[ attName ] = attValue;
|
||||
}
|
||||
}
|
||||
|
||||
this.onTagOpen( tagName, attribs, selfClosing );
|
||||
|
||||
// Open CDATA mode when finding the appropriate tags.
|
||||
if ( !cdata && CKEDITOR.dtd.$cdata[ tagName ] )
|
||||
cdata = [];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
// Comment
|
||||
if( ( tagName = parts[ 2 ] ) )
|
||||
this.onComment( tagName );
|
||||
}
|
||||
|
||||
if ( html.length > nextIndex )
|
||||
this.onText( html.substring( nextIndex, html.length ) );
|
||||
}
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass(
|
||||
{
|
||||
$ : function()
|
||||
{
|
||||
this._ =
|
||||
{
|
||||
output : []
|
||||
};
|
||||
},
|
||||
|
||||
proto :
|
||||
{
|
||||
/**
|
||||
* Writes the tag opening part for a opener tag.
|
||||
* @param {String} tagName The element name for this tag.
|
||||
* @param {Object} attributes The attributes defined for this tag. The
|
||||
* attributes could be used to inspect the tag.
|
||||
* @example
|
||||
* // Writes "<p".
|
||||
* writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } );
|
||||
*/
|
||||
openTag : function( tagName, attributes )
|
||||
{
|
||||
this._.output.push( '<', tagName );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes the tag closing part for a opener tag.
|
||||
* @param {String} tagName The element name for this tag.
|
||||
* @param {Boolean} isSelfClose Indicates that this is a self-closing tag,
|
||||
* like "br" or "img".
|
||||
* @example
|
||||
* // Writes ">".
|
||||
* writer.openTagClose( 'p', false );
|
||||
* @example
|
||||
* // Writes " />".
|
||||
* writer.openTagClose( 'br', true );
|
||||
*/
|
||||
openTagClose : function( tagName, isSelfClose )
|
||||
{
|
||||
if ( isSelfClose )
|
||||
this._.output.push( ' />' );
|
||||
else
|
||||
this._.output.push( '>' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes an attribute. This function should be called after opening the
|
||||
* tag with {@link #openTagClose}.
|
||||
* @param {String} attName The attribute name.
|
||||
* @param {String} attValue The attribute value.
|
||||
* @example
|
||||
* // Writes ' class="MyClass"'.
|
||||
* writer.attribute( 'class', 'MyClass' );
|
||||
*/
|
||||
attribute : function( attName, attValue )
|
||||
{
|
||||
this._.output.push( ' ', attName, '="', attValue, '"' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes a closer tag.
|
||||
* @param {String} tagName The element name for this tag.
|
||||
* @example
|
||||
* // Writes "</p>".
|
||||
* writer.closeTag( 'p' );
|
||||
*/
|
||||
closeTag : function( tagName )
|
||||
{
|
||||
this._.output.push( '</', tagName, '>' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes text.
|
||||
* @param {String} text The text value
|
||||
* @example
|
||||
* // Writes "Hello Word".
|
||||
* writer.text( 'Hello Word' );
|
||||
*/
|
||||
text : function( text )
|
||||
{
|
||||
this._.output.push( text );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes a comment.
|
||||
* @param {String} comment The comment text.
|
||||
* @example
|
||||
* // Writes "<!-- My comment -->".
|
||||
* writer.comment( ' My comment ' );
|
||||
*/
|
||||
comment : function( comment )
|
||||
{
|
||||
this._.output.push( '<!--', comment, '-->' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes any kind of data to the ouput.
|
||||
* @example
|
||||
* writer.write( 'This is an <b>example</b>.' );
|
||||
*/
|
||||
write : function( data )
|
||||
{
|
||||
this._.output.push( data );
|
||||
},
|
||||
|
||||
/**
|
||||
* Empties the current output buffer.
|
||||
* @example
|
||||
* writer.reset();
|
||||
*/
|
||||
reset : function()
|
||||
{
|
||||
this._.output = [];
|
||||
},
|
||||
|
||||
/**
|
||||
* Empties the current output buffer.
|
||||
* @param {Boolean} reset Indicates that the {@link reset} function is to
|
||||
* be automatically called after retrieving the HTML.
|
||||
* @returns {String} The HTML written to the writer so far.
|
||||
* @example
|
||||
* var html = writer.getHtml();
|
||||
*/
|
||||
getHtml : function( reset )
|
||||
{
|
||||
var html = this._.output.join( '' );
|
||||
|
||||
if ( reset )
|
||||
this.reset();
|
||||
|
||||
return html;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
|
||||
/**
|
||||
* A lightweight representation of HTML text.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.htmlParser.cdata = function( value )
|
||||
{
|
||||
/**
|
||||
* The CDATA value.
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
this.value = value;
|
||||
|
||||
};
|
||||
|
||||
CKEDITOR.htmlParser.cdata.prototype =
|
||||
{
|
||||
/**
|
||||
* CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is
|
||||
* a constant value set to {@link CKEDITOR.NODE_TEXT}.
|
||||
* @type Number
|
||||
* @example
|
||||
*/
|
||||
type : CKEDITOR.NODE_TEXT,
|
||||
|
||||
/**
|
||||
* Writes write the CDATA with no special manipulations.
|
||||
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
|
||||
*/
|
||||
writeHtml : function( writer )
|
||||
{
|
||||
writer.write( this.value );
|
||||
}
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* A lightweight representation of an HTML comment.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.htmlParser.comment = function( value )
|
||||
{
|
||||
/**
|
||||
* The comment text.
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
this.value = value;
|
||||
|
||||
/** @private */
|
||||
this._ =
|
||||
{
|
||||
isBlockLike : false
|
||||
};
|
||||
};
|
||||
|
||||
CKEDITOR.htmlParser.comment.prototype =
|
||||
{
|
||||
/**
|
||||
* The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}.
|
||||
* @type Number
|
||||
* @example
|
||||
*/
|
||||
type : CKEDITOR.NODE_COMMENT,
|
||||
|
||||
/**
|
||||
* Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.
|
||||
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
|
||||
* @example
|
||||
*/
|
||||
writeHtml : function( writer, filter )
|
||||
{
|
||||
var comment = this.value;
|
||||
|
||||
if ( filter )
|
||||
{
|
||||
if ( !( comment = filter.onComment( comment ) ) )
|
||||
return;
|
||||
|
||||
if ( typeof comment != 'string' )
|
||||
{
|
||||
comment.writeHtml( writer, filter );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
writer.comment( comment );
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,196 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* A lightweight representation of an HTML element.
|
||||
* @param {String} name The element name.
|
||||
* @param {Object} attributes And object holding all attributes defined for
|
||||
* this element.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.htmlParser.element = function( name, attributes )
|
||||
{
|
||||
/**
|
||||
* The element name.
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
this.name = name;
|
||||
|
||||
/**
|
||||
* Holds the attributes defined for this element.
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
this.attributes = attributes;
|
||||
|
||||
/**
|
||||
* The nodes that are direct children of this element.
|
||||
* @type Array
|
||||
* @example
|
||||
*/
|
||||
this.children = [];
|
||||
|
||||
var dtd = CKEDITOR.dtd,
|
||||
isBlockLike = !!( dtd.$block[ name ] || dtd.$listItem[ name ] || dtd.$tableContent[ name ] ),
|
||||
isEmpty = !!dtd.$empty[ name ];
|
||||
|
||||
this.isEmpty = isEmpty;
|
||||
this.isUnknown = !dtd[ name ];
|
||||
|
||||
/** @private */
|
||||
this._ =
|
||||
{
|
||||
isBlockLike : isBlockLike,
|
||||
hasInlineStarted : isEmpty || !isBlockLike
|
||||
};
|
||||
};
|
||||
|
||||
(function()
|
||||
{
|
||||
// Used to sort attribute entries in an array, where the first element of
|
||||
// each object is the attribute name.
|
||||
var sortAttribs = function( a, b )
|
||||
{
|
||||
a = a[0];
|
||||
b = b[0];
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
};
|
||||
|
||||
CKEDITOR.htmlParser.element.prototype =
|
||||
{
|
||||
/**
|
||||
* The node type. This is a constant value set to {@link CKEDITOR.NODE_ELEMENT}.
|
||||
* @type Number
|
||||
* @example
|
||||
*/
|
||||
type : CKEDITOR.NODE_ELEMENT,
|
||||
|
||||
/**
|
||||
* Adds a node to the element children list.
|
||||
* @param {Object} node The node to be added. It can be any of of the
|
||||
* following types: {@link CKEDITOR.htmlParser.element},
|
||||
* {@link CKEDITOR.htmlParser.text} and
|
||||
* {@link CKEDITOR.htmlParser.comment}.
|
||||
* @function
|
||||
* @example
|
||||
*/
|
||||
add : CKEDITOR.htmlParser.fragment.prototype.add,
|
||||
|
||||
/**
|
||||
* Clone this element.
|
||||
* @returns {CKEDITOR.htmlParser.element} The element clone.
|
||||
* @example
|
||||
*/
|
||||
clone : function()
|
||||
{
|
||||
return new CKEDITOR.htmlParser.element( this.name, this.attributes );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes the element HTML to a CKEDITOR.htmlWriter.
|
||||
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
|
||||
* @example
|
||||
*/
|
||||
writeHtml : function( writer, filter )
|
||||
{
|
||||
var attributes = this.attributes;
|
||||
|
||||
// The "_cke_replacedata" indicates that this element is replacing
|
||||
// a data snippet, which should be outputted as is.
|
||||
if ( attributes._cke_replacedata )
|
||||
{
|
||||
writer.write( attributes._cke_replacedata );
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignore cke: prefixes when writing HTML.
|
||||
var element = this,
|
||||
writeName = element.name,
|
||||
a, value;
|
||||
|
||||
if ( filter )
|
||||
{
|
||||
while ( true )
|
||||
{
|
||||
if ( !( writeName = filter.onElementName( writeName ) ) )
|
||||
return;
|
||||
|
||||
element.name = writeName;
|
||||
|
||||
if ( !( element = filter.onElement( element ) ) )
|
||||
return;
|
||||
|
||||
if ( element.name == writeName )
|
||||
break;
|
||||
|
||||
writeName = element.name;
|
||||
if ( !writeName ) // Send children.
|
||||
{
|
||||
CKEDITOR.htmlParser.fragment.prototype.writeHtml.apply( element, arguments );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// The element may have been changed, so update the local
|
||||
// references.
|
||||
attributes = element.attributes;
|
||||
}
|
||||
|
||||
// Open element tag.
|
||||
writer.openTag( writeName, attributes );
|
||||
|
||||
if ( writer.sortAttributes )
|
||||
{
|
||||
// Copy all attributes to an array.
|
||||
var attribsArray = [];
|
||||
for ( a in attributes )
|
||||
{
|
||||
value = attributes[ a ];
|
||||
|
||||
if ( filter && ( !( a = filter.onAttributeName( a ) ) || ( value = filter.onAttribute( element, a, value ) ) === false ) )
|
||||
continue;
|
||||
|
||||
attribsArray.push( [ a, value ] );
|
||||
}
|
||||
|
||||
// Sort the attributes by name.
|
||||
attribsArray.sort( sortAttribs );
|
||||
|
||||
// Send the attributes.
|
||||
for ( var i = 0, len = attribsArray.length ; i < len ; i++ )
|
||||
{
|
||||
var attrib = attribsArray[ i ];
|
||||
writer.attribute( attrib[0], attrib[1] );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for ( a in attributes )
|
||||
{
|
||||
value = attributes[ a ];
|
||||
|
||||
if ( filter && ( !( a = filter.onAttributeName( a ) ) || ( value = filter.onAttribute( element, a, value ) ) === false ) )
|
||||
continue;
|
||||
|
||||
writer.attribute( a, value );
|
||||
}
|
||||
}
|
||||
|
||||
// Close the tag.
|
||||
writer.openTagClose( writeName, element.isEmpty );
|
||||
|
||||
if ( !element.isEmpty )
|
||||
{
|
||||
// Send children.
|
||||
CKEDITOR.htmlParser.fragment.prototype.writeHtml.apply( element, arguments );
|
||||
|
||||
// Close the element.
|
||||
writer.closeTag( writeName );
|
||||
}
|
||||
}
|
||||
};
|
||||
})();
|
||||
233
UI/WebServerResources/ckeditor/_source/core/htmlparser/filter.js
Normal file
233
UI/WebServerResources/ckeditor/_source/core/htmlparser/filter.js
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
CKEDITOR.htmlParser.filter = CKEDITOR.tools.createClass(
|
||||
{
|
||||
$ : function( rules )
|
||||
{
|
||||
this._ =
|
||||
{
|
||||
elementNames : [],
|
||||
attributeNames : [],
|
||||
elements : { $length : 0 },
|
||||
attributes : { $length : 0 }
|
||||
};
|
||||
|
||||
if ( rules )
|
||||
this.addRules( rules, 10 );
|
||||
},
|
||||
|
||||
proto :
|
||||
{
|
||||
addRules : function( rules, priority )
|
||||
{
|
||||
if ( typeof priority != 'number' )
|
||||
priority = 10;
|
||||
|
||||
// Add the elementNames.
|
||||
addItemsToList( this._.elementNames, rules.elementNames, priority );
|
||||
|
||||
// Add the attributeNames.
|
||||
addItemsToList( this._.attributeNames, rules.attributeNames, priority );
|
||||
|
||||
// Add the elements.
|
||||
addNamedItems( this._.elements, rules.elements, priority );
|
||||
|
||||
// Add the attributes.
|
||||
addNamedItems( this._.attributes, rules.attributes, priority );
|
||||
|
||||
// Add the text.
|
||||
this._.text = transformNamedItem( this._.text, rules.text, priority ) || this._.text;
|
||||
|
||||
// Add the comment.
|
||||
this._.comment = transformNamedItem( this._.comment, rules.comment, priority ) || this._.comment;
|
||||
},
|
||||
|
||||
onElementName : function( name )
|
||||
{
|
||||
return filterName( name, this._.elementNames );
|
||||
},
|
||||
|
||||
onAttributeName : function( name )
|
||||
{
|
||||
return filterName( name, this._.attributeNames );
|
||||
},
|
||||
|
||||
onText : function( text )
|
||||
{
|
||||
var textFilter = this._.text;
|
||||
return textFilter ? textFilter.filter( text ) : text;
|
||||
},
|
||||
|
||||
onComment : function( commentText )
|
||||
{
|
||||
var textFilter = this._.comment;
|
||||
return textFilter ? textFilter.filter( commentText ) : commentText;
|
||||
},
|
||||
|
||||
onElement : function( element )
|
||||
{
|
||||
// We must apply filters set to the specific element name as
|
||||
// well as those set to the generic $ name. So, add both to an
|
||||
// array and process them in a small loop.
|
||||
var filters = [ this._.elements[ element.name ], this._.elements.$ ],
|
||||
filter, ret;
|
||||
|
||||
for ( var i = 0 ; i < 2 ; i++ )
|
||||
{
|
||||
filter = filters[ i ];
|
||||
if ( filter )
|
||||
{
|
||||
ret = filter.filter( element, this );
|
||||
|
||||
if ( ret === false )
|
||||
return null;
|
||||
|
||||
if ( ret && ret != element )
|
||||
return this.onElement( ret );
|
||||
}
|
||||
}
|
||||
|
||||
return element;
|
||||
},
|
||||
|
||||
onAttribute : function( element, name, value )
|
||||
{
|
||||
var filter = this._.attributes[ name ];
|
||||
|
||||
if ( filter )
|
||||
{
|
||||
var ret = filter.filter( value, element, this );
|
||||
|
||||
if ( ret === false )
|
||||
return false;
|
||||
|
||||
if ( typeof ret != 'undefined' )
|
||||
return ret;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function filterName( name, filters )
|
||||
{
|
||||
for ( var i = 0 ; name && i < filters.length ; i++ )
|
||||
{
|
||||
var filter = filters[ i ];
|
||||
name = name.replace( filter[ 0 ], filter[ 1 ] );
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
function addItemsToList( list, items, priority )
|
||||
{
|
||||
var i, j,
|
||||
listLength = list.length,
|
||||
itemsLength = items && items.length;
|
||||
|
||||
if ( itemsLength )
|
||||
{
|
||||
// Find the index to insert the items at.
|
||||
for ( i = 0 ; i < listLength && list[ i ].pri < priority ; i++ )
|
||||
{ /*jsl:pass*/ }
|
||||
|
||||
// Add all new items to the list at the specific index.
|
||||
for ( j = itemsLength - 1 ; j >= 0 ; j-- )
|
||||
{
|
||||
var item = items[ j ];
|
||||
item.pri = priority;
|
||||
list.splice( i, 0, item );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addNamedItems( hashTable, items, priority )
|
||||
{
|
||||
if ( items )
|
||||
{
|
||||
for ( var name in items )
|
||||
{
|
||||
var current = hashTable[ name ];
|
||||
|
||||
hashTable[ name ] =
|
||||
transformNamedItem(
|
||||
current,
|
||||
items[ name ],
|
||||
priority );
|
||||
|
||||
if ( !current )
|
||||
hashTable.$length++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function transformNamedItem( current, item, priority )
|
||||
{
|
||||
if ( item )
|
||||
{
|
||||
item.pri = priority;
|
||||
|
||||
if ( current )
|
||||
{
|
||||
// If the current item is not an Array, transform it.
|
||||
if ( !current.splice )
|
||||
{
|
||||
if ( current.pri > priority )
|
||||
current = [ item, current ];
|
||||
else
|
||||
current = [ current, item ];
|
||||
|
||||
current.filter = callItems;
|
||||
}
|
||||
else
|
||||
addItemsToList( current, item, priority );
|
||||
|
||||
return current;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.filter = item;
|
||||
return item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function callItems( currentEntry )
|
||||
{
|
||||
var isObject = ( typeof currentEntry == 'object' );
|
||||
|
||||
for ( var i = 0 ; i < this.length ; i++ )
|
||||
{
|
||||
var item = this[ i ],
|
||||
ret = item.apply( window, arguments );
|
||||
|
||||
if ( typeof ret != 'undefined' )
|
||||
{
|
||||
if ( ret === false )
|
||||
return false;
|
||||
|
||||
if ( isObject && ret != currentEntry )
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
})();
|
||||
|
||||
// "entities" plugin
|
||||
/*
|
||||
{
|
||||
text : function( text )
|
||||
{
|
||||
// TODO : Process entities.
|
||||
return text.toUpperCase();
|
||||
}
|
||||
};
|
||||
*/
|
||||
@@ -0,0 +1,417 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* A lightweight representation of an HTML DOM structure.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.htmlParser.fragment = function()
|
||||
{
|
||||
/**
|
||||
* The nodes contained in the root of this fragment.
|
||||
* @type Array
|
||||
* @example
|
||||
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
|
||||
* alert( fragment.children.length ); "2"
|
||||
*/
|
||||
this.children = [];
|
||||
|
||||
/**
|
||||
* Get the fragment parent. Should always be null.
|
||||
* @type Object
|
||||
* @default null
|
||||
* @example
|
||||
*/
|
||||
this.parent = null;
|
||||
|
||||
/** @private */
|
||||
this._ =
|
||||
{
|
||||
isBlockLike : true,
|
||||
hasInlineStarted : false
|
||||
};
|
||||
};
|
||||
|
||||
(function()
|
||||
{
|
||||
// Elements which the end tag is marked as optional in the HTML 4.01 DTD
|
||||
// (expect empty elements).
|
||||
var optionalClose = {colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1};
|
||||
|
||||
// Block-level elements whose internal structure should be respected during
|
||||
// parser fixing.
|
||||
var nonBreakingBlocks = CKEDITOR.tools.extend(
|
||||
{table:1,ul:1,ol:1,dl:1},
|
||||
CKEDITOR.dtd.table, CKEDITOR.dtd.ul, CKEDITOR.dtd.ol, CKEDITOR.dtd.dl );
|
||||
|
||||
/**
|
||||
* Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string.
|
||||
* @param {String} fragmentHtml The HTML to be parsed, filling the fragment.
|
||||
* @param {Number} [fixForBody=false] Wrap body with specified element if needed.
|
||||
* @returns CKEDITOR.htmlParser.fragment The fragment created.
|
||||
* @example
|
||||
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
|
||||
* alert( fragment.children[0].name ); "b"
|
||||
* alert( fragment.children[1].value ); " Text"
|
||||
*/
|
||||
CKEDITOR.htmlParser.fragment.fromHtml = function( fragmentHtml, fixForBody )
|
||||
{
|
||||
var parser = new CKEDITOR.htmlParser(),
|
||||
html = [],
|
||||
fragment = new CKEDITOR.htmlParser.fragment(),
|
||||
pendingInline = [],
|
||||
currentNode = fragment,
|
||||
// Indicate we're inside a <pre> element, spaces should be touched differently.
|
||||
inPre = false,
|
||||
returnPoint;
|
||||
|
||||
function checkPending( newTagName )
|
||||
{
|
||||
if ( pendingInline.length > 0 )
|
||||
{
|
||||
for ( var i = 0 ; i < pendingInline.length ; i++ )
|
||||
{
|
||||
var pendingElement = pendingInline[ i ],
|
||||
pendingName = pendingElement.name,
|
||||
pendingDtd = CKEDITOR.dtd[ pendingName ],
|
||||
currentDtd = currentNode.name && CKEDITOR.dtd[ currentNode.name ];
|
||||
|
||||
if ( ( !currentDtd || currentDtd[ pendingName ] ) && ( !newTagName || !pendingDtd || pendingDtd[ newTagName ] || !CKEDITOR.dtd[ newTagName ] ) )
|
||||
{
|
||||
// Get a clone for the pending element.
|
||||
pendingElement = pendingElement.clone();
|
||||
|
||||
// Add it to the current node and make it the current,
|
||||
// so the new element will be added inside of it.
|
||||
pendingElement.parent = currentNode;
|
||||
currentNode = pendingElement;
|
||||
|
||||
// Remove the pending element (back the index by one
|
||||
// to properly process the next entry).
|
||||
pendingInline.splice( i, 1 );
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addElement( element, target, enforceCurrent )
|
||||
{
|
||||
target = target || currentNode || fragment;
|
||||
|
||||
// If the target is the fragment and this element can't go inside
|
||||
// body (if fixForBody).
|
||||
if ( fixForBody && !target.type && !CKEDITOR.dtd.$body[ element.name ] )
|
||||
{
|
||||
var savedCurrent = currentNode;
|
||||
|
||||
// Create a <p> in the fragment.
|
||||
currentNode = target;
|
||||
parser.onTagOpen( fixForBody, {} );
|
||||
|
||||
// The new target now is the <p>.
|
||||
target = currentNode;
|
||||
|
||||
if ( enforceCurrent )
|
||||
currentNode = savedCurrent;
|
||||
}
|
||||
|
||||
// Rtrim empty spaces on block end boundary. (#3585)
|
||||
if ( element._.isBlockLike
|
||||
&& !inPre )
|
||||
{
|
||||
|
||||
var length = element.children.length,
|
||||
lastChild = element.children[ length - 1 ],
|
||||
text;
|
||||
if ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT )
|
||||
{
|
||||
if ( !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) )
|
||||
element.children.length = length -1;
|
||||
else
|
||||
lastChild.value = text;
|
||||
}
|
||||
}
|
||||
|
||||
target.add( element );
|
||||
|
||||
if ( element.returnPoint )
|
||||
{
|
||||
currentNode = element.returnPoint;
|
||||
delete element.returnPoint;
|
||||
}
|
||||
}
|
||||
|
||||
parser.onTagOpen = function( tagName, attributes, selfClosing )
|
||||
{
|
||||
var element = new CKEDITOR.htmlParser.element( tagName, attributes );
|
||||
|
||||
// "isEmpty" will be always "false" for unknown elements, so we
|
||||
// must force it if the parser has identified it as a selfClosing tag.
|
||||
if ( element.isUnknown && selfClosing )
|
||||
element.isEmpty = true;
|
||||
|
||||
// This is a tag to be removed if empty, so do not add it immediately.
|
||||
if ( CKEDITOR.dtd.$removeEmpty[ tagName ] )
|
||||
{
|
||||
pendingInline.push( element );
|
||||
return;
|
||||
}
|
||||
else if ( tagName == 'pre' )
|
||||
inPre = true;
|
||||
else if ( tagName == 'br' && inPre )
|
||||
{
|
||||
currentNode.add( new CKEDITOR.htmlParser.text( '\n' ) );
|
||||
return;
|
||||
}
|
||||
|
||||
var currentName = currentNode.name,
|
||||
currentDtd = ( currentName && CKEDITOR.dtd[ currentName ] ) || ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span );
|
||||
|
||||
// If the element cannot be child of the current element.
|
||||
if ( !element.isUnknown && !currentNode.isUnknown && !currentDtd[ tagName ] )
|
||||
{
|
||||
// If this is the fragment node, just ignore this tag and add
|
||||
// its children.
|
||||
if ( !currentName )
|
||||
return;
|
||||
|
||||
var reApply = false;
|
||||
|
||||
// If the element name is the same as the current element name,
|
||||
// then just close the current one and append the new one to the
|
||||
// parent. This situation usually happens with <p>, <li>, <dt> and
|
||||
// <dd>, specially in IE. Do not enter in this if block in this case.
|
||||
if ( tagName == currentName )
|
||||
{
|
||||
addElement( currentNode, currentNode.parent );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( nonBreakingBlocks[ currentName ] )
|
||||
{
|
||||
if ( !returnPoint )
|
||||
returnPoint = currentNode;
|
||||
}
|
||||
else
|
||||
{
|
||||
addElement( currentNode, currentNode.parent, true );
|
||||
|
||||
if ( !optionalClose[ currentName ] )
|
||||
{
|
||||
// The current element is an inline element, which
|
||||
// cannot hold the new one. Put it in the pending list,
|
||||
// and try adding the new one after it.
|
||||
pendingInline.unshift( currentNode );
|
||||
}
|
||||
}
|
||||
|
||||
reApply = true;
|
||||
}
|
||||
|
||||
// In any of the above cases, we'll be adding, or trying to
|
||||
// add it to the parent.
|
||||
currentNode = currentNode.returnPoint || currentNode.parent;
|
||||
|
||||
if ( reApply )
|
||||
{
|
||||
parser.onTagOpen.apply( this, arguments );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
checkPending( tagName );
|
||||
|
||||
element.parent = currentNode;
|
||||
element.returnPoint = returnPoint;
|
||||
returnPoint = 0;
|
||||
|
||||
if ( element.isEmpty )
|
||||
addElement( element );
|
||||
else
|
||||
currentNode = element;
|
||||
};
|
||||
|
||||
parser.onTagClose = function( tagName )
|
||||
{
|
||||
var index = 0,
|
||||
pendingAdd = [],
|
||||
candidate = currentNode;
|
||||
|
||||
while ( candidate.type && candidate.name != tagName )
|
||||
{
|
||||
// If this is an inline element, add it to the pending list, so
|
||||
// it will continue after the closing tag.
|
||||
if ( !candidate._.isBlockLike )
|
||||
{
|
||||
pendingInline.unshift( candidate );
|
||||
|
||||
// Increase the index, so it will not get checked again in
|
||||
// the pending list check that follows.
|
||||
index++;
|
||||
}
|
||||
|
||||
// This node should be added to it's parent at this point. But,
|
||||
// it should happen only if the closing tag is really closing
|
||||
// one of the nodes. So, for now, we just cache it.
|
||||
pendingAdd.push( candidate );
|
||||
|
||||
candidate = candidate.parent;
|
||||
}
|
||||
|
||||
if ( candidate.type )
|
||||
{
|
||||
// Add all elements that have been found in the above loop.
|
||||
for ( var i = 0 ; i < pendingAdd.length ; i++ )
|
||||
{
|
||||
var node = pendingAdd[ i ];
|
||||
addElement( node, node.parent );
|
||||
}
|
||||
|
||||
currentNode = candidate;
|
||||
|
||||
if( currentNode.name == 'pre' )
|
||||
inPre = false;
|
||||
|
||||
addElement( candidate, candidate.parent );
|
||||
|
||||
// The parent should start receiving new nodes now, except if
|
||||
// addElement changed the currentNode.
|
||||
if ( candidate == currentNode )
|
||||
currentNode = currentNode.parent;
|
||||
}
|
||||
|
||||
// Check if there is any pending tag to be closed.
|
||||
for ( ; index < pendingInline.length ; index++ )
|
||||
{
|
||||
// If found, just remove it from the list.
|
||||
if ( tagName == pendingInline[ index ].name )
|
||||
{
|
||||
pendingInline.splice( index, 1 );
|
||||
|
||||
// Decrease the index so we continue from the next one.
|
||||
index--;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
parser.onText = function( text )
|
||||
{
|
||||
// Trim empty spaces at beginning of element contents except <pre>.
|
||||
if ( !currentNode._.hasInlineStarted && !inPre )
|
||||
{
|
||||
text = CKEDITOR.tools.ltrim( text );
|
||||
|
||||
if ( text.length === 0 )
|
||||
return;
|
||||
}
|
||||
|
||||
checkPending();
|
||||
|
||||
if ( fixForBody && !currentNode.type )
|
||||
this.onTagOpen( fixForBody, {} );
|
||||
|
||||
// Shrinking consequential spaces into one single for all elements
|
||||
// text contents.
|
||||
if ( !inPre )
|
||||
text = text.replace( /[\t\r\n ]{2,}|[\t\r\n]/g, ' ' );
|
||||
|
||||
currentNode.add( new CKEDITOR.htmlParser.text( text ) );
|
||||
};
|
||||
|
||||
parser.onCDATA = function( cdata )
|
||||
{
|
||||
currentNode.add( new CKEDITOR.htmlParser.cdata( cdata ) );
|
||||
};
|
||||
|
||||
parser.onComment = function( comment )
|
||||
{
|
||||
currentNode.add( new CKEDITOR.htmlParser.comment( comment ) );
|
||||
};
|
||||
|
||||
// Parse it.
|
||||
parser.parse( fragmentHtml );
|
||||
|
||||
// Close all pending nodes.
|
||||
while ( currentNode.type )
|
||||
{
|
||||
var parent = currentNode.parent,
|
||||
node = currentNode;
|
||||
|
||||
if ( fixForBody && !parent.type && !CKEDITOR.dtd.$body[ node.name ] )
|
||||
{
|
||||
currentNode = parent;
|
||||
parser.onTagOpen( fixForBody, {} );
|
||||
parent = currentNode;
|
||||
}
|
||||
|
||||
parent.add( node );
|
||||
currentNode = parent;
|
||||
}
|
||||
|
||||
return fragment;
|
||||
};
|
||||
|
||||
CKEDITOR.htmlParser.fragment.prototype =
|
||||
{
|
||||
/**
|
||||
* Adds a node to this fragment.
|
||||
* @param {Object} node The node to be added. It can be any of of the
|
||||
* following types: {@link CKEDITOR.htmlParser.element},
|
||||
* {@link CKEDITOR.htmlParser.text} and
|
||||
* {@link CKEDITOR.htmlParser.comment}.
|
||||
* @example
|
||||
*/
|
||||
add : function( node )
|
||||
{
|
||||
var len = this.children.length,
|
||||
previous = len > 0 && this.children[ len - 1 ] || null;
|
||||
|
||||
if ( previous )
|
||||
{
|
||||
// If the block to be appended is following text, trim spaces at
|
||||
// the right of it.
|
||||
if ( node._.isBlockLike && previous.type == CKEDITOR.NODE_TEXT )
|
||||
{
|
||||
previous.value = CKEDITOR.tools.rtrim( previous.value );
|
||||
|
||||
// If we have completely cleared the previous node.
|
||||
if ( previous.value.length === 0 )
|
||||
{
|
||||
// Remove it from the list and add the node again.
|
||||
this.children.pop();
|
||||
this.add( node );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
previous.next = node;
|
||||
}
|
||||
|
||||
node.previous = previous;
|
||||
node.parent = this;
|
||||
|
||||
this.children.push( node );
|
||||
|
||||
this._.hasInlineStarted = node.type == CKEDITOR.NODE_TEXT || ( node.type == CKEDITOR.NODE_ELEMENT && !node._.isBlockLike );
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes the fragment HTML to a CKEDITOR.htmlWriter.
|
||||
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
|
||||
* @example
|
||||
* var writer = new CKEDITOR.htmlWriter();
|
||||
* var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<P><B>Example' );
|
||||
* fragment.writeHtml( writer )
|
||||
* alert( writer.getHtml() ); "<p><b>Example</b></p>"
|
||||
*/
|
||||
writeHtml : function( writer, filter )
|
||||
{
|
||||
for ( var i = 0, len = this.children.length ; i < len ; i++ )
|
||||
this.children[i].writeHtml( writer, filter );
|
||||
}
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var spacesRegex = /[\t\r\n ]{2,}|[\t\r\n]/g;
|
||||
|
||||
/**
|
||||
* A lightweight representation of HTML text.
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.htmlParser.text = function( value )
|
||||
{
|
||||
/**
|
||||
* The text value.
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
this.value = value;
|
||||
|
||||
/** @private */
|
||||
this._ =
|
||||
{
|
||||
isBlockLike : false
|
||||
};
|
||||
};
|
||||
|
||||
CKEDITOR.htmlParser.text.prototype =
|
||||
{
|
||||
/**
|
||||
* The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
|
||||
* @type Number
|
||||
* @example
|
||||
*/
|
||||
type : CKEDITOR.NODE_TEXT,
|
||||
|
||||
/**
|
||||
* Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
|
||||
* @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
|
||||
* @example
|
||||
*/
|
||||
writeHtml : function( writer, filter )
|
||||
{
|
||||
var text = this.value;
|
||||
|
||||
if ( filter && !( text = filter.onText( text, this ) ) )
|
||||
return;
|
||||
|
||||
writer.text( text );
|
||||
}
|
||||
};
|
||||
})();
|
||||
58
UI/WebServerResources/ckeditor/_source/core/imagecacher.js
Normal file
58
UI/WebServerResources/ckeditor/_source/core/imagecacher.js
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var loaded = {};
|
||||
|
||||
var loadImage = function( image, callback )
|
||||
{
|
||||
var doCallback = function()
|
||||
{
|
||||
loaded[ image ] = 1;
|
||||
callback();
|
||||
};
|
||||
|
||||
var img = new CKEDITOR.dom.element( 'img' );
|
||||
img.on( 'load', doCallback );
|
||||
img.on( 'error', doCallback );
|
||||
img.setAttribute( 'src', image );
|
||||
};
|
||||
|
||||
/**
|
||||
* Load images into the browser cache.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.imageCacher =
|
||||
{
|
||||
/**
|
||||
* Loads one or more images.
|
||||
* @param {Array} images The URLs for the images to be loaded.
|
||||
* @param {Function} callback The function to be called once all images
|
||||
* are loaded.
|
||||
*/
|
||||
load : function( images, callback )
|
||||
{
|
||||
var pendingCount = images.length;
|
||||
|
||||
var checkPending = function()
|
||||
{
|
||||
if ( --pendingCount === 0 )
|
||||
callback();
|
||||
};
|
||||
|
||||
for ( var i = 0 ; i < images.length ; i++ )
|
||||
{
|
||||
var image = images[ i ];
|
||||
|
||||
if ( loaded[ image ] )
|
||||
checkPending();
|
||||
else
|
||||
loadImage( image, checkPending );
|
||||
}
|
||||
}
|
||||
};
|
||||
})();
|
||||
147
UI/WebServerResources/ckeditor/_source/core/lang.js
Normal file
147
UI/WebServerResources/ckeditor/_source/core/lang.js
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var loadedLangs = {};
|
||||
|
||||
CKEDITOR.lang =
|
||||
{
|
||||
/**
|
||||
* The list of languages available in the editor core.
|
||||
* @type Object
|
||||
* @example
|
||||
* alert( CKEDITOR.lang.en ); // "true"
|
||||
*/
|
||||
languages :
|
||||
{
|
||||
'af' : 1,
|
||||
'ar' : 1,
|
||||
'bg' : 1,
|
||||
'bn' : 1,
|
||||
'bs' : 1,
|
||||
'ca' : 1,
|
||||
'cs' : 1,
|
||||
'da' : 1,
|
||||
'de' : 1,
|
||||
'el' : 1,
|
||||
'en-au' : 1,
|
||||
'en-ca' : 1,
|
||||
'en-uk' : 1,
|
||||
'en' : 1,
|
||||
'eo' : 1,
|
||||
'es' : 1,
|
||||
'et' : 1,
|
||||
'eu' : 1,
|
||||
'fa' : 1,
|
||||
'fi' : 1,
|
||||
'fo' : 1,
|
||||
'fr-ca' : 1,
|
||||
'fr' : 1,
|
||||
'gl' : 1,
|
||||
'gu' : 1,
|
||||
'he' : 1,
|
||||
'hi' : 1,
|
||||
'hr' : 1,
|
||||
'hu' : 1,
|
||||
'is' : 1,
|
||||
'it' : 1,
|
||||
'ja' : 1,
|
||||
'km' : 1,
|
||||
'ko' : 1,
|
||||
'lt' : 1,
|
||||
'lv' : 1,
|
||||
'mn' : 1,
|
||||
'ms' : 1,
|
||||
'nb' : 1,
|
||||
'nl' : 1,
|
||||
'no' : 1,
|
||||
'pl' : 1,
|
||||
'pt-br' : 1,
|
||||
'pt' : 1,
|
||||
'ro' : 1,
|
||||
'ru' : 1,
|
||||
'sk' : 1,
|
||||
'sl' : 1,
|
||||
'sr-latn' : 1,
|
||||
'sr' : 1,
|
||||
'sv' : 1,
|
||||
'th' : 1,
|
||||
'tr' : 1,
|
||||
'uk' : 1,
|
||||
'vi' : 1,
|
||||
'zh-cn' : 1,
|
||||
'zh' : 1
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads a specific language file, or auto detect it. A callback is
|
||||
* then called when the file gets loaded.
|
||||
* @param {String} languageCode The code of the language file to be
|
||||
* loaded. If "autoDetect" is set to true, this language will be
|
||||
* used as the default one, if the detect language is not
|
||||
* available in the core.
|
||||
* @param {Boolean} autoDetect Indicates that the function must try to
|
||||
* detect the user language and load it instead.
|
||||
* @param {Function} callback The function to be called once the
|
||||
* language file is loaded. Two parameters are passed to this
|
||||
* function: the language code and the loaded language entries.
|
||||
* @example
|
||||
*/
|
||||
load : function( languageCode, defaultLanguage, callback )
|
||||
{
|
||||
if ( !languageCode )
|
||||
languageCode = this.detect( defaultLanguage );
|
||||
|
||||
if ( !this[ languageCode ] )
|
||||
{
|
||||
CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
|
||||
'lang/' + languageCode + '.js' ),
|
||||
function()
|
||||
{
|
||||
callback( languageCode, this[ languageCode ] );
|
||||
}
|
||||
, this );
|
||||
}
|
||||
else
|
||||
callback( languageCode, this[ languageCode ] );
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the language that best fit the user language. For example,
|
||||
* suppose that the user language is "pt-br". If this language is
|
||||
* supported by the editor, it is returned. Otherwise, if only "pt" is
|
||||
* supported, it is returned instead. If none of the previous are
|
||||
* supported, a default language is then returned.
|
||||
* @param {String} defaultLanguage The default language to be returned
|
||||
* if the user language is not supported.
|
||||
* @returns {String} The detected language code.
|
||||
* @example
|
||||
* alert( CKEDITOR.lang.detect( 'en' ) ); // e.g., in a German browser: "de"
|
||||
*/
|
||||
detect : function( defaultLanguage )
|
||||
{
|
||||
var languages = this.languages;
|
||||
|
||||
var parts = ( navigator.userLanguage || navigator.language )
|
||||
.toLowerCase()
|
||||
.match( /([a-z]+)(?:-([a-z]+))?/ ),
|
||||
lang = parts[1],
|
||||
locale = parts[2];
|
||||
|
||||
if ( languages[ lang + '-' + locale ] )
|
||||
lang = lang + '-' + locale;
|
||||
else if ( !languages[ lang ] )
|
||||
lang = null;
|
||||
|
||||
CKEDITOR.lang.detect = lang ?
|
||||
function() { return lang; } :
|
||||
function( defaultLanguage ) { return defaultLanguage; };
|
||||
|
||||
return lang || defaultLanguage;
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
||||
185
UI/WebServerResources/ckeditor/_source/core/loader.js
Normal file
185
UI/WebServerResources/ckeditor/_source/core/loader.js
Normal file
@@ -0,0 +1,185 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to
|
||||
* load core scripts and their dependencies from _source.
|
||||
*/
|
||||
|
||||
if ( typeof CKEDITOR == 'undefined' )
|
||||
CKEDITOR = {};
|
||||
|
||||
if ( !CKEDITOR.loader )
|
||||
{
|
||||
/**
|
||||
* Load core scripts and their dependencies from _source.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.loader = (function()
|
||||
{
|
||||
// Table of script names and their dependencies.
|
||||
var scripts =
|
||||
{
|
||||
'core/_bootstrap' : [ 'core/config', 'core/ckeditor', 'core/plugins', 'core/scriptloader', 'core/tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'core/dom/elementpath', 'core/dom/text', 'core/dom/range' ],
|
||||
'core/ajax' : [ 'core/xml' ],
|
||||
'core/ckeditor' : [ 'core/ckeditor_basic', 'core/dom', 'core/dtd', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/htmlparser', 'core/htmlparser/element', 'core/htmlparser/fragment', 'core/htmlparser/filter', 'core/htmlparser/basicwriter', 'core/tools' ],
|
||||
'core/ckeditor_base' : [],
|
||||
'core/ckeditor_basic' : [ 'core/editor_basic', 'core/env', 'core/event' ],
|
||||
'core/command' : [],
|
||||
'core/config' : [ 'core/ckeditor_base' ],
|
||||
'core/dom' : [],
|
||||
'core/dom/document' : [ 'core/dom', 'core/dom/domobject', 'core/dom/window' ],
|
||||
'core/dom/documentfragment' : [ 'core/dom/element' ],
|
||||
'core/dom/element' : [ 'core/dom', 'core/dom/document', 'core/dom/domobject', 'core/dom/node', 'core/dom/nodelist', 'core/tools' ],
|
||||
'core/dom/elementpath' : [ 'core/dom/element' ],
|
||||
'core/dom/event' : [],
|
||||
'core/dom/node' : [ 'core/dom/domobject', 'core/tools' ],
|
||||
'core/dom/nodelist' : [ 'core/dom/node' ],
|
||||
'core/dom/domobject' : [ 'core/dom/event' ],
|
||||
'core/dom/domwalker' : [ 'core/dom/node', 'core/dom/element', 'core/dom/document' ],
|
||||
'core/dom/range' : [ 'core/dom/document', 'core/dom/documentfragment', 'core/dom/element', 'core/dom/domwalker', 'core/dom/walker' ],
|
||||
'core/dom/text' : [ 'core/dom/node', 'core/dom/domobject' ],
|
||||
'core/dom/walker' : [ 'core/dom/node' ],
|
||||
'core/dom/window' : [ 'core/dom/domobject' ],
|
||||
'core/dtd' : [ 'core/tools' ],
|
||||
'core/editor' : [ 'core/command', 'core/config', 'core/editor_basic', 'core/focusmanager', 'core/lang', 'core/plugins', 'core/skins', 'core/themes', 'core/tools', 'core/ui' ],
|
||||
'core/editor_basic' : [ 'core/event' ],
|
||||
'core/env' : [],
|
||||
'core/event' : [],
|
||||
'core/focusmanager' : [],
|
||||
'core/htmlparser' : [],
|
||||
'core/htmlparser/comment' : [ 'core/htmlparser' ],
|
||||
'core/htmlparser/element' : [ 'core/htmlparser', 'core/htmlparser/fragment' ],
|
||||
'core/htmlparser/fragment' : [ 'core/htmlparser', 'core/htmlparser/comment', 'core/htmlparser/text', 'core/htmlparser/cdata' ],
|
||||
'core/htmlparser/text' : [ 'core/htmlparser' ],
|
||||
'core/htmlparser/cdata' : [ 'core/htmlparser' ],
|
||||
'core/htmlparser/filter' : [ 'core/htmlparser' ],
|
||||
'core/htmlparser/basicwriter': [ 'core/htmlparser' ],
|
||||
'core/imagecacher' : [ 'core/dom/element' ],
|
||||
'core/lang' : [],
|
||||
'core/plugins' : [ 'core/resourcemanager' ],
|
||||
'core/resourcemanager' : [ 'core/scriptloader', 'core/tools' ],
|
||||
'core/scriptloader' : [ 'core/dom/element', 'core/env' ],
|
||||
'core/skins' : [ 'core/imagecacher', 'core/scriptloader' ],
|
||||
'core/themes' : [ 'core/resourcemanager' ],
|
||||
'core/tools' : [ 'core/env' ],
|
||||
'core/ui' : [],
|
||||
'core/xml' : [ 'core/env' ]
|
||||
};
|
||||
|
||||
var basePath = (function()
|
||||
{
|
||||
// This is a copy of CKEDITOR.basePath, but requires the script having
|
||||
// "_source/core/loader.js".
|
||||
if ( CKEDITOR && CKEDITOR.basePath )
|
||||
return CKEDITOR.basePath;
|
||||
|
||||
// Find out the editor directory path, based on its <script> tag.
|
||||
var path = '';
|
||||
var scripts = document.getElementsByTagName( 'script' );
|
||||
|
||||
for ( var i = 0 ; i < scripts.length ; i++ )
|
||||
{
|
||||
var match = scripts[i].src.match( /(^|.*[\\\/])core\/loader.js(?:\?.*)?$/i );
|
||||
|
||||
if ( match )
|
||||
{
|
||||
path = match[1];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// In IE (only) the script.src string is the raw valued entered in the
|
||||
// HTML. Other browsers return the full resolved URL instead.
|
||||
if ( path.indexOf('://') == -1 )
|
||||
{
|
||||
// Absolute path.
|
||||
if ( path.indexOf( '/' ) === 0 )
|
||||
path = location.href.match( /^.*?:\/\/[^\/]*/ )[0] + path;
|
||||
// Relative path.
|
||||
else
|
||||
path = location.href.match( /^[^\?]*\// )[0] + path;
|
||||
}
|
||||
|
||||
return path;
|
||||
})();
|
||||
|
||||
var timestamp = '95MI';
|
||||
|
||||
var getUrl = function( resource )
|
||||
{
|
||||
if ( CKEDITOR && CKEDITOR.getUrl )
|
||||
return CKEDITOR.getUrl( resource );
|
||||
|
||||
return basePath + resource +
|
||||
( resource.indexOf( '?' ) >= 0 ? '&' : '?' ) +
|
||||
't=' + timestamp;
|
||||
};
|
||||
|
||||
/** @lends CKEDITOR.loader */
|
||||
return {
|
||||
/**
|
||||
* The list of loaded scripts in their loading order.
|
||||
* @type Array
|
||||
* @example
|
||||
* // Alert the loaded script names.
|
||||
* alert( <b>CKEDITOR.loader.loadedScripts</b> );
|
||||
*/
|
||||
loadedScripts : [],
|
||||
|
||||
/**
|
||||
* Loads a specific script, including its dependencies. This is not a
|
||||
* synchronous loading, which means that the code the be loaded will
|
||||
* not necessarily be available after this call.
|
||||
* @example
|
||||
* CKEDITOR.loader.load( 'core/dom/element' );
|
||||
*/
|
||||
load : function( scriptName )
|
||||
{
|
||||
// Check if the script has already been loaded.
|
||||
if ( scriptName in this.loadedScripts )
|
||||
return;
|
||||
|
||||
// Get the script dependencies list.
|
||||
var dependencies = scripts[ scriptName ];
|
||||
if ( !dependencies )
|
||||
throw 'The script name"' + scriptName + '" is not defined.';
|
||||
|
||||
// Mark the script as loaded, even before really loading it, to
|
||||
// avoid cross references recursion.
|
||||
this.loadedScripts[ scriptName ] = true;
|
||||
|
||||
// Load all dependencies first.
|
||||
for ( var i = 0 ; i < dependencies.length ; i++ )
|
||||
this.load( dependencies[ i ] );
|
||||
|
||||
// Append this script to the list of loaded scripts.
|
||||
this.loadedScripts.push( scriptName );
|
||||
|
||||
var scriptSrc = getUrl( '_source/' + scriptName + '.js' );
|
||||
|
||||
// Append the <script> element to the DOM.
|
||||
if ( document.body )
|
||||
{
|
||||
var script = document.createElement( 'script' );
|
||||
script.type = 'text/javascript';
|
||||
script.src = scriptSrc;
|
||||
|
||||
document.body.appendChild( script );
|
||||
}
|
||||
else
|
||||
document.write( '<script src="' + scriptSrc + '" type="text/javascript"><\/script>' );
|
||||
}
|
||||
};
|
||||
})();
|
||||
}
|
||||
|
||||
// Check if any script has been defined for autoload.
|
||||
if ( CKEDITOR._autoLoad )
|
||||
{
|
||||
CKEDITOR.loader.load( CKEDITOR._autoLoad );
|
||||
delete CKEDITOR._autoLoad;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the "virtual" {@link CKEDITOR.pluginDefinition} class, which
|
||||
* contains the defintion of a plugin. This file is for documentation
|
||||
* purposes only.
|
||||
*/
|
||||
|
||||
/**
|
||||
* (Virtual Class) Do not call this constructor. This class is not really part
|
||||
* of the API. It just illustrates the features of plugin objects to be
|
||||
* passed to the {@link CKEDITOR.plugins.add} function.
|
||||
* @name CKEDITOR.pluginDefinition
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
|
||||
/**
|
||||
* A list of plugins that are required by this plugin. Note that this property
|
||||
* doesn't guarantee the loading order of the plugins.
|
||||
* @name CKEDITOR.pluginDefinition.prototype.requires
|
||||
* @type Array
|
||||
* @example
|
||||
* CKEDITOR.plugins.add( 'sample',
|
||||
* {
|
||||
* requires : [ 'button', 'selection' ]
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Function called on initialization of every editor instance created in the
|
||||
* page before the init() call task. The beforeInit function will be called for
|
||||
* all plugins, after that the init function is called for all of them. This
|
||||
* feature makes it possible to initialize things that could be used in the
|
||||
* init function of other plugins.
|
||||
* @name CKEDITOR.pluginDefinition.prototype.beforeInit
|
||||
* @function
|
||||
* @param {CKEDITOR.editor} editor The editor instance being initialized.
|
||||
* @example
|
||||
* CKEDITOR.plugins.add( 'sample',
|
||||
* {
|
||||
* beforeInit : function( editor )
|
||||
* {
|
||||
* alert( 'Editor "' + editor.name + '" is to be initialized!' );
|
||||
* }
|
||||
* });
|
||||
*/
|
||||
|
||||
/**
|
||||
* Function called on initialization of every editor instance created in the
|
||||
* page.
|
||||
* @name CKEDITOR.pluginDefinition.prototype.init
|
||||
* @function
|
||||
* @param {CKEDITOR.editor} editor The editor instance being initialized.
|
||||
* @example
|
||||
* CKEDITOR.plugins.add( 'sample',
|
||||
* {
|
||||
* init : function( editor )
|
||||
* {
|
||||
* alert( 'Editor "' + editor.name + '" is being initialized!' );
|
||||
* }
|
||||
* });
|
||||
*/
|
||||
82
UI/WebServerResources/ckeditor/_source/core/plugins.js
Normal file
82
UI/WebServerResources/ckeditor/_source/core/plugins.js
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.plugins} object, which is used to
|
||||
* manage plugins registration and loading.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Manages plugins registration and loading.
|
||||
* @namespace
|
||||
* @augments CKEDITOR.resourceManager
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.plugins = new CKEDITOR.resourceManager(
|
||||
'plugins/', 'plugin' );
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.plugins )
|
||||
|
||||
CKEDITOR.plugins.load = CKEDITOR.tools.override( CKEDITOR.plugins.load, function( originalLoad )
|
||||
{
|
||||
return function( name, callback, scope )
|
||||
{
|
||||
var allPlugins = {};
|
||||
|
||||
var loadPlugins = function( names )
|
||||
{
|
||||
originalLoad.call( this, names, function( plugins )
|
||||
{
|
||||
CKEDITOR.tools.extend( allPlugins, plugins );
|
||||
|
||||
var requiredPlugins = [];
|
||||
for ( var pluginName in plugins )
|
||||
{
|
||||
var plugin = plugins[ pluginName ],
|
||||
requires = plugin && plugin.requires;
|
||||
|
||||
if ( requires )
|
||||
{
|
||||
for ( var i = 0 ; i < requires.length ; i++ )
|
||||
{
|
||||
if ( !allPlugins[ requires[ i ] ] )
|
||||
requiredPlugins.push( requires[ i ] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( requiredPlugins.length )
|
||||
loadPlugins.call( this, requiredPlugins );
|
||||
else
|
||||
{
|
||||
// Call the "onLoad" function for all plugins.
|
||||
for ( pluginName in allPlugins )
|
||||
{
|
||||
plugin = allPlugins[ pluginName ];
|
||||
if ( plugin.onLoad && !plugin.onLoad._called )
|
||||
{
|
||||
plugin.onLoad();
|
||||
plugin.onLoad._called = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Call the callback.
|
||||
if ( callback )
|
||||
callback.call( scope || window, allPlugins );
|
||||
}
|
||||
}
|
||||
, this);
|
||||
|
||||
};
|
||||
|
||||
loadPlugins.call( this, name );
|
||||
};
|
||||
});
|
||||
|
||||
CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries )
|
||||
{
|
||||
var plugin = this.get( pluginName );
|
||||
plugin.lang[ languageCode ] = languageEntries;
|
||||
};
|
||||
233
UI/WebServerResources/ckeditor/_source/core/resourcemanager.js
Normal file
233
UI/WebServerResources/ckeditor/_source/core/resourcemanager.js
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.resourceManager} class, which is
|
||||
* the base for resource managers, like plugins and themes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base class for resource managers, like plugins and themes. This class is not
|
||||
* intended to be used out of the CKEditor core code.
|
||||
* @param {String} basePath The path for the resources folder.
|
||||
* @param {String} fileName The name used for resource files.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.resourceManager = function( basePath, fileName )
|
||||
{
|
||||
/**
|
||||
* The base directory containing all resources.
|
||||
* @name CKEDITOR.resourceManager.prototype.basePath
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
this.basePath = basePath;
|
||||
|
||||
/**
|
||||
* The name used for resource files.
|
||||
* @name CKEDITOR.resourceManager.prototype.fileName
|
||||
* @type String
|
||||
* @example
|
||||
*/
|
||||
this.fileName = fileName;
|
||||
|
||||
/**
|
||||
* Contains references to all resources that have already been registered
|
||||
* with {@link #add}.
|
||||
* @name CKEDITOR.resourceManager.prototype.registered
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
this.registered = {};
|
||||
|
||||
/**
|
||||
* Contains references to all resources that have already been loaded
|
||||
* with {@link #load}.
|
||||
* @name CKEDITOR.resourceManager.prototype.loaded
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
this.loaded = {};
|
||||
|
||||
/**
|
||||
* Contains references to all resources that have already been registered
|
||||
* with {@link #addExternal}.
|
||||
* @name CKEDITOR.resourceManager.prototype.externals
|
||||
* @type Object
|
||||
* @example
|
||||
*/
|
||||
this.externals = {};
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
this._ =
|
||||
{
|
||||
// List of callbacks waiting for plugins to be loaded.
|
||||
waitingList : {}
|
||||
};
|
||||
};
|
||||
|
||||
CKEDITOR.resourceManager.prototype =
|
||||
{
|
||||
/**
|
||||
* Registers a resource.
|
||||
* @param {String} name The resource name.
|
||||
* @param {Object} [definition] The resource definition.
|
||||
* @example
|
||||
* CKEDITOR.plugins.add( 'sample', { ... plugin definition ... } );
|
||||
* @see CKEDITOR.pluginDefinition
|
||||
*/
|
||||
add : function( name, definition )
|
||||
{
|
||||
if ( this.registered[ name ] )
|
||||
throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.';
|
||||
|
||||
this.registered[ name ] = definition || {};
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the definition of a specific resource.
|
||||
* @param {String} name The resource name.
|
||||
* @type Object
|
||||
* @example
|
||||
* var definition = <b>CKEDITOR.plugins.get( 'sample' )</b>;
|
||||
*/
|
||||
get : function( name )
|
||||
{
|
||||
return this.registered[ name ] || null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the folder path for a specific loaded resource.
|
||||
* @param {String} name The resource name.
|
||||
* @type String
|
||||
* @example
|
||||
* alert( <b>CKEDITOR.plugins.getPath( 'sample' )</b> ); // "<editor path>/plugins/sample/"
|
||||
*/
|
||||
getPath : function( name )
|
||||
{
|
||||
var external = this.externals[ name ];
|
||||
return CKEDITOR.getUrl( ( external && external.dir ) || this.basePath + name + '/' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the file path for a specific loaded resource.
|
||||
* @param {String} name The resource name.
|
||||
* @type String
|
||||
* @example
|
||||
* alert( <b>CKEDITOR.plugins.getFilePath( 'sample' )</b> ); // "<editor path>/plugins/sample/plugin.js"
|
||||
*/
|
||||
getFilePath : function( name )
|
||||
{
|
||||
var external = this.externals[ name ];
|
||||
return CKEDITOR.getUrl(
|
||||
this.getPath( name ) +
|
||||
( ( external && external.file ) || ( this.fileName + '.js' ) ) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers one or more resources to be loaded from an external path
|
||||
* instead of the core base path.
|
||||
* @param {String} names The resource names, separated by commas.
|
||||
* @param {String} path The path of the folder containing the resource.
|
||||
* @param {String} [fileName] The resource file name. If not provided, the
|
||||
* default name is used.
|
||||
* @example
|
||||
* // Loads a plugin from '/myplugin/samples/plugin.js'.
|
||||
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/' );
|
||||
* @example
|
||||
* // Loads a plugin from '/myplugin/samples/my_plugin.js'.
|
||||
* CKEDITOR.plugins.addExternal( 'sample', '/myplugins/sample/', 'my_plugin.js' );
|
||||
*/
|
||||
addExternal : function( names, path, fileName )
|
||||
{
|
||||
names = names.split( ',' );
|
||||
for ( var i = 0 ; i < names.length ; i++ )
|
||||
{
|
||||
var name = names[ i ];
|
||||
|
||||
this.externals[ name ] =
|
||||
{
|
||||
dir : path,
|
||||
file : fileName
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads one or more resources.
|
||||
* @param {String|Array} name The name of the resource to load. It may be a
|
||||
* string with a single resource name, or an array with several names.
|
||||
* @param {Function} callback A function to be called when all resources
|
||||
* are loaded. The callback will receive an array containing all
|
||||
* loaded names.
|
||||
* @param {Object} [scope] The scope object to be used for the callback
|
||||
* call.
|
||||
* @example
|
||||
* <b>CKEDITOR.plugins.load</b>( 'myplugin', function( plugins )
|
||||
* {
|
||||
* alert( plugins['myplugin'] ); // "object"
|
||||
* });
|
||||
*/
|
||||
load : function( names, callback, scope )
|
||||
{
|
||||
// Ensure that we have an array of names.
|
||||
if ( !CKEDITOR.tools.isArray( names ) )
|
||||
names = names ? [ names ] : [];
|
||||
|
||||
var loaded = this.loaded,
|
||||
registered = this.registered,
|
||||
urls = [],
|
||||
urlsNames = {},
|
||||
resources = {};
|
||||
|
||||
// Loop through all names.
|
||||
for ( var i = 0 ; i < names.length ; i++ )
|
||||
{
|
||||
var name = names[ i ];
|
||||
|
||||
if ( !name )
|
||||
continue;
|
||||
|
||||
// If not available yet.
|
||||
if ( !loaded[ name ] && !registered[ name ] )
|
||||
{
|
||||
var url = this.getFilePath( name );
|
||||
urls.push( url );
|
||||
if ( !( url in urlsNames ) )
|
||||
urlsNames[ url ] = [];
|
||||
urlsNames[ url ].push( name );
|
||||
}
|
||||
else
|
||||
resources[ name ] = this.get( name );
|
||||
}
|
||||
|
||||
CKEDITOR.scriptLoader.load( urls, function( completed, failed )
|
||||
{
|
||||
if ( failed.length )
|
||||
{
|
||||
throw '[CKEDITOR.resourceManager.load] Resource name "' + urlsNames[ failed[ 0 ] ].join( ',' )
|
||||
+ '" was not found at "' + failed[ 0 ] + '".';
|
||||
}
|
||||
|
||||
for ( var i = 0 ; i < completed.length ; i++ )
|
||||
{
|
||||
var nameList = urlsNames[ completed[ i ] ];
|
||||
for ( var j = 0 ; j < nameList.length ; j++ )
|
||||
{
|
||||
var name = nameList[ j ];
|
||||
resources[ name ] = this.get( name );
|
||||
|
||||
loaded[ name ] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
callback.call( scope, resources );
|
||||
}
|
||||
, this);
|
||||
}
|
||||
};
|
||||
194
UI/WebServerResources/ckeditor/_source/core/scriptloader.js
Normal file
194
UI/WebServerResources/ckeditor/_source/core/scriptloader.js
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.scriptLoader} object, used to load scripts
|
||||
* asynchronously.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Load scripts asynchronously.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.scriptLoader = (function()
|
||||
{
|
||||
var uniqueScripts = {};
|
||||
var waitingList = {};
|
||||
|
||||
return /** @lends CKEDITOR.scriptLoader */ {
|
||||
/**
|
||||
* Loads one or more external script checking if not already loaded
|
||||
* previously by this function.
|
||||
* @param {String|Array} scriptUrl One or more URLs pointing to the
|
||||
* scripts to be loaded.
|
||||
* @param {Function} [callback] A function to be called when the script
|
||||
* is loaded and executed. If a string is passed to "scriptUrl", a
|
||||
* boolean parameter is passed to the callback, indicating the
|
||||
* success of the load. If an array is passed instead, two array
|
||||
* parameters are passed to the callback; the first contains the
|
||||
* URLs that have been properly loaded, and the second the failed
|
||||
* ones.
|
||||
* @param {Object} [scope] The scope ("this" reference) to be used for
|
||||
* the callback call. Default to {@link CKEDITOR}.
|
||||
* @param {Boolean} [noCheck] Indicates that the script must be loaded
|
||||
* anyway, not checking if it has already loaded.
|
||||
* @example
|
||||
* CKEDITOR.scriptLoader.load( '/myscript.js' );
|
||||
* @example
|
||||
* CKEDITOR.scriptLoader.load( '/myscript.js', function( success )
|
||||
* {
|
||||
* // Alerts "true" if the script has been properly loaded.
|
||||
* // HTTP error 404 should return "false".
|
||||
* alert( success );
|
||||
* });
|
||||
* @example
|
||||
* CKEDITOR.scriptLoader.load( [ '/myscript1.js', '/myscript2.js' ], function( completed, failed )
|
||||
* {
|
||||
* alert( 'Number of scripts loaded: ' + completed.length );
|
||||
* alert( 'Number of failures: ' + failed.length );
|
||||
* });
|
||||
*/
|
||||
load : function( scriptUrl, callback, scope, noCheck )
|
||||
{
|
||||
var isString = ( typeof scriptUrl == 'string' );
|
||||
|
||||
if ( isString )
|
||||
scriptUrl = [ scriptUrl ];
|
||||
|
||||
if ( !scope )
|
||||
scope = CKEDITOR;
|
||||
|
||||
var scriptCount = scriptUrl.length,
|
||||
completed = [],
|
||||
failed = [];
|
||||
|
||||
var doCallback = function( success )
|
||||
{
|
||||
if ( callback )
|
||||
{
|
||||
if ( isString )
|
||||
callback.call( scope, success );
|
||||
else
|
||||
callback.call( scope, completed, failed );
|
||||
}
|
||||
};
|
||||
|
||||
if ( scriptCount === 0 )
|
||||
{
|
||||
doCallback( true );
|
||||
return;
|
||||
}
|
||||
|
||||
var checkLoaded = function( url, success )
|
||||
{
|
||||
( success ? completed : failed ).push( url );
|
||||
|
||||
if ( --scriptCount <= 0 )
|
||||
doCallback( success );
|
||||
};
|
||||
|
||||
var onLoad = function( url, success )
|
||||
{
|
||||
// Mark this script as loaded.
|
||||
uniqueScripts[ url ] = 1;
|
||||
|
||||
// Get the list of callback checks waiting for this file.
|
||||
var waitingInfo = waitingList[ url ];
|
||||
delete waitingList[ url ];
|
||||
|
||||
// Check all callbacks waiting for this file.
|
||||
for ( var i = 0 ; i < waitingInfo.length ; i++ )
|
||||
waitingInfo[ i ]( url, success );
|
||||
};
|
||||
|
||||
var loadScript = function( url )
|
||||
{
|
||||
if ( noCheck !== true && uniqueScripts[ url ] )
|
||||
{
|
||||
checkLoaded( url, true );
|
||||
return;
|
||||
}
|
||||
|
||||
var waitingInfo = waitingList[ url ] || ( waitingList[ url ] = [] );
|
||||
waitingInfo.push( checkLoaded );
|
||||
|
||||
// Load it only for the first request.
|
||||
if ( waitingInfo.length > 1 )
|
||||
return;
|
||||
|
||||
// Create the <script> element.
|
||||
var script = new CKEDITOR.dom.element( 'script' );
|
||||
script.setAttributes( {
|
||||
type : 'text/javascript',
|
||||
src : url } );
|
||||
|
||||
if ( callback )
|
||||
{
|
||||
if ( CKEDITOR.env.ie )
|
||||
{
|
||||
// FIXME: For IE, we are not able to return false on error (like 404).
|
||||
|
||||
/** @ignore */
|
||||
script.$.onreadystatechange = function ()
|
||||
{
|
||||
if ( script.$.readyState == 'loaded' || script.$.readyState == 'complete' )
|
||||
{
|
||||
script.$.onreadystatechange = null;
|
||||
onLoad( url, true );
|
||||
}
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
/** @ignore */
|
||||
script.$.onload = function()
|
||||
{
|
||||
// Some browsers, such as Safari, may call the onLoad function
|
||||
// immediately. Which will break the loading sequence. (#3661)
|
||||
setTimeout( function() { onLoad( url, true ); }, 0 );
|
||||
};
|
||||
|
||||
// FIXME: Opera and Safari will not fire onerror.
|
||||
|
||||
/** @ignore */
|
||||
script.$.onerror = function()
|
||||
{
|
||||
onLoad( url, false );
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Append it to <head>.
|
||||
script.appendTo( CKEDITOR.document.getHead() );
|
||||
|
||||
CKEDITOR.fire( 'download', url ); // @Packager.RemoveLine
|
||||
};
|
||||
|
||||
for ( var i = 0 ; i < scriptCount ; i++ )
|
||||
{
|
||||
loadScript( scriptUrl[ i ] );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Executes a JavaScript code into the current document.
|
||||
* @param {String} code The code to be executed.
|
||||
* @example
|
||||
* CKEDITOR.scriptLoader.loadCode( 'var x = 10;' );
|
||||
* alert( x ); // "10"
|
||||
*/
|
||||
loadCode : function( code )
|
||||
{
|
||||
// Create the <script> element.
|
||||
var script = new CKEDITOR.dom.element( 'script' );
|
||||
script.setAttribute( 'type', 'text/javascript' );
|
||||
script.appendText( code );
|
||||
|
||||
// Append it to <head>.
|
||||
script.appendTo( CKEDITOR.document.getHead() );
|
||||
}
|
||||
};
|
||||
})();
|
||||
185
UI/WebServerResources/ckeditor/_source/core/skins.js
Normal file
185
UI/WebServerResources/ckeditor/_source/core/skins.js
Normal file
@@ -0,0 +1,185 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.skins} object, which is used to
|
||||
* manage skins loading.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Manages skins loading.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.skins = (function()
|
||||
{
|
||||
// Holds the list of loaded skins.
|
||||
var loaded = {};
|
||||
var preloaded = {};
|
||||
var paths = {};
|
||||
|
||||
var loadedPart = function( skinName, part, callback )
|
||||
{
|
||||
// Get the skin definition.
|
||||
var skinDefinition = loaded[ skinName ];
|
||||
|
||||
var appendSkinPath = function( fileNames )
|
||||
{
|
||||
for ( var n = 0 ; n < fileNames.length ; n++ )
|
||||
{
|
||||
fileNames[ n ] = CKEDITOR.getUrl( paths[ skinName ] + fileNames[ n ] );
|
||||
}
|
||||
};
|
||||
|
||||
// Check if we need to preload images from it.
|
||||
if ( !preloaded[ skinName ] )
|
||||
{
|
||||
var preload = skinDefinition.preload;
|
||||
if ( preload && preload.length > 0 )
|
||||
{
|
||||
appendSkinPath( preload );
|
||||
CKEDITOR.imageCacher.load( preload, function()
|
||||
{
|
||||
preloaded[ skinName ] = 1;
|
||||
loadedPart( skinName, part, callback );
|
||||
} );
|
||||
return;
|
||||
}
|
||||
|
||||
// Mark it as preloaded.
|
||||
preloaded[ skinName ] = 1;
|
||||
}
|
||||
|
||||
// Get the part definition.
|
||||
part = skinDefinition[ part ];
|
||||
var partIsLoaded = !part || !!part._isLoaded;
|
||||
|
||||
// Call the callback immediately if already loaded.
|
||||
if ( partIsLoaded )
|
||||
callback && callback();
|
||||
else
|
||||
{
|
||||
// Put the callback in a queue.
|
||||
var pending = part._pending || ( part._pending = [] );
|
||||
pending.push( callback );
|
||||
|
||||
// We may have more than one skin part load request. Just the first
|
||||
// one must do the loading job.
|
||||
if ( pending.length > 1 )
|
||||
return;
|
||||
|
||||
// Check whether the "css" and "js" properties have been defined
|
||||
// for that part.
|
||||
var cssIsLoaded = !part.css || !part.css.length;
|
||||
var jsIsLoaded = !part.js || !part.js.length;
|
||||
|
||||
// This is the function that will trigger the callback calls on
|
||||
// load.
|
||||
var checkIsLoaded = function()
|
||||
{
|
||||
if ( cssIsLoaded && jsIsLoaded )
|
||||
{
|
||||
// Mark the part as loaded.
|
||||
part._isLoaded = 1;
|
||||
|
||||
// Call all pending callbacks.
|
||||
for ( var i = 0 ; i < pending.length ; i++ )
|
||||
{
|
||||
if ( pending[ i ] )
|
||||
pending[ i ]();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Load the "css" pieces.
|
||||
if ( !cssIsLoaded )
|
||||
{
|
||||
appendSkinPath( part.css );
|
||||
|
||||
for ( var c = 0 ; c < part.css.length ; c++ )
|
||||
CKEDITOR.document.appendStyleSheet( part.css[ c ] );
|
||||
|
||||
cssIsLoaded = 1;
|
||||
}
|
||||
|
||||
// Load the "js" pieces.
|
||||
if ( !jsIsLoaded )
|
||||
{
|
||||
appendSkinPath( part.js );
|
||||
CKEDITOR.scriptLoader.load( part.js, function()
|
||||
{
|
||||
jsIsLoaded = 1;
|
||||
checkIsLoaded();
|
||||
});
|
||||
}
|
||||
|
||||
// We may have nothing to load, so check it immediately.
|
||||
checkIsLoaded();
|
||||
}
|
||||
};
|
||||
|
||||
return /** @lends CKEDITOR.skins */ {
|
||||
|
||||
/**
|
||||
* Registers a skin definition.
|
||||
* @param {String} skinName The skin name.
|
||||
* @param {Object} skinDefinition The skin definition.
|
||||
* @example
|
||||
*/
|
||||
add : function( skinName, skinDefinition )
|
||||
{
|
||||
loaded[ skinName ] = skinDefinition;
|
||||
|
||||
skinDefinition.skinPath = paths[ skinName ]
|
||||
|| ( paths[ skinName ] =
|
||||
CKEDITOR.getUrl(
|
||||
'skins/' + skinName + '/' ) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads a skin part. Skins are defined in parts, which are basically
|
||||
* separated CSS files. This function is mainly used by the core code and
|
||||
* should not have much use out of it.
|
||||
* @param {String} skinName The name of the skin to be loaded.
|
||||
* @param {String} skinPart The skin part to be loaded. Common skin parts
|
||||
* are "editor" and "dialog".
|
||||
* @param {Function} [callback] A function to be called once the skin
|
||||
* part files are loaded.
|
||||
* @example
|
||||
*/
|
||||
load : function( editor, skinPart, callback )
|
||||
{
|
||||
var skinName = editor.skinName,
|
||||
skinPath = editor.skinPath;
|
||||
|
||||
if ( loaded[ skinName ] )
|
||||
{
|
||||
loadedPart( skinName, skinPart, callback );
|
||||
|
||||
// Get the skin definition.
|
||||
var skinDefinition = loaded[ skinName ];
|
||||
|
||||
// Trigger init function if any.
|
||||
if ( skinDefinition.init )
|
||||
skinDefinition.init( editor );
|
||||
}
|
||||
else
|
||||
{
|
||||
paths[ skinName ] = skinPath;
|
||||
CKEDITOR.scriptLoader.load( skinPath + 'skin.js', function()
|
||||
{
|
||||
loadedPart( skinName, skinPart, callback );
|
||||
|
||||
// Get the skin definition.
|
||||
var skinDefinition = loaded[ skinName ];
|
||||
|
||||
// Trigger init function if any.
|
||||
if ( skinDefinition.init )
|
||||
skinDefinition.init( editor );
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
})();
|
||||
124
UI/WebServerResources/ckeditor/_source/core/test.js
Normal file
124
UI/WebServerResources/ckeditor/_source/core/test.js
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.test} object, which contains
|
||||
* functions used at our testing environment.
|
||||
*/
|
||||
|
||||
/*jsl:import ../tests/yuitest.js*/
|
||||
|
||||
/**
|
||||
* Contains functions used at our testing environment. Currently,
|
||||
* our testing system is based on the
|
||||
* <a href="http://developer.yahoo.com/yui/yuitest/">YUI Test</a>.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.test =
|
||||
{
|
||||
/**
|
||||
* The assertion namespace, containing all assertion functions. Currently,
|
||||
* this is an alias for
|
||||
* <a href="http://developer.yahoo.com/yui/docs/YAHOO.util.Assert.html">YAHOO.util.Assert</a>.
|
||||
* @example
|
||||
* <b>CKEDITOR.test.assert</b>.areEqual( '10', 10 ); // "true"
|
||||
* <b>CKEDITOR.test.assert</b>.areSame( '10', 10 ); // "false"
|
||||
* <b>CKEDITOR.test.assert</b>.isUndefined( window.test ); // "true"
|
||||
*/
|
||||
assert : YAHOO.util.Assert,
|
||||
|
||||
/**
|
||||
* Adds a test case to the test runner.
|
||||
* @param {Object} testCase The test case object. See other tests for
|
||||
* examples.
|
||||
* @example
|
||||
* <b>CKEDITOR.test.addTestCase</b>((function()
|
||||
* {
|
||||
* // Local reference to the "assert" object.
|
||||
* var assert = CKEDITOR.test.assert;
|
||||
*
|
||||
* return {
|
||||
* test_example : function()
|
||||
* {
|
||||
* assert.areSame( '10', 10 ); // FAIL
|
||||
* }
|
||||
* };
|
||||
* })());
|
||||
*/
|
||||
addTestCase : function( testCase )
|
||||
{
|
||||
YAHOO.tool.TestRunner.add( new YAHOO.tool.TestCase( testCase ) );
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the inner HTML of an element, for testing purposes.
|
||||
*/
|
||||
getInnerHtml : function( elementOrId )
|
||||
{
|
||||
var html;
|
||||
|
||||
if ( typeof elementOrId == 'string' )
|
||||
html = document.getElementById( elementOrId ).innerHTML;
|
||||
else if ( elementOrId.getHtml )
|
||||
html = elementOrId.getHtml();
|
||||
else
|
||||
html = elementOrId.innerHTML || '';
|
||||
|
||||
html = html.toLowerCase();
|
||||
html = html.replace( /[\n\r]/g, '' );
|
||||
|
||||
html = html.replace( /<\w[^>]*/g, function( match )
|
||||
{
|
||||
var attribs = [];
|
||||
var hasClass;
|
||||
|
||||
match = match.replace( /\s([^\s=]+)=((?:"[^"]*")|(?:'[^']*')|(?:[^\s]+))/g, function( match, attName, attValue )
|
||||
{
|
||||
if ( attName == 'style' )
|
||||
{
|
||||
// Safari adds some extra space to the end.
|
||||
attValue = attValue.replace( /\s+/g, '' );
|
||||
|
||||
// IE doesn't add the final ";"
|
||||
attValue = attValue.replace( /([^"';\s])\s*(["']?)$/, '$1;$2' );
|
||||
}
|
||||
|
||||
// IE may have 'class' more than once.
|
||||
if ( attName == 'class' )
|
||||
{
|
||||
if ( hasClass )
|
||||
return '';
|
||||
|
||||
hasClass = true;
|
||||
}
|
||||
|
||||
if ( attName != '_cke_expando' )
|
||||
attribs.push( [ attName, attValue ] );
|
||||
|
||||
return '';
|
||||
} );
|
||||
|
||||
attribs.sort( function( a, b )
|
||||
{
|
||||
var nameA = a[ 0 ];
|
||||
var nameB = b[ 0 ];
|
||||
return nameA < nameB ? -1 : nameA > nameB ? 1 : 0;
|
||||
} );
|
||||
|
||||
var ret = match.replace( /\s{2,}/g, ' ' );
|
||||
|
||||
for ( var i = 0 ; i < attribs.length ; i++ )
|
||||
{
|
||||
ret += ' ' + attribs[i][0] + '=';
|
||||
ret += (/^["']/).test( attribs[i][1] ) ? attribs[i][1] : '"' + attribs[i][1] + '"';
|
||||
}
|
||||
|
||||
return ret;
|
||||
} );
|
||||
|
||||
return html;
|
||||
}
|
||||
};
|
||||
18
UI/WebServerResources/ckeditor/_source/core/themes.js
Normal file
18
UI/WebServerResources/ckeditor/_source/core/themes.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to
|
||||
* manage themes registration and loading.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Manages themes registration and loading.
|
||||
* @namespace
|
||||
* @augments CKEDITOR.resourceManager
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.themes = new CKEDITOR.resourceManager(
|
||||
'themes/', 'theme' );
|
||||
508
UI/WebServerResources/ckeditor/_source/core/tools.js
Normal file
508
UI/WebServerResources/ckeditor/_source/core/tools.js
Normal file
@@ -0,0 +1,508 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.tools} object, which contains
|
||||
* utility functions.
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var functions = [];
|
||||
|
||||
/**
|
||||
* Utility functions.
|
||||
* @namespace
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.tools =
|
||||
{
|
||||
arrayCompare : function( arrayA, arrayB )
|
||||
{
|
||||
if ( !arrayA && !arrayB )
|
||||
return true;
|
||||
|
||||
if ( !arrayA || !arrayB || arrayA.length != arrayB.length )
|
||||
return false;
|
||||
|
||||
for ( var i = 0 ; i < arrayA.length ; i++ )
|
||||
{
|
||||
if ( arrayA[ i ] != arrayB[ i ] )
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates a deep copy of an object.
|
||||
* Attention: there is no support for recursive references.
|
||||
* @param {Object} object The object to be cloned.
|
||||
* @returns {Object} The object clone.
|
||||
* @example
|
||||
* var obj =
|
||||
* {
|
||||
* name : 'John',
|
||||
* cars :
|
||||
* {
|
||||
* Mercedes : { color : 'blue' },
|
||||
* Porsche : { color : 'red' }
|
||||
* }
|
||||
* };
|
||||
* var clone = CKEDITOR.tools.clone( obj );
|
||||
* clone.name = 'Paul';
|
||||
* clone.cars.Porsche.color = 'silver';
|
||||
* alert( obj.name ); // John
|
||||
* alert( clone.name ); // Paul
|
||||
* alert( obj.cars.Porsche.color ); // red
|
||||
* alert( clone.cars.Porsche.color ); // silver
|
||||
*/
|
||||
clone : function( obj )
|
||||
{
|
||||
var clone;
|
||||
|
||||
// Array.
|
||||
if ( obj && ( obj instanceof Array ) )
|
||||
{
|
||||
clone = [];
|
||||
|
||||
for ( var i = 0 ; i < obj.length ; i++ )
|
||||
clone[ i ] = this.clone( obj[ i ] );
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
// "Static" types.
|
||||
if ( obj === null
|
||||
|| ( typeof( obj ) != 'object' )
|
||||
|| ( obj instanceof String )
|
||||
|| ( obj instanceof Number )
|
||||
|| ( obj instanceof Boolean )
|
||||
|| ( obj instanceof Date ) )
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
|
||||
// Objects.
|
||||
clone = new obj.constructor();
|
||||
|
||||
for ( var propertyName in obj )
|
||||
{
|
||||
var property = obj[ propertyName ];
|
||||
clone[ propertyName ] = this.clone( property );
|
||||
}
|
||||
|
||||
return clone;
|
||||
},
|
||||
|
||||
/**
|
||||
* Copy the properties from one object to another. By default, properties
|
||||
* already present in the target object <strong>are not</strong> overwritten.
|
||||
* @param {Object} target The object to be extended.
|
||||
* @param {Object} source[,souce(n)] The objects from which copy
|
||||
* properties. Any number of objects can be passed to this function.
|
||||
* @param {Boolean} [overwrite] If 'true' is specified it indicates that
|
||||
* properties already present in the target object could be
|
||||
* overwritten by subsequent objects.
|
||||
* @param {Object} [properties] Only properties within the specified names
|
||||
* list will be received from the source object.
|
||||
* @returns {Object} the extended object (target).
|
||||
* @example
|
||||
* // Create the sample object.
|
||||
* var myObject =
|
||||
* {
|
||||
* prop1 : true
|
||||
* };
|
||||
*
|
||||
* // Extend the above object with two properties.
|
||||
* CKEDITOR.tools.extend( myObject,
|
||||
* {
|
||||
* prop2 : true,
|
||||
* prop3 : true
|
||||
* } );
|
||||
*
|
||||
* // Alert "prop1", "prop2" and "prop3".
|
||||
* for ( var p in myObject )
|
||||
* alert( p );
|
||||
*/
|
||||
extend : function( target )
|
||||
{
|
||||
var argsLength = arguments.length,
|
||||
overwrite, propertiesList;
|
||||
|
||||
if ( typeof ( overwrite = arguments[ argsLength - 1 ] ) == 'boolean')
|
||||
argsLength--;
|
||||
else if ( typeof ( overwrite = arguments[ argsLength - 2 ] ) == 'boolean' )
|
||||
{
|
||||
propertiesList = arguments [ argsLength -1 ];
|
||||
argsLength-=2;
|
||||
}
|
||||
for ( var i = 1 ; i < argsLength ; i++ )
|
||||
{
|
||||
var source = arguments[ i ];
|
||||
for ( var propertyName in source )
|
||||
{
|
||||
// Only copy existed fields if in overwrite mode.
|
||||
if ( overwrite === true || target[ propertyName ] == undefined )
|
||||
{
|
||||
// Only copy specified fields if list is provided.
|
||||
if ( !propertiesList || ( propertyName in propertiesList ) )
|
||||
target[ propertyName ] = source[ propertyName ];
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates an object which is an instance of a class which prototype is a
|
||||
* predefined object. All properties defined in the source object are
|
||||
* automatically inherited by the resulting object, including future
|
||||
* changes to it.
|
||||
* @param {Object} source The source object to be used as the prototype for
|
||||
* the final object.
|
||||
* @returns {Object} The resulting copy.
|
||||
*/
|
||||
prototypedCopy : function( source )
|
||||
{
|
||||
var copy = function()
|
||||
{};
|
||||
copy.prototype = source;
|
||||
return new copy();
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if an object is an Array.
|
||||
* @param {Object} object The object to be checked.
|
||||
* @type Boolean
|
||||
* @returns <i>true</i> if the object is an Array, otherwise <i>false</i>.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.isArray( [] ) ); // "true"
|
||||
* alert( CKEDITOR.tools.isArray( 'Test' ) ); // "false"
|
||||
*/
|
||||
isArray : function( object )
|
||||
{
|
||||
return ( !!object && object instanceof Array );
|
||||
},
|
||||
|
||||
/**
|
||||
* Transforms a CSS property name to its relative DOM style name.
|
||||
* @param {String} cssName The CSS property name.
|
||||
* @returns {String} The transformed name.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'background-color' ) ); // "backgroundColor"
|
||||
* alert( CKEDITOR.tools.cssStyleToDomStyle( 'float' ) ); // "cssFloat"
|
||||
*/
|
||||
cssStyleToDomStyle : function( cssName )
|
||||
{
|
||||
if ( cssName == 'float' )
|
||||
return 'cssFloat';
|
||||
else
|
||||
{
|
||||
return cssName.replace( /-./g, function( match )
|
||||
{
|
||||
return match.substr( 1 ).toUpperCase();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Replace special HTML characters in a string with their relative HTML
|
||||
* entity values.
|
||||
* @param {String} text The string to be encoded.
|
||||
* @returns {String} The encode string.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.htmlEncode( 'A > B & C < D' ) ); // "A &gt; B &amp; C &lt; D"
|
||||
*/
|
||||
htmlEncode : function( text )
|
||||
{
|
||||
var standard = function( text )
|
||||
{
|
||||
var span = new CKEDITOR.dom.element( 'span' );
|
||||
span.setText( text );
|
||||
return span.getHtml();
|
||||
};
|
||||
|
||||
this.htmlEncode = ( standard( '>' ) == '>' ) ?
|
||||
function( text )
|
||||
{
|
||||
// WebKit does't encode the ">" character, which makes sense, but
|
||||
// it's different than other browsers.
|
||||
return standard( text ).replace( />/g, '>' );
|
||||
} :
|
||||
standard;
|
||||
|
||||
return this.htmlEncode( text );
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets a unique number for this CKEDITOR execution session. It returns
|
||||
* progressive numbers starting at 1.
|
||||
* @function
|
||||
* @returns {Number} A unique number.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "1" (e.g.)
|
||||
* alert( CKEDITOR.tools.<b>getNextNumber()</b> ); // "2"
|
||||
*/
|
||||
getNextNumber : (function()
|
||||
{
|
||||
var last = 0;
|
||||
return function()
|
||||
{
|
||||
return ++last;
|
||||
};
|
||||
})(),
|
||||
|
||||
/**
|
||||
* Creates a function override.
|
||||
* @param {Function} originalFunction The function to be overridden.
|
||||
* @param {Function} functionBuilder A function that returns the new
|
||||
* function. The original function reference will be passed to this
|
||||
* function.
|
||||
* @returns {Function} The new function.
|
||||
* @example
|
||||
* var example =
|
||||
* {
|
||||
* myFunction : function( name )
|
||||
* {
|
||||
* alert( 'Name: ' + name );
|
||||
* }
|
||||
* };
|
||||
*
|
||||
* example.myFunction = CKEDITOR.tools.override( example.myFunction, function( myFunctionOriginal )
|
||||
* {
|
||||
* return function( name )
|
||||
* {
|
||||
* alert( 'Override Name: ' + name );
|
||||
* myFunctionOriginal.call( this, name );
|
||||
* };
|
||||
* });
|
||||
*/
|
||||
override : function( originalFunction, functionBuilder )
|
||||
{
|
||||
return functionBuilder( originalFunction );
|
||||
},
|
||||
|
||||
/**
|
||||
* Executes a function after specified delay.
|
||||
* @param {Function} func The function to be executed.
|
||||
* @param {Number} [milliseconds] The amount of time (millisecods) to wait
|
||||
* to fire the function execution. Defaults to zero.
|
||||
* @param {Object} [scope] The object to hold the function execution scope
|
||||
* (the "this" object). By default the "window" object.
|
||||
* @param {Object|Array} [args] A single object, or an array of objects, to
|
||||
* pass as arguments to the function.
|
||||
* @param {Object} [ownerWindow] The window that will be used to set the
|
||||
* timeout. By default the current "window".
|
||||
* @returns {Object} A value that can be used to cancel the function execution.
|
||||
* @example
|
||||
* CKEDITOR.tools.<b>setTimeout(
|
||||
* function()
|
||||
* {
|
||||
* alert( 'Executed after 2 seconds' );
|
||||
* },
|
||||
* 2000 )</b>;
|
||||
*/
|
||||
setTimeout : function( func, milliseconds, scope, args, ownerWindow )
|
||||
{
|
||||
if ( !ownerWindow )
|
||||
ownerWindow = window;
|
||||
|
||||
if ( !scope )
|
||||
scope = ownerWindow;
|
||||
|
||||
return ownerWindow.setTimeout(
|
||||
function()
|
||||
{
|
||||
if ( args )
|
||||
func.apply( scope, [].concat( args ) ) ;
|
||||
else
|
||||
func.apply( scope ) ;
|
||||
},
|
||||
milliseconds || 0 );
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove spaces from the start and the end of a string. The following
|
||||
* characters are removed: space, tab, line break, line feed.
|
||||
* @function
|
||||
* @param {String} str The text from which remove the spaces.
|
||||
* @returns {String} The modified string without the boundary spaces.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.trim( ' example ' ); // "example"
|
||||
*/
|
||||
trim : (function()
|
||||
{
|
||||
// We are not using \s because we don't want "non-breaking spaces" to be caught.
|
||||
var trimRegex = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
|
||||
return function( str )
|
||||
{
|
||||
return str.replace( trimRegex, '' ) ;
|
||||
};
|
||||
})(),
|
||||
|
||||
/**
|
||||
* Remove spaces from the start (left) of a string. The following
|
||||
* characters are removed: space, tab, line break, line feed.
|
||||
* @function
|
||||
* @param {String} str The text from which remove the spaces.
|
||||
* @returns {String} The modified string excluding the removed spaces.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.ltrim( ' example ' ); // "example "
|
||||
*/
|
||||
ltrim : (function()
|
||||
{
|
||||
// We are not using \s because we don't want "non-breaking spaces" to be caught.
|
||||
var trimRegex = /^[ \t\n\r]+/g;
|
||||
return function( str )
|
||||
{
|
||||
return str.replace( trimRegex, '' ) ;
|
||||
};
|
||||
})(),
|
||||
|
||||
/**
|
||||
* Remove spaces from the end (right) of a string. The following
|
||||
* characters are removed: space, tab, line break, line feed.
|
||||
* @function
|
||||
* @param {String} str The text from which remove the spaces.
|
||||
* @returns {String} The modified string excluding the removed spaces.
|
||||
* @example
|
||||
* alert( CKEDITOR.tools.ltrim( ' example ' ); // " example"
|
||||
*/
|
||||
rtrim : (function()
|
||||
{
|
||||
// We are not using \s because we don't want "non-breaking spaces" to be caught.
|
||||
var trimRegex = /[ \t\n\r]+$/g;
|
||||
return function( str )
|
||||
{
|
||||
return str.replace( trimRegex, '' ) ;
|
||||
};
|
||||
})(),
|
||||
|
||||
/**
|
||||
* Returns the index of an element in an array.
|
||||
* @param {Array} array The array to be searched.
|
||||
* @param {Object} entry The element to be found.
|
||||
* @returns {Number} The (zero based) index of the first entry that matches
|
||||
* the entry, or -1 if not found.
|
||||
* @example
|
||||
* var letters = [ 'a', 'b', 0, 'c', false ];
|
||||
* alert( CKEDITOR.tools.indexOf( letters, '0' ) ); "-1" because 0 !== '0'
|
||||
* alert( CKEDITOR.tools.indexOf( letters, false ) ); "4" because 0 !== false
|
||||
*/
|
||||
indexOf :
|
||||
// #2514: We should try to use Array.indexOf if it does exist.
|
||||
( Array.prototype.indexOf ) ?
|
||||
function( array, entry )
|
||||
{
|
||||
return array.indexOf( entry );
|
||||
}
|
||||
:
|
||||
function( array, entry )
|
||||
{
|
||||
for ( var i = 0, len = array.length ; i < len ; i++ )
|
||||
{
|
||||
if ( array[ i ] === entry )
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
},
|
||||
|
||||
bind : function( func, obj )
|
||||
{
|
||||
return function() { return func.apply( obj, arguments ); };
|
||||
},
|
||||
|
||||
/**
|
||||
* Class creation based on prototype inheritance, with supports of the
|
||||
* following features:
|
||||
* <ul>
|
||||
* <li> Static fields </li>
|
||||
* <li> Private fields </li>
|
||||
* <li> Public(prototype) fields </li>
|
||||
* <li> Chainable base class constructor </li>
|
||||
* </ul>
|
||||
*
|
||||
* @param {Object} definiton (Optional)The class definiton object.
|
||||
*/
|
||||
createClass : function( definition )
|
||||
{
|
||||
var $ = definition.$,
|
||||
baseClass = definition.base,
|
||||
privates = definition.privates || definition._,
|
||||
proto = definition.proto,
|
||||
statics = definition.statics;
|
||||
|
||||
if ( privates )
|
||||
{
|
||||
var originalConstructor = $;
|
||||
$ = function()
|
||||
{
|
||||
// Create (and get) the private namespace.
|
||||
var _ = this._ || ( this._ = {} );
|
||||
|
||||
// Make some magic so "this" will refer to the main
|
||||
// instance when coding private functions.
|
||||
for ( var privateName in privates )
|
||||
{
|
||||
var priv = privates[ privateName ];
|
||||
|
||||
_[ privateName ] =
|
||||
( typeof priv == 'function' ) ? CKEDITOR.tools.bind( priv, this ) : priv;
|
||||
}
|
||||
|
||||
originalConstructor.apply( this, arguments );
|
||||
};
|
||||
}
|
||||
|
||||
if ( baseClass )
|
||||
{
|
||||
$.prototype = this.prototypedCopy( baseClass.prototype );
|
||||
$.prototype.constructor = $;
|
||||
$.prototype.base = function()
|
||||
{
|
||||
this.base = baseClass.prototype.base;
|
||||
baseClass.apply( this, arguments );
|
||||
this.base = arguments.callee;
|
||||
};
|
||||
}
|
||||
|
||||
if ( proto )
|
||||
this.extend( $.prototype, proto, true );
|
||||
|
||||
if ( statics )
|
||||
this.extend( $, statics, true );
|
||||
|
||||
return $;
|
||||
},
|
||||
|
||||
addFunction : function( fn, scope )
|
||||
{
|
||||
return functions.push( function()
|
||||
{
|
||||
fn.apply( scope || this, arguments );
|
||||
}) - 1;
|
||||
},
|
||||
|
||||
callFunction : function( index )
|
||||
{
|
||||
var fn = functions[ index ];
|
||||
return fn.apply( window, Array.prototype.slice.call( arguments, 1 ) );
|
||||
},
|
||||
|
||||
cssLength : (function()
|
||||
{
|
||||
var decimalRegex = /^\d+(?:\.\d+)?$/;
|
||||
return function( length )
|
||||
{
|
||||
return length + ( decimalRegex.test( length ) ? 'px' : '' );
|
||||
};
|
||||
})()
|
||||
};
|
||||
})();
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.tools )
|
||||
106
UI/WebServerResources/ckeditor/_source/core/ui.js
Normal file
106
UI/WebServerResources/ckeditor/_source/core/ui.js
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains UI features related to an editor instance.
|
||||
* @constructor
|
||||
* @param {CKEDITOR.editor} editor The editor instance.
|
||||
* @example
|
||||
*/
|
||||
CKEDITOR.ui = function( editor )
|
||||
{
|
||||
if ( editor.ui )
|
||||
return editor.ui;
|
||||
|
||||
/**
|
||||
* Object used to hold private stuff.
|
||||
* @private
|
||||
*/
|
||||
this._ =
|
||||
{
|
||||
handlers : {},
|
||||
items : {}
|
||||
};
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
// PACKAGER_RENAME( CKEDITOR.ui )
|
||||
|
||||
CKEDITOR.ui.prototype =
|
||||
{
|
||||
/**
|
||||
* Adds a UI item to the items collection. These items can be later used in
|
||||
* the interface.
|
||||
* @param {String} name The UI item name.
|
||||
* @param {Object} type The item type.
|
||||
* @param {Object} definition The item definition. The properties of this
|
||||
* object depend on the item type.
|
||||
* @example
|
||||
* // Add a new button named "MyBold".
|
||||
* editorInstance.ui.add( 'MyBold', CKEDITOR.UI_BUTTON,
|
||||
* {
|
||||
* label : 'My Bold',
|
||||
* command : 'bold'
|
||||
* });
|
||||
*/
|
||||
add : function( name, type, definition )
|
||||
{
|
||||
this._.items[ name ] =
|
||||
{
|
||||
type : type,
|
||||
args : Array.prototype.slice.call( arguments, 2 )
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets a UI object.
|
||||
* @param {String} name The UI item hame.
|
||||
* @example
|
||||
*/
|
||||
create : function( name )
|
||||
{
|
||||
var item = this._.items[ name ],
|
||||
handler = item && this._.handlers[ item.type ];
|
||||
|
||||
return handler && handler.create.apply( this, item.args );
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a handler for a UI item type. The handler is responsible for
|
||||
* transforming UI item definitions in UI objects.
|
||||
* @param {Object} type The item type.
|
||||
* @param {Object} handler The handler definition.
|
||||
* @example
|
||||
*/
|
||||
addHandler : function( type, handler )
|
||||
{
|
||||
this._.handlers[ type ] = handler;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* (Virtual Class) Do not call this constructor. This class is not really part
|
||||
* of the API. It just illustrates the features of hanlder objects to be
|
||||
* passed to the {@link CKEDITOR.ui.prototype.addHandler} function.
|
||||
* @name CKEDITOR.ui.handlerDefinition
|
||||
* @constructor
|
||||
* @example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Transforms an item definition into an UI item object.
|
||||
* @name CKEDITOR.handlerDefinition.prototype.create
|
||||
* @function
|
||||
* @param {Object} definition The item definition.
|
||||
* @example
|
||||
* editorInstance.ui.addHandler( CKEDITOR.UI_BUTTON,
|
||||
* {
|
||||
* create : function( definition )
|
||||
* {
|
||||
* return new CKEDITOR.ui.button( definition );
|
||||
* }
|
||||
* });
|
||||
*/
|
||||
165
UI/WebServerResources/ckeditor/_source/core/xml.js
Normal file
165
UI/WebServerResources/ckeditor/_source/core/xml.js
Normal file
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.xml} class, which represents a
|
||||
* loaded XML document.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a loaded XML document.
|
||||
* @constructor
|
||||
* @param {object|string} xmlObjectOrData A native XML (DOM document) object or
|
||||
* a string containing the XML definition to be loaded.
|
||||
* @example
|
||||
* var xml = <b>new CKEDITOR.xml( '<books><book title="My Book" /></books>' )</b>;
|
||||
*/
|
||||
CKEDITOR.xml = function( xmlObjectOrData )
|
||||
{
|
||||
var baseXml = null;
|
||||
|
||||
if ( typeof xmlObjectOrData == 'object' )
|
||||
baseXml = xmlObjectOrData;
|
||||
else
|
||||
{
|
||||
var data = ( xmlObjectOrData || '' ).replace( / /g, '\xA0' );
|
||||
if ( window.DOMParser )
|
||||
baseXml = (new DOMParser()).parseFromString( data, 'text/xml' );
|
||||
else if ( window.ActiveXObject )
|
||||
{
|
||||
try { baseXml = new ActiveXObject( 'MSXML2.DOMDocument' ); }
|
||||
catch(e)
|
||||
{
|
||||
try { baseXml = new ActiveXObject( 'Microsoft.XmlDom' ); } catch(e) {}
|
||||
}
|
||||
|
||||
if ( baseXml )
|
||||
{
|
||||
baseXml.async = false;
|
||||
baseXml.resolveExternals = false;
|
||||
baseXml.validateOnParse = false;
|
||||
baseXml.loadXML( data );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The native XML (DOM document) used by the class instance.
|
||||
* @type object
|
||||
* @example
|
||||
*/
|
||||
this.baseXml = baseXml;
|
||||
};
|
||||
|
||||
CKEDITOR.xml.prototype =
|
||||
{
|
||||
/**
|
||||
* Get a single node from the XML document, based on a XPath query.
|
||||
* @param {String} xpath The XPath query to execute.
|
||||
* @param {Object} [contextNode] The XML DOM node to be used as the context
|
||||
* for the XPath query. The document root is used by default.
|
||||
* @returns {Object} A XML node element or null if the query has no results.
|
||||
* @example
|
||||
* // Create the XML instance.
|
||||
* var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' );
|
||||
* // Get the first <item> node.
|
||||
* var itemNode = <b>xml.selectSingleNode( 'list/item' )</b>;
|
||||
* // Alert "item".
|
||||
* alert( itemNode.nodeName );
|
||||
*/
|
||||
selectSingleNode : function( xpath, contextNode )
|
||||
{
|
||||
var baseXml = this.baseXml;
|
||||
|
||||
if ( contextNode || ( contextNode = baseXml ) )
|
||||
{
|
||||
if ( CKEDITOR.env.ie || contextNode.selectSingleNode ) // IE
|
||||
return contextNode.selectSingleNode( xpath );
|
||||
else if ( baseXml.evaluate ) // Others
|
||||
{
|
||||
var result = baseXml.evaluate( xpath, contextNode, null, 9, null);
|
||||
return ( result && result.singleNodeValue ) || null;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets a list node from the XML document, based on a XPath query.
|
||||
* @param {String} xpath The XPath query to execute.
|
||||
* @param {Object} [contextNode] The XML DOM node to be used as the context
|
||||
* for the XPath query. The document root is used by default.
|
||||
* @returns {ArrayLike} An array containing all matched nodes. The array will
|
||||
* be empty if the query has no results.
|
||||
* @example
|
||||
* // Create the XML instance.
|
||||
* var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' );
|
||||
* // Get the first <item> node.
|
||||
* var itemNodes = xml.selectSingleNode( 'list/item' );
|
||||
* // Alert "item" twice, one for each <item>.
|
||||
* for ( var i = 0 ; i < itemNodes.length ; i++ )
|
||||
* alert( itemNodes[i].nodeName );
|
||||
*/
|
||||
selectNodes : function( xpath, contextNode )
|
||||
{
|
||||
var baseXml = this.baseXml,
|
||||
nodes = [];
|
||||
|
||||
if ( contextNode || ( contextNode = baseXml ) )
|
||||
{
|
||||
if ( CKEDITOR.env.ie || contextNode.selectNodes ) // IE
|
||||
return contextNode.selectNodes( xpath );
|
||||
else if ( baseXml.evaluate ) // Others
|
||||
{
|
||||
var result = baseXml.evaluate( xpath, contextNode, null, 5, null);
|
||||
|
||||
if ( result )
|
||||
{
|
||||
var node;
|
||||
while( ( node = result.iterateNext() ) )
|
||||
nodes.push( node );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nodes;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the string representation of hte inner contents of a XML node,
|
||||
* based on a XPath query.
|
||||
* @param {String} xpath The XPath query to execute.
|
||||
* @param {Object} [contextNode] The XML DOM node to be used as the context
|
||||
* for the XPath query. The document root is used by default.
|
||||
* @returns {String} The textual representation of the inner contents of
|
||||
* the node or null if the query has no results.
|
||||
* @example
|
||||
* // Create the XML instance.
|
||||
* var xml = new CKEDITOR.xml( '<list><item id="test1" /><item id="test2" /></list>' );
|
||||
* // Alert "<item id="test1" /><item id="test2" />".
|
||||
* alert( xml.getInnerXml( 'list' ) );
|
||||
*/
|
||||
getInnerXml : function( xpath, contextNode )
|
||||
{
|
||||
var node = this.selectSingleNode( xpath, contextNode ),
|
||||
xml = [];
|
||||
if ( node )
|
||||
{
|
||||
node = node.firstChild;
|
||||
while ( node )
|
||||
{
|
||||
if ( node.xml ) // IE
|
||||
xml.push( node.xml );
|
||||
else if ( window.XMLSerializer ) // Others
|
||||
xml.push( ( new XMLSerializer() ).serializeToString( node ) );
|
||||
|
||||
node = node.nextSibling;
|
||||
}
|
||||
}
|
||||
|
||||
return xml.length ? xml.join( '' ) : null;
|
||||
}
|
||||
};
|
||||
82
UI/WebServerResources/ckeditor/_source/lang/_languages.js
Normal file
82
UI/WebServerResources/ckeditor/_source/lang/_languages.js
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
var CKEDITOR_LANGS = (function()
|
||||
{
|
||||
var langs =
|
||||
{
|
||||
af : 'Afrikaans',
|
||||
ar : 'Arabic',
|
||||
bg : 'Bulgarian',
|
||||
bn : 'Bengali/Bangla',
|
||||
bs : 'Bosnian',
|
||||
ca : 'Catalan',
|
||||
cs : 'Czech',
|
||||
da : 'Danish',
|
||||
de : 'German',
|
||||
el : 'Greek',
|
||||
en : 'English',
|
||||
'en-au' : 'English (Australia)',
|
||||
'en-ca' : 'English (Canadian)',
|
||||
'en-uk' : 'English (United Kingdom)',
|
||||
eo : 'Esperanto',
|
||||
es : 'Spanish',
|
||||
et : 'Estonian',
|
||||
eu : 'Basque',
|
||||
fa : 'Persian',
|
||||
fi : 'Finnish',
|
||||
fo : 'Faroese',
|
||||
fr : 'French',
|
||||
'fr-ca' : 'French (Canada)',
|
||||
gl : 'Galician',
|
||||
gu : 'Gujarati',
|
||||
he : 'Hebrew',
|
||||
hi : 'Hindi',
|
||||
hr : 'Croatian',
|
||||
hu : 'Hungarian',
|
||||
is : 'Icelandic',
|
||||
it : 'Italian',
|
||||
ja : 'Japanese',
|
||||
km : 'Khmer',
|
||||
ko : 'Korean',
|
||||
lt : 'Lithuanian',
|
||||
lv : 'Latvian',
|
||||
mn : 'Mongolian',
|
||||
ms : 'Malay',
|
||||
nb : 'Norwegian Bokmal',
|
||||
nl : 'Dutch',
|
||||
no : 'Norwegian',
|
||||
pl : 'Polish',
|
||||
pt : 'Portuguese (Portugal)',
|
||||
'pt-br' : 'Portuguese (Brazil)',
|
||||
ro : 'Romanian',
|
||||
ru : 'Russian',
|
||||
sk : 'Slovak',
|
||||
sl : 'Slovenian',
|
||||
sr : 'Serbian (Cyrillic)',
|
||||
'sr-latn' : 'Serbian (Latin)',
|
||||
sv : 'Swedish',
|
||||
th : 'Thai',
|
||||
tr : 'Turkish',
|
||||
uk : 'Ukrainian',
|
||||
vi : 'Vietnamese',
|
||||
zh : 'Chinese Traditional',
|
||||
'zh-cn' : 'Chinese Simplified'
|
||||
};
|
||||
|
||||
var langsArray = [];
|
||||
|
||||
for ( var code in langs )
|
||||
{
|
||||
langsArray.push( { code : code, name : langs[ code ] } );
|
||||
}
|
||||
|
||||
langsArray.sort( function( a, b )
|
||||
{
|
||||
return ( a.name < b.name ) ? -1 : 1;
|
||||
});
|
||||
|
||||
return langsArray;
|
||||
})();
|
||||
@@ -0,0 +1,59 @@
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
|
||||
af.js Found: 312 Missing: 122
|
||||
ar.js Found: 327 Missing: 107
|
||||
bg.js Found: 305 Missing: 129
|
||||
bn.js Found: 307 Missing: 127
|
||||
bs.js Found: 210 Missing: 224
|
||||
ca.js Found: 327 Missing: 107
|
||||
cs.js Found: 327 Missing: 107
|
||||
da.js Found: 326 Missing: 108
|
||||
de.js Found: 421 Missing: 13
|
||||
el.js Found: 311 Missing: 123
|
||||
en-au.js Found: 395 Missing: 39
|
||||
en-ca.js Found: 395 Missing: 39
|
||||
en-uk.js Found: 395 Missing: 39
|
||||
eo.js Found: 282 Missing: 152
|
||||
es.js Found: 332 Missing: 102
|
||||
et.js Found: 326 Missing: 108
|
||||
eu.js Found: 327 Missing: 107
|
||||
fa.js Found: 327 Missing: 107
|
||||
fi.js Found: 325 Missing: 109
|
||||
fo.js Found: 326 Missing: 108
|
||||
fr-ca.js Found: 327 Missing: 107
|
||||
fr.js Found: 369 Missing: 65
|
||||
gl.js Found: 308 Missing: 126
|
||||
gu.js Found: 326 Missing: 108
|
||||
he.js Found: 332 Missing: 102
|
||||
hi.js Found: 327 Missing: 107
|
||||
hr.js Found: 327 Missing: 107
|
||||
hu.js Found: 326 Missing: 108
|
||||
is.js Found: 332 Missing: 102
|
||||
it.js Found: 325 Missing: 109
|
||||
ja.js Found: 327 Missing: 107
|
||||
km.js Found: 299 Missing: 135
|
||||
ko.js Found: 318 Missing: 116
|
||||
lt.js Found: 331 Missing: 103
|
||||
lv.js Found: 308 Missing: 126
|
||||
mn.js Found: 326 Missing: 108
|
||||
ms.js Found: 287 Missing: 147
|
||||
nb.js Found: 325 Missing: 109
|
||||
nl.js Found: 327 Missing: 107
|
||||
no.js Found: 325 Missing: 109
|
||||
pl.js Found: 325 Missing: 109
|
||||
pt-br.js Found: 325 Missing: 109
|
||||
pt.js Found: 307 Missing: 127
|
||||
ro.js Found: 326 Missing: 108
|
||||
ru.js Found: 332 Missing: 102
|
||||
sk.js Found: 327 Missing: 107
|
||||
sl.js Found: 325 Missing: 109
|
||||
sr-latn.js Found: 301 Missing: 133
|
||||
sr.js Found: 301 Missing: 133
|
||||
sv.js Found: 324 Missing: 110
|
||||
th.js Found: 312 Missing: 122
|
||||
tr.js Found: 332 Missing: 102
|
||||
uk.js Found: 327 Missing: 107
|
||||
vi.js Found: 326 Missing: 108
|
||||
zh-cn.js Found: 332 Missing: 102
|
||||
zh.js Found: 327 Missing: 107
|
||||
673
UI/WebServerResources/ckeditor/_source/lang/af.js
Normal file
673
UI/WebServerResources/ckeditor/_source/lang/af.js
Normal file
@@ -0,0 +1,673 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
|
||||
* Afrikaans language.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
@type String
|
||||
@example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constains the dictionary of language entries.
|
||||
* @namespace
|
||||
*/
|
||||
CKEDITOR.lang['af'] =
|
||||
{
|
||||
/**
|
||||
* The language reading direction. Possible values are "rtl" for
|
||||
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
|
||||
* languages (like English).
|
||||
* @default 'ltr'
|
||||
*/
|
||||
dir : 'ltr',
|
||||
|
||||
/*
|
||||
* Screenreader titles. Please note that screenreaders are not always capable
|
||||
* of reading non-English words. So be careful while translating it.
|
||||
*/
|
||||
editorTitle : 'Rich text editor, %1', // MISSING
|
||||
|
||||
// Toolbar buttons without dialogs.
|
||||
source : 'Source',
|
||||
newPage : 'Nuwe Bladsy',
|
||||
save : 'Bewaar',
|
||||
preview : 'Voorskou',
|
||||
cut : 'Uitsny ',
|
||||
copy : 'Kopieer',
|
||||
paste : 'Byvoeg',
|
||||
print : 'Druk',
|
||||
underline : 'Onderstreep',
|
||||
bold : 'Vet',
|
||||
italic : 'Skuins',
|
||||
selectAll : 'Selekteer alles',
|
||||
removeFormat : 'Formaat verweider',
|
||||
strike : 'Gestreik',
|
||||
subscript : 'Subscript',
|
||||
superscript : 'Superscript',
|
||||
horizontalrule : 'Horisontale lyn byvoeg',
|
||||
pagebreak : 'Bladsy breek byvoeg',
|
||||
unlink : 'Skakel verweider',
|
||||
undo : 'Ont-skep',
|
||||
redo : 'Her-skep',
|
||||
|
||||
// Common messages and labels.
|
||||
common :
|
||||
{
|
||||
browseServer : 'Server deurblaai',
|
||||
url : 'URL',
|
||||
protocol : 'Protokol',
|
||||
upload : 'Oplaai',
|
||||
uploadSubmit : 'Stuur dit na die Server',
|
||||
image : 'Beeld',
|
||||
flash : 'Flash',
|
||||
form : 'Form',
|
||||
checkbox : 'HakBox',
|
||||
radio : 'PuntBox',
|
||||
textField : 'Byvoegbare karakter strook',
|
||||
textarea : 'Byvoegbare karakter area',
|
||||
hiddenField : 'Blinde strook',
|
||||
button : 'Knop',
|
||||
select : 'Opklapbare keuse strook',
|
||||
imageButton : 'Beeld knop',
|
||||
notSet : '<geen instelling>',
|
||||
id : 'Id',
|
||||
name : 'Naam',
|
||||
langDir : 'Taal rigting',
|
||||
langDirLtr : 'Links na regs (LTR)',
|
||||
langDirRtl : 'Regs na links (RTL)',
|
||||
langCode : 'Taal kode',
|
||||
longDescr : 'Lang beskreiwing URL',
|
||||
cssClass : 'Skakel Tiepe',
|
||||
advisoryTitle : 'Voorbeveelings Titel',
|
||||
cssStyle : 'Styl',
|
||||
ok : 'OK',
|
||||
cancel : 'Kanseleer',
|
||||
generalTab : 'General', // MISSING
|
||||
advancedTab : 'Ingewikkeld',
|
||||
validateNumberFailed : 'This value is not a number.', // MISSING
|
||||
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
|
||||
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
|
||||
|
||||
// Put the voice-only part of the label in the span.
|
||||
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
|
||||
},
|
||||
|
||||
// Special char dialog.
|
||||
specialChar :
|
||||
{
|
||||
toolbar : 'Spesiaale Karakter byvoeg',
|
||||
title : 'Kies spesiale karakter'
|
||||
},
|
||||
|
||||
// Link dialog.
|
||||
link :
|
||||
{
|
||||
toolbar : 'Skakel byvoeg/verander',
|
||||
menu : 'Verander skakel',
|
||||
title : 'Skakel',
|
||||
info : 'Skakel informasie',
|
||||
target : 'Mikpunt',
|
||||
upload : 'Oplaai',
|
||||
advanced : 'Ingewikkeld',
|
||||
type : 'Skakel soort',
|
||||
toAnchor : 'Skakel na plekhouers in text',
|
||||
toEmail : 'E-Mail',
|
||||
target : 'Mikpunt',
|
||||
targetNotSet : '<geen instelling>',
|
||||
targetFrame : '<raam>',
|
||||
targetPopup : '<popup venster>',
|
||||
targetNew : 'Nuwe Venster (_blank)',
|
||||
targetTop : 'Boonste Venster (_top)',
|
||||
targetSelf : 'Selfde Venster (_self)',
|
||||
targetParent : 'Vorige Venster (_parent)',
|
||||
targetFrameName : 'Mikpunt Venster Naam',
|
||||
targetPopupName : 'Popup Venster Naam',
|
||||
popupFeatures : 'Popup Venster Geaartheid',
|
||||
popupResizable : 'Resizable', // MISSING
|
||||
popupStatusBar : 'Status Balk',
|
||||
popupLocationBar : 'Adres Balk',
|
||||
popupToolbar : 'Gereedskap Balk',
|
||||
popupMenuBar : 'Menu Balk',
|
||||
popupFullScreen : 'Voll Skerm (IE)',
|
||||
popupScrollBars : 'Gleibalkstuk',
|
||||
popupDependent : 'Afhanklik (Netscape)',
|
||||
popupWidth : 'Weite',
|
||||
popupLeft : 'Links Posisie',
|
||||
popupHeight : 'Hoogde',
|
||||
popupTop : 'Bo Posisie',
|
||||
id : 'Id', // MISSING
|
||||
langDir : 'Taal rigting',
|
||||
langDirNotSet : '<geen instelling>',
|
||||
langDirLTR : 'Links na regs (LTR)',
|
||||
langDirRTL : 'Regs na links (RTL)',
|
||||
acccessKey : 'Toegang sleutel',
|
||||
name : 'Naam',
|
||||
langCode : 'Taal rigting',
|
||||
tabIndex : 'Tab Index',
|
||||
advisoryTitle : 'Voorbeveelings Titel',
|
||||
advisoryContentType : 'Voorbeveelings inhoud soort',
|
||||
cssClasses : 'Skakel Tiepe',
|
||||
charset : 'Geskakelde voorbeeld karakterstel',
|
||||
styles : 'Styl',
|
||||
selectAnchor : 'Kies \'n plekhouer',
|
||||
anchorName : 'Volgens plekhouer naam',
|
||||
anchorId : 'Volgens element Id',
|
||||
emailAddress : 'E-Mail Adres',
|
||||
emailSubject : 'Boodskap Opskrif',
|
||||
emailBody : 'Boodskap Inhoud',
|
||||
noAnchors : '(Geen plekhouers beskikbaar in dokument}',
|
||||
noUrl : 'Voeg asseblief die URL in',
|
||||
noEmail : 'Voeg asseblief die e-mail adres in'
|
||||
},
|
||||
|
||||
// Anchor dialog
|
||||
anchor :
|
||||
{
|
||||
toolbar : 'Plekhouer byvoeg/verander',
|
||||
menu : 'Plekhouer eienskappe',
|
||||
title : 'Plekhouer eienskappe',
|
||||
name : 'Plekhouer Naam',
|
||||
errorName : 'Voltooi die plekhouer naam asseblief'
|
||||
},
|
||||
|
||||
// Find And Replace Dialog
|
||||
findAndReplace :
|
||||
{
|
||||
title : 'Find and Replace', // MISSING
|
||||
find : 'Vind',
|
||||
replace : 'Vervang',
|
||||
findWhat : 'Soek wat:',
|
||||
replaceWith : 'Vervang met:',
|
||||
notFoundMsg : 'Die gespesifiseerde karakters word nie gevind nie.',
|
||||
matchCase : 'Vergelyk karakter skryfweise',
|
||||
matchWord : 'Vergelyk komplete woord',
|
||||
matchCyclic : 'Match cyclic', // MISSING
|
||||
replaceAll : 'Vervang alles',
|
||||
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
|
||||
},
|
||||
|
||||
// Table Dialog
|
||||
table :
|
||||
{
|
||||
toolbar : 'Tabel',
|
||||
title : 'Tabel eienskappe',
|
||||
menu : 'Tabel eienskappe',
|
||||
deleteTable : 'Tabel verweider',
|
||||
rows : 'Reie',
|
||||
columns : 'Kolome',
|
||||
border : 'Kant groote',
|
||||
align : 'Parideering',
|
||||
alignNotSet : '<geen instelling>',
|
||||
alignLeft : 'Links',
|
||||
alignCenter : 'Middel',
|
||||
alignRight : 'Regs',
|
||||
width : 'Weite',
|
||||
widthPx : 'pixels',
|
||||
widthPc : 'percent',
|
||||
height : 'Hoogde',
|
||||
cellSpace : 'Cell spasieering',
|
||||
cellPad : 'Cell buffer',
|
||||
caption : 'Beskreiwing',
|
||||
summary : 'Opsomming',
|
||||
headers : 'Headers', // MISSING
|
||||
headersNone : 'None', // MISSING
|
||||
headersColumn : 'First column', // MISSING
|
||||
headersRow : 'First Row', // MISSING
|
||||
headersBoth : 'Both', // MISSING
|
||||
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
|
||||
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
|
||||
invalidBorder : 'Border size must be a number.', // MISSING
|
||||
invalidWidth : 'Table width must be a number.', // MISSING
|
||||
invalidHeight : 'Table height must be a number.', // MISSING
|
||||
invalidCellSpacing : 'Cell spacing must be a number.', // MISSING
|
||||
invalidCellPadding : 'Cell padding must be a number.', // MISSING
|
||||
|
||||
cell :
|
||||
{
|
||||
menu : 'Cell',
|
||||
insertBefore : 'Insert Cell Before', // MISSING
|
||||
insertAfter : 'Insert Cell After', // MISSING
|
||||
deleteCell : 'Cell verweider',
|
||||
merge : 'Cell verenig',
|
||||
mergeRight : 'Merge Right', // MISSING
|
||||
mergeDown : 'Merge Down', // MISSING
|
||||
splitHorizontal : 'Split Cell Horizontally', // MISSING
|
||||
splitVertical : 'Split Cell Vertically', // MISSING
|
||||
title : 'Cell Properties', // MISSING
|
||||
cellType : 'Cell Type', // MISSING
|
||||
rowSpan : 'Rows Span', // MISSING
|
||||
colSpan : 'Columns Span', // MISSING
|
||||
wordWrap : 'Word Wrap', // MISSING
|
||||
hAlign : 'Horizontal Alignment', // MISSING
|
||||
vAlign : 'Vertical Alignment', // MISSING
|
||||
alignTop : 'Top', // MISSING
|
||||
alignMiddle : 'Middle', // MISSING
|
||||
alignBottom : 'Bottom', // MISSING
|
||||
alignBaseline : 'Baseline', // MISSING
|
||||
bgColor : 'Background Color', // MISSING
|
||||
borderColor : 'Border Color', // MISSING
|
||||
data : 'Data', // MISSING
|
||||
header : 'Header', // MISSING
|
||||
yes : 'Yes', // MISSING
|
||||
no : 'No', // MISSING
|
||||
invalidWidth : 'Cell width must be a number.', // MISSING
|
||||
invalidHeight : 'Cell height must be a number.', // MISSING
|
||||
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
|
||||
invalidColSpan : 'Columns span must be a whole number.' // MISSING
|
||||
},
|
||||
|
||||
row :
|
||||
{
|
||||
menu : 'Ry',
|
||||
insertBefore : 'Insert Row Before', // MISSING
|
||||
insertAfter : 'Insert Row After', // MISSING
|
||||
deleteRow : 'Ry verweider'
|
||||
},
|
||||
|
||||
column :
|
||||
{
|
||||
menu : 'Kolom',
|
||||
insertBefore : 'Insert Column Before', // MISSING
|
||||
insertAfter : 'Insert Column After', // MISSING
|
||||
deleteColumn : 'Kolom verweider'
|
||||
}
|
||||
},
|
||||
|
||||
// Button Dialog.
|
||||
button :
|
||||
{
|
||||
title : 'Knop eienskappe',
|
||||
text : 'Karakters (Waarde)',
|
||||
type : 'Soort',
|
||||
typeBtn : 'Knop',
|
||||
typeSbm : 'Indien',
|
||||
typeRst : 'Reset'
|
||||
},
|
||||
|
||||
// Checkbox and Radio Button Dialogs.
|
||||
checkboxAndRadio :
|
||||
{
|
||||
checkboxTitle : 'HakBox eienskappe',
|
||||
radioTitle : 'PuntBox eienskappe',
|
||||
value : 'Waarde',
|
||||
selected : 'Uitgekies'
|
||||
},
|
||||
|
||||
// Form Dialog.
|
||||
form :
|
||||
{
|
||||
title : 'Form eienskappe',
|
||||
menu : 'Form eienskappe',
|
||||
action : 'Aksie',
|
||||
method : 'Metode',
|
||||
encoding : 'Encoding', // MISSING
|
||||
target : 'Mikpunt',
|
||||
targetNotSet : '<geen instelling>',
|
||||
targetNew : 'Nuwe Venster (_blank)',
|
||||
targetTop : 'Boonste Venster (_top)',
|
||||
targetSelf : 'Selfde Venster (_self)',
|
||||
targetParent : 'Vorige Venster (_parent)'
|
||||
},
|
||||
|
||||
// Select Field Dialog.
|
||||
select :
|
||||
{
|
||||
title : 'Opklapbare keuse strook eienskappe',
|
||||
selectInfo : 'Info',
|
||||
opAvail : 'Beskikbare Opsies',
|
||||
value : 'Waarde',
|
||||
size : 'Grote',
|
||||
lines : 'lyne',
|
||||
chkMulti : 'Laat meerere keuses toe',
|
||||
opText : 'Karakters',
|
||||
opValue : 'Waarde',
|
||||
btnAdd : 'Byvoeg',
|
||||
btnModify : 'Verander',
|
||||
btnUp : 'Op',
|
||||
btnDown : 'Af',
|
||||
btnSetValue : 'Stel as uitgekiesde waarde',
|
||||
btnDelete : 'Verweider'
|
||||
},
|
||||
|
||||
// Textarea Dialog.
|
||||
textarea :
|
||||
{
|
||||
title : 'Karakter area eienskappe',
|
||||
cols : 'Kolom',
|
||||
rows : 'Reie'
|
||||
},
|
||||
|
||||
// Text Field Dialog.
|
||||
textfield :
|
||||
{
|
||||
title : 'Karakter strook eienskappe',
|
||||
name : 'Naam',
|
||||
value : 'Waarde',
|
||||
charWidth : 'Karakter weite',
|
||||
maxChars : 'Maximale karakters',
|
||||
type : 'Soort',
|
||||
typeText : 'Karakters',
|
||||
typePass : 'Wagwoord'
|
||||
},
|
||||
|
||||
// Hidden Field Dialog.
|
||||
hidden :
|
||||
{
|
||||
title : 'Blinde strook eienskappe',
|
||||
name : 'Naam',
|
||||
value : 'Waarde'
|
||||
},
|
||||
|
||||
// Image Dialog.
|
||||
image :
|
||||
{
|
||||
title : 'Beeld eienskappe',
|
||||
titleButton : 'Beeld knop eienskappe',
|
||||
menu : 'Beeld eienskappe',
|
||||
infoTab : 'Beeld informasie',
|
||||
btnUpload : 'Stuur dit na die Server',
|
||||
url : 'URL',
|
||||
upload : 'Uplaai',
|
||||
alt : 'Alternatiewe beskrywing',
|
||||
width : 'Weidte',
|
||||
height : 'Hoogde',
|
||||
lockRatio : 'Behou preporsie',
|
||||
resetSize : 'Herstel groote',
|
||||
border : 'Kant',
|
||||
hSpace : 'HSpasie',
|
||||
vSpace : 'VSpasie',
|
||||
align : 'Paradeer',
|
||||
alignLeft : 'Links',
|
||||
alignAbsBottom: 'Abs Onder',
|
||||
alignAbsMiddle: 'Abs Middel',
|
||||
alignBaseline : 'Baseline',
|
||||
alignBottom : 'Onder',
|
||||
alignMiddle : 'Middel',
|
||||
alignRight : 'Regs',
|
||||
alignTextTop : 'Text Bo',
|
||||
alignTop : 'Bo',
|
||||
preview : 'Voorskou',
|
||||
alertUrl : 'Voeg asseblief Beeld URL in.',
|
||||
linkTab : 'Skakel',
|
||||
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
|
||||
img2Button : 'Do you want to transform the selected image on a image button?' // MISSING
|
||||
},
|
||||
|
||||
// Flash Dialog
|
||||
flash :
|
||||
{
|
||||
properties : 'Flash eienskappe',
|
||||
propertiesTab : 'Properties', // MISSING
|
||||
title : 'Flash eienskappe',
|
||||
chkPlay : 'Automaties Speel',
|
||||
chkLoop : 'Herhaling',
|
||||
chkMenu : 'Laat Flash Menu toe',
|
||||
chkFull : 'Allow Fullscreen', // MISSING
|
||||
scale : 'Scale',
|
||||
scaleAll : 'Wys alles',
|
||||
scaleNoBorder : 'Geen kante',
|
||||
scaleFit : 'Presiese pas',
|
||||
access : 'Script Access', // MISSING
|
||||
accessAlways : 'Always', // MISSING
|
||||
accessSameDomain : 'Same domain', // MISSING
|
||||
accessNever : 'Never', // MISSING
|
||||
align : 'Paradeer',
|
||||
alignLeft : 'Links',
|
||||
alignAbsBottom: 'Abs Onder',
|
||||
alignAbsMiddle: 'Abs Middel',
|
||||
alignBaseline : 'Baseline',
|
||||
alignBottom : 'Onder',
|
||||
alignMiddle : 'Middel',
|
||||
alignRight : 'Regs',
|
||||
alignTextTop : 'Text Bo',
|
||||
alignTop : 'Bo',
|
||||
quality : 'Quality', // MISSING
|
||||
qualityBest : 'Best', // MISSING
|
||||
qualityHigh : 'High', // MISSING
|
||||
qualityAutoHigh : 'Auto High', // MISSING
|
||||
qualityMedium : 'Medium', // MISSING
|
||||
qualityAutoLow : 'Auto Low', // MISSING
|
||||
qualityLow : 'Low', // MISSING
|
||||
windowModeWindow : 'Window', // MISSING
|
||||
windowModeOpaque : 'Opaque', // MISSING
|
||||
windowModeTransparent : 'Transparent', // MISSING
|
||||
windowMode : 'Window mode', // MISSING
|
||||
flashvars : 'Variables for Flash', // MISSING
|
||||
bgcolor : 'Agtergrond kleur',
|
||||
width : 'Weidte',
|
||||
height : 'Hoogde',
|
||||
hSpace : 'HSpasie',
|
||||
vSpace : 'VSpasie',
|
||||
validateSrc : 'Voeg asseblief die URL in',
|
||||
validateWidth : 'Width must be a number.', // MISSING
|
||||
validateHeight : 'Height must be a number.', // MISSING
|
||||
validateHSpace : 'HSpace must be a number.', // MISSING
|
||||
validateVSpace : 'VSpace must be a number.' // MISSING
|
||||
},
|
||||
|
||||
// Speller Pages Dialog
|
||||
spellCheck :
|
||||
{
|
||||
toolbar : 'Spelling nagaan',
|
||||
title : 'Spell Check', // MISSING
|
||||
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
|
||||
errorLoading : 'Error loading application service host: %s.', // MISSING
|
||||
notInDic : 'Nie in woordeboek nie',
|
||||
changeTo : 'Verander na',
|
||||
btnIgnore : 'Ignoreer',
|
||||
btnIgnoreAll : 'Ignoreer na-volgende',
|
||||
btnReplace : 'Vervang',
|
||||
btnReplaceAll : 'vervang na-volgende',
|
||||
btnUndo : 'Ont-skep',
|
||||
noSuggestions : '- Geen voorstel -',
|
||||
progress : 'Spelling word beproef...',
|
||||
noMispell : 'Spellproef kompleet: Geen foute',
|
||||
noChanges : 'Spellproef kompleet: Geen woord veranderings',
|
||||
oneChange : 'Spellproef kompleet: Een woord verander',
|
||||
manyChanges : 'Spellproef kompleet: %1 woorde verander',
|
||||
ieSpellDownload : 'Geen Spellproefer geinstaleer nie. Wil U dit aflaai?'
|
||||
},
|
||||
|
||||
smiley :
|
||||
{
|
||||
toolbar : 'Smiley',
|
||||
title : 'Voeg Smiley by'
|
||||
},
|
||||
|
||||
elementsPath :
|
||||
{
|
||||
eleTitle : '%1 element' // MISSING
|
||||
},
|
||||
|
||||
numberedlist : 'Genommerde lys',
|
||||
bulletedlist : 'Gepunkte lys',
|
||||
indent : 'Paradeering verleng',
|
||||
outdent : 'Paradeering verkort',
|
||||
|
||||
justify :
|
||||
{
|
||||
left : 'Links rig',
|
||||
center : 'Rig Middel',
|
||||
right : 'Regs rig',
|
||||
block : 'Blok paradeer'
|
||||
},
|
||||
|
||||
blockquote : 'Blockquote', // MISSING
|
||||
|
||||
clipboard :
|
||||
{
|
||||
title : 'Byvoeg',
|
||||
cutError : 'U browser se sekuriteit instelling behinder die uitsny aksie. Gebruik asseblief die sleutel kombenasie(Ctrl+X).',
|
||||
copyError : 'U browser se sekuriteit instelling behinder die kopieerings aksie. Gebruik asseblief die sleutel kombenasie(Ctrl+C).',
|
||||
pasteMsg : 'Voeg asseblief die inhoud in die gegewe box by met sleutel kombenasie(<STRONG>Ctrl+V</STRONG>) en druk <STRONG>OK</STRONG>.',
|
||||
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.' // MISSING
|
||||
},
|
||||
|
||||
pastefromword :
|
||||
{
|
||||
toolbar : 'Van Word af byvoeg',
|
||||
title : 'Van Word af byvoeg',
|
||||
advice : 'Voeg asseblief die inhoud in die gegewe box by met sleutel kombenasie(<STRONG>Ctrl+V</STRONG>) en druk <STRONG>OK</STRONG>.',
|
||||
ignoreFontFace : 'Ignoreer karakter soort defenisies',
|
||||
removeStyle : 'Verweider Styl defenisies'
|
||||
},
|
||||
|
||||
pasteText :
|
||||
{
|
||||
button : 'Voeg slegs karakters by',
|
||||
title : 'Voeg slegs karakters by'
|
||||
},
|
||||
|
||||
templates :
|
||||
{
|
||||
button : 'Templates',
|
||||
title : 'Inhoud Templates',
|
||||
insertOption: 'Vervang bestaande inhoud',
|
||||
selectPromptMsg: 'Kies die template om te gebruik in die editor<br>(Inhoud word vervang!):',
|
||||
emptyListMsg : '(Geen templates gedefinieerd)'
|
||||
},
|
||||
|
||||
showBlocks : 'Show Blocks', // MISSING
|
||||
|
||||
stylesCombo :
|
||||
{
|
||||
label : 'Styl',
|
||||
voiceLabel : 'Styles', // MISSING
|
||||
panelVoiceLabel : 'Select a style', // MISSING
|
||||
panelTitle1 : 'Block Styles', // MISSING
|
||||
panelTitle2 : 'Inline Styles', // MISSING
|
||||
panelTitle3 : 'Object Styles' // MISSING
|
||||
},
|
||||
|
||||
format :
|
||||
{
|
||||
label : 'Karakter formaat',
|
||||
voiceLabel : 'Format', // MISSING
|
||||
panelTitle : 'Karakter formaat',
|
||||
panelVoiceLabel : 'Select a paragraph format', // MISSING
|
||||
|
||||
tag_p : 'Normaal',
|
||||
tag_pre : 'Geformateerd',
|
||||
tag_address : 'Adres',
|
||||
tag_h1 : 'Opskrif 1',
|
||||
tag_h2 : 'Opskrif 2',
|
||||
tag_h3 : 'Opskrif 3',
|
||||
tag_h4 : 'Opskrif 4',
|
||||
tag_h5 : 'Opskrif 5',
|
||||
tag_h6 : 'Opskrif 6',
|
||||
tag_div : 'Normaal (DIV)'
|
||||
},
|
||||
|
||||
font :
|
||||
{
|
||||
label : 'Karakters',
|
||||
voiceLabel : 'Font', // MISSING
|
||||
panelTitle : 'Karakters',
|
||||
panelVoiceLabel : 'Select a font' // MISSING
|
||||
},
|
||||
|
||||
fontSize :
|
||||
{
|
||||
label : 'Karakter grote',
|
||||
voiceLabel : 'Font Size', // MISSING
|
||||
panelTitle : 'Karakter grote',
|
||||
panelVoiceLabel : 'Select a font size' // MISSING
|
||||
},
|
||||
|
||||
colorButton :
|
||||
{
|
||||
textColorTitle : 'Karakter kleur',
|
||||
bgColorTitle : 'Agtergrond kleur',
|
||||
auto : 'Automaties',
|
||||
more : 'Meer Kleure...'
|
||||
},
|
||||
|
||||
colors :
|
||||
{
|
||||
'000' : 'Black',
|
||||
'800000' : 'Maroon',
|
||||
'8B4513' : 'Saddle Brown',
|
||||
'2F4F4F' : 'Dark Slate Gray',
|
||||
'008080' : 'Teal',
|
||||
'000080' : 'Navy',
|
||||
'4B0082' : 'Indigo',
|
||||
'696969' : 'Dim Gray',
|
||||
'B22222' : 'Fire Brick',
|
||||
'A52A2A' : 'Brown',
|
||||
'DAA520' : 'Golden Rod',
|
||||
'006400' : 'Dark Green',
|
||||
'40E0D0' : 'Turquoise',
|
||||
'0000CD' : 'Medium Blue',
|
||||
'800080' : 'Purple',
|
||||
'808080' : 'Gray',
|
||||
'F00' : 'Red',
|
||||
'FF8C00' : 'Dark Orange',
|
||||
'FFD700' : 'Gold',
|
||||
'008000' : 'Green',
|
||||
'0FF' : 'Cyan',
|
||||
'00F' : 'Blue',
|
||||
'EE82EE' : 'Violet',
|
||||
'A9A9A9' : 'Dark Gray',
|
||||
'FFA07A' : 'Light Salmon',
|
||||
'FFA500' : 'Orange',
|
||||
'FFFF00' : 'Yellow',
|
||||
'00FF00' : 'Lime',
|
||||
'AFEEEE' : 'Pale Turquoise',
|
||||
'ADD8E6' : 'Light Blue',
|
||||
'DDA0DD' : 'Plum',
|
||||
'D3D3D3' : 'Light Grey',
|
||||
'FFF0F5' : 'Lavender Blush',
|
||||
'FAEBD7' : 'Antique White',
|
||||
'FFFFE0' : 'Light Yellow',
|
||||
'F0FFF0' : 'Honeydew',
|
||||
'F0FFFF' : 'Azure',
|
||||
'F0F8FF' : 'Alice Blue',
|
||||
'E6E6FA' : 'Lavender',
|
||||
'FFF' : 'White'
|
||||
},
|
||||
|
||||
scayt :
|
||||
{
|
||||
title : 'Spell Check As You Type', // MISSING
|
||||
enable : 'Enable SCAYT', // MISSING
|
||||
disable : 'Disable SCAYT', // MISSING
|
||||
about : 'About SCAYT', // MISSING
|
||||
toggle : 'Toggle SCAYT', // MISSING
|
||||
options : 'Options', // MISSING
|
||||
langs : 'Languages', // MISSING
|
||||
moreSuggestions : 'More suggestions', // MISSING
|
||||
ignore : 'Ignore', // MISSING
|
||||
ignoreAll : 'Ignore All', // MISSING
|
||||
addWord : 'Add Word', // MISSING
|
||||
emptyDic : 'Dictionary name should not be empty.', // MISSING
|
||||
optionsTab : 'Options', // MISSING
|
||||
languagesTab : 'Languages', // MISSING
|
||||
dictionariesTab : 'Dictionaries', // MISSING
|
||||
aboutTab : 'About' // MISSING
|
||||
},
|
||||
|
||||
about :
|
||||
{
|
||||
title : 'About CKEditor', // MISSING
|
||||
moreInfo : 'For licensing information please visit our web site:', // MISSING
|
||||
copy : 'Copyright © $1. All rights reserved.' // MISSING
|
||||
},
|
||||
|
||||
maximize : 'Maximize', // MISSING
|
||||
|
||||
fakeobjects :
|
||||
{
|
||||
anchor : 'Anchor', // MISSING
|
||||
flash : 'Flash Animation', // MISSING
|
||||
div : 'Page Break', // MISSING
|
||||
unknown : 'Unknown Object' // MISSING
|
||||
},
|
||||
|
||||
resize : 'Drag to resize' // MISSING
|
||||
};
|
||||
673
UI/WebServerResources/ckeditor/_source/lang/ar.js
Normal file
673
UI/WebServerResources/ckeditor/_source/lang/ar.js
Normal file
@@ -0,0 +1,673 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
|
||||
* Arabic language.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
@type String
|
||||
@example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constains the dictionary of language entries.
|
||||
* @namespace
|
||||
*/
|
||||
CKEDITOR.lang['ar'] =
|
||||
{
|
||||
/**
|
||||
* The language reading direction. Possible values are "rtl" for
|
||||
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
|
||||
* languages (like English).
|
||||
* @default 'ltr'
|
||||
*/
|
||||
dir : 'rtl',
|
||||
|
||||
/*
|
||||
* Screenreader titles. Please note that screenreaders are not always capable
|
||||
* of reading non-English words. So be careful while translating it.
|
||||
*/
|
||||
editorTitle : 'Rich text editor, %1', // MISSING
|
||||
|
||||
// Toolbar buttons without dialogs.
|
||||
source : 'شفرة المصدر',
|
||||
newPage : 'صفحة جديدة',
|
||||
save : 'حفظ',
|
||||
preview : 'معاينة الصفحة',
|
||||
cut : 'قص',
|
||||
copy : 'نسخ',
|
||||
paste : 'لصق',
|
||||
print : 'طباعة',
|
||||
underline : 'تسطير',
|
||||
bold : 'غامق',
|
||||
italic : 'مائل',
|
||||
selectAll : 'تحديد الكل',
|
||||
removeFormat : 'إزالة التنسيقات',
|
||||
strike : 'يتوسطه خط',
|
||||
subscript : 'منخفض',
|
||||
superscript : 'مرتفع',
|
||||
horizontalrule : 'إدراج خط فاصل',
|
||||
pagebreak : 'إدخال صفحة جديدة',
|
||||
unlink : 'إزالة رابط',
|
||||
undo : 'تراجع',
|
||||
redo : 'إعادة',
|
||||
|
||||
// Common messages and labels.
|
||||
common :
|
||||
{
|
||||
browseServer : 'تصفح الخادم',
|
||||
url : 'موقع الصورة',
|
||||
protocol : 'البروتوكول',
|
||||
upload : 'رفع',
|
||||
uploadSubmit : 'أرسلها للخادم',
|
||||
image : 'صورة',
|
||||
flash : 'فلاش',
|
||||
form : 'نموذج',
|
||||
checkbox : 'خانة إختيار',
|
||||
radio : 'زر خيار',
|
||||
textField : 'مربع نص',
|
||||
textarea : 'ناحية نص',
|
||||
hiddenField : 'إدراج حقل خفي',
|
||||
button : 'زر ضغط',
|
||||
select : 'قائمة منسدلة',
|
||||
imageButton : 'زر صورة',
|
||||
notSet : '<بدون تحديد>',
|
||||
id : 'الرقم',
|
||||
name : 'الاسم',
|
||||
langDir : 'إتجاه النص',
|
||||
langDirLtr : 'اليسار لليمين (LTR)',
|
||||
langDirRtl : 'اليمين لليسار (RTL)',
|
||||
langCode : 'رمز اللغة',
|
||||
longDescr : 'عنوان الوصف المفصّل',
|
||||
cssClass : 'فئات التنسيق',
|
||||
advisoryTitle : 'تلميح الشاشة',
|
||||
cssStyle : 'نمط',
|
||||
ok : 'موافق',
|
||||
cancel : 'إلغاء الأمر',
|
||||
generalTab : 'عام',
|
||||
advancedTab : 'متقدم',
|
||||
validateNumberFailed : 'This value is not a number.', // MISSING
|
||||
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
|
||||
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
|
||||
|
||||
// Put the voice-only part of the label in the span.
|
||||
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
|
||||
},
|
||||
|
||||
// Special char dialog.
|
||||
specialChar :
|
||||
{
|
||||
toolbar : 'إدراج رموز..ِ',
|
||||
title : 'إدراج رمز'
|
||||
},
|
||||
|
||||
// Link dialog.
|
||||
link :
|
||||
{
|
||||
toolbar : 'إدراج/تحرير رابط',
|
||||
menu : 'تحرير رابط',
|
||||
title : 'إرتباط تشعبي',
|
||||
info : 'معلومات الرابط',
|
||||
target : 'الهدف',
|
||||
upload : 'رفع',
|
||||
advanced : 'متقدم',
|
||||
type : 'نوع الربط',
|
||||
toAnchor : 'مكان في هذا المستند',
|
||||
toEmail : 'بريد إلكتروني',
|
||||
target : 'الهدف',
|
||||
targetNotSet : '<بدون تحديد>',
|
||||
targetFrame : '<إطار>',
|
||||
targetPopup : '<نافذة منبثقة>',
|
||||
targetNew : 'إطار جديد (_blank)',
|
||||
targetTop : 'صفحة كاملة (_top)',
|
||||
targetSelf : 'نفس الإطار (_self)',
|
||||
targetParent : 'الإطار الأصل (_parent)',
|
||||
targetFrameName : 'اسم الإطار الهدف',
|
||||
targetPopupName : 'تسمية النافذة المنبثقة',
|
||||
popupFeatures : 'خصائص النافذة المنبثقة',
|
||||
popupResizable : 'Resizable', // MISSING
|
||||
popupStatusBar : 'شريط الحالة السفلي',
|
||||
popupLocationBar : 'شريط العنوان',
|
||||
popupToolbar : 'شريط الأدوات',
|
||||
popupMenuBar : 'القوائم الرئيسية',
|
||||
popupFullScreen : 'ملئ الشاشة (IE)',
|
||||
popupScrollBars : 'أشرطة التمرير',
|
||||
popupDependent : 'تابع (Netscape)',
|
||||
popupWidth : 'العرض',
|
||||
popupLeft : 'التمركز لليسار',
|
||||
popupHeight : 'الإرتفاع',
|
||||
popupTop : 'التمركز للأعلى',
|
||||
id : 'Id', // MISSING
|
||||
langDir : 'إتجاه النص',
|
||||
langDirNotSet : '<بدون تحديد>',
|
||||
langDirLTR : 'اليسار لليمين (LTR)',
|
||||
langDirRTL : 'اليمين لليسار (RTL)',
|
||||
acccessKey : 'مفاتيح الإختصار',
|
||||
name : 'الاسم',
|
||||
langCode : 'إتجاه النص',
|
||||
tabIndex : 'الترتيب',
|
||||
advisoryTitle : 'تلميح الشاشة',
|
||||
advisoryContentType : 'نوع التلميح',
|
||||
cssClasses : 'فئات التنسيق',
|
||||
charset : 'ترميز المادة المطلوبة',
|
||||
styles : 'نمط',
|
||||
selectAnchor : 'اختر علامة مرجعية',
|
||||
anchorName : 'حسب اسم العلامة',
|
||||
anchorId : 'حسب تعريف العنصر',
|
||||
emailAddress : 'عنوان بريد إلكتروني',
|
||||
emailSubject : 'موضوع الرسالة',
|
||||
emailBody : 'محتوى الرسالة',
|
||||
noAnchors : '(لا يوجد علامات مرجعية في هذا المستند)',
|
||||
noUrl : 'فضلاً أدخل عنوان الموقع الذي يشير إليه الرابط',
|
||||
noEmail : 'فضلاً أدخل عنوان البريد الإلكتروني'
|
||||
},
|
||||
|
||||
// Anchor dialog
|
||||
anchor :
|
||||
{
|
||||
toolbar : 'إدراج/تحرير إشارة مرجعية',
|
||||
menu : 'خصائص الإشارة المرجعية',
|
||||
title : 'خصائص الإشارة المرجعية',
|
||||
name : 'اسم الإشارة المرجعية',
|
||||
errorName : 'الرجاء كتابة اسم الإشارة المرجعية'
|
||||
},
|
||||
|
||||
// Find And Replace Dialog
|
||||
findAndReplace :
|
||||
{
|
||||
title : 'بحث واستبدال',
|
||||
find : 'بحث',
|
||||
replace : 'إستبدال',
|
||||
findWhat : 'البحث عن:',
|
||||
replaceWith : 'إستبدال بـ:',
|
||||
notFoundMsg : 'لم يتم العثور على النص المحدد.',
|
||||
matchCase : 'مطابقة حالة الأحرف',
|
||||
matchWord : 'الكلمة بالكامل فقط',
|
||||
matchCyclic : 'Match cyclic', // MISSING
|
||||
replaceAll : 'إستبدال الكل',
|
||||
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
|
||||
},
|
||||
|
||||
// Table Dialog
|
||||
table :
|
||||
{
|
||||
toolbar : 'جدول',
|
||||
title : 'إدراج جدول',
|
||||
menu : 'إدراج جدول',
|
||||
deleteTable : 'حذف الجدول',
|
||||
rows : 'صفوف',
|
||||
columns : 'أعمدة',
|
||||
border : 'سمك الحدود',
|
||||
align : 'المحاذاة',
|
||||
alignNotSet : '<بدون تحديد>',
|
||||
alignLeft : 'يسار',
|
||||
alignCenter : 'وسط',
|
||||
alignRight : 'يمين',
|
||||
width : 'العرض',
|
||||
widthPx : 'بكسل',
|
||||
widthPc : 'بالمئة',
|
||||
height : 'الإرتفاع',
|
||||
cellSpace : 'تباعد الخلايا',
|
||||
cellPad : 'المسافة البادئة',
|
||||
caption : 'الوصف',
|
||||
summary : 'الخلاصة',
|
||||
headers : 'Headers', // MISSING
|
||||
headersNone : 'None', // MISSING
|
||||
headersColumn : 'First column', // MISSING
|
||||
headersRow : 'First Row', // MISSING
|
||||
headersBoth : 'Both', // MISSING
|
||||
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
|
||||
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
|
||||
invalidBorder : 'Border size must be a number.', // MISSING
|
||||
invalidWidth : 'Table width must be a number.', // MISSING
|
||||
invalidHeight : 'Table height must be a number.', // MISSING
|
||||
invalidCellSpacing : 'Cell spacing must be a number.', // MISSING
|
||||
invalidCellPadding : 'Cell padding must be a number.', // MISSING
|
||||
|
||||
cell :
|
||||
{
|
||||
menu : 'خلية',
|
||||
insertBefore : 'إدراج خلية قبل',
|
||||
insertAfter : 'إدراج خلية بعد',
|
||||
deleteCell : 'حذف خلايا',
|
||||
merge : 'دمج خلايا',
|
||||
mergeRight : 'دمج لليمين',
|
||||
mergeDown : 'دمج للأسفل',
|
||||
splitHorizontal : 'تقسيم الخلية أفقياً',
|
||||
splitVertical : 'تقسيم الخلية عمودياً',
|
||||
title : 'خصائص الخلية',
|
||||
cellType : 'Cell Type', // MISSING
|
||||
rowSpan : 'Rows Span', // MISSING
|
||||
colSpan : 'Columns Span', // MISSING
|
||||
wordWrap : 'Word Wrap', // MISSING
|
||||
hAlign : 'Horizontal Alignment', // MISSING
|
||||
vAlign : 'Vertical Alignment', // MISSING
|
||||
alignTop : 'Top', // MISSING
|
||||
alignMiddle : 'Middle', // MISSING
|
||||
alignBottom : 'Bottom', // MISSING
|
||||
alignBaseline : 'Baseline', // MISSING
|
||||
bgColor : 'Background Color', // MISSING
|
||||
borderColor : 'Border Color', // MISSING
|
||||
data : 'Data', // MISSING
|
||||
header : 'Header', // MISSING
|
||||
yes : 'Yes', // MISSING
|
||||
no : 'No', // MISSING
|
||||
invalidWidth : 'Cell width must be a number.', // MISSING
|
||||
invalidHeight : 'Cell height must be a number.', // MISSING
|
||||
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
|
||||
invalidColSpan : 'Columns span must be a whole number.' // MISSING
|
||||
},
|
||||
|
||||
row :
|
||||
{
|
||||
menu : 'صف',
|
||||
insertBefore : 'إدراج صف قبل',
|
||||
insertAfter : 'إدراج صف بعد',
|
||||
deleteRow : 'حذف صفوف'
|
||||
},
|
||||
|
||||
column :
|
||||
{
|
||||
menu : 'عمود',
|
||||
insertBefore : 'إدراج عمود قبل',
|
||||
insertAfter : 'إدراج عمود بعد',
|
||||
deleteColumn : 'حذف أعمدة'
|
||||
}
|
||||
},
|
||||
|
||||
// Button Dialog.
|
||||
button :
|
||||
{
|
||||
title : 'خصائص زر الضغط',
|
||||
text : 'القيمة/التسمية',
|
||||
type : 'نوع الزر',
|
||||
typeBtn : 'زر',
|
||||
typeSbm : 'إرسال',
|
||||
typeRst : 'إعادة تعيين'
|
||||
},
|
||||
|
||||
// Checkbox and Radio Button Dialogs.
|
||||
checkboxAndRadio :
|
||||
{
|
||||
checkboxTitle : 'خصائص خانة الإختيار',
|
||||
radioTitle : 'خصائص زر الخيار',
|
||||
value : 'القيمة',
|
||||
selected : 'محدد'
|
||||
},
|
||||
|
||||
// Form Dialog.
|
||||
form :
|
||||
{
|
||||
title : 'خصائص النموذج',
|
||||
menu : 'خصائص النموذج',
|
||||
action : 'اسم الملف',
|
||||
method : 'الأسلوب',
|
||||
encoding : 'Encoding', // MISSING
|
||||
target : 'الهدف',
|
||||
targetNotSet : '<بدون تحديد>',
|
||||
targetNew : 'إطار جديد (_blank)',
|
||||
targetTop : 'صفحة كاملة (_top)',
|
||||
targetSelf : 'نفس الإطار (_self)',
|
||||
targetParent : 'الإطار الأصل (_parent)'
|
||||
},
|
||||
|
||||
// Select Field Dialog.
|
||||
select :
|
||||
{
|
||||
title : 'خصائص القائمة المنسدلة',
|
||||
selectInfo : 'معلومات',
|
||||
opAvail : 'الخيارات المتاحة',
|
||||
value : 'القيمة',
|
||||
size : 'الحجم',
|
||||
lines : 'الأسطر',
|
||||
chkMulti : 'السماح بتحديدات متعددة',
|
||||
opText : 'النص',
|
||||
opValue : 'القيمة',
|
||||
btnAdd : 'إضافة',
|
||||
btnModify : 'تعديل',
|
||||
btnUp : 'تحريك لأعلى',
|
||||
btnDown : 'تحريك لأسفل',
|
||||
btnSetValue : 'إجعلها محددة',
|
||||
btnDelete : 'إزالة'
|
||||
},
|
||||
|
||||
// Textarea Dialog.
|
||||
textarea :
|
||||
{
|
||||
title : 'خصائص ناحية النص',
|
||||
cols : 'الأعمدة',
|
||||
rows : 'الصفوف'
|
||||
},
|
||||
|
||||
// Text Field Dialog.
|
||||
textfield :
|
||||
{
|
||||
title : 'خصائص مربع النص',
|
||||
name : 'الاسم',
|
||||
value : 'القيمة',
|
||||
charWidth : 'العرض بالأحرف',
|
||||
maxChars : 'عدد الحروف الأقصى',
|
||||
type : 'نوع المحتوى',
|
||||
typeText : 'نص',
|
||||
typePass : 'كلمة مرور'
|
||||
},
|
||||
|
||||
// Hidden Field Dialog.
|
||||
hidden :
|
||||
{
|
||||
title : 'خصائص الحقل الخفي',
|
||||
name : 'الاسم',
|
||||
value : 'القيمة'
|
||||
},
|
||||
|
||||
// Image Dialog.
|
||||
image :
|
||||
{
|
||||
title : 'خصائص الصورة',
|
||||
titleButton : 'خصائص زر الصورة',
|
||||
menu : 'خصائص الصورة',
|
||||
infoTab : 'معلومات الصورة',
|
||||
btnUpload : 'أرسلها للخادم',
|
||||
url : 'موقع الصورة',
|
||||
upload : 'رفع',
|
||||
alt : 'الوصف',
|
||||
width : 'العرض',
|
||||
height : 'الإرتفاع',
|
||||
lockRatio : 'تناسق الحجم',
|
||||
resetSize : 'إستعادة الحجم الأصلي',
|
||||
border : 'سمك الحدود',
|
||||
hSpace : 'تباعد أفقي',
|
||||
vSpace : 'تباعد عمودي',
|
||||
align : 'محاذاة',
|
||||
alignLeft : 'يسار',
|
||||
alignAbsBottom: 'أسفل النص',
|
||||
alignAbsMiddle: 'وسط السطر',
|
||||
alignBaseline : 'على السطر',
|
||||
alignBottom : 'أسفل',
|
||||
alignMiddle : 'وسط',
|
||||
alignRight : 'يمين',
|
||||
alignTextTop : 'أعلى النص',
|
||||
alignTop : 'أعلى',
|
||||
preview : 'معاينة',
|
||||
alertUrl : 'فضلاً أكتب الموقع الذي توجد عليه هذه الصورة.',
|
||||
linkTab : 'الرابط',
|
||||
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
|
||||
img2Button : 'Do you want to transform the selected image on a image button?' // MISSING
|
||||
},
|
||||
|
||||
// Flash Dialog
|
||||
flash :
|
||||
{
|
||||
properties : 'خصائص فيلم الفلاش',
|
||||
propertiesTab : 'Properties', // MISSING
|
||||
title : 'خصائص فيلم الفلاش',
|
||||
chkPlay : 'تشغيل تلقائي',
|
||||
chkLoop : 'تكرار',
|
||||
chkMenu : 'تمكين قائمة فيلم الفلاش',
|
||||
chkFull : 'Allow Fullscreen', // MISSING
|
||||
scale : 'الحجم',
|
||||
scaleAll : 'إظهار الكل',
|
||||
scaleNoBorder : 'بلا حدود',
|
||||
scaleFit : 'ضبط تام',
|
||||
access : 'Script Access', // MISSING
|
||||
accessAlways : 'Always', // MISSING
|
||||
accessSameDomain : 'Same domain', // MISSING
|
||||
accessNever : 'Never', // MISSING
|
||||
align : 'محاذاة',
|
||||
alignLeft : 'يسار',
|
||||
alignAbsBottom: 'أسفل النص',
|
||||
alignAbsMiddle: 'وسط السطر',
|
||||
alignBaseline : 'على السطر',
|
||||
alignBottom : 'أسفل',
|
||||
alignMiddle : 'وسط',
|
||||
alignRight : 'يمين',
|
||||
alignTextTop : 'أعلى النص',
|
||||
alignTop : 'أعلى',
|
||||
quality : 'Quality', // MISSING
|
||||
qualityBest : 'Best', // MISSING
|
||||
qualityHigh : 'High', // MISSING
|
||||
qualityAutoHigh : 'Auto High', // MISSING
|
||||
qualityMedium : 'Medium', // MISSING
|
||||
qualityAutoLow : 'Auto Low', // MISSING
|
||||
qualityLow : 'Low', // MISSING
|
||||
windowModeWindow : 'Window', // MISSING
|
||||
windowModeOpaque : 'Opaque', // MISSING
|
||||
windowModeTransparent : 'Transparent', // MISSING
|
||||
windowMode : 'Window mode', // MISSING
|
||||
flashvars : 'Variables for Flash', // MISSING
|
||||
bgcolor : 'لون الخلفية',
|
||||
width : 'العرض',
|
||||
height : 'الإرتفاع',
|
||||
hSpace : 'تباعد أفقي',
|
||||
vSpace : 'تباعد عمودي',
|
||||
validateSrc : 'فضلاً أدخل عنوان الموقع الذي يشير إليه الرابط',
|
||||
validateWidth : 'Width must be a number.', // MISSING
|
||||
validateHeight : 'Height must be a number.', // MISSING
|
||||
validateHSpace : 'HSpace must be a number.', // MISSING
|
||||
validateVSpace : 'VSpace must be a number.' // MISSING
|
||||
},
|
||||
|
||||
// Speller Pages Dialog
|
||||
spellCheck :
|
||||
{
|
||||
toolbar : 'تدقيق إملائي',
|
||||
title : 'Spell Check', // MISSING
|
||||
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
|
||||
errorLoading : 'Error loading application service host: %s.', // MISSING
|
||||
notInDic : 'ليست في القاموس',
|
||||
changeTo : 'التغيير إلى',
|
||||
btnIgnore : 'تجاهل',
|
||||
btnIgnoreAll : 'تجاهل الكل',
|
||||
btnReplace : 'تغيير',
|
||||
btnReplaceAll : 'تغيير الكل',
|
||||
btnUndo : 'تراجع',
|
||||
noSuggestions : '- لا توجد إقتراحات -',
|
||||
progress : 'جاري التدقيق إملائياً',
|
||||
noMispell : 'تم إكمال التدقيق الإملائي: لم يتم العثور على أي أخطاء إملائية',
|
||||
noChanges : 'تم إكمال التدقيق الإملائي: لم يتم تغيير أي كلمة',
|
||||
oneChange : 'تم إكمال التدقيق الإملائي: تم تغيير كلمة واحدة فقط',
|
||||
manyChanges : 'تم إكمال التدقيق الإملائي: تم تغيير %1 كلماتكلمة',
|
||||
ieSpellDownload : 'المدقق الإملائي (الإنجليزي) غير مثبّت. هل تود تحميله الآن؟'
|
||||
},
|
||||
|
||||
smiley :
|
||||
{
|
||||
toolbar : 'ابتسامات',
|
||||
title : 'إدراج إبتسامات '
|
||||
},
|
||||
|
||||
elementsPath :
|
||||
{
|
||||
eleTitle : '%1 element' // MISSING
|
||||
},
|
||||
|
||||
numberedlist : 'تعداد رقمي',
|
||||
bulletedlist : 'تعداد نقطي',
|
||||
indent : 'زيادة المسافة البادئة',
|
||||
outdent : 'إنقاص المسافة البادئة',
|
||||
|
||||
justify :
|
||||
{
|
||||
left : 'محاذاة إلى اليسار',
|
||||
center : 'توسيط',
|
||||
right : 'محاذاة إلى اليمين',
|
||||
block : 'ضبط'
|
||||
},
|
||||
|
||||
blockquote : 'اقتباس',
|
||||
|
||||
clipboard :
|
||||
{
|
||||
title : 'لصق',
|
||||
cutError : 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع القص التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl+X).',
|
||||
copyError : 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع النسخ التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl+C).',
|
||||
pasteMsg : 'الصق داخل الصندوق بإستخدام زرّي (<STRONG>Ctrl+V</STRONG>) في لوحة المفاتيح، ثم اضغط زر <STRONG>موافق</STRONG>.',
|
||||
securityMsg : 'نظراً لإعدادات الأمان الخاصة بمتصفحك، لن يتمكن هذا المحرر من الوصول لمحتوى حافظتك، لذا وجب عليك لصق المحتوى مرة أخرى في هذه النافذة.'
|
||||
},
|
||||
|
||||
pastefromword :
|
||||
{
|
||||
toolbar : 'لصق من وورد',
|
||||
title : 'لصق من وورد',
|
||||
advice : 'الصق داخل الصندوق بإستخدام زرّي (<STRONG>Ctrl+V</STRONG>) في لوحة المفاتيح، ثم اضغط زر <STRONG>موافق</STRONG>.',
|
||||
ignoreFontFace : 'تجاهل تعريفات أسماء الخطوط',
|
||||
removeStyle : 'إزالة تعريفات الأنماط'
|
||||
},
|
||||
|
||||
pasteText :
|
||||
{
|
||||
button : 'لصق كنص بسيط',
|
||||
title : 'لصق كنص بسيط'
|
||||
},
|
||||
|
||||
templates :
|
||||
{
|
||||
button : 'القوالب',
|
||||
title : 'قوالب المحتوى',
|
||||
insertOption: 'استبدال المحتوى',
|
||||
selectPromptMsg: 'اختر القالب الذي تود وضعه في المحرر <br>(سيتم فقدان المحتوى الحالي):',
|
||||
emptyListMsg : '(لم يتم تعريف أي قالب)'
|
||||
},
|
||||
|
||||
showBlocks : 'مخطط تفصيلي',
|
||||
|
||||
stylesCombo :
|
||||
{
|
||||
label : 'نمط',
|
||||
voiceLabel : 'Styles', // MISSING
|
||||
panelVoiceLabel : 'Select a style', // MISSING
|
||||
panelTitle1 : 'Block Styles', // MISSING
|
||||
panelTitle2 : 'Inline Styles', // MISSING
|
||||
panelTitle3 : 'Object Styles' // MISSING
|
||||
},
|
||||
|
||||
format :
|
||||
{
|
||||
label : 'تنسيق',
|
||||
voiceLabel : 'Format', // MISSING
|
||||
panelTitle : 'تنسيق',
|
||||
panelVoiceLabel : 'Select a paragraph format', // MISSING
|
||||
|
||||
tag_p : 'عادي',
|
||||
tag_pre : 'منسّق',
|
||||
tag_address : 'دوس',
|
||||
tag_h1 : 'العنوان 1',
|
||||
tag_h2 : 'العنوان 2',
|
||||
tag_h3 : 'العنوان 3',
|
||||
tag_h4 : 'العنوان 4',
|
||||
tag_h5 : 'العنوان 5',
|
||||
tag_h6 : 'العنوان 6',
|
||||
tag_div : 'Normal (DIV)' // MISSING
|
||||
},
|
||||
|
||||
font :
|
||||
{
|
||||
label : 'خط',
|
||||
voiceLabel : 'Font', // MISSING
|
||||
panelTitle : 'خط',
|
||||
panelVoiceLabel : 'Select a font' // MISSING
|
||||
},
|
||||
|
||||
fontSize :
|
||||
{
|
||||
label : 'حجم الخط',
|
||||
voiceLabel : 'Font Size', // MISSING
|
||||
panelTitle : 'حجم الخط',
|
||||
panelVoiceLabel : 'Select a font size' // MISSING
|
||||
},
|
||||
|
||||
colorButton :
|
||||
{
|
||||
textColorTitle : 'لون النص',
|
||||
bgColorTitle : 'لون الخلفية',
|
||||
auto : 'تلقائي',
|
||||
more : 'ألوان إضافية...'
|
||||
},
|
||||
|
||||
colors :
|
||||
{
|
||||
'000' : 'Black',
|
||||
'800000' : 'Maroon',
|
||||
'8B4513' : 'Saddle Brown',
|
||||
'2F4F4F' : 'Dark Slate Gray',
|
||||
'008080' : 'Teal',
|
||||
'000080' : 'Navy',
|
||||
'4B0082' : 'Indigo',
|
||||
'696969' : 'Dim Gray',
|
||||
'B22222' : 'Fire Brick',
|
||||
'A52A2A' : 'Brown',
|
||||
'DAA520' : 'Golden Rod',
|
||||
'006400' : 'Dark Green',
|
||||
'40E0D0' : 'Turquoise',
|
||||
'0000CD' : 'Medium Blue',
|
||||
'800080' : 'Purple',
|
||||
'808080' : 'Gray',
|
||||
'F00' : 'Red',
|
||||
'FF8C00' : 'Dark Orange',
|
||||
'FFD700' : 'Gold',
|
||||
'008000' : 'Green',
|
||||
'0FF' : 'Cyan',
|
||||
'00F' : 'Blue',
|
||||
'EE82EE' : 'Violet',
|
||||
'A9A9A9' : 'Dark Gray',
|
||||
'FFA07A' : 'Light Salmon',
|
||||
'FFA500' : 'Orange',
|
||||
'FFFF00' : 'Yellow',
|
||||
'00FF00' : 'Lime',
|
||||
'AFEEEE' : 'Pale Turquoise',
|
||||
'ADD8E6' : 'Light Blue',
|
||||
'DDA0DD' : 'Plum',
|
||||
'D3D3D3' : 'Light Grey',
|
||||
'FFF0F5' : 'Lavender Blush',
|
||||
'FAEBD7' : 'Antique White',
|
||||
'FFFFE0' : 'Light Yellow',
|
||||
'F0FFF0' : 'Honeydew',
|
||||
'F0FFFF' : 'Azure',
|
||||
'F0F8FF' : 'Alice Blue',
|
||||
'E6E6FA' : 'Lavender',
|
||||
'FFF' : 'White'
|
||||
},
|
||||
|
||||
scayt :
|
||||
{
|
||||
title : 'Spell Check As You Type', // MISSING
|
||||
enable : 'Enable SCAYT', // MISSING
|
||||
disable : 'Disable SCAYT', // MISSING
|
||||
about : 'About SCAYT', // MISSING
|
||||
toggle : 'Toggle SCAYT', // MISSING
|
||||
options : 'Options', // MISSING
|
||||
langs : 'Languages', // MISSING
|
||||
moreSuggestions : 'More suggestions', // MISSING
|
||||
ignore : 'Ignore', // MISSING
|
||||
ignoreAll : 'Ignore All', // MISSING
|
||||
addWord : 'Add Word', // MISSING
|
||||
emptyDic : 'Dictionary name should not be empty.', // MISSING
|
||||
optionsTab : 'Options', // MISSING
|
||||
languagesTab : 'Languages', // MISSING
|
||||
dictionariesTab : 'Dictionaries', // MISSING
|
||||
aboutTab : 'About' // MISSING
|
||||
},
|
||||
|
||||
about :
|
||||
{
|
||||
title : 'About CKEditor', // MISSING
|
||||
moreInfo : 'For licensing information please visit our web site:', // MISSING
|
||||
copy : 'Copyright © $1. All rights reserved.' // MISSING
|
||||
},
|
||||
|
||||
maximize : 'Maximize', // MISSING
|
||||
|
||||
fakeobjects :
|
||||
{
|
||||
anchor : 'Anchor', // MISSING
|
||||
flash : 'Flash Animation', // MISSING
|
||||
div : 'Page Break', // MISSING
|
||||
unknown : 'Unknown Object' // MISSING
|
||||
},
|
||||
|
||||
resize : 'Drag to resize' // MISSING
|
||||
};
|
||||
673
UI/WebServerResources/ckeditor/_source/lang/bg.js
Normal file
673
UI/WebServerResources/ckeditor/_source/lang/bg.js
Normal file
@@ -0,0 +1,673 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
|
||||
* Bulgarian language.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
@type String
|
||||
@example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constains the dictionary of language entries.
|
||||
* @namespace
|
||||
*/
|
||||
CKEDITOR.lang['bg'] =
|
||||
{
|
||||
/**
|
||||
* The language reading direction. Possible values are "rtl" for
|
||||
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
|
||||
* languages (like English).
|
||||
* @default 'ltr'
|
||||
*/
|
||||
dir : 'ltr',
|
||||
|
||||
/*
|
||||
* Screenreader titles. Please note that screenreaders are not always capable
|
||||
* of reading non-English words. So be careful while translating it.
|
||||
*/
|
||||
editorTitle : 'Rich text editor, %1', // MISSING
|
||||
|
||||
// Toolbar buttons without dialogs.
|
||||
source : 'Код',
|
||||
newPage : 'Нова страница',
|
||||
save : 'Запази',
|
||||
preview : 'Предварителен изглед',
|
||||
cut : 'Изрежи',
|
||||
copy : 'Запамети',
|
||||
paste : 'Вмъкни',
|
||||
print : 'Печат',
|
||||
underline : 'Подчертан',
|
||||
bold : 'Удебелен',
|
||||
italic : 'Курсив',
|
||||
selectAll : 'Селектирай всичко',
|
||||
removeFormat : 'Изтрий форматирането',
|
||||
strike : 'Зачертан',
|
||||
subscript : 'Индекс за база',
|
||||
superscript : 'Индекс за степен',
|
||||
horizontalrule : 'Вмъкни хоризонтална линия',
|
||||
pagebreak : 'Вмъкни нов ред',
|
||||
unlink : 'Изтрий връзка',
|
||||
undo : 'Отмени',
|
||||
redo : 'Повтори',
|
||||
|
||||
// Common messages and labels.
|
||||
common :
|
||||
{
|
||||
browseServer : 'Разгледай сървъра',
|
||||
url : 'Пълен път (URL)',
|
||||
protocol : 'Протокол',
|
||||
upload : 'Качи',
|
||||
uploadSubmit : 'Прати към сървъра',
|
||||
image : 'Изображение',
|
||||
flash : 'Flash',
|
||||
form : 'Формуляр',
|
||||
checkbox : 'Поле за отметка',
|
||||
radio : 'Поле за опция',
|
||||
textField : 'Текстово поле',
|
||||
textarea : 'Текстова област',
|
||||
hiddenField : 'Скрито поле',
|
||||
button : 'Бутон',
|
||||
select : 'Падащо меню с опции',
|
||||
imageButton : 'Бутон-изображение',
|
||||
notSet : '<не е настроен>',
|
||||
id : 'Идентификатор',
|
||||
name : 'Име',
|
||||
langDir : 'посока на речта',
|
||||
langDirLtr : 'От ляво на дясно',
|
||||
langDirRtl : 'От дясно на ляво',
|
||||
langCode : 'Код на езика',
|
||||
longDescr : 'Описание на връзката',
|
||||
cssClass : 'Клас от стиловите таблици',
|
||||
advisoryTitle : 'Препоръчително заглавие',
|
||||
cssStyle : 'Стил',
|
||||
ok : 'ОК',
|
||||
cancel : 'Отказ',
|
||||
generalTab : 'General', // MISSING
|
||||
advancedTab : 'Подробности...',
|
||||
validateNumberFailed : 'This value is not a number.', // MISSING
|
||||
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
|
||||
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
|
||||
|
||||
// Put the voice-only part of the label in the span.
|
||||
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
|
||||
},
|
||||
|
||||
// Special char dialog.
|
||||
specialChar :
|
||||
{
|
||||
toolbar : 'Вмъкни специален символ',
|
||||
title : 'Изберете специален символ'
|
||||
},
|
||||
|
||||
// Link dialog.
|
||||
link :
|
||||
{
|
||||
toolbar : 'Добави/Редактирай връзка',
|
||||
menu : 'Редактирай връзка',
|
||||
title : 'Връзка',
|
||||
info : 'Информация за връзката',
|
||||
target : 'Цел',
|
||||
upload : 'Качи',
|
||||
advanced : 'Подробности...',
|
||||
type : 'Вид на връзката',
|
||||
toAnchor : 'Котва в текущата страница',
|
||||
toEmail : 'Е-поща',
|
||||
target : 'Цел',
|
||||
targetNotSet : '<не е настроен>',
|
||||
targetFrame : '<рамка>',
|
||||
targetPopup : '<дъщерен прозорец>',
|
||||
targetNew : 'Нов прозорец (_blank)',
|
||||
targetTop : 'Целия прозорец (_top)',
|
||||
targetSelf : 'Активния прозорец (_self)',
|
||||
targetParent : 'Родителски прозорец (_parent)',
|
||||
targetFrameName : 'Име на целевия прозорец',
|
||||
targetPopupName : 'Име на дъщерния прозорец',
|
||||
popupFeatures : 'Параметри на дъщерния прозорец',
|
||||
popupResizable : 'Resizable', // MISSING
|
||||
popupStatusBar : 'Поле за статус',
|
||||
popupLocationBar : 'Поле за адрес',
|
||||
popupToolbar : 'Панел с бутони',
|
||||
popupMenuBar : 'Меню',
|
||||
popupFullScreen : 'Голям екран (MS IE)',
|
||||
popupScrollBars : 'Плъзгач',
|
||||
popupDependent : 'Зависим (Netscape)',
|
||||
popupWidth : 'Ширина',
|
||||
popupLeft : 'Координати - X',
|
||||
popupHeight : 'Височина',
|
||||
popupTop : 'Координати - Y',
|
||||
id : 'Id', // MISSING
|
||||
langDir : 'посока на речта',
|
||||
langDirNotSet : '<не е настроен>',
|
||||
langDirLTR : 'От ляво на дясно',
|
||||
langDirRTL : 'От дясно на ляво',
|
||||
acccessKey : 'Бърз клавиш',
|
||||
name : 'Име',
|
||||
langCode : 'посока на речта',
|
||||
tabIndex : 'Ред на достъп',
|
||||
advisoryTitle : 'Препоръчително заглавие',
|
||||
advisoryContentType : 'Препоръчителен тип на съдържанието',
|
||||
cssClasses : 'Клас от стиловите таблици',
|
||||
charset : 'Тип на свързания ресурс',
|
||||
styles : 'Стил',
|
||||
selectAnchor : 'Изберете котва',
|
||||
anchorName : 'По име на котвата',
|
||||
anchorId : 'По идентификатор на елемент',
|
||||
emailAddress : 'Адрес за е-поща',
|
||||
emailSubject : 'Тема на писмото',
|
||||
emailBody : 'Текст на писмото',
|
||||
noAnchors : '(Няма котви в текущия документ)',
|
||||
noUrl : 'Моля, напишете пълния път (URL)',
|
||||
noEmail : 'Моля, напишете адреса за е-поща'
|
||||
},
|
||||
|
||||
// Anchor dialog
|
||||
anchor :
|
||||
{
|
||||
toolbar : 'Добави/Редактирай котва',
|
||||
menu : 'Параметри на котвата',
|
||||
title : 'Параметри на котвата',
|
||||
name : 'Име на котвата',
|
||||
errorName : 'Моля, въведете име на котвата'
|
||||
},
|
||||
|
||||
// Find And Replace Dialog
|
||||
findAndReplace :
|
||||
{
|
||||
title : 'Find and Replace', // MISSING
|
||||
find : 'Търси',
|
||||
replace : 'Замести',
|
||||
findWhat : 'Търси:',
|
||||
replaceWith : 'Замести с:',
|
||||
notFoundMsg : 'Указания текст не беше намерен.',
|
||||
matchCase : 'Със същия регистър',
|
||||
matchWord : 'Търси същата дума',
|
||||
matchCyclic : 'Match cyclic', // MISSING
|
||||
replaceAll : 'Замести всички',
|
||||
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
|
||||
},
|
||||
|
||||
// Table Dialog
|
||||
table :
|
||||
{
|
||||
toolbar : 'Таблица',
|
||||
title : 'Параметри на таблицата',
|
||||
menu : 'Параметри на таблицата',
|
||||
deleteTable : 'Изтрий таблицата',
|
||||
rows : 'Редове',
|
||||
columns : 'Колони',
|
||||
border : 'Размер на рамката',
|
||||
align : 'Подравняване',
|
||||
alignNotSet : '<Не е избрано>',
|
||||
alignLeft : 'Ляво',
|
||||
alignCenter : 'Център',
|
||||
alignRight : 'Дясно',
|
||||
width : 'Ширина',
|
||||
widthPx : 'пиксели',
|
||||
widthPc : 'проценти',
|
||||
height : 'Височина',
|
||||
cellSpace : 'Разстояние между клетките',
|
||||
cellPad : 'Отстъп на съдържанието в клетките',
|
||||
caption : 'Заглавие',
|
||||
summary : 'Резюме',
|
||||
headers : 'Headers', // MISSING
|
||||
headersNone : 'None', // MISSING
|
||||
headersColumn : 'First column', // MISSING
|
||||
headersRow : 'First Row', // MISSING
|
||||
headersBoth : 'Both', // MISSING
|
||||
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
|
||||
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
|
||||
invalidBorder : 'Border size must be a number.', // MISSING
|
||||
invalidWidth : 'Table width must be a number.', // MISSING
|
||||
invalidHeight : 'Table height must be a number.', // MISSING
|
||||
invalidCellSpacing : 'Cell spacing must be a number.', // MISSING
|
||||
invalidCellPadding : 'Cell padding must be a number.', // MISSING
|
||||
|
||||
cell :
|
||||
{
|
||||
menu : 'Cell', // MISSING
|
||||
insertBefore : 'Insert Cell Before', // MISSING
|
||||
insertAfter : 'Insert Cell After', // MISSING
|
||||
deleteCell : 'Изтрий клетките',
|
||||
merge : 'Обедини клетките',
|
||||
mergeRight : 'Merge Right', // MISSING
|
||||
mergeDown : 'Merge Down', // MISSING
|
||||
splitHorizontal : 'Split Cell Horizontally', // MISSING
|
||||
splitVertical : 'Split Cell Vertically', // MISSING
|
||||
title : 'Cell Properties', // MISSING
|
||||
cellType : 'Cell Type', // MISSING
|
||||
rowSpan : 'Rows Span', // MISSING
|
||||
colSpan : 'Columns Span', // MISSING
|
||||
wordWrap : 'Word Wrap', // MISSING
|
||||
hAlign : 'Horizontal Alignment', // MISSING
|
||||
vAlign : 'Vertical Alignment', // MISSING
|
||||
alignTop : 'Top', // MISSING
|
||||
alignMiddle : 'Middle', // MISSING
|
||||
alignBottom : 'Bottom', // MISSING
|
||||
alignBaseline : 'Baseline', // MISSING
|
||||
bgColor : 'Background Color', // MISSING
|
||||
borderColor : 'Border Color', // MISSING
|
||||
data : 'Data', // MISSING
|
||||
header : 'Header', // MISSING
|
||||
yes : 'Yes', // MISSING
|
||||
no : 'No', // MISSING
|
||||
invalidWidth : 'Cell width must be a number.', // MISSING
|
||||
invalidHeight : 'Cell height must be a number.', // MISSING
|
||||
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
|
||||
invalidColSpan : 'Columns span must be a whole number.' // MISSING
|
||||
},
|
||||
|
||||
row :
|
||||
{
|
||||
menu : 'Row', // MISSING
|
||||
insertBefore : 'Insert Row Before', // MISSING
|
||||
insertAfter : 'Insert Row After', // MISSING
|
||||
deleteRow : 'Изтрий редовете'
|
||||
},
|
||||
|
||||
column :
|
||||
{
|
||||
menu : 'Column', // MISSING
|
||||
insertBefore : 'Insert Column Before', // MISSING
|
||||
insertAfter : 'Insert Column After', // MISSING
|
||||
deleteColumn : 'Изтрий колоните'
|
||||
}
|
||||
},
|
||||
|
||||
// Button Dialog.
|
||||
button :
|
||||
{
|
||||
title : 'Параметри на бутона',
|
||||
text : 'Текст (Стойност)',
|
||||
type : 'Тип',
|
||||
typeBtn : 'Button', // MISSING
|
||||
typeSbm : 'Submit', // MISSING
|
||||
typeRst : 'Reset' // MISSING
|
||||
},
|
||||
|
||||
// Checkbox and Radio Button Dialogs.
|
||||
checkboxAndRadio :
|
||||
{
|
||||
checkboxTitle : 'Параметри на полето за отметка',
|
||||
radioTitle : 'Параметри на полето за опция',
|
||||
value : 'Стойност',
|
||||
selected : 'Отметнато'
|
||||
},
|
||||
|
||||
// Form Dialog.
|
||||
form :
|
||||
{
|
||||
title : 'Параметри на формуляра',
|
||||
menu : 'Параметри на формуляра',
|
||||
action : 'Действие',
|
||||
method : 'Метод',
|
||||
encoding : 'Encoding', // MISSING
|
||||
target : 'Цел',
|
||||
targetNotSet : '<не е настроен>',
|
||||
targetNew : 'Нов прозорец (_blank)',
|
||||
targetTop : 'Целия прозорец (_top)',
|
||||
targetSelf : 'Активния прозорец (_self)',
|
||||
targetParent : 'Родителски прозорец (_parent)'
|
||||
},
|
||||
|
||||
// Select Field Dialog.
|
||||
select :
|
||||
{
|
||||
title : 'Параметри на падащото меню с опции',
|
||||
selectInfo : 'Информация',
|
||||
opAvail : 'Възможни опции',
|
||||
value : 'Стойност',
|
||||
size : 'Размер',
|
||||
lines : 'линии',
|
||||
chkMulti : 'Разрешено множествено селектиране',
|
||||
opText : 'Текст',
|
||||
opValue : 'Стойност',
|
||||
btnAdd : 'Добави',
|
||||
btnModify : 'Промени',
|
||||
btnUp : 'Нагоре',
|
||||
btnDown : 'Надолу',
|
||||
btnSetValue : 'Настрой като избрана стойност',
|
||||
btnDelete : 'Изтрий'
|
||||
},
|
||||
|
||||
// Textarea Dialog.
|
||||
textarea :
|
||||
{
|
||||
title : 'Параметри на текстовата област',
|
||||
cols : 'Колони',
|
||||
rows : 'Редове'
|
||||
},
|
||||
|
||||
// Text Field Dialog.
|
||||
textfield :
|
||||
{
|
||||
title : 'Параметри на текстовото-поле',
|
||||
name : 'Име',
|
||||
value : 'Стойност',
|
||||
charWidth : 'Ширина на символите',
|
||||
maxChars : 'Максимум символи',
|
||||
type : 'Тип',
|
||||
typeText : 'Текст',
|
||||
typePass : 'Парола'
|
||||
},
|
||||
|
||||
// Hidden Field Dialog.
|
||||
hidden :
|
||||
{
|
||||
title : 'Параметри на скритото поле',
|
||||
name : 'Име',
|
||||
value : 'Стойност'
|
||||
},
|
||||
|
||||
// Image Dialog.
|
||||
image :
|
||||
{
|
||||
title : 'Параметри на изображението',
|
||||
titleButton : 'Параметри на бутона-изображение',
|
||||
menu : 'Параметри на изображението',
|
||||
infoTab : 'Информация за изображението',
|
||||
btnUpload : 'Прати към сървъра',
|
||||
url : 'Пълен път (URL)',
|
||||
upload : 'Качи',
|
||||
alt : 'Алтернативен текст',
|
||||
width : 'Ширина',
|
||||
height : 'Височина',
|
||||
lockRatio : 'Запази пропорцията',
|
||||
resetSize : 'Възстанови размера',
|
||||
border : 'Рамка',
|
||||
hSpace : 'Хоризонтален отстъп',
|
||||
vSpace : 'Вертикален отстъп',
|
||||
align : 'Подравняване',
|
||||
alignLeft : 'Ляво',
|
||||
alignAbsBottom: 'Най-долу',
|
||||
alignAbsMiddle: 'Точно по средата',
|
||||
alignBaseline : 'По базовата линия',
|
||||
alignBottom : 'Долу',
|
||||
alignMiddle : 'По средата',
|
||||
alignRight : 'Дясно',
|
||||
alignTextTop : 'Върху текста',
|
||||
alignTop : 'Отгоре',
|
||||
preview : 'Изглед',
|
||||
alertUrl : 'Моля, въведете пълния път до изображението',
|
||||
linkTab : 'Връзка',
|
||||
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
|
||||
img2Button : 'Do you want to transform the selected image on a image button?' // MISSING
|
||||
},
|
||||
|
||||
// Flash Dialog
|
||||
flash :
|
||||
{
|
||||
properties : 'Параметри на Flash обекта',
|
||||
propertiesTab : 'Properties', // MISSING
|
||||
title : 'Параметри на Flash обекта',
|
||||
chkPlay : 'Автоматично стартиране',
|
||||
chkLoop : 'Ново стартиране след завършването',
|
||||
chkMenu : 'Разрешено Flash меню',
|
||||
chkFull : 'Allow Fullscreen', // MISSING
|
||||
scale : 'Оразмеряване',
|
||||
scaleAll : 'Покажи целия обект',
|
||||
scaleNoBorder : 'Без рамка',
|
||||
scaleFit : 'Според мястото',
|
||||
access : 'Script Access', // MISSING
|
||||
accessAlways : 'Always', // MISSING
|
||||
accessSameDomain : 'Same domain', // MISSING
|
||||
accessNever : 'Never', // MISSING
|
||||
align : 'Подравняване',
|
||||
alignLeft : 'Ляво',
|
||||
alignAbsBottom: 'Най-долу',
|
||||
alignAbsMiddle: 'Точно по средата',
|
||||
alignBaseline : 'По базовата линия',
|
||||
alignBottom : 'Долу',
|
||||
alignMiddle : 'По средата',
|
||||
alignRight : 'Дясно',
|
||||
alignTextTop : 'Върху текста',
|
||||
alignTop : 'Отгоре',
|
||||
quality : 'Quality', // MISSING
|
||||
qualityBest : 'Best', // MISSING
|
||||
qualityHigh : 'High', // MISSING
|
||||
qualityAutoHigh : 'Auto High', // MISSING
|
||||
qualityMedium : 'Medium', // MISSING
|
||||
qualityAutoLow : 'Auto Low', // MISSING
|
||||
qualityLow : 'Low', // MISSING
|
||||
windowModeWindow : 'Window', // MISSING
|
||||
windowModeOpaque : 'Opaque', // MISSING
|
||||
windowModeTransparent : 'Transparent', // MISSING
|
||||
windowMode : 'Window mode', // MISSING
|
||||
flashvars : 'Variables for Flash', // MISSING
|
||||
bgcolor : 'Цвят на фона',
|
||||
width : 'Ширина',
|
||||
height : 'Височина',
|
||||
hSpace : 'Хоризонтален отстъп',
|
||||
vSpace : 'Вертикален отстъп',
|
||||
validateSrc : 'Моля, напишете пълния път (URL)',
|
||||
validateWidth : 'Width must be a number.', // MISSING
|
||||
validateHeight : 'Height must be a number.', // MISSING
|
||||
validateHSpace : 'HSpace must be a number.', // MISSING
|
||||
validateVSpace : 'VSpace must be a number.' // MISSING
|
||||
},
|
||||
|
||||
// Speller Pages Dialog
|
||||
spellCheck :
|
||||
{
|
||||
toolbar : 'Провери правописа',
|
||||
title : 'Spell Check', // MISSING
|
||||
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
|
||||
errorLoading : 'Error loading application service host: %s.', // MISSING
|
||||
notInDic : 'Липсва в речника',
|
||||
changeTo : 'Промени на',
|
||||
btnIgnore : 'Игнорирай',
|
||||
btnIgnoreAll : 'Игнорирай всички',
|
||||
btnReplace : 'Замести',
|
||||
btnReplaceAll : 'Замести всички',
|
||||
btnUndo : 'Отмени',
|
||||
noSuggestions : '- Няма предложения -',
|
||||
progress : 'Извършване на проверката за правопис...',
|
||||
noMispell : 'Проверката за правопис завършена: не са открити правописни грешки',
|
||||
noChanges : 'Проверката за правопис завършена: няма променени думи',
|
||||
oneChange : 'Проверката за правопис завършена: една дума е променена',
|
||||
manyChanges : 'Проверката за правопис завършена: %1 думи са променени',
|
||||
ieSpellDownload : 'Инструментът за проверка на правопис не е инсталиран. Желаете ли да го инсталирате ?'
|
||||
},
|
||||
|
||||
smiley :
|
||||
{
|
||||
toolbar : 'Усмивка',
|
||||
title : 'Добави усмивка'
|
||||
},
|
||||
|
||||
elementsPath :
|
||||
{
|
||||
eleTitle : '%1 element' // MISSING
|
||||
},
|
||||
|
||||
numberedlist : 'Нумериран списък',
|
||||
bulletedlist : 'Ненумериран списък',
|
||||
indent : 'Увеличи отстъпа',
|
||||
outdent : 'Намали отстъпа',
|
||||
|
||||
justify :
|
||||
{
|
||||
left : 'Подравняване в ляво',
|
||||
center : 'Подравнявне в средата',
|
||||
right : 'Подравняване в дясно',
|
||||
block : 'Двустранно подравняване'
|
||||
},
|
||||
|
||||
blockquote : 'Blockquote', // MISSING
|
||||
|
||||
clipboard :
|
||||
{
|
||||
title : 'Вмъкни',
|
||||
cutError : 'Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни изрязването. За целта използвайте клавиатурата (Ctrl+X).',
|
||||
copyError : 'Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни запаметяването. За целта използвайте клавиатурата (Ctrl+C).',
|
||||
pasteMsg : 'Вмъкнете тук съдъжанието с клавиатуарата (<STRONG>Ctrl+V</STRONG>) и натиснете <STRONG>OK</STRONG>.',
|
||||
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.' // MISSING
|
||||
},
|
||||
|
||||
pastefromword :
|
||||
{
|
||||
toolbar : 'Вмъкни от MS Word',
|
||||
title : 'Вмъкни от MS Word',
|
||||
advice : 'Вмъкнете тук съдъжанието с клавиатуарата (<STRONG>Ctrl+V</STRONG>) и натиснете <STRONG>OK</STRONG>.',
|
||||
ignoreFontFace : 'Игнорирай шрифтовите дефиниции',
|
||||
removeStyle : 'Изтрий стиловите дефиниции'
|
||||
},
|
||||
|
||||
pasteText :
|
||||
{
|
||||
button : 'Вмъкни като чист текст',
|
||||
title : 'Вмъкни като чист текст'
|
||||
},
|
||||
|
||||
templates :
|
||||
{
|
||||
button : 'Шаблони',
|
||||
title : 'Шаблони',
|
||||
insertOption: 'Replace actual contents', // MISSING
|
||||
selectPromptMsg: 'Изберете шаблон <br>(текущото съдържание на редактора ще бъде загубено):',
|
||||
emptyListMsg : '(Няма дефинирани шаблони)'
|
||||
},
|
||||
|
||||
showBlocks : 'Show Blocks', // MISSING
|
||||
|
||||
stylesCombo :
|
||||
{
|
||||
label : 'Стил',
|
||||
voiceLabel : 'Styles', // MISSING
|
||||
panelVoiceLabel : 'Select a style', // MISSING
|
||||
panelTitle1 : 'Block Styles', // MISSING
|
||||
panelTitle2 : 'Inline Styles', // MISSING
|
||||
panelTitle3 : 'Object Styles' // MISSING
|
||||
},
|
||||
|
||||
format :
|
||||
{
|
||||
label : 'Формат',
|
||||
voiceLabel : 'Format', // MISSING
|
||||
panelTitle : 'Формат',
|
||||
panelVoiceLabel : 'Select a paragraph format', // MISSING
|
||||
|
||||
tag_p : 'Нормален',
|
||||
tag_pre : 'Форматиран',
|
||||
tag_address : 'Адрес',
|
||||
tag_h1 : 'Заглавие 1',
|
||||
tag_h2 : 'Заглавие 2',
|
||||
tag_h3 : 'Заглавие 3',
|
||||
tag_h4 : 'Заглавие 4',
|
||||
tag_h5 : 'Заглавие 5',
|
||||
tag_h6 : 'Заглавие 6',
|
||||
tag_div : 'Параграф (DIV)'
|
||||
},
|
||||
|
||||
font :
|
||||
{
|
||||
label : 'Шрифт',
|
||||
voiceLabel : 'Font', // MISSING
|
||||
panelTitle : 'Шрифт',
|
||||
panelVoiceLabel : 'Select a font' // MISSING
|
||||
},
|
||||
|
||||
fontSize :
|
||||
{
|
||||
label : 'Размер',
|
||||
voiceLabel : 'Font Size', // MISSING
|
||||
panelTitle : 'Размер',
|
||||
panelVoiceLabel : 'Select a font size' // MISSING
|
||||
},
|
||||
|
||||
colorButton :
|
||||
{
|
||||
textColorTitle : 'Цвят на текста',
|
||||
bgColorTitle : 'Цвят на фона',
|
||||
auto : 'По подразбиране',
|
||||
more : 'Други цветове...'
|
||||
},
|
||||
|
||||
colors :
|
||||
{
|
||||
'000' : 'Black',
|
||||
'800000' : 'Maroon',
|
||||
'8B4513' : 'Saddle Brown',
|
||||
'2F4F4F' : 'Dark Slate Gray',
|
||||
'008080' : 'Teal',
|
||||
'000080' : 'Navy',
|
||||
'4B0082' : 'Indigo',
|
||||
'696969' : 'Dim Gray',
|
||||
'B22222' : 'Fire Brick',
|
||||
'A52A2A' : 'Brown',
|
||||
'DAA520' : 'Golden Rod',
|
||||
'006400' : 'Dark Green',
|
||||
'40E0D0' : 'Turquoise',
|
||||
'0000CD' : 'Medium Blue',
|
||||
'800080' : 'Purple',
|
||||
'808080' : 'Gray',
|
||||
'F00' : 'Red',
|
||||
'FF8C00' : 'Dark Orange',
|
||||
'FFD700' : 'Gold',
|
||||
'008000' : 'Green',
|
||||
'0FF' : 'Cyan',
|
||||
'00F' : 'Blue',
|
||||
'EE82EE' : 'Violet',
|
||||
'A9A9A9' : 'Dark Gray',
|
||||
'FFA07A' : 'Light Salmon',
|
||||
'FFA500' : 'Orange',
|
||||
'FFFF00' : 'Yellow',
|
||||
'00FF00' : 'Lime',
|
||||
'AFEEEE' : 'Pale Turquoise',
|
||||
'ADD8E6' : 'Light Blue',
|
||||
'DDA0DD' : 'Plum',
|
||||
'D3D3D3' : 'Light Grey',
|
||||
'FFF0F5' : 'Lavender Blush',
|
||||
'FAEBD7' : 'Antique White',
|
||||
'FFFFE0' : 'Light Yellow',
|
||||
'F0FFF0' : 'Honeydew',
|
||||
'F0FFFF' : 'Azure',
|
||||
'F0F8FF' : 'Alice Blue',
|
||||
'E6E6FA' : 'Lavender',
|
||||
'FFF' : 'White'
|
||||
},
|
||||
|
||||
scayt :
|
||||
{
|
||||
title : 'Spell Check As You Type', // MISSING
|
||||
enable : 'Enable SCAYT', // MISSING
|
||||
disable : 'Disable SCAYT', // MISSING
|
||||
about : 'About SCAYT', // MISSING
|
||||
toggle : 'Toggle SCAYT', // MISSING
|
||||
options : 'Options', // MISSING
|
||||
langs : 'Languages', // MISSING
|
||||
moreSuggestions : 'More suggestions', // MISSING
|
||||
ignore : 'Ignore', // MISSING
|
||||
ignoreAll : 'Ignore All', // MISSING
|
||||
addWord : 'Add Word', // MISSING
|
||||
emptyDic : 'Dictionary name should not be empty.', // MISSING
|
||||
optionsTab : 'Options', // MISSING
|
||||
languagesTab : 'Languages', // MISSING
|
||||
dictionariesTab : 'Dictionaries', // MISSING
|
||||
aboutTab : 'About' // MISSING
|
||||
},
|
||||
|
||||
about :
|
||||
{
|
||||
title : 'About CKEditor', // MISSING
|
||||
moreInfo : 'For licensing information please visit our web site:', // MISSING
|
||||
copy : 'Copyright © $1. All rights reserved.' // MISSING
|
||||
},
|
||||
|
||||
maximize : 'Maximize', // MISSING
|
||||
|
||||
fakeobjects :
|
||||
{
|
||||
anchor : 'Anchor', // MISSING
|
||||
flash : 'Flash Animation', // MISSING
|
||||
div : 'Page Break', // MISSING
|
||||
unknown : 'Unknown Object' // MISSING
|
||||
},
|
||||
|
||||
resize : 'Drag to resize' // MISSING
|
||||
};
|
||||
673
UI/WebServerResources/ckeditor/_source/lang/bn.js
Normal file
673
UI/WebServerResources/ckeditor/_source/lang/bn.js
Normal file
@@ -0,0 +1,673 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
|
||||
* Bengali/Bangla language.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
@type String
|
||||
@example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constains the dictionary of language entries.
|
||||
* @namespace
|
||||
*/
|
||||
CKEDITOR.lang['bn'] =
|
||||
{
|
||||
/**
|
||||
* The language reading direction. Possible values are "rtl" for
|
||||
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
|
||||
* languages (like English).
|
||||
* @default 'ltr'
|
||||
*/
|
||||
dir : 'ltr',
|
||||
|
||||
/*
|
||||
* Screenreader titles. Please note that screenreaders are not always capable
|
||||
* of reading non-English words. So be careful while translating it.
|
||||
*/
|
||||
editorTitle : 'Rich text editor, %1', // MISSING
|
||||
|
||||
// Toolbar buttons without dialogs.
|
||||
source : 'সোর্স',
|
||||
newPage : 'নতুন পেজ',
|
||||
save : 'সংরক্ষন কর',
|
||||
preview : 'প্রিভিউ',
|
||||
cut : 'কাট',
|
||||
copy : 'কপি',
|
||||
paste : 'পেস্ট',
|
||||
print : 'প্রিন্ট',
|
||||
underline : 'আন্ডারলাইন',
|
||||
bold : 'বোল্ড',
|
||||
italic : 'ইটালিক',
|
||||
selectAll : 'সব সিলেক্ট কর',
|
||||
removeFormat : 'ফরমেট সরাও',
|
||||
strike : 'স্ট্রাইক থ্রু',
|
||||
subscript : 'অধোলেখ',
|
||||
superscript : 'অভিলেখ',
|
||||
horizontalrule : 'রেখা যুক্ত কর',
|
||||
pagebreak : 'পেজ ব্রেক',
|
||||
unlink : 'লিংক সরাও',
|
||||
undo : 'আনডু',
|
||||
redo : 'রি-ডু',
|
||||
|
||||
// Common messages and labels.
|
||||
common :
|
||||
{
|
||||
browseServer : 'ব্রাউজ সার্ভার',
|
||||
url : 'URL',
|
||||
protocol : 'প্রোটোকল',
|
||||
upload : 'আপলোড',
|
||||
uploadSubmit : 'ইহাকে সার্ভারে প্রেরন কর',
|
||||
image : 'ছবির লেবেল যুক্ত কর',
|
||||
flash : 'ফ্লাশ লেবেল যুক্ত কর',
|
||||
form : 'ফর্ম',
|
||||
checkbox : 'চেক বাক্স',
|
||||
radio : 'রেডিও বাটন',
|
||||
textField : 'টেক্সট ফীল্ড',
|
||||
textarea : 'টেক্সট এরিয়া',
|
||||
hiddenField : 'গুপ্ত ফীল্ড',
|
||||
button : 'বাটন',
|
||||
select : 'বাছাই ফীল্ড',
|
||||
imageButton : 'ছবির বাটন',
|
||||
notSet : '<সেট নেই>',
|
||||
id : 'আইডি',
|
||||
name : 'নাম',
|
||||
langDir : 'ভাষা লেখার দিক',
|
||||
langDirLtr : 'বাম থেকে ডান (LTR)',
|
||||
langDirRtl : 'ডান থেকে বাম (RTL)',
|
||||
langCode : 'ভাষা কোড',
|
||||
longDescr : 'URL এর লম্বা বর্ণনা',
|
||||
cssClass : 'স্টাইল-শীট ক্লাস',
|
||||
advisoryTitle : 'পরামর্শ শীর্ষক',
|
||||
cssStyle : 'স্টাইল',
|
||||
ok : 'ওকে',
|
||||
cancel : 'বাতিল',
|
||||
generalTab : 'General', // MISSING
|
||||
advancedTab : 'এডভান্সড',
|
||||
validateNumberFailed : 'This value is not a number.', // MISSING
|
||||
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
|
||||
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
|
||||
|
||||
// Put the voice-only part of the label in the span.
|
||||
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
|
||||
},
|
||||
|
||||
// Special char dialog.
|
||||
specialChar :
|
||||
{
|
||||
toolbar : 'বিশেষ অক্ষর যুক্ত কর',
|
||||
title : 'বিশেষ ক্যারেক্টার বাছাই কর'
|
||||
},
|
||||
|
||||
// Link dialog.
|
||||
link :
|
||||
{
|
||||
toolbar : 'লিংক যুক্ত কর',
|
||||
menu : 'লিংক সম্পাদন',
|
||||
title : 'লিংক',
|
||||
info : 'লিংক তথ্য',
|
||||
target : 'টার্গেট',
|
||||
upload : 'আপলোড',
|
||||
advanced : 'এডভান্সড',
|
||||
type : 'লিংক প্রকার',
|
||||
toAnchor : 'এই পেজে নোঙর কর',
|
||||
toEmail : 'ইমেইল',
|
||||
target : 'টার্গেট',
|
||||
targetNotSet : '<সেট নেই>',
|
||||
targetFrame : '<ফ্রেম>',
|
||||
targetPopup : '<পপআপ উইন্ডো>',
|
||||
targetNew : 'নতুন উইন্ডো (_blank)',
|
||||
targetTop : 'শীর্ষ উইন্ডো (_top)',
|
||||
targetSelf : 'এই উইন্ডো (_self)',
|
||||
targetParent : 'মূল উইন্ডো (_parent)',
|
||||
targetFrameName : 'টার্গেট ফ্রেমের নাম',
|
||||
targetPopupName : 'পপআপ উইন্ডোর নাম',
|
||||
popupFeatures : 'পপআপ উইন্ডো ফীচার সমূহ',
|
||||
popupResizable : 'Resizable', // MISSING
|
||||
popupStatusBar : 'স্ট্যাটাস বার',
|
||||
popupLocationBar : 'লোকেশন বার',
|
||||
popupToolbar : 'টুল বার',
|
||||
popupMenuBar : 'মেন্যু বার',
|
||||
popupFullScreen : 'পূর্ণ পর্দা জুড়ে (IE)',
|
||||
popupScrollBars : 'স্ক্রল বার',
|
||||
popupDependent : 'ডিপেন্ডেন্ট (Netscape)',
|
||||
popupWidth : 'প্রস্থ',
|
||||
popupLeft : 'বামের পজিশন',
|
||||
popupHeight : 'দৈর্ঘ্য',
|
||||
popupTop : 'ডানের পজিশন',
|
||||
id : 'Id', // MISSING
|
||||
langDir : 'ভাষা লেখার দিক',
|
||||
langDirNotSet : '<সেট নেই>',
|
||||
langDirLTR : 'বাম থেকে ডান (LTR)',
|
||||
langDirRTL : 'ডান থেকে বাম (RTL)',
|
||||
acccessKey : 'এক্সেস কী',
|
||||
name : 'নাম',
|
||||
langCode : 'ভাষা লেখার দিক',
|
||||
tabIndex : 'ট্যাব ইন্ডেক্স',
|
||||
advisoryTitle : 'পরামর্শ শীর্ষক',
|
||||
advisoryContentType : 'পরামর্শ কন্টেন্টের প্রকার',
|
||||
cssClasses : 'স্টাইল-শীট ক্লাস',
|
||||
charset : 'লিংক রিসোর্স ক্যারেক্টর সেট',
|
||||
styles : 'স্টাইল',
|
||||
selectAnchor : 'নোঙর বাছাই',
|
||||
anchorName : 'নোঙরের নাম দিয়ে',
|
||||
anchorId : 'নোঙরের আইডি দিয়ে',
|
||||
emailAddress : 'ইমেইল ঠিকানা',
|
||||
emailSubject : 'মেসেজের বিষয়',
|
||||
emailBody : 'মেসেজের দেহ',
|
||||
noAnchors : '(No anchors available in the document)', // MISSING
|
||||
noUrl : 'অনুগ্রহ করে URL লিংক টাইপ করুন',
|
||||
noEmail : 'অনুগ্রহ করে ইমেইল এড্রেস টাইপ করুন'
|
||||
},
|
||||
|
||||
// Anchor dialog
|
||||
anchor :
|
||||
{
|
||||
toolbar : 'নোঙ্গর',
|
||||
menu : 'নোঙর প্রোপার্টি',
|
||||
title : 'নোঙর প্রোপার্টি',
|
||||
name : 'নোঙরের নাম',
|
||||
errorName : 'নোঙরের নাম টাইপ করুন'
|
||||
},
|
||||
|
||||
// Find And Replace Dialog
|
||||
findAndReplace :
|
||||
{
|
||||
title : 'Find and Replace', // MISSING
|
||||
find : 'খোজো',
|
||||
replace : 'রিপ্লেস',
|
||||
findWhat : 'যা খুঁজতে হবে:',
|
||||
replaceWith : 'যার সাথে বদলাতে হবে:',
|
||||
notFoundMsg : 'আপনার উল্লেখিত টেকস্ট পাওয়া যায়নি',
|
||||
matchCase : 'কেস মিলাও',
|
||||
matchWord : 'পুরা শব্দ মেলাও',
|
||||
matchCyclic : 'Match cyclic', // MISSING
|
||||
replaceAll : 'সব বদলে দাও',
|
||||
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
|
||||
},
|
||||
|
||||
// Table Dialog
|
||||
table :
|
||||
{
|
||||
toolbar : 'টেবিলের লেবেল যুক্ত কর',
|
||||
title : 'টেবিল প্রোপার্টি',
|
||||
menu : 'টেবিল প্রোপার্টি',
|
||||
deleteTable : 'টেবিল ডিলীট কর',
|
||||
rows : 'রো',
|
||||
columns : 'কলাম',
|
||||
border : 'বর্ডার সাইজ',
|
||||
align : 'এলাইনমেন্ট',
|
||||
alignNotSet : '<সেট নেই>',
|
||||
alignLeft : 'বামে',
|
||||
alignCenter : 'মাঝখানে',
|
||||
alignRight : 'ডানে',
|
||||
width : 'প্রস্থ',
|
||||
widthPx : 'পিক্সেল',
|
||||
widthPc : 'শতকরা',
|
||||
height : 'দৈর্ঘ্য',
|
||||
cellSpace : 'সেল স্পেস',
|
||||
cellPad : 'সেল প্যাডিং',
|
||||
caption : 'শীর্ষক',
|
||||
summary : 'সারাংশ',
|
||||
headers : 'Headers', // MISSING
|
||||
headersNone : 'None', // MISSING
|
||||
headersColumn : 'First column', // MISSING
|
||||
headersRow : 'First Row', // MISSING
|
||||
headersBoth : 'Both', // MISSING
|
||||
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
|
||||
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
|
||||
invalidBorder : 'Border size must be a number.', // MISSING
|
||||
invalidWidth : 'Table width must be a number.', // MISSING
|
||||
invalidHeight : 'Table height must be a number.', // MISSING
|
||||
invalidCellSpacing : 'Cell spacing must be a number.', // MISSING
|
||||
invalidCellPadding : 'Cell padding must be a number.', // MISSING
|
||||
|
||||
cell :
|
||||
{
|
||||
menu : 'সেল',
|
||||
insertBefore : 'Insert Cell Before', // MISSING
|
||||
insertAfter : 'Insert Cell After', // MISSING
|
||||
deleteCell : 'সেল মুছে দাও',
|
||||
merge : 'সেল জোড়া দাও',
|
||||
mergeRight : 'Merge Right', // MISSING
|
||||
mergeDown : 'Merge Down', // MISSING
|
||||
splitHorizontal : 'Split Cell Horizontally', // MISSING
|
||||
splitVertical : 'Split Cell Vertically', // MISSING
|
||||
title : 'Cell Properties', // MISSING
|
||||
cellType : 'Cell Type', // MISSING
|
||||
rowSpan : 'Rows Span', // MISSING
|
||||
colSpan : 'Columns Span', // MISSING
|
||||
wordWrap : 'Word Wrap', // MISSING
|
||||
hAlign : 'Horizontal Alignment', // MISSING
|
||||
vAlign : 'Vertical Alignment', // MISSING
|
||||
alignTop : 'Top', // MISSING
|
||||
alignMiddle : 'Middle', // MISSING
|
||||
alignBottom : 'Bottom', // MISSING
|
||||
alignBaseline : 'Baseline', // MISSING
|
||||
bgColor : 'Background Color', // MISSING
|
||||
borderColor : 'Border Color', // MISSING
|
||||
data : 'Data', // MISSING
|
||||
header : 'Header', // MISSING
|
||||
yes : 'Yes', // MISSING
|
||||
no : 'No', // MISSING
|
||||
invalidWidth : 'Cell width must be a number.', // MISSING
|
||||
invalidHeight : 'Cell height must be a number.', // MISSING
|
||||
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
|
||||
invalidColSpan : 'Columns span must be a whole number.' // MISSING
|
||||
},
|
||||
|
||||
row :
|
||||
{
|
||||
menu : 'রো',
|
||||
insertBefore : 'Insert Row Before', // MISSING
|
||||
insertAfter : 'Insert Row After', // MISSING
|
||||
deleteRow : 'রো মুছে দাও'
|
||||
},
|
||||
|
||||
column :
|
||||
{
|
||||
menu : 'কলাম',
|
||||
insertBefore : 'Insert Column Before', // MISSING
|
||||
insertAfter : 'Insert Column After', // MISSING
|
||||
deleteColumn : 'কলাম মুছে দাও'
|
||||
}
|
||||
},
|
||||
|
||||
// Button Dialog.
|
||||
button :
|
||||
{
|
||||
title : 'বাটন প্রোপার্টি',
|
||||
text : 'টেক্সট (ভ্যালু)',
|
||||
type : 'প্রকার',
|
||||
typeBtn : 'Button', // MISSING
|
||||
typeSbm : 'Submit', // MISSING
|
||||
typeRst : 'Reset' // MISSING
|
||||
},
|
||||
|
||||
// Checkbox and Radio Button Dialogs.
|
||||
checkboxAndRadio :
|
||||
{
|
||||
checkboxTitle : 'চেক বক্স প্রোপার্টি',
|
||||
radioTitle : 'রেডিও বাটন প্রোপার্টি',
|
||||
value : 'ভ্যালু',
|
||||
selected : 'সিলেক্টেড'
|
||||
},
|
||||
|
||||
// Form Dialog.
|
||||
form :
|
||||
{
|
||||
title : 'ফর্ম প্রোপার্টি',
|
||||
menu : 'ফর্ম প্রোপার্টি',
|
||||
action : 'একশ্যন',
|
||||
method : 'পদ্ধতি',
|
||||
encoding : 'Encoding', // MISSING
|
||||
target : 'টার্গেট',
|
||||
targetNotSet : '<সেট নেই>',
|
||||
targetNew : 'নতুন উইন্ডো (_blank)',
|
||||
targetTop : 'শীর্ষ উইন্ডো (_top)',
|
||||
targetSelf : 'এই উইন্ডো (_self)',
|
||||
targetParent : 'মূল উইন্ডো (_parent)'
|
||||
},
|
||||
|
||||
// Select Field Dialog.
|
||||
select :
|
||||
{
|
||||
title : 'বাছাই ফীল্ড প্রোপার্টি',
|
||||
selectInfo : 'তথ্য',
|
||||
opAvail : 'অন্যান্য বিকল্প',
|
||||
value : 'ভ্যালু',
|
||||
size : 'সাইজ',
|
||||
lines : 'লাইন সমূহ',
|
||||
chkMulti : 'একাধিক সিলেকশন এলাউ কর',
|
||||
opText : 'টেক্সট',
|
||||
opValue : 'ভ্যালু',
|
||||
btnAdd : 'যুক্ত',
|
||||
btnModify : 'বদলে দাও',
|
||||
btnUp : 'উপর',
|
||||
btnDown : 'নীচে',
|
||||
btnSetValue : 'বাছাই করা ভ্যালু হিসেবে সেট কর',
|
||||
btnDelete : 'ডিলীট'
|
||||
},
|
||||
|
||||
// Textarea Dialog.
|
||||
textarea :
|
||||
{
|
||||
title : 'টেক্সট এরিয়া প্রোপার্টি',
|
||||
cols : 'কলাম',
|
||||
rows : 'রো'
|
||||
},
|
||||
|
||||
// Text Field Dialog.
|
||||
textfield :
|
||||
{
|
||||
title : 'টেক্সট ফীল্ড প্রোপার্টি',
|
||||
name : 'নাম',
|
||||
value : 'ভ্যালু',
|
||||
charWidth : 'ক্যারেক্টার প্রশস্ততা',
|
||||
maxChars : 'সর্বাধিক ক্যারেক্টার',
|
||||
type : 'টাইপ',
|
||||
typeText : 'টেক্সট',
|
||||
typePass : 'পাসওয়ার্ড'
|
||||
},
|
||||
|
||||
// Hidden Field Dialog.
|
||||
hidden :
|
||||
{
|
||||
title : 'গুপ্ত ফীল্ড প্রোপার্টি',
|
||||
name : 'নাম',
|
||||
value : 'ভ্যালু'
|
||||
},
|
||||
|
||||
// Image Dialog.
|
||||
image :
|
||||
{
|
||||
title : 'ছবির প্রোপার্টি',
|
||||
titleButton : 'ছবি বাটন প্রোপার্টি',
|
||||
menu : 'ছবির প্রোপার্টি',
|
||||
infoTab : 'ছবির তথ্য',
|
||||
btnUpload : 'ইহাকে সার্ভারে প্রেরন কর',
|
||||
url : 'URL',
|
||||
upload : 'আপলোড',
|
||||
alt : 'বিকল্প টেক্সট',
|
||||
width : 'প্রস্থ',
|
||||
height : 'দৈর্ঘ্য',
|
||||
lockRatio : 'অনুপাত লক কর',
|
||||
resetSize : 'সাইজ পূর্বাবস্থায় ফিরিয়ে দাও',
|
||||
border : 'বর্ডার',
|
||||
hSpace : 'হরাইজন্টাল স্পেস',
|
||||
vSpace : 'ভার্টিকেল স্পেস',
|
||||
align : 'এলাইন',
|
||||
alignLeft : 'বামে',
|
||||
alignAbsBottom: 'Abs নীচে',
|
||||
alignAbsMiddle: 'Abs উপর',
|
||||
alignBaseline : 'মূল রেখা',
|
||||
alignBottom : 'নীচে',
|
||||
alignMiddle : 'মধ্য',
|
||||
alignRight : 'ডানে',
|
||||
alignTextTop : 'টেক্সট উপর',
|
||||
alignTop : 'উপর',
|
||||
preview : 'প্রীভিউ',
|
||||
alertUrl : 'অনুগ্রহক করে ছবির URL টাইপ করুন',
|
||||
linkTab : 'লিংক',
|
||||
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
|
||||
img2Button : 'Do you want to transform the selected image on a image button?' // MISSING
|
||||
},
|
||||
|
||||
// Flash Dialog
|
||||
flash :
|
||||
{
|
||||
properties : 'ফ্লাশ প্রোপার্টি',
|
||||
propertiesTab : 'Properties', // MISSING
|
||||
title : 'ফ্ল্যাশ প্রোপার্টি',
|
||||
chkPlay : 'অটো প্লে',
|
||||
chkLoop : 'লূপ',
|
||||
chkMenu : 'ফ্ল্যাশ মেনু এনাবল কর',
|
||||
chkFull : 'Allow Fullscreen', // MISSING
|
||||
scale : 'স্কেল',
|
||||
scaleAll : 'সব দেখাও',
|
||||
scaleNoBorder : 'কোনো বর্ডার নেই',
|
||||
scaleFit : 'নিখুঁত ফিট',
|
||||
access : 'Script Access', // MISSING
|
||||
accessAlways : 'Always', // MISSING
|
||||
accessSameDomain : 'Same domain', // MISSING
|
||||
accessNever : 'Never', // MISSING
|
||||
align : 'এলাইন',
|
||||
alignLeft : 'বামে',
|
||||
alignAbsBottom: 'Abs নীচে',
|
||||
alignAbsMiddle: 'Abs উপর',
|
||||
alignBaseline : 'মূল রেখা',
|
||||
alignBottom : 'নীচে',
|
||||
alignMiddle : 'মধ্য',
|
||||
alignRight : 'ডানে',
|
||||
alignTextTop : 'টেক্সট উপর',
|
||||
alignTop : 'উপর',
|
||||
quality : 'Quality', // MISSING
|
||||
qualityBest : 'Best', // MISSING
|
||||
qualityHigh : 'High', // MISSING
|
||||
qualityAutoHigh : 'Auto High', // MISSING
|
||||
qualityMedium : 'Medium', // MISSING
|
||||
qualityAutoLow : 'Auto Low', // MISSING
|
||||
qualityLow : 'Low', // MISSING
|
||||
windowModeWindow : 'Window', // MISSING
|
||||
windowModeOpaque : 'Opaque', // MISSING
|
||||
windowModeTransparent : 'Transparent', // MISSING
|
||||
windowMode : 'Window mode', // MISSING
|
||||
flashvars : 'Variables for Flash', // MISSING
|
||||
bgcolor : 'বেকগ্রাউন্ড রং',
|
||||
width : 'প্রস্থ',
|
||||
height : 'দৈর্ঘ্য',
|
||||
hSpace : 'হরাইজন্টাল স্পেস',
|
||||
vSpace : 'ভার্টিকেল স্পেস',
|
||||
validateSrc : 'অনুগ্রহ করে URL লিংক টাইপ করুন',
|
||||
validateWidth : 'Width must be a number.', // MISSING
|
||||
validateHeight : 'Height must be a number.', // MISSING
|
||||
validateHSpace : 'HSpace must be a number.', // MISSING
|
||||
validateVSpace : 'VSpace must be a number.' // MISSING
|
||||
},
|
||||
|
||||
// Speller Pages Dialog
|
||||
spellCheck :
|
||||
{
|
||||
toolbar : 'বানান চেক',
|
||||
title : 'Spell Check', // MISSING
|
||||
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
|
||||
errorLoading : 'Error loading application service host: %s.', // MISSING
|
||||
notInDic : 'শব্দকোষে নেই',
|
||||
changeTo : 'এতে বদলাও',
|
||||
btnIgnore : 'ইগনোর কর',
|
||||
btnIgnoreAll : 'সব ইগনোর কর',
|
||||
btnReplace : 'বদলে দাও',
|
||||
btnReplaceAll : 'সব বদলে দাও',
|
||||
btnUndo : 'আন্ডু',
|
||||
noSuggestions : '- কোন সাজেশন নেই -',
|
||||
progress : 'বানান পরীক্ষা চলছে...',
|
||||
noMispell : 'বানান পরীক্ষা শেষ: কোন ভুল বানান পাওয়া যায়নি',
|
||||
noChanges : 'বানান পরীক্ষা শেষ: কোন শব্দ পরিবর্তন করা হয়নি',
|
||||
oneChange : 'বানান পরীক্ষা শেষ: একটি মাত্র শব্দ পরিবর্তন করা হয়েছে',
|
||||
manyChanges : 'বানান পরীক্ষা শেষ: %1 গুলো শব্দ বদলে গ্যাছে',
|
||||
ieSpellDownload : 'বানান পরীক্ষক ইনস্টল করা নেই। আপনি কি এখনই এটা ডাউনলোড করতে চান?'
|
||||
},
|
||||
|
||||
smiley :
|
||||
{
|
||||
toolbar : 'স্মাইলী',
|
||||
title : 'স্মাইলী যুক্ত কর'
|
||||
},
|
||||
|
||||
elementsPath :
|
||||
{
|
||||
eleTitle : '%1 element' // MISSING
|
||||
},
|
||||
|
||||
numberedlist : 'সাংখ্যিক লিস্টের লেবেল',
|
||||
bulletedlist : 'বুলেট লিস্ট লেবেল',
|
||||
indent : 'ইনডেন্ট বাড়াও',
|
||||
outdent : 'ইনডেন্ট কমাও',
|
||||
|
||||
justify :
|
||||
{
|
||||
left : 'বা দিকে ঘেঁষা',
|
||||
center : 'মাঝ বরাবর ঘেষা',
|
||||
right : 'ডান দিকে ঘেঁষা',
|
||||
block : 'ব্লক জাস্টিফাই'
|
||||
},
|
||||
|
||||
blockquote : 'Blockquote', // MISSING
|
||||
|
||||
clipboard :
|
||||
{
|
||||
title : 'পেস্ট',
|
||||
cutError : 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl+X)।',
|
||||
copyError : 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কপি করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl+C)।',
|
||||
pasteMsg : 'অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (<STRONG>Ctrl+V</STRONG>) পেস্ট করুন এবং <STRONG>OK</STRONG> চাপ দিন',
|
||||
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.' // MISSING
|
||||
},
|
||||
|
||||
pastefromword :
|
||||
{
|
||||
toolbar : 'পেস্ট (শব্দ)',
|
||||
title : 'পেস্ট (শব্দ)',
|
||||
advice : 'অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (<STRONG>Ctrl+V</STRONG>) পেস্ট করুন এবং <STRONG>OK</STRONG> চাপ দিন',
|
||||
ignoreFontFace : 'ফন্ট ফেস ডেফিনেশন ইগনোর করুন',
|
||||
removeStyle : 'স্টাইল ডেফিনেশন সরিয়ে দিন'
|
||||
},
|
||||
|
||||
pasteText :
|
||||
{
|
||||
button : 'সাদা টেক্সট হিসেবে পেস্ট কর',
|
||||
title : 'সাদা টেক্সট হিসেবে পেস্ট কর'
|
||||
},
|
||||
|
||||
templates :
|
||||
{
|
||||
button : 'টেমপ্লেট',
|
||||
title : 'কনটেন্ট টেমপ্লেট',
|
||||
insertOption: 'Replace actual contents', // MISSING
|
||||
selectPromptMsg: 'অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):',
|
||||
emptyListMsg : '(কোন টেমপ্লেট ডিফাইন করা নেই)'
|
||||
},
|
||||
|
||||
showBlocks : 'Show Blocks', // MISSING
|
||||
|
||||
stylesCombo :
|
||||
{
|
||||
label : 'স্টাইল',
|
||||
voiceLabel : 'Styles', // MISSING
|
||||
panelVoiceLabel : 'Select a style', // MISSING
|
||||
panelTitle1 : 'Block Styles', // MISSING
|
||||
panelTitle2 : 'Inline Styles', // MISSING
|
||||
panelTitle3 : 'Object Styles' // MISSING
|
||||
},
|
||||
|
||||
format :
|
||||
{
|
||||
label : 'ফন্ট ফরমেট',
|
||||
voiceLabel : 'Format', // MISSING
|
||||
panelTitle : 'ফন্ট ফরমেট',
|
||||
panelVoiceLabel : 'Select a paragraph format', // MISSING
|
||||
|
||||
tag_p : 'সাধারণ',
|
||||
tag_pre : 'ফর্মেটেড',
|
||||
tag_address : 'ঠিকানা',
|
||||
tag_h1 : 'শীর্ষক ১',
|
||||
tag_h2 : 'শীর্ষক ২',
|
||||
tag_h3 : 'শীর্ষক ৩',
|
||||
tag_h4 : 'শীর্ষক ৪',
|
||||
tag_h5 : 'শীর্ষক ৫',
|
||||
tag_h6 : 'শীর্ষক ৬',
|
||||
tag_div : 'শীর্ষক (DIV)'
|
||||
},
|
||||
|
||||
font :
|
||||
{
|
||||
label : 'ফন্ট',
|
||||
voiceLabel : 'Font', // MISSING
|
||||
panelTitle : 'ফন্ট',
|
||||
panelVoiceLabel : 'Select a font' // MISSING
|
||||
},
|
||||
|
||||
fontSize :
|
||||
{
|
||||
label : 'সাইজ',
|
||||
voiceLabel : 'Font Size', // MISSING
|
||||
panelTitle : 'সাইজ',
|
||||
panelVoiceLabel : 'Select a font size' // MISSING
|
||||
},
|
||||
|
||||
colorButton :
|
||||
{
|
||||
textColorTitle : 'টেক্স্ট রং',
|
||||
bgColorTitle : 'বেকগ্রাউন্ড রং',
|
||||
auto : 'অটোমেটিক',
|
||||
more : 'আরও রং...'
|
||||
},
|
||||
|
||||
colors :
|
||||
{
|
||||
'000' : 'Black',
|
||||
'800000' : 'Maroon',
|
||||
'8B4513' : 'Saddle Brown',
|
||||
'2F4F4F' : 'Dark Slate Gray',
|
||||
'008080' : 'Teal',
|
||||
'000080' : 'Navy',
|
||||
'4B0082' : 'Indigo',
|
||||
'696969' : 'Dim Gray',
|
||||
'B22222' : 'Fire Brick',
|
||||
'A52A2A' : 'Brown',
|
||||
'DAA520' : 'Golden Rod',
|
||||
'006400' : 'Dark Green',
|
||||
'40E0D0' : 'Turquoise',
|
||||
'0000CD' : 'Medium Blue',
|
||||
'800080' : 'Purple',
|
||||
'808080' : 'Gray',
|
||||
'F00' : 'Red',
|
||||
'FF8C00' : 'Dark Orange',
|
||||
'FFD700' : 'Gold',
|
||||
'008000' : 'Green',
|
||||
'0FF' : 'Cyan',
|
||||
'00F' : 'Blue',
|
||||
'EE82EE' : 'Violet',
|
||||
'A9A9A9' : 'Dark Gray',
|
||||
'FFA07A' : 'Light Salmon',
|
||||
'FFA500' : 'Orange',
|
||||
'FFFF00' : 'Yellow',
|
||||
'00FF00' : 'Lime',
|
||||
'AFEEEE' : 'Pale Turquoise',
|
||||
'ADD8E6' : 'Light Blue',
|
||||
'DDA0DD' : 'Plum',
|
||||
'D3D3D3' : 'Light Grey',
|
||||
'FFF0F5' : 'Lavender Blush',
|
||||
'FAEBD7' : 'Antique White',
|
||||
'FFFFE0' : 'Light Yellow',
|
||||
'F0FFF0' : 'Honeydew',
|
||||
'F0FFFF' : 'Azure',
|
||||
'F0F8FF' : 'Alice Blue',
|
||||
'E6E6FA' : 'Lavender',
|
||||
'FFF' : 'White'
|
||||
},
|
||||
|
||||
scayt :
|
||||
{
|
||||
title : 'Spell Check As You Type', // MISSING
|
||||
enable : 'Enable SCAYT', // MISSING
|
||||
disable : 'Disable SCAYT', // MISSING
|
||||
about : 'About SCAYT', // MISSING
|
||||
toggle : 'Toggle SCAYT', // MISSING
|
||||
options : 'Options', // MISSING
|
||||
langs : 'Languages', // MISSING
|
||||
moreSuggestions : 'More suggestions', // MISSING
|
||||
ignore : 'Ignore', // MISSING
|
||||
ignoreAll : 'Ignore All', // MISSING
|
||||
addWord : 'Add Word', // MISSING
|
||||
emptyDic : 'Dictionary name should not be empty.', // MISSING
|
||||
optionsTab : 'Options', // MISSING
|
||||
languagesTab : 'Languages', // MISSING
|
||||
dictionariesTab : 'Dictionaries', // MISSING
|
||||
aboutTab : 'About' // MISSING
|
||||
},
|
||||
|
||||
about :
|
||||
{
|
||||
title : 'About CKEditor', // MISSING
|
||||
moreInfo : 'For licensing information please visit our web site:', // MISSING
|
||||
copy : 'Copyright © $1. All rights reserved.' // MISSING
|
||||
},
|
||||
|
||||
maximize : 'Maximize', // MISSING
|
||||
|
||||
fakeobjects :
|
||||
{
|
||||
anchor : 'Anchor', // MISSING
|
||||
flash : 'Flash Animation', // MISSING
|
||||
div : 'Page Break', // MISSING
|
||||
unknown : 'Unknown Object' // MISSING
|
||||
},
|
||||
|
||||
resize : 'Drag to resize' // MISSING
|
||||
};
|
||||
673
UI/WebServerResources/ckeditor/_source/lang/bs.js
Normal file
673
UI/WebServerResources/ckeditor/_source/lang/bs.js
Normal file
@@ -0,0 +1,673 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
|
||||
* Bosnian language.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
@type String
|
||||
@example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constains the dictionary of language entries.
|
||||
* @namespace
|
||||
*/
|
||||
CKEDITOR.lang['bs'] =
|
||||
{
|
||||
/**
|
||||
* The language reading direction. Possible values are "rtl" for
|
||||
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
|
||||
* languages (like English).
|
||||
* @default 'ltr'
|
||||
*/
|
||||
dir : 'ltr',
|
||||
|
||||
/*
|
||||
* Screenreader titles. Please note that screenreaders are not always capable
|
||||
* of reading non-English words. So be careful while translating it.
|
||||
*/
|
||||
editorTitle : 'Rich text editor, %1', // MISSING
|
||||
|
||||
// Toolbar buttons without dialogs.
|
||||
source : 'HTML kôd',
|
||||
newPage : 'Novi dokument',
|
||||
save : 'Snimi',
|
||||
preview : 'Prikaži',
|
||||
cut : 'Izreži',
|
||||
copy : 'Kopiraj',
|
||||
paste : 'Zalijepi',
|
||||
print : 'Štampaj',
|
||||
underline : 'Podvuci',
|
||||
bold : 'Boldiraj',
|
||||
italic : 'Ukosi',
|
||||
selectAll : 'Selektuj sve',
|
||||
removeFormat : 'Poništi format',
|
||||
strike : 'Precrtaj',
|
||||
subscript : 'Subscript',
|
||||
superscript : 'Superscript',
|
||||
horizontalrule : 'Ubaci horizontalnu liniju',
|
||||
pagebreak : 'Insert Page Break for Printing', // MISSING
|
||||
unlink : 'Izbriši link',
|
||||
undo : 'Vrati',
|
||||
redo : 'Ponovi',
|
||||
|
||||
// Common messages and labels.
|
||||
common :
|
||||
{
|
||||
browseServer : 'Browse Server', // MISSING
|
||||
url : 'URL',
|
||||
protocol : 'Protokol',
|
||||
upload : 'Šalji',
|
||||
uploadSubmit : 'Šalji na server',
|
||||
image : 'Slika',
|
||||
flash : 'Flash', // MISSING
|
||||
form : 'Form', // MISSING
|
||||
checkbox : 'Checkbox', // MISSING
|
||||
radio : 'Radio Button', // MISSING
|
||||
textField : 'Text Field', // MISSING
|
||||
textarea : 'Textarea', // MISSING
|
||||
hiddenField : 'Hidden Field', // MISSING
|
||||
button : 'Button', // MISSING
|
||||
select : 'Selection Field', // MISSING
|
||||
imageButton : 'Image Button', // MISSING
|
||||
notSet : '<nije podešeno>',
|
||||
id : 'Id',
|
||||
name : 'Naziv',
|
||||
langDir : 'Smjer pisanja',
|
||||
langDirLtr : 'S lijeva na desno (LTR)',
|
||||
langDirRtl : 'S desna na lijevo (RTL)',
|
||||
langCode : 'Jezièni kôd',
|
||||
longDescr : 'Dugaèki opis URL-a',
|
||||
cssClass : 'Klase CSS stilova',
|
||||
advisoryTitle : 'Advisory title',
|
||||
cssStyle : 'Stil',
|
||||
ok : 'OK',
|
||||
cancel : 'Odustani',
|
||||
generalTab : 'General', // MISSING
|
||||
advancedTab : 'Naprednije',
|
||||
validateNumberFailed : 'This value is not a number.', // MISSING
|
||||
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
|
||||
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
|
||||
|
||||
// Put the voice-only part of the label in the span.
|
||||
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
|
||||
},
|
||||
|
||||
// Special char dialog.
|
||||
specialChar :
|
||||
{
|
||||
toolbar : 'Ubaci specijalni karater',
|
||||
title : 'Izaberi specijalni karakter'
|
||||
},
|
||||
|
||||
// Link dialog.
|
||||
link :
|
||||
{
|
||||
toolbar : 'Ubaci/Izmjeni link',
|
||||
menu : 'Izmjeni link',
|
||||
title : 'Link',
|
||||
info : 'Link info',
|
||||
target : 'Prozor',
|
||||
upload : 'Šalji',
|
||||
advanced : 'Naprednije',
|
||||
type : 'Tip linka',
|
||||
toAnchor : 'Sidro na ovoj stranici',
|
||||
toEmail : 'E-Mail',
|
||||
target : 'Prozor',
|
||||
targetNotSet : '<nije podešeno>',
|
||||
targetFrame : '<frejm>',
|
||||
targetPopup : '<popup prozor>',
|
||||
targetNew : 'Novi prozor (_blank)',
|
||||
targetTop : 'Najgornji prozor (_top)',
|
||||
targetSelf : 'Isti prozor (_self)',
|
||||
targetParent : 'Glavni prozor (_parent)',
|
||||
targetFrameName : 'Target Frame Name', // MISSING
|
||||
targetPopupName : 'Naziv popup prozora',
|
||||
popupFeatures : 'Moguænosti popup prozora',
|
||||
popupResizable : 'Resizable', // MISSING
|
||||
popupStatusBar : 'Statusna traka',
|
||||
popupLocationBar : 'Traka za lokaciju',
|
||||
popupToolbar : 'Traka sa alatima',
|
||||
popupMenuBar : 'Izborna traka',
|
||||
popupFullScreen : 'Cijeli ekran (IE)',
|
||||
popupScrollBars : 'Scroll traka',
|
||||
popupDependent : 'Ovisno (Netscape)',
|
||||
popupWidth : 'Širina',
|
||||
popupLeft : 'Lijeva pozicija',
|
||||
popupHeight : 'Visina',
|
||||
popupTop : 'Gornja pozicija',
|
||||
id : 'Id', // MISSING
|
||||
langDir : 'Smjer pisanja',
|
||||
langDirNotSet : '<nije podešeno>',
|
||||
langDirLTR : 'S lijeva na desno (LTR)',
|
||||
langDirRTL : 'S desna na lijevo (RTL)',
|
||||
acccessKey : 'Pristupna tipka',
|
||||
name : 'Naziv',
|
||||
langCode : 'Smjer pisanja',
|
||||
tabIndex : 'Tab indeks',
|
||||
advisoryTitle : 'Advisory title',
|
||||
advisoryContentType : 'Advisory vrsta sadržaja',
|
||||
cssClasses : 'Klase CSS stilova',
|
||||
charset : 'Linked Resource Charset',
|
||||
styles : 'Stil',
|
||||
selectAnchor : 'Izaberi sidro',
|
||||
anchorName : 'Po nazivu sidra',
|
||||
anchorId : 'Po Id-u elementa',
|
||||
emailAddress : 'E-Mail Adresa',
|
||||
emailSubject : 'Subjekt poruke',
|
||||
emailBody : 'Poruka',
|
||||
noAnchors : '(Nema dostupnih sidra na stranici)',
|
||||
noUrl : 'Molimo ukucajte URL link',
|
||||
noEmail : 'Molimo ukucajte e-mail adresu'
|
||||
},
|
||||
|
||||
// Anchor dialog
|
||||
anchor :
|
||||
{
|
||||
toolbar : 'Anchor', // MISSING
|
||||
menu : 'Edit Anchor', // MISSING
|
||||
title : 'Anchor Properties', // MISSING
|
||||
name : 'Anchor Name', // MISSING
|
||||
errorName : 'Please type the anchor name' // MISSING
|
||||
},
|
||||
|
||||
// Find And Replace Dialog
|
||||
findAndReplace :
|
||||
{
|
||||
title : 'Find and Replace', // MISSING
|
||||
find : 'Naði',
|
||||
replace : 'Zamjeni',
|
||||
findWhat : 'Naði šta:',
|
||||
replaceWith : 'Zamjeni sa:',
|
||||
notFoundMsg : 'Traženi tekst nije pronaðen.',
|
||||
matchCase : 'Uporeðuj velika/mala slova',
|
||||
matchWord : 'Uporeðuj samo cijelu rijeè',
|
||||
matchCyclic : 'Match cyclic', // MISSING
|
||||
replaceAll : 'Zamjeni sve',
|
||||
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
|
||||
},
|
||||
|
||||
// Table Dialog
|
||||
table :
|
||||
{
|
||||
toolbar : 'Tabela',
|
||||
title : 'Svojstva tabele',
|
||||
menu : 'Svojstva tabele',
|
||||
deleteTable : 'Delete Table', // MISSING
|
||||
rows : 'Redova',
|
||||
columns : 'Kolona',
|
||||
border : 'Okvir',
|
||||
align : 'Poravnanje',
|
||||
alignNotSet : '<Nije podešeno>',
|
||||
alignLeft : 'Lijevo',
|
||||
alignCenter : 'Centar',
|
||||
alignRight : 'Desno',
|
||||
width : 'Širina',
|
||||
widthPx : 'piksela',
|
||||
widthPc : 'posto',
|
||||
height : 'Visina',
|
||||
cellSpace : 'Razmak æelija',
|
||||
cellPad : 'Uvod æelija',
|
||||
caption : 'Naslov',
|
||||
summary : 'Summary', // MISSING
|
||||
headers : 'Headers', // MISSING
|
||||
headersNone : 'None', // MISSING
|
||||
headersColumn : 'First column', // MISSING
|
||||
headersRow : 'First Row', // MISSING
|
||||
headersBoth : 'Both', // MISSING
|
||||
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
|
||||
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
|
||||
invalidBorder : 'Border size must be a number.', // MISSING
|
||||
invalidWidth : 'Table width must be a number.', // MISSING
|
||||
invalidHeight : 'Table height must be a number.', // MISSING
|
||||
invalidCellSpacing : 'Cell spacing must be a number.', // MISSING
|
||||
invalidCellPadding : 'Cell padding must be a number.', // MISSING
|
||||
|
||||
cell :
|
||||
{
|
||||
menu : 'Cell', // MISSING
|
||||
insertBefore : 'Insert Cell Before', // MISSING
|
||||
insertAfter : 'Insert Cell After', // MISSING
|
||||
deleteCell : 'Briši æelije',
|
||||
merge : 'Spoji æelije',
|
||||
mergeRight : 'Merge Right', // MISSING
|
||||
mergeDown : 'Merge Down', // MISSING
|
||||
splitHorizontal : 'Split Cell Horizontally', // MISSING
|
||||
splitVertical : 'Split Cell Vertically', // MISSING
|
||||
title : 'Cell Properties', // MISSING
|
||||
cellType : 'Cell Type', // MISSING
|
||||
rowSpan : 'Rows Span', // MISSING
|
||||
colSpan : 'Columns Span', // MISSING
|
||||
wordWrap : 'Word Wrap', // MISSING
|
||||
hAlign : 'Horizontal Alignment', // MISSING
|
||||
vAlign : 'Vertical Alignment', // MISSING
|
||||
alignTop : 'Top', // MISSING
|
||||
alignMiddle : 'Middle', // MISSING
|
||||
alignBottom : 'Bottom', // MISSING
|
||||
alignBaseline : 'Baseline', // MISSING
|
||||
bgColor : 'Background Color', // MISSING
|
||||
borderColor : 'Border Color', // MISSING
|
||||
data : 'Data', // MISSING
|
||||
header : 'Header', // MISSING
|
||||
yes : 'Yes', // MISSING
|
||||
no : 'No', // MISSING
|
||||
invalidWidth : 'Cell width must be a number.', // MISSING
|
||||
invalidHeight : 'Cell height must be a number.', // MISSING
|
||||
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
|
||||
invalidColSpan : 'Columns span must be a whole number.' // MISSING
|
||||
},
|
||||
|
||||
row :
|
||||
{
|
||||
menu : 'Row', // MISSING
|
||||
insertBefore : 'Insert Row Before', // MISSING
|
||||
insertAfter : 'Insert Row After', // MISSING
|
||||
deleteRow : 'Briši redove'
|
||||
},
|
||||
|
||||
column :
|
||||
{
|
||||
menu : 'Column', // MISSING
|
||||
insertBefore : 'Insert Column Before', // MISSING
|
||||
insertAfter : 'Insert Column After', // MISSING
|
||||
deleteColumn : 'Briši kolone'
|
||||
}
|
||||
},
|
||||
|
||||
// Button Dialog.
|
||||
button :
|
||||
{
|
||||
title : 'Button Properties', // MISSING
|
||||
text : 'Text (Value)', // MISSING
|
||||
type : 'Type', // MISSING
|
||||
typeBtn : 'Button', // MISSING
|
||||
typeSbm : 'Submit', // MISSING
|
||||
typeRst : 'Reset' // MISSING
|
||||
},
|
||||
|
||||
// Checkbox and Radio Button Dialogs.
|
||||
checkboxAndRadio :
|
||||
{
|
||||
checkboxTitle : 'Checkbox Properties', // MISSING
|
||||
radioTitle : 'Radio Button Properties', // MISSING
|
||||
value : 'Value', // MISSING
|
||||
selected : 'Selected' // MISSING
|
||||
},
|
||||
|
||||
// Form Dialog.
|
||||
form :
|
||||
{
|
||||
title : 'Form Properties', // MISSING
|
||||
menu : 'Form Properties', // MISSING
|
||||
action : 'Action', // MISSING
|
||||
method : 'Method', // MISSING
|
||||
encoding : 'Encoding', // MISSING
|
||||
target : 'Prozor',
|
||||
targetNotSet : '<nije podešeno>',
|
||||
targetNew : 'Novi prozor (_blank)',
|
||||
targetTop : 'Najgornji prozor (_top)',
|
||||
targetSelf : 'Isti prozor (_self)',
|
||||
targetParent : 'Glavni prozor (_parent)'
|
||||
},
|
||||
|
||||
// Select Field Dialog.
|
||||
select :
|
||||
{
|
||||
title : 'Selection Field Properties', // MISSING
|
||||
selectInfo : 'Select Info', // MISSING
|
||||
opAvail : 'Available Options', // MISSING
|
||||
value : 'Value', // MISSING
|
||||
size : 'Size', // MISSING
|
||||
lines : 'lines', // MISSING
|
||||
chkMulti : 'Allow multiple selections', // MISSING
|
||||
opText : 'Text', // MISSING
|
||||
opValue : 'Value', // MISSING
|
||||
btnAdd : 'Add', // MISSING
|
||||
btnModify : 'Modify', // MISSING
|
||||
btnUp : 'Up', // MISSING
|
||||
btnDown : 'Down', // MISSING
|
||||
btnSetValue : 'Set as selected value', // MISSING
|
||||
btnDelete : 'Delete' // MISSING
|
||||
},
|
||||
|
||||
// Textarea Dialog.
|
||||
textarea :
|
||||
{
|
||||
title : 'Textarea Properties', // MISSING
|
||||
cols : 'Columns', // MISSING
|
||||
rows : 'Rows' // MISSING
|
||||
},
|
||||
|
||||
// Text Field Dialog.
|
||||
textfield :
|
||||
{
|
||||
title : 'Text Field Properties', // MISSING
|
||||
name : 'Name', // MISSING
|
||||
value : 'Value', // MISSING
|
||||
charWidth : 'Character Width', // MISSING
|
||||
maxChars : 'Maximum Characters', // MISSING
|
||||
type : 'Type', // MISSING
|
||||
typeText : 'Text', // MISSING
|
||||
typePass : 'Password' // MISSING
|
||||
},
|
||||
|
||||
// Hidden Field Dialog.
|
||||
hidden :
|
||||
{
|
||||
title : 'Hidden Field Properties', // MISSING
|
||||
name : 'Name', // MISSING
|
||||
value : 'Value' // MISSING
|
||||
},
|
||||
|
||||
// Image Dialog.
|
||||
image :
|
||||
{
|
||||
title : 'Svojstva slike',
|
||||
titleButton : 'Image Button Properties', // MISSING
|
||||
menu : 'Svojstva slike',
|
||||
infoTab : 'Info slike',
|
||||
btnUpload : 'Šalji na server',
|
||||
url : 'URL',
|
||||
upload : 'Šalji',
|
||||
alt : 'Tekst na slici',
|
||||
width : 'Širina',
|
||||
height : 'Visina',
|
||||
lockRatio : 'Zakljuèaj odnos',
|
||||
resetSize : 'Resetuj dimenzije',
|
||||
border : 'Okvir',
|
||||
hSpace : 'HSpace',
|
||||
vSpace : 'VSpace',
|
||||
align : 'Poravnanje',
|
||||
alignLeft : 'Lijevo',
|
||||
alignAbsBottom: 'Abs dole',
|
||||
alignAbsMiddle: 'Abs sredina',
|
||||
alignBaseline : 'Bazno',
|
||||
alignBottom : 'Dno',
|
||||
alignMiddle : 'Sredina',
|
||||
alignRight : 'Desno',
|
||||
alignTextTop : 'Vrh teksta',
|
||||
alignTop : 'Vrh',
|
||||
preview : 'Prikaz',
|
||||
alertUrl : 'Molimo ukucajte URL od slike.',
|
||||
linkTab : 'Link', // MISSING
|
||||
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
|
||||
img2Button : 'Do you want to transform the selected image on a image button?' // MISSING
|
||||
},
|
||||
|
||||
// Flash Dialog
|
||||
flash :
|
||||
{
|
||||
properties : 'Flash Properties', // MISSING
|
||||
propertiesTab : 'Properties', // MISSING
|
||||
title : 'Flash Properties', // MISSING
|
||||
chkPlay : 'Auto Play', // MISSING
|
||||
chkLoop : 'Loop', // MISSING
|
||||
chkMenu : 'Enable Flash Menu', // MISSING
|
||||
chkFull : 'Allow Fullscreen', // MISSING
|
||||
scale : 'Scale', // MISSING
|
||||
scaleAll : 'Show all', // MISSING
|
||||
scaleNoBorder : 'No Border', // MISSING
|
||||
scaleFit : 'Exact Fit', // MISSING
|
||||
access : 'Script Access', // MISSING
|
||||
accessAlways : 'Always', // MISSING
|
||||
accessSameDomain : 'Same domain', // MISSING
|
||||
accessNever : 'Never', // MISSING
|
||||
align : 'Poravnanje',
|
||||
alignLeft : 'Lijevo',
|
||||
alignAbsBottom: 'Abs dole',
|
||||
alignAbsMiddle: 'Abs sredina',
|
||||
alignBaseline : 'Bazno',
|
||||
alignBottom : 'Dno',
|
||||
alignMiddle : 'Sredina',
|
||||
alignRight : 'Desno',
|
||||
alignTextTop : 'Vrh teksta',
|
||||
alignTop : 'Vrh',
|
||||
quality : 'Quality', // MISSING
|
||||
qualityBest : 'Best', // MISSING
|
||||
qualityHigh : 'High', // MISSING
|
||||
qualityAutoHigh : 'Auto High', // MISSING
|
||||
qualityMedium : 'Medium', // MISSING
|
||||
qualityAutoLow : 'Auto Low', // MISSING
|
||||
qualityLow : 'Low', // MISSING
|
||||
windowModeWindow : 'Window', // MISSING
|
||||
windowModeOpaque : 'Opaque', // MISSING
|
||||
windowModeTransparent : 'Transparent', // MISSING
|
||||
windowMode : 'Window mode', // MISSING
|
||||
flashvars : 'Variables for Flash', // MISSING
|
||||
bgcolor : 'Boja pozadine',
|
||||
width : 'Širina',
|
||||
height : 'Visina',
|
||||
hSpace : 'HSpace',
|
||||
vSpace : 'VSpace',
|
||||
validateSrc : 'Molimo ukucajte URL link',
|
||||
validateWidth : 'Width must be a number.', // MISSING
|
||||
validateHeight : 'Height must be a number.', // MISSING
|
||||
validateHSpace : 'HSpace must be a number.', // MISSING
|
||||
validateVSpace : 'VSpace must be a number.' // MISSING
|
||||
},
|
||||
|
||||
// Speller Pages Dialog
|
||||
spellCheck :
|
||||
{
|
||||
toolbar : 'Check Spelling', // MISSING
|
||||
title : 'Spell Check', // MISSING
|
||||
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
|
||||
errorLoading : 'Error loading application service host: %s.', // MISSING
|
||||
notInDic : 'Not in dictionary', // MISSING
|
||||
changeTo : 'Change to', // MISSING
|
||||
btnIgnore : 'Ignore', // MISSING
|
||||
btnIgnoreAll : 'Ignore All', // MISSING
|
||||
btnReplace : 'Replace', // MISSING
|
||||
btnReplaceAll : 'Replace All', // MISSING
|
||||
btnUndo : 'Undo', // MISSING
|
||||
noSuggestions : '- No suggestions -', // MISSING
|
||||
progress : 'Spell check in progress...', // MISSING
|
||||
noMispell : 'Spell check complete: No misspellings found', // MISSING
|
||||
noChanges : 'Spell check complete: No words changed', // MISSING
|
||||
oneChange : 'Spell check complete: One word changed', // MISSING
|
||||
manyChanges : 'Spell check complete: %1 words changed', // MISSING
|
||||
ieSpellDownload : 'Spell checker not installed. Do you want to download it now?' // MISSING
|
||||
},
|
||||
|
||||
smiley :
|
||||
{
|
||||
toolbar : 'Smješko',
|
||||
title : 'Ubaci smješka'
|
||||
},
|
||||
|
||||
elementsPath :
|
||||
{
|
||||
eleTitle : '%1 element' // MISSING
|
||||
},
|
||||
|
||||
numberedlist : 'Numerisana lista',
|
||||
bulletedlist : 'Lista',
|
||||
indent : 'Poveæaj uvod',
|
||||
outdent : 'Smanji uvod',
|
||||
|
||||
justify :
|
||||
{
|
||||
left : 'Lijevo poravnanje',
|
||||
center : 'Centralno poravnanje',
|
||||
right : 'Desno poravnanje',
|
||||
block : 'Puno poravnanje'
|
||||
},
|
||||
|
||||
blockquote : 'Blockquote', // MISSING
|
||||
|
||||
clipboard :
|
||||
{
|
||||
title : 'Zalijepi',
|
||||
cutError : 'Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl+X).',
|
||||
copyError : 'Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl+C).',
|
||||
pasteMsg : 'Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit OK', // MISSING
|
||||
securityMsg : 'Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.' // MISSING
|
||||
},
|
||||
|
||||
pastefromword :
|
||||
{
|
||||
toolbar : 'Zalijepi iz Word-a',
|
||||
title : 'Zalijepi iz Word-a',
|
||||
advice : 'Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.', // MISSING
|
||||
ignoreFontFace : 'Ignore Font Face definitions', // MISSING
|
||||
removeStyle : 'Remove Styles definitions' // MISSING
|
||||
},
|
||||
|
||||
pasteText :
|
||||
{
|
||||
button : 'Zalijepi kao obièan tekst',
|
||||
title : 'Zalijepi kao obièan tekst'
|
||||
},
|
||||
|
||||
templates :
|
||||
{
|
||||
button : 'Templates', // MISSING
|
||||
title : 'Content Templates', // MISSING
|
||||
insertOption: 'Replace actual contents', // MISSING
|
||||
selectPromptMsg: 'Please select the template to open in the editor', // MISSING
|
||||
emptyListMsg : '(No templates defined)' // MISSING
|
||||
},
|
||||
|
||||
showBlocks : 'Show Blocks', // MISSING
|
||||
|
||||
stylesCombo :
|
||||
{
|
||||
label : 'Stil',
|
||||
voiceLabel : 'Styles', // MISSING
|
||||
panelVoiceLabel : 'Select a style', // MISSING
|
||||
panelTitle1 : 'Block Styles', // MISSING
|
||||
panelTitle2 : 'Inline Styles', // MISSING
|
||||
panelTitle3 : 'Object Styles' // MISSING
|
||||
},
|
||||
|
||||
format :
|
||||
{
|
||||
label : 'Format',
|
||||
voiceLabel : 'Format', // MISSING
|
||||
panelTitle : 'Format',
|
||||
panelVoiceLabel : 'Select a paragraph format', // MISSING
|
||||
|
||||
tag_p : 'Normal',
|
||||
tag_pre : 'Formatted',
|
||||
tag_address : 'Address',
|
||||
tag_h1 : 'Heading 1',
|
||||
tag_h2 : 'Heading 2',
|
||||
tag_h3 : 'Heading 3',
|
||||
tag_h4 : 'Heading 4',
|
||||
tag_h5 : 'Heading 5',
|
||||
tag_h6 : 'Heading 6',
|
||||
tag_div : 'Normal (DIV)' // MISSING
|
||||
},
|
||||
|
||||
font :
|
||||
{
|
||||
label : 'Font',
|
||||
voiceLabel : 'Font', // MISSING
|
||||
panelTitle : 'Font',
|
||||
panelVoiceLabel : 'Select a font' // MISSING
|
||||
},
|
||||
|
||||
fontSize :
|
||||
{
|
||||
label : 'Velièina',
|
||||
voiceLabel : 'Font Size', // MISSING
|
||||
panelTitle : 'Velièina',
|
||||
panelVoiceLabel : 'Select a font size' // MISSING
|
||||
},
|
||||
|
||||
colorButton :
|
||||
{
|
||||
textColorTitle : 'Boja teksta',
|
||||
bgColorTitle : 'Boja pozadine',
|
||||
auto : 'Automatska',
|
||||
more : 'Više boja...'
|
||||
},
|
||||
|
||||
colors :
|
||||
{
|
||||
'000' : 'Black',
|
||||
'800000' : 'Maroon',
|
||||
'8B4513' : 'Saddle Brown',
|
||||
'2F4F4F' : 'Dark Slate Gray',
|
||||
'008080' : 'Teal',
|
||||
'000080' : 'Navy',
|
||||
'4B0082' : 'Indigo',
|
||||
'696969' : 'Dim Gray',
|
||||
'B22222' : 'Fire Brick',
|
||||
'A52A2A' : 'Brown',
|
||||
'DAA520' : 'Golden Rod',
|
||||
'006400' : 'Dark Green',
|
||||
'40E0D0' : 'Turquoise',
|
||||
'0000CD' : 'Medium Blue',
|
||||
'800080' : 'Purple',
|
||||
'808080' : 'Gray',
|
||||
'F00' : 'Red',
|
||||
'FF8C00' : 'Dark Orange',
|
||||
'FFD700' : 'Gold',
|
||||
'008000' : 'Green',
|
||||
'0FF' : 'Cyan',
|
||||
'00F' : 'Blue',
|
||||
'EE82EE' : 'Violet',
|
||||
'A9A9A9' : 'Dark Gray',
|
||||
'FFA07A' : 'Light Salmon',
|
||||
'FFA500' : 'Orange',
|
||||
'FFFF00' : 'Yellow',
|
||||
'00FF00' : 'Lime',
|
||||
'AFEEEE' : 'Pale Turquoise',
|
||||
'ADD8E6' : 'Light Blue',
|
||||
'DDA0DD' : 'Plum',
|
||||
'D3D3D3' : 'Light Grey',
|
||||
'FFF0F5' : 'Lavender Blush',
|
||||
'FAEBD7' : 'Antique White',
|
||||
'FFFFE0' : 'Light Yellow',
|
||||
'F0FFF0' : 'Honeydew',
|
||||
'F0FFFF' : 'Azure',
|
||||
'F0F8FF' : 'Alice Blue',
|
||||
'E6E6FA' : 'Lavender',
|
||||
'FFF' : 'White'
|
||||
},
|
||||
|
||||
scayt :
|
||||
{
|
||||
title : 'Spell Check As You Type', // MISSING
|
||||
enable : 'Enable SCAYT', // MISSING
|
||||
disable : 'Disable SCAYT', // MISSING
|
||||
about : 'About SCAYT', // MISSING
|
||||
toggle : 'Toggle SCAYT', // MISSING
|
||||
options : 'Options', // MISSING
|
||||
langs : 'Languages', // MISSING
|
||||
moreSuggestions : 'More suggestions', // MISSING
|
||||
ignore : 'Ignore', // MISSING
|
||||
ignoreAll : 'Ignore All', // MISSING
|
||||
addWord : 'Add Word', // MISSING
|
||||
emptyDic : 'Dictionary name should not be empty.', // MISSING
|
||||
optionsTab : 'Options', // MISSING
|
||||
languagesTab : 'Languages', // MISSING
|
||||
dictionariesTab : 'Dictionaries', // MISSING
|
||||
aboutTab : 'About' // MISSING
|
||||
},
|
||||
|
||||
about :
|
||||
{
|
||||
title : 'About CKEditor', // MISSING
|
||||
moreInfo : 'For licensing information please visit our web site:', // MISSING
|
||||
copy : 'Copyright © $1. All rights reserved.' // MISSING
|
||||
},
|
||||
|
||||
maximize : 'Maximize', // MISSING
|
||||
|
||||
fakeobjects :
|
||||
{
|
||||
anchor : 'Anchor', // MISSING
|
||||
flash : 'Flash Animation', // MISSING
|
||||
div : 'Page Break', // MISSING
|
||||
unknown : 'Unknown Object' // MISSING
|
||||
},
|
||||
|
||||
resize : 'Drag to resize' // MISSING
|
||||
};
|
||||
673
UI/WebServerResources/ckeditor/_source/lang/ca.js
Normal file
673
UI/WebServerResources/ckeditor/_source/lang/ca.js
Normal file
@@ -0,0 +1,673 @@
|
||||
/*
|
||||
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
|
||||
* Catalan language.
|
||||
*/
|
||||
|
||||
/**#@+
|
||||
@type String
|
||||
@example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constains the dictionary of language entries.
|
||||
* @namespace
|
||||
*/
|
||||
CKEDITOR.lang['ca'] =
|
||||
{
|
||||
/**
|
||||
* The language reading direction. Possible values are "rtl" for
|
||||
* Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
|
||||
* languages (like English).
|
||||
* @default 'ltr'
|
||||
*/
|
||||
dir : 'ltr',
|
||||
|
||||
/*
|
||||
* Screenreader titles. Please note that screenreaders are not always capable
|
||||
* of reading non-English words. So be careful while translating it.
|
||||
*/
|
||||
editorTitle : 'Rich text editor, %1', // MISSING
|
||||
|
||||
// Toolbar buttons without dialogs.
|
||||
source : 'Codi font',
|
||||
newPage : 'Nova Pàgina',
|
||||
save : 'Desa',
|
||||
preview : 'Visualització prèvia',
|
||||
cut : 'Retalla',
|
||||
copy : 'Copia',
|
||||
paste : 'Enganxa',
|
||||
print : 'Imprimeix',
|
||||
underline : 'Subratllat',
|
||||
bold : 'Negreta',
|
||||
italic : 'Cursiva',
|
||||
selectAll : 'Selecciona-ho tot',
|
||||
removeFormat : 'Elimina Format',
|
||||
strike : 'Barrat',
|
||||
subscript : 'Subíndex',
|
||||
superscript : 'Superíndex',
|
||||
horizontalrule : 'Insereix línia horitzontal',
|
||||
pagebreak : 'Insereix salt de pàgina',
|
||||
unlink : 'Elimina l\'enllaç',
|
||||
undo : 'Desfés',
|
||||
redo : 'Refés',
|
||||
|
||||
// Common messages and labels.
|
||||
common :
|
||||
{
|
||||
browseServer : 'Veure servidor',
|
||||
url : 'URL',
|
||||
protocol : 'Protocol',
|
||||
upload : 'Puja',
|
||||
uploadSubmit : 'Envia-la al servidor',
|
||||
image : 'Imatge',
|
||||
flash : 'Flash',
|
||||
form : 'Formulari',
|
||||
checkbox : 'Casella de verificació',
|
||||
radio : 'Botó d\'opció',
|
||||
textField : 'Camp de text',
|
||||
textarea : 'Àrea de text',
|
||||
hiddenField : 'Camp ocult',
|
||||
button : 'Botó',
|
||||
select : 'Camp de selecció',
|
||||
imageButton : 'Botó d\'imatge',
|
||||
notSet : '<no definit>',
|
||||
id : 'Id',
|
||||
name : 'Nom',
|
||||
langDir : 'Direcció de l\'idioma',
|
||||
langDirLtr : 'D\'esquerra a dreta (LTR)',
|
||||
langDirRtl : 'De dreta a esquerra (RTL)',
|
||||
langCode : 'Codi d\'idioma',
|
||||
longDescr : 'Descripció llarga de la URL',
|
||||
cssClass : 'Classes del full d\'estil',
|
||||
advisoryTitle : 'Títol consultiu',
|
||||
cssStyle : 'Estil',
|
||||
ok : 'D\'acord',
|
||||
cancel : 'Cancel·la',
|
||||
generalTab : 'General',
|
||||
advancedTab : 'Avançat',
|
||||
validateNumberFailed : 'This value is not a number.', // MISSING
|
||||
confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', // MISSING
|
||||
confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', // MISSING
|
||||
|
||||
// Put the voice-only part of the label in the span.
|
||||
unavailable : '%1<span class="cke_accessibility">, unavailable</span>' // MISSING
|
||||
},
|
||||
|
||||
// Special char dialog.
|
||||
specialChar :
|
||||
{
|
||||
toolbar : 'Insereix caràcter especial',
|
||||
title : 'Selecciona el caràcter especial'
|
||||
},
|
||||
|
||||
// Link dialog.
|
||||
link :
|
||||
{
|
||||
toolbar : 'Insereix/Edita enllaç',
|
||||
menu : 'Edita l\'enllaç',
|
||||
title : 'Enllaç',
|
||||
info : 'Informació de l\'enllaç',
|
||||
target : 'Destí',
|
||||
upload : 'Puja',
|
||||
advanced : 'Avançat',
|
||||
type : 'Tipus d\'enllaç',
|
||||
toAnchor : 'Àncora en aquesta pàgina',
|
||||
toEmail : 'Correu electrònic',
|
||||
target : 'Destí',
|
||||
targetNotSet : '<no definit>',
|
||||
targetFrame : '<marc>',
|
||||
targetPopup : '<finestra emergent>',
|
||||
targetNew : 'Nova finestra (_blank)',
|
||||
targetTop : 'Finestra Major (_top)',
|
||||
targetSelf : 'Mateixa finestra (_self)',
|
||||
targetParent : 'Finestra pare (_parent)',
|
||||
targetFrameName : 'Nom del marc de destí',
|
||||
targetPopupName : 'Nom finestra popup',
|
||||
popupFeatures : 'Característiques finestra popup',
|
||||
popupResizable : 'Resizable', // MISSING
|
||||
popupStatusBar : 'Barra d\'estat',
|
||||
popupLocationBar : 'Barra d\'adreça',
|
||||
popupToolbar : 'Barra d\'eines',
|
||||
popupMenuBar : 'Barra de menú',
|
||||
popupFullScreen : 'Pantalla completa (IE)',
|
||||
popupScrollBars : 'Barres d\'scroll',
|
||||
popupDependent : 'Depenent (Netscape)',
|
||||
popupWidth : 'Amplada',
|
||||
popupLeft : 'Posició esquerra',
|
||||
popupHeight : 'Alçada',
|
||||
popupTop : 'Posició dalt',
|
||||
id : 'Id', // MISSING
|
||||
langDir : 'Direcció de l\'idioma',
|
||||
langDirNotSet : '<no definit>',
|
||||
langDirLTR : 'D\'esquerra a dreta (LTR)',
|
||||
langDirRTL : 'De dreta a esquerra (RTL)',
|
||||
acccessKey : 'Clau d\'accés',
|
||||
name : 'Nom',
|
||||
langCode : 'Direcció de l\'idioma',
|
||||
tabIndex : 'Index de Tab',
|
||||
advisoryTitle : 'Títol consultiu',
|
||||
advisoryContentType : 'Tipus de contingut consultiu',
|
||||
cssClasses : 'Classes del full d\'estil',
|
||||
charset : 'Conjunt de caràcters font enllaçat',
|
||||
styles : 'Estil',
|
||||
selectAnchor : 'Selecciona una àncora',
|
||||
anchorName : 'Per nom d\'àncora',
|
||||
anchorId : 'Per Id d\'element',
|
||||
emailAddress : 'Adreça de correu electrònic',
|
||||
emailSubject : 'Assumpte del missatge',
|
||||
emailBody : 'Cos del missatge',
|
||||
noAnchors : '(No hi ha àncores disponibles en aquest document)',
|
||||
noUrl : 'Si us plau, escrigui l\'enllaç URL',
|
||||
noEmail : 'Si us plau, escrigui l\'adreça correu electrònic'
|
||||
},
|
||||
|
||||
// Anchor dialog
|
||||
anchor :
|
||||
{
|
||||
toolbar : 'Insereix/Edita àncora',
|
||||
menu : 'Propietats de l\'àncora',
|
||||
title : 'Propietats de l\'àncora',
|
||||
name : 'Nom de l\'àncora',
|
||||
errorName : 'Si us plau, escriviu el nom de l\'ancora'
|
||||
},
|
||||
|
||||
// Find And Replace Dialog
|
||||
findAndReplace :
|
||||
{
|
||||
title : 'Cerca i reemplaça',
|
||||
find : 'Cerca',
|
||||
replace : 'Reemplaça',
|
||||
findWhat : 'Cerca:',
|
||||
replaceWith : 'Remplaça amb:',
|
||||
notFoundMsg : 'El text especificat no s\'ha trobat.',
|
||||
matchCase : 'Distingeix majúscules/minúscules',
|
||||
matchWord : 'Només paraules completes',
|
||||
matchCyclic : 'Match cyclic', // MISSING
|
||||
replaceAll : 'Reemplaça-ho tot',
|
||||
replaceSuccessMsg : '%1 occurrence(s) replaced.' // MISSING
|
||||
},
|
||||
|
||||
// Table Dialog
|
||||
table :
|
||||
{
|
||||
toolbar : 'Taula',
|
||||
title : 'Propietats de la taula',
|
||||
menu : 'Propietats de la taula',
|
||||
deleteTable : 'Suprimeix la taula',
|
||||
rows : 'Files',
|
||||
columns : 'Columnes',
|
||||
border : 'Mida vora',
|
||||
align : 'Alineació',
|
||||
alignNotSet : '<No Definit>',
|
||||
alignLeft : 'Esquerra',
|
||||
alignCenter : 'Centre',
|
||||
alignRight : 'Dreta',
|
||||
width : 'Amplada',
|
||||
widthPx : 'píxels',
|
||||
widthPc : 'percentatge',
|
||||
height : 'Alçada',
|
||||
cellSpace : 'Espaiat de cel·les',
|
||||
cellPad : 'Encoixinament de cel·les',
|
||||
caption : 'Títol',
|
||||
summary : 'Resum',
|
||||
headers : 'Headers', // MISSING
|
||||
headersNone : 'None', // MISSING
|
||||
headersColumn : 'First column', // MISSING
|
||||
headersRow : 'First Row', // MISSING
|
||||
headersBoth : 'Both', // MISSING
|
||||
invalidRows : 'Number of rows must be a number greater than 0.', // MISSING
|
||||
invalidCols : 'Number of columns must be a number greater than 0.', // MISSING
|
||||
invalidBorder : 'Border size must be a number.', // MISSING
|
||||
invalidWidth : 'Table width must be a number.', // MISSING
|
||||
invalidHeight : 'Table height must be a number.', // MISSING
|
||||
invalidCellSpacing : 'Cell spacing must be a number.', // MISSING
|
||||
invalidCellPadding : 'Cell padding must be a number.', // MISSING
|
||||
|
||||
cell :
|
||||
{
|
||||
menu : 'Cel·la',
|
||||
insertBefore : 'Insereix cel·la abans de',
|
||||
insertAfter : 'Insereix cel·la darrera',
|
||||
deleteCell : 'Suprimeix les cel·les',
|
||||
merge : 'Fusiona les cel·les',
|
||||
mergeRight : 'Fusiona cap a la dreta',
|
||||
mergeDown : 'Fusiona cap avall',
|
||||
splitHorizontal : 'Divideix la cel·la horitzontalment',
|
||||
splitVertical : 'Divideix la cel·la verticalment',
|
||||
title : 'Cell Properties', // MISSING
|
||||
cellType : 'Cell Type', // MISSING
|
||||
rowSpan : 'Rows Span', // MISSING
|
||||
colSpan : 'Columns Span', // MISSING
|
||||
wordWrap : 'Word Wrap', // MISSING
|
||||
hAlign : 'Horizontal Alignment', // MISSING
|
||||
vAlign : 'Vertical Alignment', // MISSING
|
||||
alignTop : 'Top', // MISSING
|
||||
alignMiddle : 'Middle', // MISSING
|
||||
alignBottom : 'Bottom', // MISSING
|
||||
alignBaseline : 'Baseline', // MISSING
|
||||
bgColor : 'Background Color', // MISSING
|
||||
borderColor : 'Border Color', // MISSING
|
||||
data : 'Data', // MISSING
|
||||
header : 'Header', // MISSING
|
||||
yes : 'Yes', // MISSING
|
||||
no : 'No', // MISSING
|
||||
invalidWidth : 'Cell width must be a number.', // MISSING
|
||||
invalidHeight : 'Cell height must be a number.', // MISSING
|
||||
invalidRowSpan : 'Rows span must be a whole number.', // MISSING
|
||||
invalidColSpan : 'Columns span must be a whole number.' // MISSING
|
||||
},
|
||||
|
||||
row :
|
||||
{
|
||||
menu : 'Fila',
|
||||
insertBefore : 'Insereix fila abans de',
|
||||
insertAfter : 'Insereix fila darrera',
|
||||
deleteRow : 'Suprimeix una fila'
|
||||
},
|
||||
|
||||
column :
|
||||
{
|
||||
menu : 'Columna',
|
||||
insertBefore : 'Insereix columna abans de',
|
||||
insertAfter : 'Insereix columna darrera',
|
||||
deleteColumn : 'Suprimeix una columna'
|
||||
}
|
||||
},
|
||||
|
||||
// Button Dialog.
|
||||
button :
|
||||
{
|
||||
title : 'Propietats del botó',
|
||||
text : 'Text (Valor)',
|
||||
type : 'Tipus',
|
||||
typeBtn : 'Botó',
|
||||
typeSbm : 'Transmet formulari',
|
||||
typeRst : 'Reinicia formulari'
|
||||
},
|
||||
|
||||
// Checkbox and Radio Button Dialogs.
|
||||
checkboxAndRadio :
|
||||
{
|
||||
checkboxTitle : 'Propietats de la casella de verificació',
|
||||
radioTitle : 'Propietats del botó d\'opció',
|
||||
value : 'Valor',
|
||||
selected : 'Seleccionat'
|
||||
},
|
||||
|
||||
// Form Dialog.
|
||||
form :
|
||||
{
|
||||
title : 'Propietats del formulari',
|
||||
menu : 'Propietats del formulari',
|
||||
action : 'Acció',
|
||||
method : 'Mètode',
|
||||
encoding : 'Encoding', // MISSING
|
||||
target : 'Destí',
|
||||
targetNotSet : '<no definit>',
|
||||
targetNew : 'Nova finestra (_blank)',
|
||||
targetTop : 'Finestra Major (_top)',
|
||||
targetSelf : 'Mateixa finestra (_self)',
|
||||
targetParent : 'Finestra pare (_parent)'
|
||||
},
|
||||
|
||||
// Select Field Dialog.
|
||||
select :
|
||||
{
|
||||
title : 'Propietats del camp de selecció',
|
||||
selectInfo : 'Info',
|
||||
opAvail : 'Opcions disponibles',
|
||||
value : 'Valor',
|
||||
size : 'Mida',
|
||||
lines : 'Línies',
|
||||
chkMulti : 'Permet múltiples seleccions',
|
||||
opText : 'Text',
|
||||
opValue : 'Valor',
|
||||
btnAdd : 'Afegeix',
|
||||
btnModify : 'Modifica',
|
||||
btnUp : 'Amunt',
|
||||
btnDown : 'Avall',
|
||||
btnSetValue : 'Selecciona per defecte',
|
||||
btnDelete : 'Elimina'
|
||||
},
|
||||
|
||||
// Textarea Dialog.
|
||||
textarea :
|
||||
{
|
||||
title : 'Propietats de l\'àrea de text',
|
||||
cols : 'Columnes',
|
||||
rows : 'Files'
|
||||
},
|
||||
|
||||
// Text Field Dialog.
|
||||
textfield :
|
||||
{
|
||||
title : 'Propietats del camp de text',
|
||||
name : 'Nom',
|
||||
value : 'Valor',
|
||||
charWidth : 'Amplada',
|
||||
maxChars : 'Nombre màxim de caràcters',
|
||||
type : 'Tipus',
|
||||
typeText : 'Text',
|
||||
typePass : 'Contrasenya'
|
||||
},
|
||||
|
||||
// Hidden Field Dialog.
|
||||
hidden :
|
||||
{
|
||||
title : 'Propietats del camp ocult',
|
||||
name : 'Nom',
|
||||
value : 'Valor'
|
||||
},
|
||||
|
||||
// Image Dialog.
|
||||
image :
|
||||
{
|
||||
title : 'Propietats de la imatge',
|
||||
titleButton : 'Propietats del botó d\'imatge',
|
||||
menu : 'Propietats de la imatge',
|
||||
infoTab : 'Informació de la imatge',
|
||||
btnUpload : 'Envia-la al servidor',
|
||||
url : 'URL',
|
||||
upload : 'Puja',
|
||||
alt : 'Text alternatiu',
|
||||
width : 'Amplada',
|
||||
height : 'Alçada',
|
||||
lockRatio : 'Bloqueja les proporcions',
|
||||
resetSize : 'Restaura la mida',
|
||||
border : 'Vora',
|
||||
hSpace : 'Espaiat horit.',
|
||||
vSpace : 'Espaiat vert.',
|
||||
align : 'Alineació',
|
||||
alignLeft : 'Ajusta a l\'esquerra',
|
||||
alignAbsBottom: 'Abs Bottom',
|
||||
alignAbsMiddle: 'Abs Middle',
|
||||
alignBaseline : 'Baseline',
|
||||
alignBottom : 'Bottom',
|
||||
alignMiddle : 'Middle',
|
||||
alignRight : 'Ajusta a la dreta',
|
||||
alignTextTop : 'Text Top',
|
||||
alignTop : 'Top',
|
||||
preview : 'Vista prèvia',
|
||||
alertUrl : 'Si us plau, escriviu la URL de la imatge',
|
||||
linkTab : 'Enllaç',
|
||||
button2Img : 'Do you want to transform the selected image button on a simple image?', // MISSING
|
||||
img2Button : 'Do you want to transform the selected image on a image button?' // MISSING
|
||||
},
|
||||
|
||||
// Flash Dialog
|
||||
flash :
|
||||
{
|
||||
properties : 'Propietats del Flash',
|
||||
propertiesTab : 'Properties', // MISSING
|
||||
title : 'Propietats del Flash',
|
||||
chkPlay : 'Reprodució automàtica',
|
||||
chkLoop : 'Bucle',
|
||||
chkMenu : 'Habilita menú Flash',
|
||||
chkFull : 'Allow Fullscreen', // MISSING
|
||||
scale : 'Escala',
|
||||
scaleAll : 'Mostra-ho tot',
|
||||
scaleNoBorder : 'Sense vores',
|
||||
scaleFit : 'Mida exacta',
|
||||
access : 'Script Access', // MISSING
|
||||
accessAlways : 'Always', // MISSING
|
||||
accessSameDomain : 'Same domain', // MISSING
|
||||
accessNever : 'Never', // MISSING
|
||||
align : 'Alineació',
|
||||
alignLeft : 'Ajusta a l\'esquerra',
|
||||
alignAbsBottom: 'Abs Bottom',
|
||||
alignAbsMiddle: 'Abs Middle',
|
||||
alignBaseline : 'Baseline',
|
||||
alignBottom : 'Bottom',
|
||||
alignMiddle : 'Middle',
|
||||
alignRight : 'Ajusta a la dreta',
|
||||
alignTextTop : 'Text Top',
|
||||
alignTop : 'Top',
|
||||
quality : 'Quality', // MISSING
|
||||
qualityBest : 'Best', // MISSING
|
||||
qualityHigh : 'High', // MISSING
|
||||
qualityAutoHigh : 'Auto High', // MISSING
|
||||
qualityMedium : 'Medium', // MISSING
|
||||
qualityAutoLow : 'Auto Low', // MISSING
|
||||
qualityLow : 'Low', // MISSING
|
||||
windowModeWindow : 'Window', // MISSING
|
||||
windowModeOpaque : 'Opaque', // MISSING
|
||||
windowModeTransparent : 'Transparent', // MISSING
|
||||
windowMode : 'Window mode', // MISSING
|
||||
flashvars : 'Variables for Flash', // MISSING
|
||||
bgcolor : 'Color de Fons',
|
||||
width : 'Amplada',
|
||||
height : 'Alçada',
|
||||
hSpace : 'Espaiat horit.',
|
||||
vSpace : 'Espaiat vert.',
|
||||
validateSrc : 'Si us plau, escrigui l\'enllaç URL',
|
||||
validateWidth : 'Width must be a number.', // MISSING
|
||||
validateHeight : 'Height must be a number.', // MISSING
|
||||
validateHSpace : 'HSpace must be a number.', // MISSING
|
||||
validateVSpace : 'VSpace must be a number.' // MISSING
|
||||
},
|
||||
|
||||
// Speller Pages Dialog
|
||||
spellCheck :
|
||||
{
|
||||
toolbar : 'Revisa l\'ortografia',
|
||||
title : 'Spell Check', // MISSING
|
||||
notAvailable : 'Sorry, but service is unavailable now.', // MISSING
|
||||
errorLoading : 'Error loading application service host: %s.', // MISSING
|
||||
notInDic : 'No és al diccionari',
|
||||
changeTo : 'Reemplaça amb',
|
||||
btnIgnore : 'Ignora',
|
||||
btnIgnoreAll : 'Ignora-les totes',
|
||||
btnReplace : 'Canvia',
|
||||
btnReplaceAll : 'Canvia-les totes',
|
||||
btnUndo : 'Desfés',
|
||||
noSuggestions : 'Cap suggeriment',
|
||||
progress : 'Verificació ortogràfica en curs...',
|
||||
noMispell : 'Verificació ortogràfica acabada: no hi ha cap paraula mal escrita',
|
||||
noChanges : 'Verificació ortogràfica: no s\'ha canviat cap paraula',
|
||||
oneChange : 'Verificació ortogràfica: s\'ha canviat una paraula',
|
||||
manyChanges : 'Verificació ortogràfica: s\'han canviat %1 paraules',
|
||||
ieSpellDownload : 'Verificació ortogràfica no instal·lada. Voleu descarregar-ho ara?'
|
||||
},
|
||||
|
||||
smiley :
|
||||
{
|
||||
toolbar : 'Icona',
|
||||
title : 'Insereix una icona'
|
||||
},
|
||||
|
||||
elementsPath :
|
||||
{
|
||||
eleTitle : '%1 element' // MISSING
|
||||
},
|
||||
|
||||
numberedlist : 'Llista numerada',
|
||||
bulletedlist : 'Llista de pics',
|
||||
indent : 'Augmenta el sagnat',
|
||||
outdent : 'Redueix el sagnat',
|
||||
|
||||
justify :
|
||||
{
|
||||
left : 'Alinia a l\'esquerra',
|
||||
center : 'Centrat',
|
||||
right : 'Alinia a la dreta',
|
||||
block : 'Justificat'
|
||||
},
|
||||
|
||||
blockquote : 'Bloc de cita',
|
||||
|
||||
clipboard :
|
||||
{
|
||||
title : 'Enganxa',
|
||||
cutError : 'La seguretat del vostre navegador no permet executar automàticament les operacions de retallar. Si us plau, utilitzeu el teclat (Ctrl+X).',
|
||||
copyError : 'La seguretat del vostre navegador no permet executar automàticament les operacions de copiar. Si us plau, utilitzeu el teclat (Ctrl+C).',
|
||||
pasteMsg : 'Si us plau, enganxeu dins del següent camp utilitzant el teclat (<STRONG>Ctrl+V</STRONG>) i premeu <STRONG>OK</STRONG>.',
|
||||
securityMsg : 'A causa de la configuració de seguretat del vostre navegador, l\'editor no pot accedir al porta-retalls directament. Enganxeu-ho un altre cop en aquesta finestra.'
|
||||
},
|
||||
|
||||
pastefromword :
|
||||
{
|
||||
toolbar : 'Enganxa des del Word',
|
||||
title : 'Enganxa des del Word',
|
||||
advice : 'Si us plau, enganxeu dins del següent camp utilitzant el teclat (<STRONG>Ctrl+V</STRONG>) i premeu <STRONG>OK</STRONG>.',
|
||||
ignoreFontFace : 'Ignora definicions de font',
|
||||
removeStyle : 'Elimina definicions d\'estil'
|
||||
},
|
||||
|
||||
pasteText :
|
||||
{
|
||||
button : 'Enganxa com a text no formatat',
|
||||
title : 'Enganxa com a text no formatat'
|
||||
},
|
||||
|
||||
templates :
|
||||
{
|
||||
button : 'Plantilles',
|
||||
title : 'Contingut plantilles',
|
||||
insertOption: 'Reemplaça el contingut actual',
|
||||
selectPromptMsg: 'Si us plau, seleccioneu la plantilla per obrir a l\'editor<br>(el contingut actual no serà enregistrat):',
|
||||
emptyListMsg : '(No hi ha plantilles definides)'
|
||||
},
|
||||
|
||||
showBlocks : 'Mostra els blocs',
|
||||
|
||||
stylesCombo :
|
||||
{
|
||||
label : 'Estil',
|
||||
voiceLabel : 'Styles', // MISSING
|
||||
panelVoiceLabel : 'Select a style', // MISSING
|
||||
panelTitle1 : 'Block Styles', // MISSING
|
||||
panelTitle2 : 'Inline Styles', // MISSING
|
||||
panelTitle3 : 'Object Styles' // MISSING
|
||||
},
|
||||
|
||||
format :
|
||||
{
|
||||
label : 'Format',
|
||||
voiceLabel : 'Format', // MISSING
|
||||
panelTitle : 'Format',
|
||||
panelVoiceLabel : 'Select a paragraph format', // MISSING
|
||||
|
||||
tag_p : 'Normal',
|
||||
tag_pre : 'Formatejat',
|
||||
tag_address : 'Adreça',
|
||||
tag_h1 : 'Encapçalament 1',
|
||||
tag_h2 : 'Encapçalament 2',
|
||||
tag_h3 : 'Encapçalament 3',
|
||||
tag_h4 : 'Encapçalament 4',
|
||||
tag_h5 : 'Encapçalament 5',
|
||||
tag_h6 : 'Encapçalament 6',
|
||||
tag_div : 'Normal (DIV)'
|
||||
},
|
||||
|
||||
font :
|
||||
{
|
||||
label : 'Tipus de lletra',
|
||||
voiceLabel : 'Font', // MISSING
|
||||
panelTitle : 'Tipus de lletra',
|
||||
panelVoiceLabel : 'Select a font' // MISSING
|
||||
},
|
||||
|
||||
fontSize :
|
||||
{
|
||||
label : 'Mida',
|
||||
voiceLabel : 'Font Size', // MISSING
|
||||
panelTitle : 'Mida',
|
||||
panelVoiceLabel : 'Select a font size' // MISSING
|
||||
},
|
||||
|
||||
colorButton :
|
||||
{
|
||||
textColorTitle : 'Color de Text',
|
||||
bgColorTitle : 'Color de Fons',
|
||||
auto : 'Automàtic',
|
||||
more : 'Més colors...'
|
||||
},
|
||||
|
||||
colors :
|
||||
{
|
||||
'000' : 'Black',
|
||||
'800000' : 'Maroon',
|
||||
'8B4513' : 'Saddle Brown',
|
||||
'2F4F4F' : 'Dark Slate Gray',
|
||||
'008080' : 'Teal',
|
||||
'000080' : 'Navy',
|
||||
'4B0082' : 'Indigo',
|
||||
'696969' : 'Dim Gray',
|
||||
'B22222' : 'Fire Brick',
|
||||
'A52A2A' : 'Brown',
|
||||
'DAA520' : 'Golden Rod',
|
||||
'006400' : 'Dark Green',
|
||||
'40E0D0' : 'Turquoise',
|
||||
'0000CD' : 'Medium Blue',
|
||||
'800080' : 'Purple',
|
||||
'808080' : 'Gray',
|
||||
'F00' : 'Red',
|
||||
'FF8C00' : 'Dark Orange',
|
||||
'FFD700' : 'Gold',
|
||||
'008000' : 'Green',
|
||||
'0FF' : 'Cyan',
|
||||
'00F' : 'Blue',
|
||||
'EE82EE' : 'Violet',
|
||||
'A9A9A9' : 'Dark Gray',
|
||||
'FFA07A' : 'Light Salmon',
|
||||
'FFA500' : 'Orange',
|
||||
'FFFF00' : 'Yellow',
|
||||
'00FF00' : 'Lime',
|
||||
'AFEEEE' : 'Pale Turquoise',
|
||||
'ADD8E6' : 'Light Blue',
|
||||
'DDA0DD' : 'Plum',
|
||||
'D3D3D3' : 'Light Grey',
|
||||
'FFF0F5' : 'Lavender Blush',
|
||||
'FAEBD7' : 'Antique White',
|
||||
'FFFFE0' : 'Light Yellow',
|
||||
'F0FFF0' : 'Honeydew',
|
||||
'F0FFFF' : 'Azure',
|
||||
'F0F8FF' : 'Alice Blue',
|
||||
'E6E6FA' : 'Lavender',
|
||||
'FFF' : 'White'
|
||||
},
|
||||
|
||||
scayt :
|
||||
{
|
||||
title : 'Spell Check As You Type', // MISSING
|
||||
enable : 'Enable SCAYT', // MISSING
|
||||
disable : 'Disable SCAYT', // MISSING
|
||||
about : 'About SCAYT', // MISSING
|
||||
toggle : 'Toggle SCAYT', // MISSING
|
||||
options : 'Options', // MISSING
|
||||
langs : 'Languages', // MISSING
|
||||
moreSuggestions : 'More suggestions', // MISSING
|
||||
ignore : 'Ignore', // MISSING
|
||||
ignoreAll : 'Ignore All', // MISSING
|
||||
addWord : 'Add Word', // MISSING
|
||||
emptyDic : 'Dictionary name should not be empty.', // MISSING
|
||||
optionsTab : 'Options', // MISSING
|
||||
languagesTab : 'Languages', // MISSING
|
||||
dictionariesTab : 'Dictionaries', // MISSING
|
||||
aboutTab : 'About' // MISSING
|
||||
},
|
||||
|
||||
about :
|
||||
{
|
||||
title : 'About CKEditor', // MISSING
|
||||
moreInfo : 'For licensing information please visit our web site:', // MISSING
|
||||
copy : 'Copyright © $1. All rights reserved.' // MISSING
|
||||
},
|
||||
|
||||
maximize : 'Maximize', // MISSING
|
||||
|
||||
fakeobjects :
|
||||
{
|
||||
anchor : 'Anchor', // MISSING
|
||||
flash : 'Flash Animation', // MISSING
|
||||
div : 'Page Break', // MISSING
|
||||
unknown : 'Unknown Object' // MISSING
|
||||
},
|
||||
|
||||
resize : 'Drag to resize' // MISSING
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user