Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1418)
+++ branches/2.8.x/CHANGELOG	(revision 1419)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 ------------------------------------- 2.8.2 -------------------------------------
+26 Jan-2011 Build 1419 Dietmar Woellbrink (Luisehahne)
+! update rel handling FCKeditor for urls
 25 Jan-2011 Build 1418 Dietmar Woellbrink (Luisehahne)
 # remove new function see http://www.websitebaker2.org/forum/index.php/topic,20268.msg139557.html#msg139557
 24 Jan-2011 Build 1417 Dietmar Woellbrink (Luisehahne)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1418)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1419)
@@ -52,6 +52,6 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.2.RC5');
-if(!defined('REVISION')) define('REVISION', '1418');
+if(!defined('REVISION')) define('REVISION', '1419');
 
 ?>
Index: branches/2.8.x/wb/languages/EN.php
===================================================================
--- branches/2.8.x/wb/languages/EN.php	(revision 1418)
+++ branches/2.8.x/wb/languages/EN.php	(revision 1419)
@@ -363,7 +363,6 @@
 $TEXT['VIEW_DELETED_PAGES'] = 'View Deleted Pages';
 $TEXT['VIEW_DETAILS'] = 'View Details';
 $TEXT['VISIBILITY'] = 'Visibility';
-$TEXT['WARN_PAGE_LEAVE'] = 'Warn when leaving page';
 $TEXT['WBMAILER_DEFAULT_SENDER_MAIL'] = 'Default From Mail';
 $TEXT['WBMAILER_DEFAULT_SENDER_NAME'] = 'Default Sender Name';
 $TEXT['WBMAILER_DEFAULT_SETTINGS_NOTICE'] = 'Please specify a default "FROM" address and "SENDER" name below. It is recommended to use a FROM address like: <strong>admin@yourdomain.com</strong>. Some mail provider (e.g. <em>mail.com</em>) may reject mails with a FROM: address like <em>name@mail.com</em> sent via a foreign relay to avoid spam.<br /><br />The default values are only used if no other values are specified by WebsiteBaker. If your server supports <acronym title="Simple mail transfer protocol">SMTP</acronym>, you may want use this option for outgoing mails.';
Index: branches/2.8.x/wb/languages/DE.php
===================================================================
--- branches/2.8.x/wb/languages/DE.php	(revision 1418)
+++ branches/2.8.x/wb/languages/DE.php	(revision 1419)
@@ -364,7 +364,6 @@
 $TEXT['VIEW_DELETED_PAGES'] = 'gel&ouml;schte Seiten anschauen';
 $TEXT['VIEW_DETAILS'] = 'Details';
 $TEXT['VISIBILITY'] = 'Sichtbarkeit';
-$TEXT['WARN_PAGE_LEAVE'] = 'Warnung bei Seitenwechsel';
 $TEXT['WBMAILER_DEFAULT_SENDER_MAIL'] = 'Standard "VON" Adresse';
 $TEXT['WBMAILER_DEFAULT_SENDER_NAME'] = 'Standard Absender Name';
 $TEXT['WBMAILER_DEFAULT_SETTINGS_NOTICE'] = 'Bitte geben Sie eine Standard "VON" Adresse und einen Sendernamen an. Als Absender Adresse empfiehlt sich ein Format wie: <strong>admin@IhreWebseite.de</strong>. Manche E-Mail Provider (z.B. <em>mail.de</em>) stellen keine E-Mails zu, die nicht &uuml;ber den Provider selbst verschickt wurden, in der Absender Adresse aber den Namen des E-Mail Providers <em>name@mail.de</em> enthalten. Die Standard Werte werden nur verwendet, wenn keine anderen Werte von WebsiteBaker gesetzt wurden. Wenn Ihr Service Provider <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> anbietet, sollten Sie diese Option f&uuml;r ausgehende E-Mails verwenden.';
Index: branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_link.html
===================================================================
--- branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_link.html	(revision 1418)
+++ branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_link.html	(revision 1419)
@@ -1,318 +1,317 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Link dialog window.
--->
-<html>
-	<head>
-		<title>Link Properties</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-		<meta name="robots" content="noindex, nofollow" />
-		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
-		<script src="fck_link/fck_link.js" type="text/javascript"></script>
-	</head>
-	<body scroll="no" style="OVERFLOW: hidden">
-		<div id="divInfo" style="DISPLAY: none">
-			<span fckLang="DlgLnkType">Link Type</span><br />
-			<select id="cmbLinkType" onchange="SetLinkType(this.value);">
-				<option value="url" fckLang="DlgLnkTypeURL" selected="selected">URL</option>
-				<option value="anchor" fckLang="DlgLnkTypeAnchor">Anchor in this page</option>
-				<option value="email" fckLang="DlgLnkTypeEMail">E-Mail</option>
-			</select>
-			<br />
-			<br />
-			<div id="divLinkTypeUrl">
-				<table cellspacing="0" cellpadding="0" width="100%" border="0" dir="ltr">
-					<tr>
-						<td nowrap="nowrap">
-							<span fckLang="DlgLnkProto">Protocol</span><br />
-							<select id="cmbLinkProtocol">
-								<option value="http://" selected="selected">http://</option>
-								<option value="https://">https://</option>
-								<option value="ftp://">ftp://</option>
-								<option value="news://">news://</option>
-								<option value="" fckLang="DlgLnkProtoOther">&lt;other&gt;</option>
-							</select>
-						</td>
-						<td nowrap="nowrap">&nbsp;</td>
-						<td nowrap="nowrap" width="100%">
-							<span fckLang="DlgLnkURL">URL</span><br />
-							<input id="txtUrl" style="WIDTH: 100%" type="text" onkeyup="OnUrlChange();" onchange="OnUrlChange();" />
-						</td>
-					</tr>
-				</table>
-				<br />
-				<div id="divBrowseServer">
-				<input type="button" value="Browse Server" fckLang="DlgBtnBrowseServer" onclick="BrowseServer();" />
-				</div>
-			</div>
-			<div id="divLinkTypeAnchor" style="DISPLAY: none" align="center">
-				<div id="divSelAnchor" style="DISPLAY: none">
-					<table cellspacing="0" cellpadding="0" border="0" width="70%">
-						<tr>
-							<td colspan="3">
-								<span fckLang="DlgLnkAnchorSel">Select an Anchor</span>
-							</td>
-						</tr>
-						<tr>
-							<td width="50%">
-								<span fckLang="DlgLnkAnchorByName">By Anchor Name</span><br />
-								<select id="cmbAnchorName" onchange="GetE('cmbAnchorId').value='';" style="WIDTH: 100%">
-									<option value="" selected="selected"></option>
-								</select>
-							</td>
-							<td>&nbsp;&nbsp;&nbsp;</td>
-							<td width="50%">
-								<span fckLang="DlgLnkAnchorById">By Element Id</span><br />
-								<select id="cmbAnchorId" onchange="GetE('cmbAnchorName').value='';" style="WIDTH: 100%">
-									<option value="" selected="selected"></option>
-								</select>
-							</td>
-						</tr>
-					</table>
-				</div>
-				<div id="divNoAnchor" style="DISPLAY: none">
-					<span fckLang="DlgLnkNoAnchors">&lt;No anchors available in the document&gt;</span>
-				</div>
-			</div>
-			<div id="divLinkTypeEMail" style="DISPLAY: none">
-				<span fckLang="DlgLnkEMail">E-Mail Address</span><br />
-				<input id="txtEMailAddress" style="WIDTH: 100%" type="text" /><br />
-				<span fckLang="DlgLnkEMailSubject">Message Subject</span><br />
-				<input id="txtEMailSubject" style="WIDTH: 100%" type="text" /><br />
-				<span fckLang="DlgLnkEMailBody">Message Body</span><br />
-				<textarea id="txtEMailBody" style="WIDTH: 100%" rows="3" cols="20"></textarea>
-			</div>
-		</div>
-		<div id="divUpload" style="DISPLAY: none">
-			<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data" action="" onsubmit="return CheckUpload();">
-				<span fckLang="DlgLnkUpload">Upload</span><br />
-				<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br />
-				<br />
-				<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" />
-				<script type="text/javascript">
-					document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ;
-				</script>
-			</form>
-		</div>
-		<div id="divTarget" style="DISPLAY: none">
-			<table cellspacing="0" cellpadding="0" width="100%" border="0">
-				<tr>
-					<td nowrap="nowrap">
-						<span fckLang="DlgLnkTarget">Target</span><br />
-						<select id="cmbTarget" onchange="SetTarget(this.value);">
-							<option value="" fckLang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
-							<option value="frame" fckLang="DlgLnkTargetFrame">&lt;frame&gt;</option>
-							<option value="popup" fckLang="DlgLnkTargetPopup">&lt;popup window&gt;</option>
-							<option value="_blank" fckLang="DlgLnkTargetBlank">New Window (_blank)</option>
-							<option value="_top" fckLang="DlgLnkTargetTop">Topmost Window (_top)</option>
-							<option value="_self" fckLang="DlgLnkTargetSelf">Same Window (_self)</option>
-							<option value="_parent" fckLang="DlgLnkTargetParent">Parent Window (_parent)</option>
-						</select>
-					</td>
-					<td>&nbsp;</td>
-					<td id="tdTargetFrame" nowrap="nowrap" width="100%">
-						<span fckLang="DlgLnkTargetFrameName">Target Frame Name</span><br />
-						<input id="txtTargetFrame" style="WIDTH: 100%" type="text" onkeyup="OnTargetNameChange();"
-							onchange="OnTargetNameChange();" />
-					</td>
-					<td id="tdPopupName" style="DISPLAY: none" nowrap="nowrap" width="100%">
-						<span fckLang="DlgLnkPopWinName">Popup Window Name</span><br />
-						<input id="txtPopupName" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-			</table>
-			<br />
-			<table id="tablePopupFeatures" style="DISPLAY: none" cellspacing="0" cellpadding="0" align="center"
-				border="0">
-				<tr>
-					<td>
-						<span fckLang="DlgLnkPopWinFeat">Popup Window Features</span><br />
-						<table cellspacing="0" cellpadding="0" border="0">
-							<tr>
-								<td valign="top" nowrap="nowrap" width="50%">
-									<input id="chkPopupResizable" name="chkFeature" value="resizable" type="checkbox" /><label for="chkPopupResizable" fckLang="DlgLnkPopResize">Resizable</label><br />
-									<input id="chkPopupLocationBar" name="chkFeature" value="location" type="checkbox" /><label for="chkPopupLocationBar" fckLang="DlgLnkPopLocation">Location
-										Bar</label><br />
-									<input id="chkPopupManuBar" name="chkFeature" value="menubar" type="checkbox" /><label for="chkPopupManuBar" fckLang="DlgLnkPopMenu">Menu
-										Bar</label><br />
-									<input id="chkPopupScrollBars" name="chkFeature" value="scrollbars" type="checkbox" /><label for="chkPopupScrollBars" fckLang="DlgLnkPopScroll">Scroll
-										Bars</label>
-								</td>
-								<td></td>
-								<td valign="top" nowrap="nowrap" width="50%">
-									<input id="chkPopupStatusBar" name="chkFeature" value="status" type="checkbox" /><label for="chkPopupStatusBar" fckLang="DlgLnkPopStatus">Status
-										Bar</label><br />
-									<input id="chkPopupToolbar" name="chkFeature" value="toolbar" type="checkbox" /><label for="chkPopupToolbar" fckLang="DlgLnkPopToolbar">Toolbar</label><br />
-									<input id="chkPopupFullScreen" name="chkFeature" value="fullscreen" type="checkbox" /><label for="chkPopupFullScreen" fckLang="DlgLnkPopFullScrn">Full
-										Screen (IE)</label><br />
-									<input id="chkPopupDependent" name="chkFeature" value="dependent" type="checkbox" /><label for="chkPopupDependent" fckLang="DlgLnkPopDependent">Dependent
-										(Netscape)</label>
-								</td>
-							</tr>
-							<tr>
-								<td valign="top" nowrap="nowrap" width="50%">&nbsp;</td>
-								<td></td>
-								<td valign="top" nowrap="nowrap" width="50%"></td>
-							</tr>
-							<tr>
-								<td valign="top">
-									<table cellspacing="0" cellpadding="0" border="0">
-										<tr>
-											<td nowrap="nowrap"><span fckLang="DlgLnkPopWidth">Width</span></td>
-											<td>&nbsp;<input id="txtPopupWidth" type="text" maxlength="4" size="4" /></td>
-										</tr>
-										<tr>
-											<td nowrap="nowrap"><span fckLang="DlgLnkPopHeight">Height</span></td>
-											<td>&nbsp;<input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td>
-										</tr>
-									</table>
-								</td>
-								<td>&nbsp;&nbsp;</td>
-								<td valign="top">
-									<table cellspacing="0" cellpadding="0" border="0">
-										<tr>
-											<td nowrap="nowrap"><span fckLang="DlgLnkPopLeft">Left Position</span></td>
-											<td>&nbsp;<input id="txtPopupLeft" type="text" maxlength="4" size="4" /></td>
-										</tr>
-										<tr>
-											<td nowrap="nowrap"><span fckLang="DlgLnkPopTop">Top Position</span></td>
-											<td>&nbsp;<input id="txtPopupTop" type="text" maxlength="4" size="4" /></td>
-										</tr>
-									</table>
-								</td>
-							</tr>
-						</table>
-					</td>
-				</tr>
-			</table>
-		</div>
-		<div id="divAttribs" style="DISPLAY: none">
-			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-				<tr>
-					<td valign="top" width="50%">
-						<span fckLang="DlgGenId">Id</span><br />
-						<input id="txtAttId" style="WIDTH: 100%" type="text" />
-					</td>
-					<td width="1"></td>
-					<td valign="top">
-						<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-							<tr>
-								<td width="60%">
-									<span fckLang="DlgGenLangDir">Language Direction</span><br />
-									<select id="cmbAttLangDir" style="WIDTH: 100%">
-										<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
-										<option value="ltr" fckLang="DlgGenLangDirLtr">Left to Right (LTR)</option>
-										<option value="rtl" fckLang="DlgGenLangDirRtl">Right to Left (RTL)</option>
-									</select>
-								</td>
-								<td width="1%">&nbsp;&nbsp;&nbsp;</td>
-								<td nowrap="nowrap"><span fckLang="DlgGenAccessKey">Access Key</span><br />
-									<input id="txtAttAccessKey" style="WIDTH: 100%" type="text" maxlength="1" size="1" />
-								</td>
-							</tr>
-						</table>
-					</td>
-				</tr>
-				<tr>
-					<td valign="top" width="50%">
-						<span fckLang="DlgGenName">Name</span><br />
-						<input id="txtAttName" style="WIDTH: 100%" type="text" />
-					</td>
-					<td width="1"></td>
-					<td valign="top">
-						<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-							<tr>
-								<td width="60%">
-									<span fckLang="DlgGenLangCode">Language Code</span><br />
-									<input id="txtAttLangCode" style="WIDTH: 100%" type="text" />
-								</td>
-								<td width="1%">&nbsp;&nbsp;&nbsp;</td>
-								<td nowrap="nowrap">
-									<span fckLang="DlgGenTabIndex">Tab Index</span><br />
-									<input id="txtAttTabIndex" style="WIDTH: 100%" type="text" maxlength="5" size="5" />
-								</td>
-							</tr>
-						</table>
-					</td>
-				</tr>
-				<tr>
-					<td valign="top" width="50%">&nbsp;</td>
-					<td width="1"></td>
-					<td valign="top"></td>
-				</tr>
-				<tr>
-					<td nowrap="nowrap">
-						<span fckLang="DlgGenContRel">Advisory Relation</span><br />
-						<select id="cmbAttContentRel"  style="width: 100%">
-							<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
-							<option value="fancybox" fckLang="Fancybox">Fancybox</option>
-							<option value="prettyPhoto" fckLang="PrettyPhoto">PrettyPhoto</option>
-				  <!--			<option value="prettyPhoto[gallery]" fckLang="PrettyPhoto Image Gallery">PrettyPhoto Image Gallery</option>
-							<option value="prettyPhoto[flash]" fckLang="PrettyPhoto Flash">PrettyPhoto Flash</option>
-							<option value="prettyPhoto[iframes]" fckLang="PrettyPhoto IFrames">PrettyPhoto IFrames</option>
-							<option value="prettyPhoto[movies]" fckLang="PrettyPhoto Movies">PrettyPhoto Movies</option>
-							<option value="prettyPopin" fckLang="PrettyPopin">Pretty Popin</option>
-							<option value="prettyGallery" fckLang="PrettyGallery">Pretty Gallery</option>   -->
-							<option value="alternate" fckLang="Alternate">Alternate</option>
-							<option value="copyright" fckLang="copyright">Copyright</option>
-							<option value="designates" fckLang="designates">Designates</option>
-							<option value="nofollow" fckLang="nofollow">Nofollow</option>
-							<option value="lightbox" fckLang="Lightbox">Lightbox</option>
-							<option value="stylesheet" fckLang="stylesheet">Stylesheet</option>
-							<option value="thumbnail" fckLang="Thumbnail">Thumbnail</option>
-						</select>
-					</td>
-					<td width="1">&nbsp;&nbsp;&nbsp;</td>
-					<td valign="top">
-						<span fckLang="DlgGenContType">Advisory Content Type</span><br />
-						<input id="txtAttContentType" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-				<tr>
-					<td valign="top">
-						<span fckLang="DlgGenClass">Stylesheet Classes</span><br />
-						<input id="txtAttClasses" style="WIDTH: 100%" type="text" />
-					</td>
-					<td></td>
-					<td valign="top">
-						<span fckLang="DlgGenLinkCharset">Linked Resource Charset</span><br />
-						<input id="txtAttCharSet" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-			</table>
-			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-				<tr>
-					<td>
-						<span fckLang="DlgGenStyle">Style</span><br />
-						<input id="txtAttStyle" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-				<tr>
-					<td valign="top" width="100%">
-						<span fckLang="DlgGenTitle">Advisory Title</span><br />
-						<input id="txtAttTitle" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-			</table>
-		</div>
-	</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Link dialog window.
+-->
+<html>
+	<head>
+		<title>Link Properties</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<meta name="robots" content="noindex, nofollow" />
+		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
+		<script src="fck_link/fck_link.js" type="text/javascript"></script>
+	</head>
+	<body scroll="no" style="OVERFLOW: hidden">
+		<div id="divInfo" style="DISPLAY: none">
+			<span fckLang="DlgLnkType">Link Type</span><br />
+			<select id="cmbLinkType" onchange="SetLinkType(this.value);">
+				<option value="url" fckLang="DlgLnkTypeURL" selected="selected">URL</option>
+				<option value="anchor" fckLang="DlgLnkTypeAnchor">Anchor in this page</option>
+				<option value="email" fckLang="DlgLnkTypeEMail">E-Mail</option>
+			</select>
+			<br />
+			<br />
+			<div id="divLinkTypeUrl">
+				<table cellspacing="0" cellpadding="0" width="100%" border="0" dir="ltr">
+					<tr>
+						<td nowrap="nowrap">
+							<span fckLang="DlgLnkProto">Protocol</span><br />
+							<select id="cmbLinkProtocol">
+								<option value="http://" selected="selected">http://</option>
+								<option value="https://">https://</option>
+								<option value="ftp://">ftp://</option>
+								<option value="news://">news://</option>
+								<option value="" fckLang="DlgLnkProtoOther">&lt;other&gt;</option>
+							</select>
+						</td>
+						<td nowrap="nowrap">&nbsp;</td>
+						<td nowrap="nowrap" width="100%">
+							<span fckLang="DlgLnkURL">URL</span><br />
+							<input id="txtUrl" style="WIDTH: 100%" type="text" onkeyup="OnUrlChange();" onchange="OnUrlChange();" />
+						</td>
+					</tr>
+				</table>
+				<br />
+				<div id="divBrowseServer">
+				<input type="button" value="Browse Server" fckLang="DlgBtnBrowseServer" onclick="BrowseServer();" />
+				</div>
+			</div>
+			<div id="divLinkTypeAnchor" style="DISPLAY: none" align="center">
+				<div id="divSelAnchor" style="DISPLAY: none">
+					<table cellspacing="0" cellpadding="0" border="0" width="70%">
+						<tr>
+							<td colspan="3">
+								<span fckLang="DlgLnkAnchorSel">Select an Anchor</span>
+							</td>
+						</tr>
+						<tr>
+							<td width="50%">
+								<span fckLang="DlgLnkAnchorByName">By Anchor Name</span><br />
+								<select id="cmbAnchorName" onchange="GetE('cmbAnchorId').value='';" style="WIDTH: 100%">
+									<option value="" selected="selected"></option>
+								</select>
+							</td>
+							<td>&nbsp;&nbsp;&nbsp;</td>
+							<td width="50%">
+								<span fckLang="DlgLnkAnchorById">By Element Id</span><br />
+								<select id="cmbAnchorId" onchange="GetE('cmbAnchorName').value='';" style="WIDTH: 100%">
+									<option value="" selected="selected"></option>
+								</select>
+							</td>
+						</tr>
+					</table>
+				</div>
+				<div id="divNoAnchor" style="DISPLAY: none">
+					<span fckLang="DlgLnkNoAnchors">&lt;No anchors available in the document&gt;</span>
+				</div>
+			</div>
+			<div id="divLinkTypeEMail" style="DISPLAY: none">
+				<span fckLang="DlgLnkEMail">E-Mail Address</span><br />
+				<input id="txtEMailAddress" style="WIDTH: 100%" type="text" /><br />
+				<span fckLang="DlgLnkEMailSubject">Message Subject</span><br />
+				<input id="txtEMailSubject" style="WIDTH: 100%" type="text" /><br />
+				<span fckLang="DlgLnkEMailBody">Message Body</span><br />
+				<textarea id="txtEMailBody" style="WIDTH: 100%" rows="3" cols="20"></textarea>
+			</div>
+		</div>
+		<div id="divUpload" style="DISPLAY: none">
+			<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data" action="" onsubmit="return CheckUpload();">
+				<span fckLang="DlgLnkUpload">Upload</span><br />
+				<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br />
+				<br />
+				<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" />
+				<script type="text/javascript">
+					document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ;
+				</script>
+			</form>
+		</div>
+		<div id="divTarget" style="DISPLAY: none">
+			<table cellspacing="0" cellpadding="0" width="100%" border="0">
+				<tr>
+					<td nowrap="nowrap">
+						<span fckLang="DlgLnkTarget">Target</span><br />
+						<select id="cmbTarget" onchange="SetTarget(this.value);">
+							<option value="" fckLang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
+							<option value="frame" fckLang="DlgLnkTargetFrame">&lt;frame&gt;</option>
+							<option value="popup" fckLang="DlgLnkTargetPopup">&lt;popup window&gt;</option>
+							<option value="_blank" fckLang="DlgLnkTargetBlank">New Window (_blank)</option>
+							<option value="_top" fckLang="DlgLnkTargetTop">Topmost Window (_top)</option>
+							<option value="_self" fckLang="DlgLnkTargetSelf">Same Window (_self)</option>
+							<option value="_parent" fckLang="DlgLnkTargetParent">Parent Window (_parent)</option>
+						</select>
+					</td>
+					<td>&nbsp;</td>
+					<td id="tdTargetFrame" nowrap="nowrap" width="100%">
+						<span fckLang="DlgLnkTargetFrameName">Target Frame Name</span><br />
+						<input id="txtTargetFrame" style="WIDTH: 100%" type="text" onkeyup="OnTargetNameChange();"
+							onchange="OnTargetNameChange();" />
+					</td>
+					<td id="tdPopupName" style="DISPLAY: none" nowrap="nowrap" width="100%">
+						<span fckLang="DlgLnkPopWinName">Popup Window Name</span><br />
+						<input id="txtPopupName" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+			</table>
+			<br />
+			<table id="tablePopupFeatures" style="DISPLAY: none" cellspacing="0" cellpadding="0" align="center"
+				border="0">
+				<tr>
+					<td>
+						<span fckLang="DlgLnkPopWinFeat">Popup Window Features</span><br />
+						<table cellspacing="0" cellpadding="0" border="0">
+							<tr>
+								<td valign="top" nowrap="nowrap" width="50%">
+									<input id="chkPopupResizable" name="chkFeature" value="resizable" type="checkbox" /><label for="chkPopupResizable" fckLang="DlgLnkPopResize">Resizable</label><br />
+									<input id="chkPopupLocationBar" name="chkFeature" value="location" type="checkbox" /><label for="chkPopupLocationBar" fckLang="DlgLnkPopLocation">Location
+										Bar</label><br />
+									<input id="chkPopupManuBar" name="chkFeature" value="menubar" type="checkbox" /><label for="chkPopupManuBar" fckLang="DlgLnkPopMenu">Menu
+										Bar</label><br />
+									<input id="chkPopupScrollBars" name="chkFeature" value="scrollbars" type="checkbox" /><label for="chkPopupScrollBars" fckLang="DlgLnkPopScroll">Scroll
+										Bars</label>
+								</td>
+								<td></td>
+								<td valign="top" nowrap="nowrap" width="50%">
+									<input id="chkPopupStatusBar" name="chkFeature" value="status" type="checkbox" /><label for="chkPopupStatusBar" fckLang="DlgLnkPopStatus">Status
+										Bar</label><br />
+									<input id="chkPopupToolbar" name="chkFeature" value="toolbar" type="checkbox" /><label for="chkPopupToolbar" fckLang="DlgLnkPopToolbar">Toolbar</label><br />
+									<input id="chkPopupFullScreen" name="chkFeature" value="fullscreen" type="checkbox" /><label for="chkPopupFullScreen" fckLang="DlgLnkPopFullScrn">Full
+										Screen (IE)</label><br />
+									<input id="chkPopupDependent" name="chkFeature" value="dependent" type="checkbox" /><label for="chkPopupDependent" fckLang="DlgLnkPopDependent">Dependent
+										(Netscape)</label>
+								</td>
+							</tr>
+							<tr>
+								<td valign="top" nowrap="nowrap" width="50%">&nbsp;</td>
+								<td></td>
+								<td valign="top" nowrap="nowrap" width="50%"></td>
+							</tr>
+							<tr>
+								<td valign="top">
+									<table cellspacing="0" cellpadding="0" border="0">
+										<tr>
+											<td nowrap="nowrap"><span fckLang="DlgLnkPopWidth">Width</span></td>
+											<td>&nbsp;<input id="txtPopupWidth" type="text" maxlength="4" size="4" /></td>
+										</tr>
+										<tr>
+											<td nowrap="nowrap"><span fckLang="DlgLnkPopHeight">Height</span></td>
+											<td>&nbsp;<input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td>
+										</tr>
+									</table>
+								</td>
+								<td>&nbsp;&nbsp;</td>
+								<td valign="top">
+									<table cellspacing="0" cellpadding="0" border="0">
+										<tr>
+											<td nowrap="nowrap"><span fckLang="DlgLnkPopLeft">Left Position</span></td>
+											<td>&nbsp;<input id="txtPopupLeft" type="text" maxlength="4" size="4" /></td>
+										</tr>
+										<tr>
+											<td nowrap="nowrap"><span fckLang="DlgLnkPopTop">Top Position</span></td>
+											<td>&nbsp;<input id="txtPopupTop" type="text" maxlength="4" size="4" /></td>
+										</tr>
+									</table>
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</div>
+		<div id="divAttribs" style="DISPLAY: none">
+			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
+				<tr>
+					<td valign="top" width="50%">
+						<span fckLang="DlgGenId">Id</span><br />
+						<input id="txtAttId" style="WIDTH: 100%" type="text" />
+					</td>
+					<td width="1"></td>
+					<td valign="top">
+						<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
+							<tr>
+								<td width="60%">
+									<span fckLang="DlgGenLangDir">Language Direction</span><br />
+									<select id="cmbAttLangDir" style="WIDTH: 100%">
+										<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
+										<option value="ltr" fckLang="DlgGenLangDirLtr">Left to Right (LTR)</option>
+										<option value="rtl" fckLang="DlgGenLangDirRtl">Right to Left (RTL)</option>
+									</select>
+								</td>
+								<td width="1%">&nbsp;&nbsp;&nbsp;</td>
+								<td nowrap="nowrap"><span fckLang="DlgGenAccessKey">Access Key</span><br />
+									<input id="txtAttAccessKey" style="WIDTH: 100%" type="text" maxlength="1" size="1" />
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td valign="top" width="50%">
+						<span fckLang="DlgGenName">Name</span><br />
+						<input id="txtAttName" style="WIDTH: 100%" type="text" />
+					</td>
+					<td width="1"></td>
+					<td valign="top">
+						<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
+							<tr>
+								<td width="60%">
+									<span fckLang="DlgGenLangCode">Language Code</span><br />
+									<input id="txtAttLangCode" style="WIDTH: 100%" type="text" />
+								</td>
+								<td width="1%">&nbsp;&nbsp;&nbsp;</td>
+								<td nowrap="nowrap">
+									<span fckLang="DlgGenTabIndex">Tab Index</span><br />
+									<input id="txtAttTabIndex" style="WIDTH: 100%" type="text" maxlength="5" size="5" />
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td valign="top" width="50%">&nbsp;</td>
+					<td width="1"></td>
+					<td valign="top"></td>
+				</tr>
+				<tr>
+					<td nowrap="nowrap">
+						<span fckLang="DlgGenContRel">Advisory Relation</span><br />
+						<select id="cmbAttContentRel"  style="width: 100%">
+							<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
+							<option value="cslide" fckLang="cSlide">cslide</option>
+	                        <option value="gal" fckLang="gal">nyroModal</option>
+							<option value="csingle" fckLang="cSingle">csingle</option>
+	                        <option value="group1" fckLang="group1">Group1</option>
+							<option value="fancybox" fckLang="Fancybox">Fancybox</option>
+							<option value="colorbox" fckLang="Colorbox">Colorbox</option>
+							<option value="prettyPhoto" fckLang="PrettyPhoto">PrettyPhoto</option>
+							<option value="alternate" fckLang="Alternate">Alternate</option>
+							<option value="copyright" fckLang="copyright">Copyright</option>
+							<option value="designates" fckLang="designates">Designates</option>
+							<option value="nofollow" fckLang="nofollow">Nofollow</option>
+							<option value="lightbox" fckLang="Lightbox">Lightbox</option>
+							<option value="stylesheet" fckLang="stylesheet">Stylesheet</option>
+							<option value="thumbnail" fckLang="Thumbnail">Thumbnail</option>
+						</select>
+					</td>
+					<td width="1">&nbsp;&nbsp;&nbsp;</td>
+					<td valign="top">
+						<span fckLang="DlgGenContType">Advisory Content Type</span><br />
+						<input id="txtAttContentType" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+				<tr>
+					<td valign="top">
+						<span fckLang="DlgGenClass">Stylesheet Classes</span><br />
+						<input id="txtAttClasses" style="WIDTH: 100%" type="text" />
+					</td>
+					<td>&nbsp;</td>
+					<td valign="top">
+						<span fckLang="DlgGenLinkCharset">Linked Resource Charset</span><br />
+						<input id="txtAttCharSet" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+			</table>
+			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
+				<tr>
+					<td>
+						<span fckLang="DlgGenStyle">Style</span><br />
+						<input id="txtAttStyle" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+				<tr>
+					<td valign="top" width="100%">
+						<span fckLang="DlgGenTitle">Advisory Title</span><br />
+						<input id="txtAttTitle" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+			</table>
+		</div>
+	</body>
+</html>
Index: branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_image/fck_image.js
===================================================================
--- branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_image/fck_image.js	(revision 1418)
+++ branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_image/fck_image.js	(revision 1419)
@@ -189,10 +189,57 @@
 		if ( sLinkUrl == null )
 			sLinkUrl = oLink.getAttribute('href',2) ;
 
+		var sLinkRel = GetE('cmbLnkContentRel');
+
+		if ( sLinkRel.lenght == null ) 
+		{
+			var myselect = document.getElementById("cmbLnkContentRel")
+			var found = false;
+
+			for (var i=0; i < myselect.options.length; i++)
+			{
+				if (myselect.options[i].value == oLink.rel)
+				{
+				  found = true;
+				  break;
+				} 
+			}			
+
+			if ( found == false ) 
+			{
+				try {
+					myselect.add(new Option(oLink.rel, oLink.rel,true ), myselect.options[1]) //add new option to beginning of "cmbLnkContentRel"
+					}
+				catch(e) { //in IE, try the below version instead of add()
+					myselect.add(new Option( oLink.rel, oLink.rel,true ),1 ) //add new option to beginning of "cmbLnkContentRel"
+					//myselect.options[1].selected=true;
+					}
+			}
+		} 
 		GetE('txtLnkUrl').value		= sLinkUrl ;
 		GetE('cmbLnkTarget').value	= oLink.target ;
+		// Get Advances Attributes
+		GetE('txtLnkTitle').value		= oLink.title ;
+		GetE('cmbLnkContentRel').value	= oLink.rel ;
+		GetE('txtLnkCharSet').value		= oLink.charset ;
+		GetE('txtLnkId').value			= oLink.id ;
+		GetE('txtLnkLangCode').value	= oLink.lang ;
+
+		var sClass ;
+		if ( oEditor.FCKBrowserInfo.IsIE )
+		{
+			sClass	= oLink.getAttribute('className',2) || '' ;
+			// Clean up temporary classes for internal use:
+			sClass = sClass.replace( FCKRegexLib.FCK_Class, '' ) ;
+			GetE('txtLnkStyle').value	= oLink.style.cssText ;
+		}
+		else
+		{
+			sClass	= oLink.getAttribute('class',2) || '' ;
+			GetE('txtLnkStyle').value	= oLink.getAttribute('style',2) || '' ;
+		}
+		GetE('txtLnkClasses').value	= sClass ;
 	}
-
 	UpdatePreview() ;
 }
 
@@ -238,7 +285,6 @@
 	UpdateImage( oImage ) ;
 
 	var sLnkUrl = GetE('txtLnkUrl').value.Trim() ;
-
 	if ( sLnkUrl.length == 0 )
 	{
 		if ( oLink )
@@ -247,7 +293,9 @@
 	else
 	{
 		if ( oLink )	// Modifying an existent link.
+		{
 			oLink.href = sLnkUrl ;
+		}
 		else			// Creating a new link.
 		{
 			if ( !bHasImage )
@@ -264,6 +312,30 @@
 
 		SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;
 		SetAttribute( oLink, 'target', GetE('cmbLnkTarget').value ) ;
+		// Advances Attributes
+		SetAttribute( oLink, 'title'	, GetE('txtLnkTitle').value ) ;
+		SetAttribute( oLink, 'rel'		, GetE('cmbLnkContentRel').value ) ;
+		SetAttribute( oLink, 'lang'		, GetE('txtLnkLangCode').value ) ;
+		SetAttribute( oLink, 'charset'	, GetE('txtLnkCharSet').value ) ;
+/*
+		alert( FCKLang.DlgImgAlertUrl ) ;
+		SetAttribute( oLink, 'name'		, GetE('txtLnktName').value ) ;
+*/
+		if ( oEditor.FCKBrowserInfo.IsIE )
+		{
+			var sClass = GetE('txtLnkClasses').value ;
+			// If it's also an anchor add an internal class
+			if ( GetE('txtLnkName').value.length != 0 )
+				sClass += ' FCK__AnchorC' ;
+			SetAttribute( oLink, 'className', sClass ) ;
+			oLink.style.cssText = GetE('txtLnkStyle').value ;
+		}
+		else
+		{
+			SetAttribute( oLink, 'class', GetE('txtLnkClasses').value ) ;
+			SetAttribute( oLink, 'style', GetE('txtLnkStyle').value ) ;
+		}
+
 	}
 
 	return true ;
Index: branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_image.html
===================================================================
--- branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_image.html	(revision 1418)
+++ branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_image.html	(revision 1419)
@@ -1,306 +1,341 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- *  - GNU General Public License Version 2 or later (the "GPL")
- *    http://www.gnu.org/licenses/gpl.html
- *
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- *    http://www.gnu.org/licenses/lgpl.html
- *
- *  - Mozilla Public License Version 1.1 or later (the "MPL")
- *    http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Image Properties dialog window.
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-	<title>Image Properties</title>
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-	<meta name="robots" content="noindex, nofollow" />
-	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
-	<script src="fck_image/fck_image.js" type="text/javascript"></script>
-		<script type="text/javascript">
-
-document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
-
-		</script>
-</head>
-<body scroll="no" style="overflow: hidden">
-	<div id="divInfo">
-		<table cellspacing="1" cellpadding="1" border="0" width="100%" height="100%">
-			<tr>
-				<td>
-					<table cellspacing="0" cellpadding="0" width="100%" border="0">
-						<tr>
-							<td width="100%">
-								<span fcklang="DlgImgURL">URL</span>
-							</td>
-							<td id="tdBrowse" style="display: none" nowrap="nowrap" rowspan="2">
-								&nbsp;
-								<input id="btnBrowse" onclick="BrowseServer();" type="button" value="Browse Server"
-									fcklang="DlgBtnBrowseServer" />
-							</td>
-						</tr>
-						<tr>
-							<td valign="top">
-								<input id="txtUrl" style="width: 100%" type="text" onblur="UpdatePreview();" />
-							</td>
-						</tr>
-					</table>
-				</td>
-			</tr>
-			<tr>
-				<td>
-					<span fcklang="DlgImgAlt">Short Description</span><br />
-					<input id="txtAlt" style="width: 100%" type="text" /><br />
-				</td>
-			</tr>
-			<tr height="100%">
-				<td valign="top">
-					<table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%">
-						<tr>
-							<td valign="top">
-								<br />
-								<table cellspacing="0" cellpadding="0" border="0">
-									<tr>
-										<td nowrap="nowrap">
-											<span fcklang="DlgImgWidth">Width</span>&nbsp;</td>
-										<td>
-											<input type="text" size="3" id="txtWidth" onkeyup="OnSizeChanged('Width',this.value);" /></td>
-										<td rowspan="2">
-											<div id="btnLockSizes" class="BtnLocked" onmouseover="this.className = (bLockRatio ? 'BtnLocked' : 'BtnUnlocked' ) + ' BtnOver';"
-												onmouseout="this.className = (bLockRatio ? 'BtnLocked' : 'BtnUnlocked' );" title="Lock Sizes"
-												onclick="SwitchLock(this);">
-											</div>
-										</td>
-										<td rowspan="2">
-											<div id="btnResetSize" class="BtnReset" onmouseover="this.className='BtnReset BtnOver';"
-												onmouseout="this.className='BtnReset';" title="Reset Size" onclick="ResetSizes();">
-											</div>
-										</td>
-									</tr>
-									<tr>
-										<td nowrap="nowrap">
-											<span fcklang="DlgImgHeight">Height</span>&nbsp;</td>
-										<td>
-											<input type="text" size="3" id="txtHeight" onkeyup="OnSizeChanged('Height',this.value);" /></td>
-									</tr>
-								</table>
-								<br />
-								<table cellspacing="0" cellpadding="0" border="0">
-									<tr>
-										<td nowrap="nowrap">
-											<span fcklang="DlgImgBorder">Border</span>&nbsp;</td>
-										<td>
-											<input type="text" size="2" value="" id="txtBorder" onkeyup="UpdatePreview();" /></td>
-									</tr>
-									<tr>
-										<td nowrap="nowrap">
-											<span fcklang="DlgImgHSpace">HSpace</span>&nbsp;</td>
-										<td>
-											<input type="text" size="2" id="txtHSpace" onkeyup="UpdatePreview();" /></td>
-									</tr>
-									<tr>
-										<td nowrap="nowrap">
-											<span fcklang="DlgImgVSpace">VSpace</span>&nbsp;</td>
-										<td>
-											<input type="text" size="2" id="txtVSpace" onkeyup="UpdatePreview();" /></td>
-									</tr>
-									<tr>
-										<td nowrap="nowrap">
-											<span fcklang="DlgImgAlign">Align</span>&nbsp;</td>
-										<td>
-											<select id="cmbAlign" onchange="UpdatePreview();">
-												<option value="" selected="selected"></option>
-												<option fcklang="DlgImgAlignLeft" value="left">Left</option>
-												<option fcklang="DlgImgAlignAbsBottom" value="absBottom">Abs Bottom</option>
-												<option fcklang="DlgImgAlignAbsMiddle" value="absMiddle">Abs Middle</option>
-												<option fcklang="DlgImgAlignBaseline" value="baseline">Baseline</option>
-												<option fcklang="DlgImgAlignBottom" value="bottom">Bottom</option>
-												<option fcklang="DlgImgAlignMiddle" value="middle">Middle</option>
-												<option fcklang="DlgImgAlignRight" value="right">Right</option>
-												<option fcklang="DlgImgAlignTextTop" value="textTop">Text Top</option>
-												<option fcklang="DlgImgAlignTop" value="top">Top</option>
-											</select>
-										</td>
-									</tr>
-								</table>
-							</td>
-							<td>
-								&nbsp;&nbsp;&nbsp;</td>
-							<td width="100%" valign="top">
-								<table cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed">
-									<tr>
-										<td>
-											<span fcklang="DlgImgPreview">Preview</span></td>
-									</tr>
-									<tr>
-										<td valign="top">
-											<iframe class="ImagePreviewArea" src="fck_image/fck_image_preview.html" frameborder="0"
-												marginheight="0" marginwidth="0"></iframe>
-										</td>
-									</tr>
-								</table>
-							</td>
-						</tr>
-					</table>
-				</td>
-			</tr>
-		</table>
-	</div>
-	<div id="divUpload" style="display: none">
-		<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data"
-			action="" onsubmit="return CheckUpload();">
-			<span fcklang="DlgLnkUpload">Upload</span><br />
-			<input id="txtUploadFile" style="width: 100%" type="file" size="40" name="NewFile" /><br />
-			<br />
-			<input id="btnUpload" type="submit" value="Send it to the Server" fcklang="DlgLnkBtnUpload" />
-			<script type="text/javascript">
-				document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ;
-			</script>
-		</form>
-	</div>
-	<div id="divLink" style="display: none">
-		<table cellspacing="1" cellpadding="1" border="0" width="100%">
-			<tr>
-				<td>
-					<div>
-						<span fcklang="DlgLnkURL">URL</span><br />
-						<input id="txtLnkUrl" style="width: 100%" type="text" onblur="UpdatePreview();" />
-					</div>
-					<div id="divLnkBrowseServer" align="right">
-						<input type="button" value="Browse Server" fcklang="DlgBtnBrowseServer" onclick="LnkBrowseServer();" />
-					</div>
-					<div>
-						<span fcklang="DlgLnkTarget">Target</span><br />
-						<select id="cmbLnkTarget">
-							<option value="" fcklang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
-							<option value="_blank" fcklang="DlgLnkTargetBlank">New Window (_blank)</option>
-							<option value="_top" fcklang="DlgLnkTargetTop">Topmost Window (_top)</option>
-							<option value="_self" fcklang="DlgLnkTargetSelf">Same Window (_self)</option>
-							<option value="_parent" fcklang="DlgLnkTargetParent">Parent Window (_parent)</option>
-						</select>
-					</div>
-					<div>
-						<span fckLang="DlgGenContRel">Advisory Relation</span><br />
-						<select id="cmbLnkContentRel">
-							<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
-							<option value="fancybox" fckLang="Fancybox">Fancybox</option>
-							<option value="prettyPhoto" fckLang="PrettyPhoto">PrettyPhoto</option>
-<!--							<option value="prettyPhoto[gallery]" fckLang="PrettyPhoto Image Gallery">PrettyPhoto Image Gallery</option>
-							<option value="prettyPhoto[flash]" fckLang="PrettyPhoto Flash">PrettyPhoto Flash</option>
-							<option value="prettyPhoto[iframes]" fckLang="PrettyPhoto IFrames">PrettyPhoto IFrames</option>
-							<option value="prettyPhoto[movies]" fckLang="PrettyPhoto Movies">PrettyPhoto Movies</option>
-							<option value="prettyPopin" fckLang="PrettyPopin">Pretty Popin</option>
-							<option value="prettyGallery" fckLang="PrettyGallery">Pretty Gallery</option>   -->
-							<option value="alternate" fckLang="Alternate">Alternate</option>
-							<option value="copyright" fckLang="copyright">Copyright</option>
-							<option value="designates" fckLang="designates">Designates</option>
-							<option value="nofollow" fckLang="nofollow">Nofollow</option>
-							<option value="lightbox" fckLang="Lightbox">Lightbox</option>
-							<option value="stylesheet" fckLang="stylesheet">Stylesheet</option>
-							<option value="thumbnail" fckLang="Thumbnail">Thumbnail</option>
-						</select>
-					</div>
-
-				</td>
-			</tr>
-
-				<tr>
-					<td valign="top">
-						<span fckLang="DlgGenClass">Stylesheet Classes</span><br />
-						<input id="txtLnkClasses" style="WIDTH: 100%" type="text" />
-					</td>
-					<td></td>
-					<td valign="top" width="50%">
-						<span fckLang="DlgGenId">Id</span><br />
-						<input id="txtLnkId" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-			</table>
-			<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-				<tr>
-					<td>
-						<span fckLang="DlgGenStyle">Style</span><br />
-						<input id="txtLnkStyle" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-				<tr>
-					<td valign="top" width="100%">
-						<span fckLang="DlgGenTitle">Advisory Title</span><br />
-						<input id="txtLnkTitle" style="WIDTH: 100%" type="text" />
-					</td>
-				</tr>
-			</table>
-	</div>
-	<div id="divAdvanced" style="display: none">
-		<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-			<tr>
-				<td valign="top" width="50%">
-					<span fcklang="DlgGenId">Id</span><br />
-					<input id="txtAttId" style="width: 100%" type="text" />
-				</td>
-				<td width="1">
-					&nbsp;&nbsp;</td>
-				<td valign="top">
-					<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
-						<tr>
-							<td width="60%">
-								<span fcklang="DlgGenLangDir">Language Direction</span><br />
-								<select id="cmbAttLangDir" style="width: 100%">
-									<option value="" fcklang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
-									<option value="ltr" fcklang="DlgGenLangDirLtr">Left to Right (LTR)</option>
-									<option value="rtl" fcklang="DlgGenLangDirRtl">Right to Left (RTL)</option>
-								</select>
-							</td>
-							<td width="1%">
-								&nbsp;&nbsp;</td>
-							<td nowrap="nowrap">
-								<span fcklang="DlgGenLangCode">Language Code</span><br />
-								<input id="txtAttLangCode" style="width: 100%" type="text" />&nbsp;
-							</td>
-						</tr>
-					</table>
-				</td>
-			</tr>
-			<tr>
-				<td colspan="3">
-					&nbsp;</td>
-			</tr>
-			<tr>
-				<td colspan="3">
-					<span fcklang="DlgGenLongDescr">Long Description URL</span><br />
-					<input id="txtLongDesc" style="width: 100%" type="text" />
-				</td>
-			</tr>
-			<tr>
-				<td colspan="3">
-					&nbsp;</td>
-			</tr>
-			<tr>
-				<td valign="top">
-					<span fcklang="DlgGenClass">Stylesheet Classes</span><br />
-					<input id="txtAttClasses" style="width: 100%" type="text" />
-				</td>
-				<td>
-				</td>
-				<td valign="top">
-					&nbsp;<span fcklang="DlgGenTitle">Advisory Title</span><br />
-					<input id="txtAttTitle" style="width: 100%" type="text" />
-				</td>
-			</tr>
-		</table>
-		<span fcklang="DlgGenStyle">Style</span><br />
-		<input id="txtAttStyle" style="width: 100%" type="text" />
-	</div>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Image Properties dialog window.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Image Properties</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
+	<script src="fck_image/fck_image.js" type="text/javascript"></script>
+		<script type="text/javascript">
+
+document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
+
+		</script>
+</head>
+<body scroll="no" style="overflow: hidden">
+	<div id="divInfo">
+		<table cellspacing="1" cellpadding="1" border="0" width="100%" height="100%">
+			<tr>
+				<td>
+					<table cellspacing="0" cellpadding="0" width="100%" border="0">
+						<tr>
+							<td width="100%">
+								<span fcklang="DlgImgURL">URL</span>
+							</td>
+							<td id="tdBrowse" style="display: none" nowrap="nowrap" rowspan="2">
+								&nbsp;
+								<input id="btnBrowse" onclick="BrowseServer();" type="button" value="Browse Server"
+									fcklang="DlgBtnBrowseServer" />
+							</td>
+						</tr>
+						<tr>
+							<td valign="top">
+								<input id="txtUrl" style="width: 100%" type="text" onblur="UpdatePreview();" />
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+			<tr>
+				<td>
+					<span fcklang="DlgImgAlt">Short Description</span><br />
+					<input id="txtAlt" style="width: 100%" type="text" /><br />
+				</td>
+			</tr>
+			<tr height="100%">
+				<td valign="top">
+					<table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%">
+						<tr>
+							<td valign="top">
+								<br />
+								<table cellspacing="0" cellpadding="0" border="0">
+									<tr>
+										<td nowrap="nowrap">
+											<span fcklang="DlgImgWidth">Width</span>&nbsp;</td>
+										<td>
+											<input type="text" size="3" id="txtWidth" onkeyup="OnSizeChanged('Width',this.value);" /></td>
+										<td rowspan="2">
+											<div id="btnLockSizes" class="BtnLocked" onmouseover="this.className = (bLockRatio ? 'BtnLocked' : 'BtnUnlocked' ) + ' BtnOver';"
+												onmouseout="this.className = (bLockRatio ? 'BtnLocked' : 'BtnUnlocked' );" title="Lock Sizes"
+												onclick="SwitchLock(this);">
+											</div>
+										</td>
+										<td rowspan="2">
+											<div id="btnResetSize" class="BtnReset" onmouseover="this.className='BtnReset BtnOver';"
+												onmouseout="this.className='BtnReset';" title="Reset Size" onclick="ResetSizes();">
+											</div>
+										</td>
+									</tr>
+									<tr>
+										<td nowrap="nowrap">
+											<span fcklang="DlgImgHeight">Height</span>&nbsp;</td>
+										<td>
+											<input type="text" size="3" id="txtHeight" onkeyup="OnSizeChanged('Height',this.value);" /></td>
+									</tr>
+								</table>
+								<br />
+								<table cellspacing="0" cellpadding="0" border="0">
+									<tr>
+										<td nowrap="nowrap">
+											<span fcklang="DlgImgBorder">Border</span>&nbsp;</td>
+										<td>
+											<input type="text" size="2" value="" id="txtBorder" onkeyup="UpdatePreview();" /></td>
+									</tr>
+									<tr>
+										<td nowrap="nowrap">
+											<span fcklang="DlgImgHSpace">HSpace</span>&nbsp;</td>
+										<td>
+											<input type="text" size="2" id="txtHSpace" onkeyup="UpdatePreview();" /></td>
+									</tr>
+									<tr>
+										<td nowrap="nowrap">
+											<span fcklang="DlgImgVSpace">VSpace</span>&nbsp;</td>
+										<td>
+											<input type="text" size="2" id="txtVSpace" onkeyup="UpdatePreview();" /></td>
+									</tr>
+									<tr>
+										<td nowrap="nowrap">
+											<span fcklang="DlgImgAlign">Align</span>&nbsp;</td>
+										<td>
+											<select id="cmbAlign" onchange="UpdatePreview();">
+												<option value="" selected="selected"></option>
+												<option fcklang="DlgImgAlignLeft" value="left">Left</option>
+												<option fcklang="DlgImgAlignAbsBottom" value="absBottom">Abs Bottom</option>
+												<option fcklang="DlgImgAlignAbsMiddle" value="absMiddle">Abs Middle</option>
+												<option fcklang="DlgImgAlignBaseline" value="baseline">Baseline</option>
+												<option fcklang="DlgImgAlignBottom" value="bottom">Bottom</option>
+												<option fcklang="DlgImgAlignMiddle" value="middle">Middle</option>
+												<option fcklang="DlgImgAlignRight" value="right">Right</option>
+												<option fcklang="DlgImgAlignTextTop" value="textTop">Text Top</option>
+												<option fcklang="DlgImgAlignTop" value="top">Top</option>
+											</select>
+										</td>
+									</tr>
+								</table>
+							</td>
+							<td>
+								&nbsp;&nbsp;&nbsp;</td>
+							<td width="100%" valign="top">
+								<table cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed">
+									<tr>
+										<td>
+											<span fcklang="DlgImgPreview">Preview</span></td>
+									</tr>
+									<tr>
+										<td valign="top">
+											<iframe class="ImagePreviewArea" src="fck_image/fck_image_preview.html" frameborder="0"
+												marginheight="0" marginwidth="0"></iframe>
+										</td>
+									</tr>
+								</table>
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+		</table>
+	</div>
+	<div id="divUpload" style="display: none">
+		<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data"
+			action="" onsubmit="return CheckUpload();">
+			<span fcklang="DlgLnkUpload">Upload</span><br />
+			<input id="txtUploadFile" style="width: 100%" type="file" size="40" name="NewFile" /><br />
+			<br />
+			<input id="btnUpload" type="submit" value="Send it to the Server" fcklang="DlgLnkBtnUpload" />
+			<script type="text/javascript">
+				document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ;
+			</script>
+		</form>
+	</div>
+	<div id="divLink" style="display: none">
+		<table cellspacing="1" cellpadding="1" border="0" width="100%">
+			<tr>
+				<td style="width: 100%" colspan="2">
+					<div valign="middle">
+						<span fcklang="DlgLnkURL">URL</span><br />
+						<input id="txtLnkUrl" style="width: 100%" type="text" onblur="UpdatePreview();" />
+					</div>
+				</td>
+				<td>
+					<div id="divLnkBrowseServer" align="right">
+						<span>&nbsp;</span><br />
+						<input type="button" value="Browse Server" fcklang="DlgBtnBrowseServer" onclick="LnkBrowseServer();" />
+					</div>
+				</td>
+			</tr>
+			<tr>
+				<td>
+					<div>
+						<span fcklang="DlgLnkTarget">Target</span><br />
+						<select id="cmbLnkTarget">
+							<option value="" fcklang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
+							<option value="_blank" fcklang="DlgLnkTargetBlank">New Window (_blank)</option>
+							<option value="_top" fcklang="DlgLnkTargetTop">Topmost Window (_top)</option>
+							<option value="_self" fcklang="DlgLnkTargetSelf">Same Window (_self)</option>
+							<option value="_parent" fcklang="DlgLnkTargetParent">Parent Window (_parent)</option>
+						</select>
+					</div>
+				</td>
+			</tr>
+			<tr>
+				<td colspan="3">&nbsp;</td>
+			</tr>
+			<tr>
+				<td nowrap="nowrap">
+					<span fckLang="DlgGenContRel">Advisory Relation</span><br />
+					<select id="cmbLnkContentRel"  style="width: 100%">
+						<option value="" fckLang="DlgGenNotSet" selected>&lt;not set&gt;</option>
+						<option value="cslide" fckLang="cSlide">cslide</option>
+                        <option value="gal" fckLang="gal">nyroModal</option>
+						<option value="csingle" fckLang="cSingle">csingle</option>
+                        <option value="group1" fckLang="group1">Group1</option>
+						<option value="fancybox" fckLang="Fancybox">Fancybox</option>
+						<option value="colorbox" fckLang="Colorbox">Colorbox</option>
+						<option value="prettyPhoto" fckLang="PrettyPhoto">PrettyPhoto</option>
+						<option value="alternate" fckLang="Alternate">Alternate</option>
+						<option value="copyright" fckLang="copyright">Copyright</option>
+						<option value="designates" fckLang="designates">Designates</option>
+						<option value="nofollow" fckLang="nofollow">Nofollow</option>
+						<option value="lightbox" fckLang="Lightbox">Lightbox</option>
+						<option value="stylesheet" fckLang="stylesheet">Stylesheet</option>
+						<option value="thumbnail" fckLang="Thumbnail">Thumbnail</option>
+					</select>
+				</td>
+				<td>
+					<span fckLang="DlgGenLinkCharset">Linked Resource Charset</span><br />
+					<input id="txtLnkCharSet" style="WIDTH: 100%" type="text" />
+				</td>
+				<td width="60%">
+					<span fckLang="DlgGenLangCode">Language Code</span><br />
+					<input id="txtLnkLangCode" style="WIDTH: 100%" type="text" />
+				</td>
+			</tr>
+			<tr>
+				<td colspan="3">&nbsp;</td>
+			</tr>
+			<tr>
+				<td valign="top" width="50%">
+					<span fcklang="DlgGenId">Id</span><br />
+					<input id="txtLnkId" style="width: 100%" type="text" />
+				</td>
+					<td valign="top" colspan="2">
+						<span fckLang="DlgGenClass">Stylesheet Classes</span><br />
+						<input id="txtLnkClasses" style="WIDTH: 100%" type="text" />
+					</td>
+					<td>&nbsp;</td>
+			</tr>
+			<tr>
+					<td colspan="3">
+						<span fckLang="DlgGenStyle">Style</span><br />
+						<input id="txtLnkStyle" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+			<tr>
+				<td colspan="3">&nbsp;</td>
+			</tr>
+				<tr>
+					<td colspan="3">
+						<span fckLang="DlgGenTitle">Advisory Title</span><br />
+						<input id="txtLnkTitle" style="WIDTH: 100%" type="text" />
+					</td>
+				</tr>
+
+		</table>
+	</div>
+
+	<div id="divAdvanced" style="display: none">
+		<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
+			<tr>
+				<td valign="top" width="50%">
+					<span fcklang="DlgGenId">Id</span><br />
+					<input id="txtAttId" style="width: 100%" type="text" />
+				</td>
+				<td width="1">
+					&nbsp;&nbsp;</td>
+				<td valign="top">
+					<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
+						<tr>
+							<td width="60%">
+								<span fcklang="DlgGenLangDir">Language Direction</span><br />
+								<select id="cmbAttLangDir" style="width: 100%">
+									<option value="" fcklang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
+									<option value="ltr" fcklang="DlgGenLangDirLtr">Left to Right (LTR)</option>
+									<option value="rtl" fcklang="DlgGenLangDirRtl">Right to Left (RTL)</option>
+								</select>
+							</td>
+							<td width="1%">
+								&nbsp;&nbsp;</td>
+							<td nowrap="nowrap">
+								<span fcklang="DlgGenLangCode">Language Code</span><br />
+								<input id="txtAttLangCode" style="width: 100%" type="text" />&nbsp;
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					&nbsp;</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					<span fcklang="DlgGenLongDescr">Long Description URL</span><br />
+					<input id="txtLongDesc" style="width: 100%" type="text" />
+				</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					&nbsp;</td>
+			</tr>
+			<tr>
+				<td valign="top">
+					<span fcklang="DlgGenClass">Stylesheet Classes</span><br />
+					<input id="txtAttClasses" style="width: 100%" type="text" />
+				</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					&nbsp;</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					<span fcklang="DlgGenStyle">Style</span><br />
+					<input id="txtAttStyle" style="width: 100%" type="text" />
+				</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					&nbsp;</td>
+			</tr>
+			<tr>
+				<td colspan="3">
+					&nbsp;<span fcklang="DlgGenTitle">Advisory Title</span><br />
+					<input id="txtAttTitle" style="width: 100%" type="text" />
+				</td>
+			</tr>
+		</table>
+	</div>
+</body>
+</html>
Index: branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_link/fck_link.js
===================================================================
--- branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_link/fck_link.js	(revision 1418)
+++ branches/2.8.x/wb/modules/fckeditor/fckeditor/editor/dialog/fck_link/fck_link.js	(revision 1419)
@@ -466,6 +466,40 @@
 		}
 	}
 
+		var sLnkRel = GetE('cmbAttContentRel').value.Trim() ;
+		if (  (sLnkRel.length == 0) && (oLink.rel.lenght != 0) )	// Modifying an existent rel.
+		{
+			sLnkRel = oLink.rel;
+		}
+
+		var sLinkRel = GetE('cmbAttContentRel');
+
+		if ( sLinkRel.lenght == null ) 
+		{
+			var myselect = document.getElementById("cmbAttContentRel")
+			var found = false;
+
+			for (var i=0; i < myselect.options.length; i++)
+			{
+				if (myselect.options[i].value == oLink.rel)
+				{
+				  found = true;
+				  break;
+				} 
+			}			
+
+			if ( found == false ) 
+			{
+				try {
+					myselect.add(new Option(oLink.rel, oLink.rel,true ), myselect.options[1]) //add new option to beginning of "cmbAttContentRel"
+					}
+				catch(e) { //in IE, try the below version instead of add()
+					myselect.add(new Option( oLink.rel, oLink.rel,true ),1 ) //add new option to beginning of "cmbAttContentRel"
+					//myselect.options[1].selected=true;
+					}
+			}
+		} 
+
 	// Get Advances Attributes
 	GetE('txtAttId').value			= oLink.id ;
 	GetE('txtAttName').value		= oLink.name ;
@@ -475,8 +509,8 @@
 	GetE('txtAttTabIndex').value	= oLink.tabIndex <= 0 ? '' : oLink.tabIndex ;
 	GetE('txtAttTitle').value		= oLink.title ;
 	GetE('txtAttContentType').value	= oLink.type ;
+	GetE('txtAttCharSet').value		= oLink.charset ;
 	GetE('cmbAttContentRel').value	= oLink.rel ;
-	GetE('txtAttCharSet').value		= oLink.charset ;
 
 	var sClass ;
 	if ( oEditor.FCKBrowserInfo.IsIE )
@@ -768,7 +802,7 @@
 		SetAttribute( oLink, 'tabindex'	, ( GetE('txtAttTabIndex').value > 0 ? GetE('txtAttTabIndex').value : null ) ) ;
 		SetAttribute( oLink, 'title'	, GetE('txtAttTitle').value ) ;
 		SetAttribute( oLink, 'type'		, GetE('txtAttContentType').value ) ;
-		SetAttribute( oLink, 'rel'		, GetE('cmbAttContentRel').value ) ;
+		SetAttribute( oLink, 'rel'		, sLnkRel ) ;
 		SetAttribute( oLink, 'charset'	, GetE('txtAttCharSet').value ) ;
 
 		if ( oEditor.FCKBrowserInfo.IsIE )
