1 | <!--
|
---|
2 | * FCKeditor - The text editor for internet
|
---|
3 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
---|
4 | *
|
---|
5 | * Licensed under the terms of the GNU Lesser General Public License:
|
---|
6 | * http://www.opensource.org/licenses/lgpl-license.php
|
---|
7 | *
|
---|
8 | * For further information visit:
|
---|
9 | * http://www.fckeditor.net/
|
---|
10 | *
|
---|
11 | * "Support Open Source software. What about a donation today?"
|
---|
12 | *
|
---|
13 | * File Name: fck_source.html
|
---|
14 | * Source editor dialog window.
|
---|
15 | *
|
---|
16 | * File Authors:
|
---|
17 | * Frederico Caldeira Knabben (fredck@fckeditor.net)
|
---|
18 | -->
|
---|
19 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
---|
20 | <html>
|
---|
21 | <head>
|
---|
22 | <title>Source</title>
|
---|
23 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
---|
24 | <meta name="robots" content="noindex, nofollow">
|
---|
25 | <link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />
|
---|
26 | <script language="javascript">
|
---|
27 |
|
---|
28 | var oEditor = window.parent.InnerDialogLoaded() ;
|
---|
29 | var FCK = oEditor.FCK ;
|
---|
30 | var FCKConfig = oEditor.FCKConfig ;
|
---|
31 |
|
---|
32 | window.onload = function()
|
---|
33 | {
|
---|
34 | // EnableXHTML and EnableSourceXHTML has been deprecated
|
---|
35 | // document.getElementById('txtSource').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ) ) ;
|
---|
36 | document.getElementById('txtSource').value = FCK.GetXHTML( FCKConfig.FormatSource ) ;
|
---|
37 |
|
---|
38 | // Activate the "OK" button.
|
---|
39 | window.parent.SetOkButton( true ) ;
|
---|
40 | }
|
---|
41 |
|
---|
42 | //#### The OK button was hit.
|
---|
43 | function Ok()
|
---|
44 | {
|
---|
45 | if ( oEditor.FCKBrowserInfo.IsIE )
|
---|
46 | oEditor.FCKUndo.SaveUndoStep() ;
|
---|
47 |
|
---|
48 | FCK.SetHTML( document.getElementById('txtSource').value, false ) ;
|
---|
49 |
|
---|
50 | return true ;
|
---|
51 | }
|
---|
52 | </script>
|
---|
53 | </head>
|
---|
54 | <body scroll="no" style="OVERFLOW: hidden">
|
---|
55 | <table width="100%" height="100%">
|
---|
56 | <tr>
|
---|
57 | <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>
|
---|
58 | </tr>
|
---|
59 | </table>
|
---|
60 | </body>
|
---|
61 | </html>
|
---|