source: trunk/phpgwapi/js/ckeditor/_samples/php/replaceall.php @ 2862

Revision 2862, 2.5 KB checked in by rodsouza, 14 years ago (diff)

Ticket #663 - Atualizando e centralizando o CKEditor (v. 3.2.1)

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html xmlns="http://www.w3.org/1999/xhtml">
7<head>
8        <title>Sample - CKEditor</title>
9        <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
10        <link href="../sample.css" rel="stylesheet" type="text/css"/>
11</head>
12<body>
13        <h1>
14                CKEditor Sample
15        </h1>
16        <!-- This <div> holds alert messages to be display in the sample page. -->
17        <div id="alerts">
18                <noscript>
19                        <p>
20                                <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
21                                support, like yours, you should still see the contents (HTML data) and you should
22                                be able to edit it normally, without a rich editor interface.
23                        </p>
24                </noscript>
25        </div>
26        <!-- This <fieldset> holds the HTML that you will usually find in your pages. -->
27        <fieldset title="Output">
28                <legend>Output</legend>
29                <form action="../sample_posteddata.php" method="post">
30                        <p>
31                                <label for="editor1">
32                                        Editor 1:</label><br/>
33                                <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
34                        </p>
35                        <p>
36                                <label for="editor2">
37                                        Editor 2:</label><br/>
38                                <textarea cols="80" id="editor2" name="editor2" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
39                        </p>
40                        <p>
41                                <input type="submit" value="Submit"/>
42                        </p>
43                </form>
44        </fieldset>
45        <div id="footer">
46                <hr />
47                <p>
48                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
49                </p>
50                <p id="copy">
51                        Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
52                        Knabben. All rights reserved.
53                </p>
54        </div>
55        <?php
56        // Include CKEditor class.
57        include("../../ckeditor.php");
58        // Create class instance.
59        $CKEditor = new CKEditor();
60        // Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
61        //   $CKEditor->basePath = '/ckeditor/'
62        // If not set, CKEditor will try to detect the correct path.
63        $CKEditor->basePath = '../../';
64        // Replace all textareas with CKEditor.
65        $CKEditor->replaceAll();
66        ?>
67</body>
68</html>
Note: See TracBrowser for help on using the repository browser.