Modificare il file:
\FckEditor\plugins\Marquee\fck_marquee.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * 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_marquee.html * Marquee dialog window. * * File Authors: * Yogananthar Ananthapavan(rollbond@gmail.com) --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Marquee Properties</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta content="noindex, nofollow" name="robots"> <script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script> <script type="text/javascript"> var oEditor = window.parent.InnerDialogLoaded() ; // Gets the document DOM var oDOM = oEditor.FCK.EditorDocument; // Gets the marquee if there is one selected. var marquee ; var e; // Fired when the window loading process is finished. It sets the fields with the // actual values if a marquee is selected in the editor. window.onload = function() { e = oEditor.FCKSelection.GetSelectedElement() ; if ( ( !e && document.location.search.substr(1) == 'Parent' ) || ( e && e.tagName != 'MARQUEE' ) ) e = oEditor.FCKSelection.MoveToAncestorNode( 'MARQUEE' ) ; if ( e && e.tagName == "MARQUEE" ) marquee = e ; var selectedText; selectedText = oDOM.selection.createRange().text; if(selectedText!=""){ document.getElementById('txtText').value = selectedText; } // First of all, translate the dialog box texts oEditor.FCKLanguageManager.TranslatePage(document) ; if(marquee){ // Gets the value from the Width or the Style attribute var iWidth = (marquee.style.width ? marquee.style.width : marquee.width ) ; var iHeight = (marquee.style.height ? marquee.style.height : marquee.height ) ; var iHSpace = (marquee.style.hspace ? marquee.style.hspace : marquee.hspace ) ; var iVSpace = (marquee.style.vspace ? marquee.style.vspace : marquee.vspace ) ; if (iWidth.indexOf('%') >= 0) // Percentual = % { iWidth = parseInt( iWidth.substr(0,iWidth.length - 1) ) ; document.getElementById('selWidthType').value = "percent" ; } else if (iWidth.indexOf('px') >= 0) // Style Pixel = px { // iWidth = iWidth.substr(0,iWidth.length - 2); document.getElementById('selWidthType').value = "pixels" ; } if (iHeight && iHeight.indexOf('px') >= 0) // Style Pixel = px iHeight = iHeight.substr(0,iHeight.length - 2); document.getElementById('txtWidth').value = iWidth; document.getElementById('txtHeight').value = iHeight; document.getElementById('txtHSpace').value = iHSpace; document.getElementById('txtVSpace').value = iVSpace; document.getElementById('txtLoop').value = marquee.loop; document.getElementById('txtScrollDelay').value = marquee.scrollDelay; document.getElementById('txtScrollAmount').value= marquee.scrollAmount; document.getElementById('selBehaviour').value = marquee.behavior; document.getElementById('selDirection').value = marquee.direction; document.getElementById('selAlignment').value = marquee.align; document.getElementById('txtText').value = marquee.innerText; document.getElementById('txtBackColor').value = marquee.bgColor; } window.parent.SetOkButton( true ) ; window.parent.SetAutoSize( true ) ; } // Fired when the user press the OK button function Ok() { var bExists = ( marquee != null ) ; if ( ! bExists ) { marquee = oEditor.FCK.EditorDocument.createElement( "MARQUEE" ) ; } // Removes the Width and Height styles if ( bExists && marquee.style.width )marquee.style.width = null ; //.removeAttribute("width") ; if ( bExists && marquee.style.height )marquee.style.height = null ; //.removeAttribute("height") ; // Removes the hspace and vspace styles if ( bExists && marquee.vspace )marquee.vspace = null ; //.removeAttribute("vspace") ; if ( bExists && marquee.hspace )marquee.hspace = null ; //.removeAttribute("hspace") ; marquee.hspace = document.getElementById('txtHSpace').value; marquee.vspace = document.getElementById('txtVSpace').value; marquee.width = document.getElementById('txtWidth').value + ( document.getElementById('selWidthType').value == "percent" ? "%" : ""); marquee.height = document.getElementById('txtHeight').value; marquee.behavior = document.getElementById('selBehaviour').value; marquee.loop = document.getElementById('txtLoop').value; marquee.scrollDelay = document.getElementById('txtScrollDelay').value; marquee.scrollAmount = document.getElementById('txtScrollAmount').value; marquee.direction = document.getElementById('selDirection').value; marquee.align = document.getElementById('selAlignment').value; marquee.innerText = document.getElementById('txtText').value; marquee.bgColor = document.getElementById('txtBackColor').value; if(document.getElementById('txtText').value != ''){ oEditor.FCK.InsertElement( marquee ); oEditor.FCKUndo.SaveUndoStep(); return true ; } else{ alert("Please enter some text!"); return false; } } function IsDigit(e){ e = e || event ; var iCode = ( e.keyCode || e.charCode ) ; return ( ( iCode >= 48 && iCode <= 57 ) // Numbers || (iCode >= 37 && iCode <= 40) // Arrows || iCode == 8 // Backspace || iCode == 46 // Delete ) ; } function SetColor(inputId, color){ document.getElementById(inputId).value = color + '' ; } function SelectBackColor(color){ SetColor('txtBackColor', color); } function SelectColor(){ oEditor.FCKDialog.OpenDialog('FCKDialog_Color', 'Marquee Background Color', 'dialog/fck_colorselector.html', 400, 330, SelectBackColor, window); return; } </script> </head> <body style="overflow: hidden"> <table id="otable" cellspacing="0" cellpadding="0" width="100%" border="0" style="height: 100%"> <tr> <td> <table cellspacing="1" cellpadding="1" width="100%" border="0"> <tr> <td valign="top"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><span fcklang="DlgMarqueeBehaviour">Behaviour</span>:</td> <td> <select id="selBehaviour" name="selBehaviour"> <option fcklang="DlgMarqueeBehaviourScroll" value="scroll" selected="selected">Scroll</option> <option fcklang="DlgMarqueeBehaviourSlide" value="slide">Slide</option> <option fcklang="DlgMarqueeBehaviourAlternate" value="alternate">Alternate</option> </select> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><span fcklang="DlgMarqueeDirection">Direction</span>:</td> <td> <select id="selDirection" name="selDirection"> <option fcklang="DlgMarqueeDirectionRight" value="right" selected="selected">Right</option> <option fcklang="DlgMarqueeDirectionLeft" value="left">Left</option> <option fcklang="DlgMarqueeDirectionUp" value="up">Up</option> <option fcklang="DlgMarqueeDirectionDown" value="down">Down</option> </select> </td> </tr> <tr> <td><span fcklang="DlgMarqueeLoop">Loop</span>:</td> <td> <input id="txtLoop" type="text" maxlength="3" size="2" value="-1" name="txtLoop" onKeyPress="return IsDigit(event);" /></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><span fcklang="DlgMarqueeScrollAmount">Scroll Amount</span>:</td> <td> <input id="txtScrollAmount" type="text" maxlength="3" size="2" value="5" name="txtScrollAmount" onKeyPress="return IsDigit(event);" /></td> </tr> <tr> <td><span fcklang="DlgMarqueeScrollDelay">Scroll Delay</span>:</td> <td> <input id="txtScrollDelay" type="text" maxlength="3" size="2" value="5" name="txtScrollDelay" onKeyPress="return IsDigit(event);" /></td> </tr> </table> </td> <td> </td> <td valign="top"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><span fcklang="DlgMarqueeAlign">Alignment</span>:</td> <td colspan="2"> <select id="selAlignment" name="selAlignment"> <option fcklang="DlgMarqueeAlignTop" value="top">Top</option> <option fcklang="DlgMarqueeAlignMiddle" selected="selected" value="middle">Middle</option> <option fcklang="DlgMarqueeAlignBottom" value="bottom">Bottom</option> </select> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><span fcklang="DlgMarqueeWidth">Width</span>:</td> <td> <input id="txtWidth" type="text" maxlength="4" size="3" value="200" name="txtWidth" onKeyPress="return IsDigit(event);" /></td> <td> <select id="selWidthType" name="selWidthType"> <option fcklang="DlgMarqueeWidthPx" value="pixels" selected="selected">pixels</option> <option fcklang="DlgMarqueeWidthPc" value="percent">percent</option> </select> </td> </tr> <tr> <td><span fcklang="DlgMarqueeHeight">Height</span>:</td> <td> <input id="txtHeight" type="text" maxlength="4" size="3" value="10" name="txtHeight" onKeyPress="return IsDigit(event);" /></td> <td> <span fcklang="DlgMarqueeWidthPx">pixels</span></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><span fcklang="DlgMarqueeHSpace">Horizontal Space</span>:</td> <td> <input id="txtHSpace" type="text" maxlength="3" size="2" value="0" name="txtHSpace" onKeyPress="return IsDigit(event);" /></td> <td> </td> </tr> <tr> <td><span fcklang="DlgMarqueeVSpace">Vertical Space</span>:</td> <td> <input id="txtVSpace" type="text" maxlength="2" size="2" value="0" name="txtVSpace" onKeyPress="return IsDigit(event);" /></td> <td> </td> </tr> </table> <tr> <td colspan=3><span fcklang="DlgMarqueeBackgroundColor">Background Color</span>: <input id="txtBackColor" type="text" /> <input id="btnSelBackColor" onClick="SelectColor()" type="button" value="Select..." fcklang="DlgMarqueeBtnSelect" /> </td> </tr> </td> </tr> </table> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td nowrap="nowrap" valign="top"><span fcklang="DlgMarqueeText">Text</span>: </td> <td> </td> <td width="100%" nowrap="nowrap"><textarea id="txtText" style="width: 100%" rows="3"></textarea></td> </tr> </table> <strong>Formatting on existing text will be reset!</strong> </td> </tr> </table> </body> </html>
[
Íàçàä
]