[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/libraries/ckeditor/_samples/ -> jqueryadapter.html (source)

   1  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   2  <!--
   3  Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
   4  For licensing, see LICENSE.html or http://ckeditor.com/license
   5  -->
   6  <html xmlns="http://www.w3.org/1999/xhtml">
   7  <head>
   8      <title>jQuery adapter - CKEditor Sample</title>
   9      <meta content="text/html; charset=utf-8" http-equiv="content-type" />
  10      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
  11      <script type="text/javascript" src="../ckeditor.js"></script>
  12      <script type="text/javascript" src="../adapters/jquery.js"></script>
  13      <script src="sample.js" type="text/javascript"></script>
  14      <link href="sample.css" rel="stylesheet" type="text/css" />
  15      <script type="text/javascript">
  16      //<![CDATA[

  17  
  18  $(function()
  19  {
  20      var config = {
  21          toolbar:
  22          [
  23              ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
  24              ['UIColor']
  25          ]
  26      };
  27  
  28      // Initialize the editor.

  29      // Callback function can be passed and executed after full instance creation.

  30      $('.jquery_ckeditor').ckeditor(config);
  31  });
  32  
  33      //]]>

  34      </script>
  35  </head>
  36  <body>
  37      <h1>
  38          CKEditor Sample
  39      </h1>
  40      <!-- This <div> holds alert messages to be display in the sample page. -->
  41      <div id="alerts">
  42          <noscript>
  43              <p>
  44                  <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
  45                  support, like yours, you should still see the contents (HTML data) and you should
  46                  be able to edit it normally, without a rich editor interface.
  47              </p>
  48          </noscript>
  49      </div>
  50      <!-- This <fieldset> holds the HTML that you will usually find in your
  51           pages. -->
  52      <form action="sample_posteddata.php" method="post">
  53      <p>
  54          <label for="editor1">
  55              Editor 1:</label><br />
  56          <textarea class="jquery_ckeditor" 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>
  57      </p>
  58      <p>
  59          <input type="submit" value="Submit" />
  60      </p>
  61      </form>
  62      <div id="footer">
  63          <hr />
  64          <p>
  65              CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
  66          </p>
  67          <p id="copy">
  68              Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
  69              Knabben. All rights reserved.
  70          </p>
  71      </div>
  72  </body>
  73  </html>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7