Xataface CKeditor Module 0.3
CKeditor Widget for Xataface
|
00001 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 00002 <!-- 00003 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 00004 For licensing, see LICENSE.html or http://ckeditor.com/license 00005 --> 00006 <html xmlns="http://www.w3.org/1999/xhtml"> 00007 <head> 00008 <title>Sample - CKEditor</title> 00009 <meta content="text/html; charset=utf-8" http-equiv="content-type"/> 00010 <link href="../sample.css" rel="stylesheet" type="text/css"/> 00011 </head> 00012 <body> 00013 <h1> 00014 CKEditor Sample 00015 </h1> 00016 <!-- This <div> holds alert messages to be display in the sample page. --> 00017 <div id="alerts"> 00018 <noscript> 00019 <p> 00020 <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript 00021 support, like yours, you should still see the contents (HTML data) and you should 00022 be able to edit it normally, without a rich editor interface. 00023 </p> 00024 </noscript> 00025 </div> 00026 <!-- This <fieldset> holds the HTML that you will usually find in your pages. --> 00027 <fieldset title="Output"> 00028 <legend>Output</legend> 00029 <form action="../sample_posteddata.php" method="post"> 00030 <p> 00031 <label for="editor1"> 00032 Editor 1:</label><br/> 00033 <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> 00034 </p> 00035 <p> 00036 <input type="submit" value="Submit"/> 00037 </p> 00038 </form> 00039 </fieldset> 00040 <div id="footer"> 00041 <hr /> 00042 <p> 00043 CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a> 00044 </p> 00045 <p id="copy"> 00046 Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico 00047 Knabben. All rights reserved. 00048 </p> 00049 </div> 00050 <?php 00051 // Include CKEditor class. 00052 include_once "../../ckeditor.php"; 00053 // Create class instance. 00054 $CKEditor = new CKEditor(); 00055 // Path to CKEditor directory, ideally instead of relative dir, use an absolute path: 00056 // $CKEditor->basePath = '/ckeditor/' 00057 // If not set, CKEditor will try to detect the correct path. 00058 $CKEditor->basePath = '../../'; 00059 // Replace textarea with id (or name) "editor1". 00060 $CKEditor->replace("editor1"); 00061 ?> 00062 </body> 00063 </html>