/trunk/api/fckeditor/editor/dialog/fck_link.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_form.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_about.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
28,7 → 28,7 |
var FCKLang = oEditor.FCKLang ; |
window.parent.AddTab( 'About', FCKLang.DlgAboutAboutTab ) ; |
window.parent.AddTab( 'License', 'License' ) ; |
window.parent.AddTab( 'License', FCKLang.DlgAboutLicenseTab ) ; |
window.parent.AddTab( 'BrowserInfo', FCKLang.DlgAboutBrowserInfoTab ) ; |
// Function called when a dialog tag is selected. |
69,10 → 69,11 |
<img alt="" src="fck_about/logo_fckeditor.gif" width="236" height="41" align="left"> |
<table width="80" border="0" cellspacing="0" cellpadding="5" bgcolor="#ffffff" align="right"> |
<tr> |
<td align="center" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"> |
<td align="center" nowrap style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"> |
<span fckLang="DlgAboutVersion">version</span> |
<br> |
<b>2.1</b></td> |
<b>2.3</b><br /> |
Build 1054</td> |
</tr> |
</table> |
</td> |
84,10 → 85,10 |
<b><a href="http://www.fckeditor.net/donate/?about" target="_blank" title="Click to go to the donation page"> |
What about a donation today?</a></b> </span> |
<br><br><br> |
<span fckLang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/" target="_blank"> |
<span fckLang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/?About" target="_blank"> |
http://www.fckeditor.net/</a>. |
<br> |
Copyright © 2003-2005 <a href="#" onclick="SendEMail();">Frederico Caldeira |
Copyright © 2003-2006 <a href="#" onclick="SendEMail();">Frederico Caldeira |
Knabben</a> |
</td> |
</tr> |
/trunk/api/fckeditor/editor/dialog/fck_anchor.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
68,8 → 68,8 |
oAnchor = FCK.EditorDocument.createElement( 'DIV' ) ; |
oAnchor.innerHTML = '<a name="' + GetE('txtName').value + '"><\/a>' ; |
oAnchor = oAnchor.firstChild ; |
oFakeImage = oEditor.FCKDocumentProcessors_CreateFakeImage( 'FCK__Anchor', oAnchor ) ; |
oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Anchor', oAnchor ) ; |
oFakeImage.setAttribute( '_fckanchor', 'true', 0 ) ; |
oFakeImage = FCK.InsertElementAndGetIt( oFakeImage ) ; |
/trunk/api/fckeditor/editor/dialog/fck_replace.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
20,8 → 20,8 |
--> |
<html> |
<head> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<meta content="noindex, nofollow" name="robots"> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
<meta content="noindex, nofollow" name="robots" /> |
<script type="text/javascript"> |
var oEditor = window.parent.InnerDialogLoaded() ; |
86,13 → 86,15 |
function Replace() |
{ |
var oRegex = new RegExp( GetRegexExpr(), GetCase() ) ; |
ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false, false ) ; |
if ( !ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false, false ) ) |
alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ; |
} |
function ReplaceAll() |
{ |
var oRegex = new RegExp( GetRegexExpr(), GetCase() + 'g' ) ; |
ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true, false ) ; |
if ( !ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true, false ) ) |
alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ; |
window.parent.Cancel() ; |
} |
</script> |
/trunk/api/fckeditor/editor/dialog/fck_button.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_template.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_paste.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_paste.html |
* This dialog is shown when, for some reason (usually security settings), |
* the user is not able to paste data from the clipboard to the editor using |
29,8 → 31,6 |
// First of all, translate the dialog box texts |
oEditor.FCKLanguageManager.TranslatePage(document) ; |
window.parent.SetOkButton( true ) ; |
if ( window.parent.dialogArguments.CustomValue == 'Word' ) |
{ |
var oFrame = document.getElementById('frmData') |
46,6 → 46,9 |
document.getElementById('txtData').style.display = '' ; |
document.getElementById('oWordCommands').style.display = 'none' ; |
} |
window.parent.SetOkButton( true ) ; |
window.parent.SetAutoSize( true ) ; |
} |
function Ok() |
144,7 → 147,7 |
// Remove XML elements and declarations |
html = html.replace(/<\\?\?xml[^>]*>/gi, "") ; |
// Remove Tags with XML namespace declarations: <o:p></o:p> |
// Remove Tags with XML namespace declarations: <o:p><\/o:p> |
html = html.replace(/<\/?\w+:[^>]*>/gi, "") ; |
html = html.replace( /<H\d>\s*<\/H\d>/gi, '' ) ; |
156,7 → 159,7 |
html = html.replace( /<H5([^>]*)>/gi, '<div$1><b><font size="2">' ) ; |
html = html.replace( /<H6([^>]*)>/gi, '<div$1><b><font size="1">' ) ; |
html = html.replace( /<\/H\d>/gi, '</font></b></div>' ) ; |
html = html.replace( /<\/H\d>/gi, '<\/font><\/b><\/div>' ) ; |
html = html.replace( /<(U|I|STRIKE)> <\/\1>/g, ' ' ) ; |
167,7 → 170,7 |
// Transform <P> to <DIV> |
var re = new RegExp("(<P)([^>]*>.*?)(<\/P>)","gi") ; // Different because of a IE 5.0 error |
html = html.replace( re, "<div$2</div>" ) ; |
html = html.replace( re, "<div$2<\/div>" ) ; |
return html ; |
} |
187,7 → 190,7 |
<tr> |
<td valign="top" height="100%" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"> |
<textarea id="txtData" style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; DISPLAY: none; BORDER-LEFT: #000000 1px; WIDTH: 99%; BORDER-BOTTOM: #000000 1px; HEIGHT: 98%"></textarea> |
<iframe id="frmData" src="../fckblank.html" height="98%" width="99%" frameborder="no" style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; DISPLAY: none; BORDER-LEFT: #000000 1px; BORDER-BOTTOM: #000000 1px; BACKGROUND-COLOR: #ffffff"> |
<iframe id="frmData" src="../fckblank.html" height="98%" width="99%" frameborder="0" style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; DISPLAY: none; BORDER-LEFT: #000000 1px; BORDER-BOTTOM: #000000 1px; BACKGROUND-COLOR: #ffffff"> |
</iframe> |
</td> |
</tr> |
/trunk/api/fckeditor/editor/dialog/fck_specialchar.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
22,8 → 22,11 |
<meta name="robots" content="noindex, nofollow"> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<style type="text/css"> |
.HandIE { cursor: hand ; } |
.HandMozilla { cursor: pointer ; } |
.Hand |
{ |
cursor: pointer ; |
cursor: hand ; |
} |
.Sample { font-size: 24px; } |
</style> |
<script type="text/javascript"> |
41,13 → 44,13 |
function over(td) |
{ |
oSample.innerHTML = td.innerHTML ; |
td.className = 'LightBackground HandIE HandMozilla' ; |
td.className = 'LightBackground SpecialCharsOver Hand' ; |
} |
function out(td) |
{ |
oSample.innerHTML = " " ; |
td.className = 'DarkBackground HandIE HandMozilla' ; |
td.className = 'DarkBackground SpecialCharsOut Hand' ; |
} |
function setDefaults() |
67,7 → 70,7 |
<td width="100%"> |
<table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%"> |
<script type="text/javascript"> |
var aChars = ["!",""","#","$","%","&","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ"] ; |
var aChars = ["!",""","#","$","%","&","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ","Œ","œ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"] ; |
var cols = 20 ; |
79,11 → 82,11 |
{ |
if (aChars[i]) |
{ |
document.write('<TD width="1%" class="DarkBackground HandIE HandMozilla" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ; |
document.write('<TD width="1%" class="DarkBackground SpecialCharsOut Hand" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ; |
document.write(aChars[i]) ; |
} |
else |
document.write("<TD class='DarkBackground'> ") ; |
document.write("<TD class='DarkBackground SpecialCharsOut'> ") ; |
document.write("<\/TD>") ; |
i++ ; |
} |
96,7 → 99,7 |
<td valign="top"> |
<table width="40" cellpadding="0" cellspacing="0" border="0"> |
<tr> |
<td id="SampleTD" width="40" height="40" align="center" class="DarkBackground Sample"> </td> |
<td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample"> </td> |
</tr> |
</table> |
</td> |
/trunk/api/fckeditor/editor/dialog/fck_select.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_colorselector.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_image/fck_image.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
21,6 → 21,7 |
var FCK = oEditor.FCK ; |
var FCKLang = oEditor.FCKLang ; |
var FCKConfig = oEditor.FCKConfig ; |
var FCKDebug = oEditor.FCKDebug ; |
var bImageButton = ( document.location.search.length > 0 && document.location.search.substr(1) == 'ImageButton' ) ; |
60,6 → 61,9 |
function UpdateOriginal( resetSize ) |
{ |
if ( !eImgPreview ) |
return ; |
oImageOriginal = document.createElement( 'IMG' ) ; // new Image() ; |
if ( resetSize ) |
71,9 → 75,11 |
} |
} |
oImageOriginal.src = GetE('imgPreview').src ; |
oImageOriginal.src = eImgPreview.src ; |
} |
var bPreviewInitialized ; |
window.onload = function() |
{ |
// Translate the dialog box texts. |
105,7 → 111,9 |
{ |
if ( ! oImage ) return ; |
var sUrl = GetAttribute( oImage, 'src', '' ) ; |
var sUrl = GetAttribute( oImage, '_fcksavedurl', '' ) ; |
if ( sUrl.length == 0 ) |
sUrl = GetAttribute( oImage, 'src', '' ) ; |
// TODO: Wait stable version and remove the following commented lines. |
// if ( sUrl.startsWith( FCK.BaseUrl ) ) |
118,16 → 126,33 |
GetE('txtBorder').value = GetAttribute( oImage, 'border', '' ) ; |
GetE('cmbAlign').value = GetAttribute( oImage, 'align', '' ) ; |
if ( oImage.style.pixelWidth > 0 ) |
GetE('txtWidth').value = oImage.style.pixelWidth ; |
else |
GetE('txtWidth').value = GetAttribute( oImage, "width", '' ) ; |
var iWidth, iHeight ; |
if ( oImage.style.pixelHeight > 0 ) |
GetE('txtHeight').value = oImage.style.pixelHeight ; |
else |
GetE('txtHeight').value = GetAttribute( oImage, "height", '' ) ; |
var regexSize = /^\s*(\d+)px\s*$/i ; |
if ( oImage.style.width ) |
{ |
var aMatch = oImage.style.width.match( regexSize ) ; |
if ( aMatch ) |
{ |
iWidth = aMatch[1] ; |
oImage.style.width = '' ; |
} |
} |
if ( oImage.style.height ) |
{ |
var aMatch = oImage.style.height.match( regexSize ) ; |
if ( aMatch ) |
{ |
iHeight = aMatch[1] ; |
oImage.style.height = '' ; |
} |
} |
GetE('txtWidth').value = iWidth ? iWidth : GetAttribute( oImage, "width", '' ) ; |
GetE('txtHeight').value = iHeight ? iHeight : GetAttribute( oImage, "height", '' ) ; |
// Get Advances Attributes |
GetE('txtAttId').value = oImage.id ; |
GetE('cmbAttLangDir').value = oImage.dir ; |
143,7 → 168,11 |
if ( oLink ) |
{ |
GetE('txtLnkUrl').value = oLink.getAttribute('href',2) ; |
var sUrl = GetAttribute( oLink, '_fcksavedurl', '' ) ; |
if ( sUrl.length == 0 ) |
sUrl = oLink.getAttribute('href',2) ; |
GetE('txtLnkUrl').value = sUrl ; |
GetE('cmbLnkTarget').value = oLink.target ; |
} |
217,6 → 246,7 |
} |
} |
SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ; |
SetAttribute( oLink, 'target', GetE('cmbLnkTarget').value ) ; |
} |
226,6 → 256,7 |
function UpdateImage( e, skipId ) |
{ |
e.src = GetE('txtUrl').value ; |
SetAttribute( e, "_fcksavedurl", GetE('txtUrl').value ) ; |
SetAttribute( e, "alt" , GetE('txtAlt').value ) ; |
SetAttribute( e, "width" , GetE('txtWidth').value ) ; |
SetAttribute( e, "height", GetE('txtHeight').value ) ; |
251,20 → 282,37 |
SetAttribute( e, 'style', GetE('txtAttStyle').value ) ; |
} |
var eImgPreview ; |
var eImgPreviewLink ; |
function SetPreviewElements( imageElement, linkElement ) |
{ |
eImgPreview = imageElement ; |
eImgPreviewLink = linkElement ; |
UpdatePreview() ; |
UpdateOriginal() ; |
bPreviewInitialized = true ; |
} |
function UpdatePreview() |
{ |
if ( !eImgPreview || !eImgPreviewLink ) |
return ; |
if ( GetE('txtUrl').value.length == 0 ) |
GetE('lnkPreview').style.display = 'none' ; |
eImgPreviewLink.style.display = 'none' ; |
else |
{ |
UpdateImage( GetE('imgPreview'), true ) ; |
UpdateImage( eImgPreview, true ) ; |
if ( GetE('txtLnkUrl').value.trim().length > 0 ) |
GetE('lnkPreview').href = 'javascript:void(null);' ; |
eImgPreviewLink.href = 'javascript:void(null);' ; |
else |
SetAttribute( GetE('lnkPreview'), 'href', '' ) ; |
SetAttribute( eImgPreviewLink, 'href', '' ) ; |
GetE('lnkPreview').style.display = '' ; |
eImgPreviewLink.style.display = '' ; |
} |
} |
291,16 → 339,21 |
// Verifies if the aspect ration has to be mantained |
if ( oImageOriginal && bLockRatio ) |
{ |
var e = dimension == 'Width' ? GetE('txtHeight') : GetE('txtWidth') ; |
if ( value.length == 0 || isNaN( value ) ) |
{ |
GetE('txtHeight').value = GetE('txtWidth').value = '' ; |
e.value = '' ; |
return ; |
} |
if ( dimension == 'Width' ) |
GetE('txtHeight').value = value == 0 ? 0 : Math.round( oImageOriginal.height * ( value / oImageOriginal.width ) ) ; |
value = value == 0 ? 0 : Math.round( oImageOriginal.height * ( value / oImageOriginal.width ) ) ; |
else |
GetE('txtWidth').value = value == 0 ? 0 : Math.round( oImageOriginal.width * ( value / oImageOriginal.height ) ) ; |
value = value == 0 ? 0 : Math.round( oImageOriginal.width * ( value / oImageOriginal.height ) ) ; |
if ( !isNaN( value ) ) |
e.value = value ; |
} |
UpdatePreview() ; |
338,27 → 391,7 |
function OpenServerBrowser( type, url, width, height ) |
{ |
sActualBrowser = type ; |
var iLeft = (FCKConfig.ScreenWidth - width) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - height) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + width ; |
sOptions += ",height=" + height ; |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( url, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( url, "FCKBrowseWindow", sOptions ) ; |
OpenFileBrowser( url, width, height ) ; |
} |
var sActualBrowser ; |
/trunk/api/fckeditor/editor/dialog/fck_image/fck_image_preview.html |
---|
New file |
0,0 → 1,61 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_image_preview.html |
* Preview page for the Image dialog window. |
* Curiosity: http://www.lipsum.com/ |
* |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title></title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<meta name="robots" content="noindex, nofollow"> |
<link href="../common/fck_dialog_common.css" rel="stylesheet" type="text/css" /> |
<script language="javascript"> |
// Sets the Skin CSS |
document.write( '<link href="' + window.parent.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; |
if ( window.parent.FCKConfig.BaseHref.length > 0 ) |
document.write( '<base href="' + window.parent.FCKConfig.BaseHref + '">' ) ; |
window.onload = function() |
{ |
window.parent.SetPreviewElements( |
document.getElementById( 'imgPreview' ), |
document.getElementById( 'lnkPreview' ) ) ; |
} |
</script> |
</head> |
<body style="COLOR: #000000; BACKGROUND-COLOR: #ffffff"> |
<a id="lnkPreview" onclick="return false;" style="CURSOR: default"><img id="imgPreview" onload="window.parent.UpdateOriginal();" style="DISPLAY: none"></a>Lorem |
ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas feugiat consequat |
diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis |
vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis |
aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla |
pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, |
enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, |
ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, |
augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis |
ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus |
nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, |
gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis |
fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam |
turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. |
Nunc imperdiet gravida mauris. |
</body> |
</html> |
/trunk/api/fckeditor/editor/dialog/fck_find.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_find.html |
* "Find" dialog window. |
* |
15,11 → 17,12 |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
--> |
<html> |
<head> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<meta content="noindex, nofollow" name="robots"> |
<script type="text/javascript"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title></title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
<meta content="noindex, nofollow" name="robots" /> |
<script type="text/javascript"> |
var oEditor = window.parent.InnerDialogLoaded() ; |
80,8 → 83,6 |
return ( document.getElementById('chkCase').checked ? '' : 'i' ) ; |
} |
var oRange = oEditor.FCK.EditorDocument.body.createTextRange() ; |
function Ok() |
{ |
if ( document.getElementById('txtFind').value.length == 0 ) |
93,6 → 94,11 |
FindGecko() ; |
} |
var oRange ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
oRange = oEditor.FCK.EditorDocument.body.createTextRange() ; |
function FindIE() |
{ |
var iFlags = 0 ; |
128,33 → 134,44 |
oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ; |
} |
</script> |
</head> |
<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden"> |
<table cellSpacing="3" cellPadding="2" width="100%" border="0"> |
<tr> |
<td nowrap> |
<label for="txtFind" fckLang="DlgReplaceFindLbl">Find what:</label> |
</td> |
<td width="100%"> |
<input id="txtFind" style="WIDTH: 100%" tabIndex="1" type="text"> |
</td> |
<td> |
<input id="btnFind" style="WIDTH: 100%; PADDING-RIGHT: 5px; PADDING-LEFT: 5px" onclick="Ok();" |
type="button" value="Find" fckLang="DlgFindFindBtn"> |
</td> |
</tr> |
<tr> |
<td valign="bottom" colSpan="3"> |
<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgReplaceCaseChk">Match |
case</label> |
<br> |
<div id="divWord" style="DISPLAY: none"> |
<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgReplaceWordChk">Match |
whole word</label> |
</div> |
</td> |
</tr> |
</table> |
</body> |
function FindGecko() |
{ |
var bCase = document.getElementById('chkCase').checked ; |
var bWord = document.getElementById('chkWord').checked ; |
// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ; |
if ( !oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ) |
alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ; |
} |
</script> |
</head> |
<body onload="OnLoad()" scroll="no" style="overflow: hidden"> |
<table cellspacing="3" cellpadding="2" width="100%" border="0"> |
<tr> |
<td nowrap="nowrap"> |
<label for="txtFind" fcklang="DlgReplaceFindLbl"> |
Find what:</label> |
</td> |
<td width="100%"> |
<input id="txtFind" style="width: 100%" tabindex="1" type="text" /> |
</td> |
<td> |
<input id="btnFind" style="padding-right: 5px; padding-left: 5px" onclick="Ok();" |
type="button" value="Find" fcklang="DlgFindFindBtn" /> |
</td> |
</tr> |
<tr> |
<td valign="bottom" colspan="3"> |
<input id="chkCase" tabindex="3" type="checkbox" /><label for="chkCase" fcklang="DlgReplaceCaseChk">Match |
case</label> |
<br /> |
<div id="divWord" style="display: none"> |
<input id="chkWord" tabindex="4" type="checkbox" /><label for="chkWord" fcklang="DlgReplaceWordChk">Match |
whole word</label> |
</div> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/api/fckeditor/editor/dialog/fck_universalkey.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_image.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
122,24 → 122,7 |
</tr> |
<tr> |
<td valign="top"> |
<div class="ImagePreviewArea"> |
<a id="lnkPreview" onclick="return false;" style="CURSOR: default"><img id="imgPreview" style="DISPLAY: none"></a>Magnus |
es, domine, et laudabilis valde: magna virtus tua, et sapientiae tuae non est |
numerus. et laudare te vult homo, aliqua portio creaturae tuae, et homo |
circumferens mortalitem suam, circumferens testimonium peccati sui et |
testimonium, quia superbis resistis: et tamen laudare te vult homo, aliqua |
portio creaturae tuae.tu excitas, ut laudare te delectet, quia fecisti nos ad |
te et inquietum est cor nostrum, donec requiescat in te. da mihi, domine, scire |
et intellegere, utrum sit prius invocare te an laudare te, et scire te prius |
sit an invocare te. sed quis te invocat nesciens te? aliud enim pro alio potest |
invocare nesciens. an potius invocaris, ut sciaris? quomodo autem invocabunt, |
in quem non crediderunt? aut quomodo credent sine praedicante? et laudabunt |
dominum qui requirunt eum. quaerentes enim inveniunt eum et invenientes |
laudabunt eum. quaeram te, domine, invocans te, et invocem te credens in te: |
praedicatus enim es nobis. invocat te, domine, fides mea, quam dedisti mihi, |
quam inspirasti mihi per humanitatem filii tui, per ministerium praedicatoris |
tui. |
</div> |
<iframe class="ImagePreviewArea" src="fck_image/fck_image_preview.html" frameborder="0" marginheight="0" marginwidth="0"></iframe> |
</td> |
</tr> |
</table> |
/trunk/api/fckeditor/editor/dialog/fck_tablecell.html |
---|
1,6 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
16,14 → 17,13 |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<html> |
<head> |
<title>Table Cell 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 type="text/javascript"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title>Table Cell 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 type="text/javascript"> |
var oEditor = window.parent.InnerDialogLoaded() ; |
117,101 → 117,135 |
oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', oEditor.FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, wich == 'Back' ? SelectBackColor : SelectBorderColor, window ) ; |
} |
</script> |
</head> |
<body scroll="no" style="OVERFLOW: hidden"> |
<table cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%"> |
<tr> |
<td> |
<table cellSpacing="1" cellPadding="1" width="100%" border="0"> |
<tr> |
<td> |
<table cellSpacing="0" cellPadding="0" border="0"> |
<tr> |
<td nowrap><span fckLang="DlgCellWidth">Width</span>:</td> |
<td> <input onkeypress="return IsDigit();" id="txtWidth" type="text" maxLength="4" |
size="3" name="txtWidth"> <select id="selWidthType" name="selWidthType"> |
<option fckLang="DlgCellWidthPx" value="pixels" selected>pixels</option> |
<option fckLang="DlgCellWidthPc" value="percent">percent</option> |
</script> |
</head> |
<body scroll="no" style="overflow: hidden"> |
<table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%"> |
<tr> |
<td> |
<table cellspacing="1" cellpadding="1" width="100%" border="0"> |
<tr> |
<td> |
<table cellspacing="0" cellpadding="0" border="0"> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellWidth">Width</span>:</td> |
<td> |
<input onkeypress="return IsDigit();" id="txtWidth" type="text" maxlength="4" |
size="3" name="txtWidth" /> <select id="selWidthType" name="selWidthType"> |
<option fcklang="DlgCellWidthPx" value="pixels" selected="selected">pixels</option> |
<option fcklang="DlgCellWidthPc" value="percent">percent</option> |
</select></td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellHeight">Height</span>:</td> |
<td> <INPUT id="txtHeight" type="text" maxLength="4" size="3" name="txtHeight" onkeypress="return IsDigit();"> <span fckLang="DlgCellWidthPx">pixels</span></td> |
</tr> |
<tr> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellWordWrap">Word Wrap</span>:</td> |
<td> <select id="selWordWrap" name="selAlignment"> |
<option fckLang="DlgCellWordWrapNotSet" value="" selected><Not set></option> |
<option fckLang="DlgCellWordWrapYes" value="true">Yes</option> |
<option fckLang="DlgCellWordWrapNo" value="false">No</option> |
</select></td> |
</tr> |
<tr> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellHorAlign">Horizontal Alignment</span>:</td> |
<td> <select id="selHAlign" name="selAlignment"> |
<option fckLang="DlgCellHorAlignNotSet" value="" selected><Not set></option> |
<option fckLang="DlgCellHorAlignLeft" value="left">Left</option> |
<option fckLang="DlgCellHorAlignCenter" value="center">Center</option> |
<option fckLang="DlgCellHorAlignRight" value="right">Right</option> |
</select></td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellVerAlign">Vertival Alignement</span>:</td> |
<td> <select id="selVAlign" name="selAlignment"> |
<option fckLang="DlgCellVerAlignNotSet" value="" selected><Not set></option> |
<option fckLang="DlgCellVerAlignTop" value="top">Top</option> |
<option fckLang="DlgCellVerAlignMiddle" value="middle">Middle</option> |
<option fckLang="DlgCellVerAlignBottom" value="bottom">Bottom</option> |
<option fckLang="DlgCellVerAlignBaseline" value="baseline">Baseline</option> |
</select></td> |
</tr> |
</table> |
</td> |
<td> </td> |
<td align="right"> |
<table cellSpacing="0" cellPadding="0" border="0"> |
<tr> |
<td nowrap><span fckLang="DlgCellRowSpan">Rows Span</span>:</td> |
<td> <input onkeypress="return IsDigit();" id="txtRowSpan" type="text" maxLength="3" |
size="2" name="txtRows"></td> |
<td></td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellCollSpan">Columns Span</span>:</td> |
<td> <input onkeypress="return IsDigit();" id="txtCollSpan" type="text" maxLength="2" |
size="2" name="txtColumns"></td> |
<td></td> |
</tr> |
<tr> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellBackColor">Background Color</span>:</td> |
<td> <input id="txtBackColor" type="text" size="8" name="txtCellSpacing"></td> |
<td> <input type="button" fckLang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Back' )"></td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgCellBorderColor">Border Color</span>:</td> |
<td> <input id="txtBorderColor" type="text" size="8" name="txtCellPadding"></td> |
<td> <input type="button" fckLang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Border' )"></td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</body> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellHeight">Height</span>:</td> |
<td> |
<input id="txtHeight" type="text" maxlength="4" size="3" name="txtHeight" onkeypress="return IsDigit();" /> <span |
fcklang="DlgCellWidthPx">pixels</span></td> |
</tr> |
<tr> |
<td> |
</td> |
<td> |
</td> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellWordWrap">Word Wrap</span>:</td> |
<td> |
<select id="selWordWrap" name="selAlignment"> |
<option fcklang="DlgCellWordWrapYes" value="true" selected="selected">Yes</option> |
<option fcklang="DlgCellWordWrapNo" value="false">No</option> |
</select></td> |
</tr> |
<tr> |
<td> |
</td> |
<td> |
</td> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellHorAlign">Horizontal Alignment</span>:</td> |
<td> |
<select id="selHAlign" name="selAlignment"> |
<option fcklang="DlgCellHorAlignNotSet" value="" selected><Not set></option> |
<option fcklang="DlgCellHorAlignLeft" value="left">Left</option> |
<option fcklang="DlgCellHorAlignCenter" value="center">Center</option> |
<option fcklang="DlgCellHorAlignRight" value="right">Right</option> |
</select></td> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellVerAlign">Vertical Alignment</span>:</td> |
<td> |
<select id="selVAlign" name="selAlignment"> |
<option fcklang="DlgCellVerAlignNotSet" value="" selected><Not set></option> |
<option fcklang="DlgCellVerAlignTop" value="top">Top</option> |
<option fcklang="DlgCellVerAlignMiddle" value="middle">Middle</option> |
<option fcklang="DlgCellVerAlignBottom" value="bottom">Bottom</option> |
<option fcklang="DlgCellVerAlignBaseline" value="baseline">Baseline</option> |
</select></td> |
</tr> |
</table> |
</td> |
<td> |
</td> |
<td align="right"> |
<table cellspacing="0" cellpadding="0" border="0"> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellRowSpan">Rows Span</span>:</td> |
<td> |
|
<input onkeypress="return IsDigit();" id="txtRowSpan" type="text" maxlength="3" size="2" |
name="txtRows"></td> |
<td> |
</td> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellCollSpan">Columns Span</span>:</td> |
<td> |
|
<input onkeypress="return IsDigit();" id="txtCollSpan" type="text" maxlength="2" |
size="2" name="txtColumns"></td> |
<td> |
</td> |
</tr> |
<tr> |
<td> |
</td> |
<td> |
</td> |
<td> |
</td> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellBackColor">Background Color</span>:</td> |
<td> |
<input id="txtBackColor" type="text" size="8" name="txtCellSpacing"></td> |
<td> |
|
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Back' )"></td> |
</tr> |
<tr> |
<td nowrap="nowrap"> |
<span fcklang="DlgCellBorderColor">Border Color</span>:</td> |
<td> |
<input id="txtBorderColor" type="text" size="8" name="txtCellPadding" /></td> |
<td> |
|
<input type="button" fcklang="DlgCellBtnSelect" value="Select..." onclick="SelectColor( 'Border' )" /></td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</td> |
</tr> |
</table> |
</body> |
</html> |
/trunk/api/fckeditor/editor/dialog/fck_table.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
33,7 → 33,7 |
var table ; |
var e = oEditor.FCKSelection.GetSelectedElement() ; |
if ( ! e && document.location.search.substr(1) == 'Parent' ) |
if ( ( !e && document.location.search.substr(1) == 'Parent' ) || ( e && e.tagName != 'TABLE' ) ) |
e = oEditor.FCKSelection.MoveToAncestorNode( 'TABLE' ) ; |
if ( e && e.tagName == "TABLE" ) |
75,6 → 75,7 |
document.getElementById('selAlignment').value = table.align ; |
document.getElementById('txtCellPadding').value = table.cellPadding ; |
document.getElementById('txtCellSpacing').value = table.cellSpacing ; |
document.getElementById('txtSummary').value = table.summary; |
// document.getElementById('cmbFontStyle').value = table.className ; |
if (table.caption) document.getElementById('txtCaption').value = table.caption.innerHTML ; |
94,7 → 95,7 |
if ( ! bExists ) |
{ |
table = document.createElement( "TABLE" ) ; |
table = oEditor.FCK.EditorDocument.createElement( "TABLE" ) ; |
} |
// Removes the Width and Height styles |
107,6 → 108,7 |
table.align = document.getElementById('selAlignment').value ; |
table.cellPadding = document.getElementById('txtCellPadding').value ; |
table.cellSpacing = document.getElementById('txtCellSpacing').value ; |
table.summary = document.getElementById('txtSummary').value ; |
// table.className = cmbFontStyle.value ; |
if ( document.getElementById('txtCaption').value != '') |
145,12 → 147,16 |
// Amended to ensure that newly inserted tables are not incorrectly nested in P tags, etc |
// We insert the table first and then rectify any nestings afterwards so we can re-use the |
// FCKTablesProcessor function that corrects tables on SetHTML() |
/* |
table = oEditor.FCK.InsertElementAndGetIt( table ) ; |
if ( !oEditor.FCKConfig.UseBROnCarriageReturn ) |
{ |
oEditor.FCKTablesProcessor.CheckTableNesting( table ) ; |
} |
*/ |
// END iCM MODIFICATIONS |
oEditor.FCK.InsertElement( table ) ; |
} |
return true ; |
259,9 → 265,15 |
<tr> |
<td nowrap><span fckLang="DlgTableCaption">Caption</span>:</td> |
<td> </td> |
<td width="100%"> |
<td width="100%" nowrap> |
<input id="txtCaption" type="text" style="WIDTH: 100%"></td> |
</tr> |
<tr> |
<td nowrap><span fckLang="DlgTableSummary">Summary</span>:</td> |
<td> </td> |
<td width="100%" nowrap> |
<input id="txtSummary" type="text" style="WIDTH: 100%"></td> |
</tr> |
</table> |
</td> |
</tr> |
/trunk/api/fckeditor/editor/dialog/fck_textfield.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_docprops.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
148,6 → 148,9 |
window.onload = function () |
{ |
// Show/Hide the "Browse Server" button. |
GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? "" : "none"; |
// First of all, translate the dialog box texts |
oEditor.FCKLanguageManager.TranslatePage( document ) ; |
372,26 → 375,7 |
function BrowseServerBack() |
{ |
var iLeft = (FCKConfig.ScreenWidth - FCKConfig.ImageBrowserWindowWidth) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - FCKConfig.ImageBrowserWindowHeight) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + FCKConfig.LinkBrowserWindowWidth ; |
sOptions += ",height=" + FCKConfig.LinkBrowserWindowHeight ; |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( FCKConfig.ImageBrowserURL, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( FCKConfig.ImageBrowserURL, "FCKBrowseWindow", sOptions ) ; |
OpenFileBrowser( FCKConfig.ImageBrowserURL, FCKConfig.ImageBrowserWindowWidth, FCKConfig.ImageBrowserWindowHeight ) ; |
} |
function SetUrl( url ) |
499,7 → 483,7 |
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> |
<tr> |
<td width="100%"><input id="txtBackImage" style="WIDTH: 100%" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();"></td> |
<td nowrap> <input id="btnBrowse" onclick="BrowseServerBack();" type="button" fckLang="DlgBtnBrowseServer" value="Browse Server" fckLang="DlgBtnBrowseServer"></td> |
<td id="tdBrowse" nowrap> <input id="btnBrowse" onclick="BrowseServerBack();" type="button" fckLang="DlgBtnBrowseServer" value="Browse Server" fckLang="DlgBtnBrowseServer"></td> |
</tr> |
</table> |
<input id="chkBackNoScroll" type="checkbox" onclick="UpdatePreview();"> <label for="chkBackNoScroll" fckLang="DlgDocBgNoScroll">Nonscrolling |
/trunk/api/fckeditor/editor/dialog/fck_link/fck_link.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
15,6 → 15,7 |
* |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
* Dominik Pesch ?dom? (empty selection patch) (d.pesch@11com7.de) |
*/ |
var oEditor = window.parent.InnerDialogLoaded() ; |
43,6 → 44,8 |
ShowE('divTarget' , ( tabCode == 'Target' ) ) ; |
ShowE('divUpload' , ( tabCode == 'Upload' ) ) ; |
ShowE('divAttribs' , ( tabCode == 'Advanced' ) ) ; |
window.parent.SetAutoSize( true ) ; |
} |
//#### Regular Expressions library. |
175,12 → 178,12 |
{ |
var sName = aAnchors[i].name ; |
if ( sName && sName.length > 0 ) |
oEditor.FCKTools.AddSelectOption( document, GetE('cmbAnchorName'), sName, sName ) ; |
oEditor.FCKTools.AddSelectOption( GetE('cmbAnchorName'), sName, sName ) ; |
} |
for ( var i = 0 ; i < aIds.length ; i++ ) |
{ |
oEditor.FCKTools.AddSelectOption( document, GetE('cmbAnchorId'), aIds[i], aIds[i] ) ; |
oEditor.FCKTools.AddSelectOption( GetE('cmbAnchorId'), aIds[i], aIds[i] ) ; |
} |
ShowE( 'divSelAnchor' , bHasAnchors ) ; |
194,8 → 197,10 |
var sType = 'url' ; |
// Get the actual Link href. |
var sHRef = oLink.getAttribute('href',2) + '' ; |
var sHRef = oLink.getAttribute( '_fcksavedurl' ) ; |
if ( !sHRef || sHRef.length == 0 ) |
sHRef = oLink.getAttribute( 'href' , 2 ) + '' ; |
// TODO: Wait stable version and remove the following commented lines. |
// if ( sHRef.startsWith( FCK.BaseUrl ) ) |
// sHRef = sHRef.remove( 0, FCK.BaseUrl.length ) ; |
236,7 → 241,7 |
GetE('txtUrl').value = sUrl ; |
} |
} |
else if ( sHRef.substr(0,1) == '#' && sHRef.length > 2 ) // It is an anchor link. |
else if ( sHRef.substr(0,1) == '#' && sHRef.length > 1 ) // It is an anchor link. |
{ |
sType = 'anchor' ; |
GetE('cmbAnchorName').value = GetE('cmbAnchorId').value = sHRef.substr(1) ; |
425,7 → 430,7 |
//#### The OK button was hit. |
function Ok() |
{ |
var sUri ; |
var sUri, sInnerHtml ; |
switch ( GetE('cmbLinkType').value ) |
{ |
474,18 → 479,51 |
break ; |
} |
if ( oLink ) // Modifying an existent link. |
// No link selected, so try to create one. |
if ( !oLink ) |
oLink = oEditor.FCK.CreateLink( sUri ) ; |
if ( oLink ) |
sInnerHtml = oLink.innerHTML ; // Save the innerHTML (IE changes it if it is like a URL). |
else |
{ |
oEditor.FCKUndo.SaveUndoStep() ; |
oLink.href = sUri ; |
// If no selection, use the uri as the link text (by dom, 2006-05-26) |
sInnerHtml = sUri; |
// try to built better text for empty link |
switch (GetE('cmbLinkType').value) |
{ |
// anchor: use old behavior --> return true |
case 'anchor': |
sInnerHtml = sInnerHtml.replace( /^#/, '' ) ; |
break; |
// url: try to get path |
case 'url': |
var oLinkPathRegEx = new RegExp("//?([^?\"']+)([?].*)?$"); |
var asLinkPath = oLinkPathRegEx.exec( sUri ); |
if (asLinkPath != null) |
sInnerHtml = asLinkPath[1]; // use matched path |
break; |
// mailto: try to get email address |
case 'email': |
sInnerHtml = GetE('txtEMailAddress').value |
break; |
} |
// built new anchor and add link text |
oLink = oEditor.FCK.CreateElement( 'a' ) ; |
} |
else // Creating a new link. |
{ |
oLink = oEditor.FCK.CreateLink( sUri ) ; |
if ( ! oLink ) |
return true ; |
} |
oEditor.FCKUndo.SaveUndoStep() ; |
oLink.href = sUri ; |
SetAttribute( oLink, '_fcksavedurl', sUri ) ; |
oLink.innerHTML = sInnerHtml ; // Set (or restore) the innerHTML |
// Target |
if( GetE('cmbTarget').value != 'popup' ) |
SetAttribute( oLink, 'target', GetE('txtTargetFrame').value ) ; |
500,44 → 538,29 |
SetAttribute( oLink, 'accesskey', GetE('txtAttAccessKey').value ) ; |
SetAttribute( oLink, 'tabindex' , ( GetE('txtAttTabIndex').value > 0 ? GetE('txtAttTabIndex').value : null ) ) ; |
SetAttribute( oLink, 'title' , GetE('txtAttTitle').value ) ; |
SetAttribute( oLink, 'class' , GetE('txtAttClasses').value ) ; |
SetAttribute( oLink, 'type' , GetE('txtAttContentType').value ) ; |
SetAttribute( oLink, 'charset' , GetE('txtAttCharSet').value ) ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
SetAttribute( oLink, 'className', GetE('txtAttClasses').value ) ; |
oLink.style.cssText = GetE('txtAttStyle').value ; |
} |
else |
{ |
SetAttribute( oLink, 'class', GetE('txtAttClasses').value ) ; |
SetAttribute( oLink, 'style', GetE('txtAttStyle').value ) ; |
} |
// Select the link. |
oEditor.FCKSelection.SelectNode(oLink); |
return true ; |
} |
function BrowseServer() |
{ |
// Set the browser window feature. |
var iWidth = FCKConfig.LinkBrowserWindowWidth ; |
var iHeight = FCKConfig.LinkBrowserWindowHeight ; |
var iLeft = (FCKConfig.ScreenWidth - iWidth) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - iHeight) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + iWidth ; |
sOptions += ",height=" + iHeight ; |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ; |
OpenFileBrowser( FCKConfig.LinkBrowserURL, FCKConfig.LinkBrowserWindowWidth, FCKConfig.LinkBrowserWindowHeight ) ; |
} |
function SetUrl( url ) |
/trunk/api/fckeditor/editor/dialog/fck_radiobutton.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
40,7 → 40,7 |
if ( oActiveEl && oActiveEl.tagName.toUpperCase() == 'INPUT' && oActiveEl.type == 'radio' ) |
{ |
GetE('txtName').value = oActiveEl.name ; |
GetE('txtValue').value = oActiveEl.value ; |
GetE('txtValue').value = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ; |
GetE('txtSelected').checked = oActiveEl.checked ; |
} |
else |
58,14 → 58,17 |
oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; |
} |
oActiveEl.name = GetE('txtName').value ; |
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; |
if ( GetE('txtName').value.length > 0 ) |
oActiveEl.name = GetE('txtName').value ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
oActiveEl.value = GetE('txtValue').value ; |
else |
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; |
if ( GetE('txtSelected').checked ) |
{ |
SetAttribute( oActiveEl, 'checked', 'checked' ) ; |
oActiveEl.checked = GetE('txtSelected').checked ; |
} |
var bIsChecked = GetE('txtSelected').checked ; |
SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ; // For Firefox |
oActiveEl.checked = bIsChecked ; |
return true ; |
} |
/trunk/api/fckeditor/editor/dialog/fck_flash.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
72,7 → 72,7 |
<td><span fckLang="DlgImgPreview">Preview</span></td> |
</tr> |
<tr> |
<td id="ePreviewCell" valign="top" class="FlashPreviewArea"> </td> |
<td id="ePreviewCell" valign="top" class="FlashPreviewArea"><iframe src="fck_flash/fck_flash_preview.html" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> |
</tr> |
</table> |
</td> |
/trunk/api/fckeditor/editor/dialog/fck_hiddenfield.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_source.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
31,7 → 31,9 |
window.onload = function() |
{ |
document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ; |
// EnableXHTML and EnableSourceXHTML has been deprecated |
// document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ; |
document.getElementById('txtSource').value = FCK.GetXHTML( FCKConfig.FormatSource ) ; |
// Activate the "OK" button. |
window.parent.SetOkButton( true ) ; |
/trunk/api/fckeditor/editor/dialog/common/fck_dialog_common.css |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
21,7 → 21,6 |
.ImagePreviewArea |
{ |
border: #000000 1px solid; |
padding: 5px; |
overflow: auto; |
width: 100%; |
height: 170px; |
/trunk/api/fckeditor/editor/dialog/common/fck_dialog_common.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
91,4 → 91,47 |
s += this.substring( start + length , this.length ) ; |
return s ; |
} |
function OpenFileBrowser( url, width, height ) |
{ |
// oEditor must be defined. |
var iLeft = ( oEditor.FCKConfig.ScreenWidth - width ) / 2 ; |
var iTop = ( oEditor.FCKConfig.ScreenHeight - height ) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + width ; |
sOptions += ",height=" + height ; |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
// The "PreserveSessionOnFileBrowser" because the above code could be |
// blocked by popup blockers. |
if ( oEditor.FCKConfig.PreserveSessionOnFileBrowser && oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( url, 'FCKBrowseWindow', sOptions ) ; |
if ( oWindow ) |
{ |
// Detect Yahoo popup blocker. |
try |
{ |
var sTest = oWindow.name ; // Yahoo returns "something", but we can't access it, so detect that and avoid strange errors for the user. |
oWindow.opener = window ; |
} |
catch(e) |
{ |
alert( oEditor.FCKLang.BrowseServerBlocked ) ; |
} |
} |
else |
alert( oEditor.FCKLang.BrowseServerBlocked ) ; |
} |
else |
window.open( url, 'FCKBrowseWindow', sOptions ) ; |
} |
/trunk/api/fckeditor/editor/dialog/common/moz-bindings.xml |
---|
7,6 → 7,7 |
</constructor> |
<method name="CheckIsDigit"> |
<body> |
<![CDATA[ |
var iCode = keyCode ; |
var bAccepted = |
13,12 → 14,13 |
( |
( iCode >= 48 && iCode <= 57 ) // Numbers |
|| (iCode >= 37 && iCode <= 40) // Arrows |
|| iCode == 8 // Backspace |
|| iCode == 46 // Delete |
|| iCode == 8 // Backspace |
|| iCode == 46 // Delete |
) ; |
return bAccepted ; |
</body> |
]]> |
</body> |
</method> |
</implementation> |
<events> |
/trunk/api/fckeditor/editor/dialog/fck_smiley.html |
---|
1,6 → 1,6 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
39,6 → 39,7 |
{ |
var oImg = oEditor.FCK.CreateElement( 'IMG' ) ; |
oImg.src = url ; |
oImg.setAttribute( '_fcksavedurl', url ) ; |
window.parent.Cancel() ; |
} |
/trunk/api/fckeditor/editor/dialog/fck_listprop.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_select/fck_select.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
104,8 → 104,8 |
if ( iFinalIndex < 0 ) |
iFinalIndex = 0 ; |
if ( iFinalIndex > ( combo.options.lenght - 1 ) ) |
iFinalIndex = combo.options.lenght - 1 ; |
if ( iFinalIndex > ( combo.options.length - 1 ) ) |
iFinalIndex = combo.options.length - 1 ; |
if ( iActualIndex == iFinalIndex ) |
return ; |
/trunk/api/fckeditor/editor/dialog/fck_textarea.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/data.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/dialogue.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/diacritic.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/fck_universalkey.css |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/multihexa.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
/trunk/api/fckeditor/editor/dialog/fck_checkbox.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_checkbox.html |
* Checkbox dialog window. |
* |
38,7 → 40,7 |
if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'checkbox' ) |
{ |
GetE('txtName').value = oActiveEl.name ; |
GetE('txtValue').value = oActiveEl.value ; |
GetE('txtValue').value = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ; |
GetE('txtSelected').checked = oActiveEl.checked ; |
} |
else |
56,14 → 58,17 |
oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; |
} |
oActiveEl.name = GetE('txtName').value ; |
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; |
if ( GetE('txtName').value.length > 0 ) |
oActiveEl.name = GetE('txtName').value ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
oActiveEl.value = GetE('txtValue').value ; |
else |
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; |
if ( GetE('txtSelected').checked ) |
{ |
SetAttribute( oActiveEl, 'checked', 'checked' ) ; |
oActiveEl.checked = GetE('txtSelected').checked ; |
} |
var bIsChecked = GetE('txtSelected').checked ; |
SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ; // For Firefox |
oActiveEl.checked = bIsChecked ; |
return true ; |
} |
/trunk/api/fckeditor/editor/dialog/fck_spellerpages.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
30,7 → 30,7 |
window.onload = function() |
{ |
document.getElementById('txtHtml').value = oEditor.FCK.GetHTML() ; |
document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ; |
var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ; |
oSpeller.OnFinished = oSpeller_OnFinished ; |
54,6 → 54,6 |
</head> |
<body style="OVERFLOW: hidden" scroll="no" style="padding:0px;"> |
<input type="hidden" id="txtHtml" value=""> |
<iframe id="frmSpell" src="../fckblank.html" name="spellchecker" width="100%" height="100%" frameborder="no"></iframe> |
<iframe id="frmSpell" src="../fckblank.html" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe> |
</body> |
</html> |
/trunk/api/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html |
---|
1,7 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_document_preview.html |
* Preview shown in the "Document Properties" dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_flash/fck_flash.js |
---|
1,6 → 1,6 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
92,12 → 92,17 |
GetE('cmbScale').value = GetAttribute( oEmbed, 'scale', '' ).toLowerCase() ; |
GetE('txtAttTitle').value = oEmbed.title ; |
GetE('txtAttClasses').value = oEmbed.getAttribute('class',2) || '' ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
GetE('txtAttStyle').value = oEmbed.style.cssText ; |
{ |
GetE('txtAttClasses').value = oEmbed.getAttribute('className') || '' ; |
GetE('txtAttStyle').value = oEmbed.style.cssText ; |
} |
else |
GetE('txtAttStyle').value = oEmbed.getAttribute('style',2) ; |
{ |
GetE('txtAttClasses').value = oEmbed.getAttribute('class',2) || '' ; |
GetE('txtAttStyle').value = oEmbed.getAttribute('style',2) ; |
} |
UpdatePreview() ; |
} |
124,7 → 129,7 |
if ( !oFakeImage ) |
{ |
oFakeImage = oEditor.FCKDocumentProcessors_CreateFakeImage( 'FCK__Flash', oEmbed ) ; |
oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Flash', oEmbed ) ; |
oFakeImage.setAttribute( '_fckflash', 'true', 0 ) ; |
oFakeImage = FCK.InsertElementAndGetIt( oFakeImage ) ; |
} |
150,31 → 155,48 |
SetAttribute( e, 'id' , GetE('txtAttId').value ) ; |
SetAttribute( e, 'scale', GetE('cmbScale').value ) ; |
if ( !GetE('chkAutoPlay').checked ) SetAttribute( e, 'play', 'false' ) ; |
if ( !GetE('chkLoop').checked ) SetAttribute( e, 'loop', 'false' ) ; |
if ( !GetE('chkMenu').checked ) SetAttribute( e, 'menu', 'false' ) ; |
SetAttribute( e, 'play', GetE('chkAutoPlay').checked ? 'true' : 'false' ) ; |
SetAttribute( e, 'loop', GetE('chkLoop').checked ? 'true' : 'false' ) ; |
SetAttribute( e, 'menu', GetE('chkMenu').checked ? 'true' : 'false' ) ; |
SetAttribute( e, 'title' , GetE('txtAttTitle').value ) ; |
SetAttribute( e, 'class' , GetE('txtAttClasses').value ) ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
SetAttribute( e, 'className', GetE('txtAttClasses').value ) ; |
e.style.cssText = GetE('txtAttStyle').value ; |
} |
else |
{ |
SetAttribute( e, 'class', GetE('txtAttClasses').value ) ; |
SetAttribute( e, 'style', GetE('txtAttStyle').value ) ; |
} |
} |
function UpdatePreview() |
var ePreview ; |
function SetPreviewElement( previewEl ) |
{ |
var oCell = GetE('ePreviewCell') ; |
ePreview = previewEl ; |
while ( oCell.firstChild ) |
oCell.removeChild( oCell.firstChild ) ; |
if ( GetE('txtUrl').value.length > 0 ) |
UpdatePreview() ; |
} |
function UpdatePreview() |
{ |
if ( !ePreview ) |
return ; |
while ( ePreview.firstChild ) |
ePreview.removeChild( ePreview.firstChild ) ; |
if ( GetE('txtUrl').value.length == 0 ) |
oCell.innerHTML = ' ' ; |
ePreview.innerHTML = ' ' ; |
else |
{ |
var e = document.createElement( 'EMBED' ) ; |
var oDoc = ePreview.ownerDocument || ePreview.document ; |
var e = oDoc.createElement( 'EMBED' ) ; |
e.src = GetE('txtUrl').value ; |
e.type = 'application/x-shockwave-flash' ; |
181,7 → 203,7 |
e.width = '100%' ; |
e.height = '100%' ; |
oCell.appendChild( e ) ; |
ePreview.appendChild( e ) ; |
} |
} |
189,40 → 211,19 |
function BrowseServer() |
{ |
OpenServerBrowser( |
'Flash', |
FCKConfig.FlashBrowserURL, |
FCKConfig.FlashBrowserWindowWidth, |
FCKConfig.FlashBrowserWindowHeight ) ; |
OpenFileBrowser( FCKConfig.FlashBrowserURL, FCKConfig.FlashBrowserWindowWidth, FCKConfig.FlashBrowserWindowHeight ) ; |
} |
function OpenServerBrowser( type, url, width, height ) |
function SetUrl( url, width, height ) |
{ |
var iLeft = (FCKConfig.ScreenWidth - width) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - height) / 2 ; |
GetE('txtUrl').value = url ; |
if ( width ) |
GetE('txtWidth').value = width ; |
if ( height ) |
GetE('txtHeight').value = height ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + width ; |
sOptions += ",height=" + height ; |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( url, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( url, "FCKBrowseWindow", sOptions ) ; |
} |
function SetUrl( url ) |
{ |
GetE('txtUrl').value = url ; |
UpdatePreview() ; |
window.parent.SetSelectedTab( 'Info' ) ; |
/trunk/api/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html |
---|
New file |
0,0 → 1,42 |
<!-- |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2006 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_flash_preview.html |
* Preview page for the Flash dialog window. |
* |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
--> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title></title> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<meta name="robots" content="noindex, nofollow"> |
<link href="../common/fck_dialog_common.css" rel="stylesheet" type="text/css" /> |
<script language="javascript"> |
// Sets the Skin CSS |
document.write( '<link href="' + window.parent.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; |
if ( window.parent.FCKConfig.BaseHref.length > 0 ) |
document.write( '<base href="' + window.parent.FCKConfig.BaseHref + '">' ) ; |
window.onload = function() |
{ |
window.parent.SetPreviewElement( document.body ) ; |
} |
</script> |
</head> |
<body style="COLOR: #000000; BACKGROUND-COLOR: #ffffff"></body> |
</html> |