Ticket #2142: 2142_2.patch
File 2142_2.patch, 12.6 KB (added by , 16 years ago) |
---|
-
_samples/html/sample01.html
37 37 This sample displays a normal HTML form with an FCKeditor with full features enabled. 38 38 </div> 39 39 <hr /> 40 <form action=" sampleposteddata.php" method="post" target="_blank">40 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 41 41 <script type="text/javascript"> 42 42 <!-- 43 43 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample02.html
52 52 It uses the "ReplaceTextarea" command to create the editor. 53 53 </div> 54 54 <hr /> 55 <form action=" sampleposteddata.php" method="post" target="_blank">55 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 56 56 <div> 57 57 <textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%; height: 200px"><p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p></textarea> 58 58 </div> -
_samples/html/sample03.html
105 105 </tr> 106 106 </table> 107 107 <br /> 108 <form action=" sampleposteddata.php" method="post" target="_blank">108 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 109 109 <script type="text/javascript"> 110 110 <!-- 111 111 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample04.html
65 65 </tr> 66 66 </table> 67 67 <br /> 68 <form action=" sampleposteddata.php" method="post" target="_blank">68 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 69 69 <script type="text/javascript"> 70 70 <!-- 71 71 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample05.html
71 71 </tr> 72 72 </table> 73 73 <br /> 74 <form action=" sampleposteddata.php" method="post" target="_blank">74 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 75 75 <script type="text/javascript"> 76 76 <!-- 77 77 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample06.html
45 45 </ul> 46 46 </div> 47 47 <hr /> 48 <form action=" sampleposteddata.php" method="post" target="_blank">48 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 49 49 <script type="text/javascript"> 50 50 <!-- 51 51 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample07.html
37 37 to </HTML>). 38 38 </div> 39 39 <hr /> 40 <form action=" sampleposteddata.php" method="post" target="_blank">40 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 41 41 <script type="text/javascript"> 42 42 <!-- 43 43 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample08.html
148 148 at runtime. 149 149 </div> 150 150 <hr /> 151 <form action=" sampleposteddata.php" method="post" target="_blank">151 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 152 152 <script type="text/javascript"> 153 153 <!-- 154 154 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample09.html
57 57 in the JavaScript API. 58 58 </div> 59 59 <hr /> 60 <form action=" sampleposteddata.php" method="post" target="_blank">60 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 61 61 Normal text field:<br /> 62 62 <input name="NormaText" value="Plain Text" /> 63 63 <br /> -
_samples/html/sample10.html
39 39 <hr /> 40 40 <div id="xToolbar"></div> 41 41 <hr /> 42 <form action=" sampleposteddata.php" method="post" target="_blank">42 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 43 43 Normal text field:<br /> 44 44 <input name="NormaText" value="Plain Text" /> 45 45 <br /> -
_samples/html/sample11_frame.html
29 29 <script type="text/javascript" src="../../fckeditor.js"></script> 30 30 </head> 31 31 <body> 32 <form action=" sampleposteddata.php" method="post" target="_blank">32 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 33 33 Normal text field:<br /> 34 34 <input name="NormaText" value="Plain Text" /> 35 35 <br /> -
_samples/html/sample12.html
76 76 </tr> 77 77 </table> 78 78 <br /> 79 <form action=" sampleposteddata.php" method="post" target="_blank">79 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 80 80 <script type="text/javascript"> 81 81 <!-- 82 82 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sample13.html
125 125 operations so it will work even if the internal implementation changes. 126 126 </div> 127 127 <hr /> 128 <form action=" sampleposteddata.php" method="post" target="_blank" onsubmit="PrepareSave();">128 <form action="../php/sampleposteddata.php" method="post" target="_blank" onsubmit="PrepareSave();"> 129 129 <div id="Textarea"> 130 130 <input type="button" value="Switch to FCKeditor" onclick="Toggle()" /> 131 131 <br /> -
_samples/html/sample14.html
39 39 or the "style" attribute, are avoided. 40 40 </div> 41 41 <hr /> 42 <form action=" sampleposteddata.php" method="post" target="_blank">42 <form action="../php/sampleposteddata.php" method="post" target="_blank"> 43 43 <script type="text/javascript"> 44 44 <!-- 45 45 // Automatically calculates the editor base path based on the _samples directory. -
_samples/html/sampleposteddata.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">2 <!--3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net4 * Copyright (C) 2003-2008 Frederico Caldeira Knabben5 *6 * == BEGIN LICENSE ==7 *8 * Licensed under the terms of any of the following licenses at your9 * choice:10 *11 * - GNU General Public License Version 2 or later (the "GPL")12 * http://www.gnu.org/licenses/gpl.html13 *14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")15 * http://www.gnu.org/licenses/lgpl.html16 *17 * - Mozilla Public License Version 1.1 or later (the "MPL")18 * http://www.mozilla.org/MPL/MPL-1.1.html19 *20 * == END LICENSE ==21 *22 * This page lists the data posted by a form. It uses the URL (GET data),23 * so it's limited to 2KB of data.24 -->25 <html xmlns="http://www.w3.org/1999/xhtml">26 <head>27 <title>FCKeditor - Samples - Posted Data</title>28 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />29 <meta name="robots" content="noindex, nofollow" />30 <link href="../sample.css" rel="stylesheet" type="text/css" />31 </head>32 <body>33 <h1>34 FCKeditor - Samples - Posted Data35 </h1>36 <div>37 This page lists all data posted by the form. It uses the "QueryString" to search38 for data submitted using the "GET" method, so it is limited to 2KB.39 </div>40 <hr />41 <table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">42 <tr style="font-weight: bold; color: #dddddd; background-color: #999999">43 <td style="white-space: nowrap;">44 Field</td>45 <td>46 Value</td>47 </tr>48 <script type="text/javascript">49 <!--50 51 function HTMLEncode( text )52 {53 text = text.replace(/&/g, "&") ;54 text = text.replace(/"/g, """) ;55 text = text.replace(/</g, "<") ;56 text = text.replace(/>/g, ">") ;57 text = text.replace(/'/g, "'") ;58 59 return text ;60 }61 62 var aParams = document.location.search.substr(1).split('&') ;63 64 for ( i = 0 ; i < aParams.length ; i++ )65 {66 var aParam = aParams[i].split('=') ;67 var sParamName = aParam[0] ;68 var sParamValue = aParam[1] ;69 70 document.write( '<tr>' ) ;71 document.write( '<td valign="top" style="white-space: nowrap;">' + sParamName + '</td>' ) ;72 document.write( '<td style="width: 100%;"><pre>' + HTMLEncode( decodeURIComponent( sParamValue.replace( /\+/g, ' ' ) ) ) + '</pre></td>' ) ;73 document.write( '</tr>' ) ;74 }75 76 //-->77 </script>78 </table>79 </body>80 </html> -
_samples/html/sampleposteddata.php
1 <?php2 /*3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net4 * Copyright (C) 2003-2008 Frederico Caldeira Knabben5 *6 * == BEGIN LICENSE ==7 *8 * Licensed under the terms of any of the following licenses at your9 * choice:10 *11 * - GNU General Public License Version 2 or later (the "GPL")12 * http://www.gnu.org/licenses/gpl.html13 *14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")15 * http://www.gnu.org/licenses/lgpl.html16 *17 * - Mozilla Public License Version 1.1 or later (the "MPL")18 * http://www.mozilla.org/MPL/MPL-1.1.html19 *20 * == END LICENSE ==21 *22 * This page lists the data posted by a form.23 */24 ?>25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">26 <html>27 <head>28 <title>FCKeditor - Samples - Posted Data</title>29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">30 <meta name="robots" content="noindex, nofollow">31 <link href="../sample.css" rel="stylesheet" type="text/css" />32 </head>33 <body>34 <h1>FCKeditor - Samples - Posted Data</h1>35 This page lists all data posted by the form.36 <hr>37 <table width="100%" border="1" cellspacing="0" bordercolor="#999999">38 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">39 <td nowrap>Field Name </td>40 <td>Value</td>41 </tr>42 <?php43 44 if ( isset( $_POST ) )45 $postArray = &$_POST ; // 4.1.0 or later, use $_POST46 else47 $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS48 49 foreach ( $postArray as $sForm => $value )50 {51 if ( get_magic_quotes_gpc() )52 $postedValue = htmlspecialchars( stripslashes( $value ) ) ;53 else54 $postedValue = htmlspecialchars( $value ) ;55 56 ?>57 <tr>58 <td valign="top" nowrap><b><?=$sForm?></b></td>59 <td width="100%" style="white-space:pre"><?=$postedValue?></td>60 </tr>61 <?php62 }63 ?>64 </table>65 </body>66 </html>