--- /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">\r
+\r
+function FCKeditor_OnComplete( editorInstance )\r
+{\r
+ editorInstance.Events.AttachEvent( 'OnBlur' , FCKeditor_OnBlur ) ;\r
+ editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;\r
+}\r
+\r
+function FCKeditor_OnBlur( editorInstance )\r
+{\r
+ editorInstance.ToolbarSet.Collapse() ;\r
+}\r
+\r
+function FCKeditor_OnFocus( editorInstance )\r
+{\r
+ editorInstance.ToolbarSet.Expand() ;\r
+}\r
+\r
+ </script>\r
+</head>\r
+<body>\r
+ <h1>\r
+ FCKeditor - JavaScript - Sample 9</h1>\r
+ <div>\r
+ This sample shows FCKeditor in a more complex form with two different instances.<br />\r
+ It also shows and interesting usage of the "OnFocus" and "OnBlur" events available\r
+ in the JavaScript API.\r
+ </div>\r
+ <hr />\r
+ <form action="../php/sampleposteddata.php" method="post" target="_blank">\r
+ Normal text field:<br />\r
+ <input name="NormaText" value="Plain Text" />\r
+ <br />\r
+ <br />\r
+ FCKeditor with Basic toolbar:\r
+ <script type="text/javascript">\r
+<!--\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( 'FCKeditor_Basic' ) ;\r
+\r
+oFCKeditor.Config['ToolbarStartExpanded'] = false ;\r
+\r
+oFCKeditor.BasePath = sBasePath ;\r
+oFCKeditor.ToolbarSet = 'Basic' ;\r
+oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;\r
+oFCKeditor.Create() ;\r
+//-->\r
+ </script>\r
+ <br />\r
+ FCKeditor with Default toolbar:\r
+ <script type="text/javascript">\r
+<!--\r
+oFCKeditor = new FCKeditor( 'FCKeditor_Default' ) ;\r
+\r
+oFCKeditor.Config['ToolbarStartExpanded'] = false ;\r
+\r
+oFCKeditor.BasePath = sBasePath ;\r
+oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;\r
+oFCKeditor.Create() ;\r
+//-->\r
+ </script>\r
+ <br />\r
+ <input type="submit" value="Submit" />\r
+ </form>\r
+</body>\r
+</html>\r