- Timestamp:
- 2008-07-22 12:21:09 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/features/new_samples/_samples/html/sample16.html
r2257 r2260 34 34 { 35 35 var html = FCKeditorAPI.GetInstance( 'FCKeditor1' ).GetData() ; 36 var flash = document.getElementById( 'fckFlash' ); 37 flash.setData( html ); 36 var flash = document.getElementById( 'fckFlash' ) ; 37 flash.setData( html ) ; 38 } 39 40 function init() 41 { 42 var so = new SWFObject("sample16.swf", "fckFlash", "550", "400", "8", "#ffffff") ; 43 so.write("fckFlashContainer") ; 38 44 } 39 45 </script> 40 46 </head> 41 <body >47 <body onload="init();"> 42 48 <h1> 43 49 FCKeditor - JavaScript - Sample 16 … … 49 55 </div> 50 56 <hr /> 51 < form target="_blank" action="">52 <t able width="100%" cellpadding="0" cellspacing="0">53 <t r>54 < td style="width: 100%">55 <script type="text/javascript"> 57 <table width="100%" cellpadding="0" cellspacing="0"> 58 <tr> 59 <td style="width: 100%"> 60 <script type="text/javascript"> 61 <!-- 56 62 if ( document.location.protocol == 'file:' ) 57 63 alert( 'Warning: This samples does not work when loaded from local filesystem due to security restrictions implemented in Flash.' 58 64 + '\n\nPlease load the sample from a web server instead.') ; 59 <!--60 65 // Automatically calculates the editor base path based on the _samples directory. 61 66 // This is usefull only for these samples. A real application should use something like this: … … 75 80 oFCKeditor.Create() ; 76 81 //--> 77 </script> 78 <input type="button" value="Send to Flash" onclick="sendToFlash();" /> 79 </td> 80 <td id="fckFlashContainer" valign="top" style="padding-left: 15px"> 81 </td> 82 </tr> 83 </table> 84 </form> 85 <script type="text/javascript"> 86 var so = new SWFObject("sample16.swf", "fckFlash", "550", "400", "8", "#ffffff"); 87 so.write("fckFlashContainer"); 88 </script> 82 </script> 83 <input type="button" value="Send to Flash" onclick="sendToFlash();" /> 84 </td> 85 <td valign="top" style="padding-left: 15px" id="fckFlashContainer"> 86 </td> 87 </tr> 88 </table> 89 89 </body> 90 90 </html>