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 </p> 00034 <p> 00035 <?php 00036 // Include CKEditor class. 00037 include_once "../../ckeditor.php"; 00038 // The initial value to be displayed in the editor. 00039 $initialValue = '<p>This is some <strong>sample text</strong>.</p>'; 00040 // Create class instance. 00041 $CKEditor = new CKEditor(); 00042 // Path to CKEditor directory, ideally instead of relative dir, use an absolute path: 00043 // $CKEditor->basePath = '/ckeditor/' 00044 // If not set, CKEditor will try to detect the correct path. 00045 $CKEditor->basePath = '../../'; 00046 // Create textarea element and attach CKEditor to it. 00047 $CKEditor->editor("editor1", $initialValue); 00048 ?> 00049 <input type="submit" value="Submit"/> 00050 </p> 00051 </form> 00052 </fieldset> 00053 <div id="footer"> 00054 <hr /> 00055 <p> 00056 CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a> 00057 </p> 00058 <p id="copy"> 00059 Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico 00060 Knabben. All rights reserved. 00061 </p> 00062 </div> 00063 </body> 00064 </html>