Ticket #6521: 6521.patch

File 6521.patch, 3.6 KB (added by Alfonso Martínez de Lizarrondo, 13 years ago)

Sample file.

  • _samples/index.html

     
    4242                <li><a href="output_xhtml.html">Output XHTML</a></li>
    4343                <li><a href="output_html.html">Output HTML</a></li>
    4444                <li><a href="output_for_flash.html">Output for Flash</a></li>
     45        </ul>
     46        <h2>
     47                Extra plugins
     48        </h2>
     49        <ul>
    4550                <li><a href="autogrow.html">AutoGrow plugin</a></li>
     51                <li><a href="tableresize.html">TableResize plugin</a></li>
    4652        </ul>
    4753        <div id="footer">
    4854                <hr />
  • _samples/tableresize.html

     
     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>TableResize Plugin - CKEditor Sample</title>
     9        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
     10        <!-- CKReleaser %REMOVE_LINE%
     11        <script type="text/javascript" src="../ckeditor.js"></script>
     12        CKReleaser %REMOVE_START% -->
     13        <script type="text/javascript" src="../ckeditor_source.js"></script>
     14        <!-- CKReleaser %REMOVE_END% -->
     15        <script src="sample.js" type="text/javascript"></script>
     16        <link href="sample.css" rel="stylesheet" type="text/css" />
     17</head>
     18<body>
     19        <h1>
     20                CKEditor Sample
     21        </h1>
     22        <!-- This <div> holds alert messages to be display in the sample page. -->
     23        <div id="alerts">
     24                <noscript>
     25                        <p>
     26                                <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
     27                                support, like yours, you should still see the contents (HTML data) and you should
     28                                be able to edit it normally, without a rich editor interface.
     29                        </p>
     30                </noscript>
     31        </div>
     32        <form action="sample_posteddata.php" method="post">
     33                <p>
     34                        In this sample the TableResize plugin is available. It allows easy resizing of table columns.</p>
     35                <p>
     36                        <label for="editor1">
     37                                Sample editor:</label><br />
     38                        <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;
     39&lt;table style="width: 500px;"&gt;
     40        &lt;caption&gt;
     41                A sample table&lt;/caption&gt;
     42        &lt;tbody&gt;
     43                &lt;tr&gt;
     44                        &lt;td&gt;
     45                                Cell1&lt;/td&gt;
     46                        &lt;td&gt;
     47                                Cell2&lt;/td&gt;
     48                &lt;/tr&gt;
     49                &lt;tr&gt;
     50                        &lt;td&gt;
     51                                You can resize these columns&lt;/td&gt;
     52                        &lt;td&gt;
     53                                Move the mouse over them&lt;/td&gt;
     54                &lt;/tr&gt;
     55                &lt;tr&gt;
     56                        &lt;td&gt;
     57                                And drag so they are placed&lt;/td&gt;
     58                        &lt;td&gt;
     59                                Like you want&lt;/td&gt;
     60                &lt;/tr&gt;
     61        &lt;/tbody&gt;
     62&lt;/table&gt;
     63
     64
     65                        </textarea>
     66                        <script type="text/javascript">
     67                        //<![CDATA[
     68
     69                                CKEDITOR.replace( 'editor1', {
     70                                        extraPlugins : 'tableresize'
     71                                });
     72
     73                        //]]>
     74                        </script>
     75                </p>
     76                <p>
     77                        <input type="submit" value="Submit" />
     78                </p>
     79        </form>
     80        <div id="footer">
     81                <hr />
     82                <p>
     83                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
     84                </p>
     85                <p id="copy">
     86                        Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
     87                        Knabben. All rights reserved.
     88                </p>
     89        </div>
     90</body>
     91</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy