- <!-- This <fieldset> holds the HTML that you will usually find in your pages. -->\r
- <fieldset title="Output">\r
- <legend>Output</legend>\r
- <form action="../sample_posteddata.php" method="post">\r
- <p>\r
- <label for="editor1">\r
- Editor 1:</label><br/>\r
- </p>\r
- <p>\r
- <?php\r
- // Include CKEditor class.\r
- include_once "../../ckeditor.php";\r
- // The initial value to be displayed in the editor.\r
- $initialValue = '<p>This is some <strong>sample text</strong>.</p>';\r
- // Create class instance.\r
- $CKEditor = new CKEditor();\r
- // Path to CKEditor directory, ideally instead of relative dir, use an absolute path:\r
- // $CKEditor->basePath = '/ckeditor/'\r
- // If not set, CKEditor will try to detect the correct path.\r
- $CKEditor->basePath = '../../';\r
- // Create textarea element and attach CKEditor to it.\r
- $CKEditor->editor("editor1", $initialValue);\r
- ?>\r
- <input type="submit" value="Submit"/>\r
- </p>\r
- </form>\r
- </fieldset>\r
+ <!-- This <fieldset> holds the HTML code that you will usually find in your pages. -->\r
+ <form action="../sample_posteddata.php" method="post">\r
+ <p>\r
+ <label for="editor1">\r
+ Editor 1:</label>\r
+ </p>\r
+ <p>\r
+ <?php\r
+ // Include the CKEditor class.\r
+ include_once "../../ckeditor.php";\r
+ // The initial value to be displayed in the editor.\r
+ $initialValue = '<p>This is some <strong>sample text</strong>.</p>';\r
+ // Create a class instance.\r
+ $CKEditor = new CKEditor();\r
+ // Path to the CKEditor directory, ideally use an absolute path instead of a relative dir.\r
+ // $CKEditor->basePath = '/ckeditor/'\r
+ // If not set, CKEditor will try to detect the correct path.\r
+ $CKEditor->basePath = '../../';\r
+ // Create a textarea element and attach CKEditor to it.\r
+ $CKEditor->editor("editor1", $initialValue);\r
+ ?>\r
+ <input type="submit" value="Submit"/>\r
+ </p>\r
+ </form>\r