+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<!--\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- * - GNU General Public License Version 2 or later (the "GPL")\r
- * http://www.gnu.org/licenses/gpl.html\r
- *\r
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- * http://www.gnu.org/licenses/lgpl.html\r
- *\r
- * - Mozilla Public License Version 1.1 or later (the "MPL")\r
- * http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * Sample page.\r
--->\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
- <title>FCKeditor - Sample</title>\r
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
- <meta name="robots" content="noindex, nofollow" />\r
- <link href="../sample.css" rel="stylesheet" type="text/css" />\r
- <script type="text/javascript" src="../../fckeditor.js"></script>\r
- <script type="text/javascript" src="assets/swfobject.js"></script>\r
- <script type="text/javascript">\r
-function sendToFlash()\r
-{\r
- var html = FCKeditorAPI.GetInstance( 'FCKeditor1' ).GetData() ;\r
- var flash = document.getElementById( 'fckFlash' ) ;\r
- flash.setData( html ) ;\r
-}\r
-\r
-function init()\r
-{\r
- var so = new SWFObject("assets/sample16.swf", "fckFlash", "550", "400", "8", "#ffffff") ;\r
- so.addParam("wmode", "transparent");\r
- so.write("fckFlashContainer") ;\r
-}\r
- </script>\r
-</head>\r
-<body onload="init();">\r
- <h1>\r
- FCKeditor - JavaScript - Sample 16\r
- </h1>\r
- <div>\r
- This sample shows FCKeditor configured to produce HTML code that can be used with\r
- <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808#TextArea_Component">\r
- Flash</a>.\r
- </div>\r
- <hr />\r
- <table width="100%" cellpadding="0" cellspacing="0">\r
- <tr>\r
- <td style="width: 100%">\r
- <script type="text/javascript">\r
-<!--\r
-if ( document.location.protocol == 'file:' )\r
- alert( 'Warning: This samples does not work when loaded from local filesystem due to security restrictions implemented in Flash.'\r
- + '\n\nPlease load the sample from a web server instead.') ;\r
-// Automatically calculates the editor base path based on the _samples directory.\r
-// This is usefull only for these samples. A real application should use something like this:\r
-// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.\r
-var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;\r
-\r
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;\r
-oFCKeditor.BasePath = sBasePath ;\r
-\r
-// Instruct the editor to load our configurations from a custom file, leaving the\r
-// original configuration file untouched.\r
-oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/assets/sample16.config.js' ;\r
-oFCKeditor.Height = 400 ;\r
-oFCKeditor.Width = '100%' ;\r
-oFCKeditor.ToolbarSet = 'Flash' ;\r
-oFCKeditor.Value = '<p>This is some <b>sample text<\/b>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;\r
-oFCKeditor.Create() ;\r
-//-->\r
- </script>\r
- <input type="button" value="Send to Flash" onclick="sendToFlash();" />\r
- </td>\r
- <td valign="top" style="padding-left: 15px" id="fckFlashContainer">\r
- </td>\r
- </tr>\r
- </table>\r
-</body>\r
-</html>\r