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 <label for="editor2"> 00037 Editor 2:</label><br/> 00038 <textarea cols="80" id="editor2" name="editor2" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> 00039 </p> 00040 <p> 00041 <input type="submit" value="Submit"/> 00042 </p> 00043 </form> 00044 </fieldset> 00045 <div id="footer"> 00046 <hr /> 00047 <p> 00048 CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a> 00049 </p> 00050 <p id="copy"> 00051 Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico 00052 Knabben. All rights reserved. 00053 </p> 00054 </div> 00055 <?php 00056 // Include CKEditor class. 00057 include("../../ckeditor.php"); 00058 // Create class instance. 00059 $CKEditor = new CKEditor(); 00060 // Path to CKEditor directory, ideally instead of relative dir, use an absolute path: 00061 // $CKEditor->basePath = '/ckeditor/' 00062 // If not set, CKEditor will try to detect the correct path. 00063 $CKEditor->basePath = '../../'; 00064 // Replace all textareas with CKEditor. 00065 $CKEditor->replaceAll(); 00066 ?> 00067 </body> 00068 </html>