1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 2<!-- 3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 4 * Copyright (C) 2003-2009 Frederico Caldeira Knabben 5 * 6 * == BEGIN LICENSE == 7 * 8 * Licensed under the terms of any of the following licenses at your 9 * choice: 10 * 11 * - GNU General Public License Version 2 or later (the "GPL") 12 * http://www.gnu.org/licenses/gpl.html 13 * 14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15 * http://www.gnu.org/licenses/lgpl.html 16 * 17 * - Mozilla Public License Version 1.1 or later (the "MPL") 18 * http://www.mozilla.org/MPL/MPL-1.1.html 19 * 20 * == END LICENSE == 21 * 22 * Source editor dialog window. 23--> 24<html> 25 <head> 26 <title>Source</title> 27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 28 <meta name="robots" content="noindex, nofollow"> 29 <script src="common/fck_dialog_common.js" type="text/javascript"></script> 30 <script language="javascript"> 31 32var oEditor = window.parent.InnerDialogLoaded() ; 33var FCK = oEditor.FCK ; 34var FCKConfig = oEditor.FCKConfig ; 35var FCKTools = oEditor.FCKTools ; 36 37document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ; 38 39window.onload = function() 40{ 41 // EnableXHTML and EnableSourceXHTML has been deprecated 42// document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ; 43 document.getElementById('txtSource').value = FCK.GetXHTML( FCKConfig.FormatSource ) ; 44 45 // Activate the "OK" button. 46 window.parent.SetOkButton( true ) ; 47} 48 49//#### The OK button was hit. 50function Ok() 51{ 52 if ( oEditor.FCKBrowserInfo.IsIE ) 53 oEditor.FCKUndo.SaveUndoStep() ; 54 55 FCK.SetData( document.getElementById('txtSource').value, false ) ; 56 57 return true ; 58} 59 </script> 60 </head> 61 <body scroll="no" style="OVERFLOW: hidden"> 62 <table width="100%" height="100%"> 63 <tr> 64 <td height="100%"><textarea id="txtSource" dir="ltr" style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 14px; PADDING-BOTTOM: 5px; WIDTH: 100%; PADDING-TOP: 5px; FONT-FAMILY: Monospace; HEIGHT: 100%">Loading. Please wait...</textarea></td> 65 </tr> 66 </table> 67 </body> 68</html> 69