1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\r
3 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
4 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
6 <html xmlns="http://www.w3.org/1999/xhtml">
\r
8 <title>Shared toolbars - CKEditor Sample</title>
\r
9 <meta content="text/html; charset=utf-8" http-equiv="content-type" />
\r
10 <script type="text/javascript" src="../ckeditor.js"></script>
\r
11 <script src="sample.js" type="text/javascript"></script>
\r
12 <link href="sample.css" rel="stylesheet" type="text/css" />
\r
13 <style id="styles" type="text/css">
\r
19 border: solid 1px #555;
\r
30 <!-- This <div> holds alert messages to be display in the sample page. -->
\r
34 <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
\r
35 support, like yours, you should still see the contents (HTML data) and you should
\r
36 be able to edit it normally, without a rich editor interface.
\r
42 <form action="sample_posteddata.php" id="editorsForm" method="post">
\r
44 <label for="editor1">
\r
45 Editor 1 (uses the shared toolbar and element path):</label><br />
\r
46 <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>
\r
49 <label for="editor2">
\r
50 Editor 2 (uses the shared toolbar and element path):</label><br />
\r
51 <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>
\r
54 <label for="editor3">
\r
55 Editor 3 (uses the shared toolbar only):</label><br />
\r
56 <textarea cols="80" id="editor3" name="editor3" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
\r
59 <label for="editor4">
\r
60 Editor 4 (no shared spaces):</label><br />
\r
61 <textarea cols="80" id="editor4" name="editor4" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
\r
64 <input type="submit" value="Submit" />
\r
67 <div id="bottomSpace">
\r
72 CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
\r
75 Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
\r
76 Knabben. All rights reserved.
\r
79 <script type="text/javascript">
\r
82 // Create all editor instances at the end of the page, so we are sure
\r
83 // that the "bottomSpace" div is available in the DOM (IE issue).
\r
85 CKEDITOR.replace( 'editor1',
\r
90 bottom : 'bottomSpace'
\r
93 // Removes the maximize plugin as it's not usable
\r
94 // in a shared toolbar.
\r
95 // Removes the resizer as it's not usable in a
\r
96 // shared elements path.
\r
97 removePlugins : 'maximize,resize'
\r
100 CKEDITOR.replace( 'editor2',
\r
105 bottom : 'bottomSpace'
\r
108 // Removes the maximize plugin as it's not usable
\r
109 // in a shared toolbar.
\r
110 // Removes the resizer as it's not usable in a
\r
111 // shared elements path.
\r
112 removePlugins : 'maximize,resize'
\r
115 CKEDITOR.replace( 'editor3',
\r
122 // Removes the maximize plugin as it's not usable
\r
123 // in a shared toolbar.
\r
124 removePlugins : 'maximize'
\r
127 CKEDITOR.replace( 'editor4' );
\r