source: companies/celepar/news_admin/templates/celepar/fckeditor/to_delete/_samples/html/sample04.html @ 763

Revision 763, 2.8 KB checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 *              http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
10 *              http://www.fckeditor.net/
11 *
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: sample04.html
15 *      Sample page.
16 *
17 * File Authors:
18 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
19-->
20<html xmlns="http://www.w3.org/1999/xhtml">
21<head>
22        <title>FCKeditor - Sample</title>
23        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24        <meta name="robots" content="noindex, nofollow" />
25        <link href="../sample.css" rel="stylesheet" type="text/css" />
26        <script type="text/javascript" src="../../fckeditor.js"></script>
27        <script type="text/javascript">
28
29function FCKeditor_OnComplete( editorInstance )
30{
31        var oCombo = document.getElementById( 'cmbToolbars' ) ;
32        oCombo.value = editorInstance.ToolbarSet.Name ;
33        oCombo.style.visibility = '' ;
34}
35
36function ChangeLanguage( languageCode )
37{
38        window.location.href = window.location.pathname + "?" + languageCode ;
39}
40
41        </script>
42</head>
43<body>
44        <h1>
45                FCKeditor - JavaScript - Sample 4</h1>
46        <div>
47                This sample shows how to change the editor toolbar.
48        </div>
49        <hr />
50        <table cellpadding="0" cellspacing="0" border="0">
51                <tr>
52                        <td>
53                                Select the toolbar to load:&nbsp;
54                        </td>
55                        <td>
56                                <select id="cmbToolbars" onchange="ChangeLanguage(this.value);" style="visibility: hidden">
57                                        <option value="Default" selected="selected">Default</option>
58                                        <option value="Basic">Basic</option>
59                                </select>
60                        </td>
61                </tr>
62        </table>
63        <br />
64        <form action="sampleposteddata.asp" method="post" target="_blank">
65                <script type="text/javascript">
66<!--
67// Automatically calculates the editor base path based on the _samples directory.
68// This is usefull only for these samples. A real application should use something like this:
69// oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.
70var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
71
72// Get the toolbar from the URL.
73var sToolbar ;
74if ( document.location.search.length > 1 )
75        sToolbar = document.location.search.substr(1) ;
76
77var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
78oFCKeditor.BasePath     = sBasePath ;
79
80if ( sToolbar != null )
81        oFCKeditor.ToolbarSet = sToolbar ;
82
83oFCKeditor.Value        = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
84oFCKeditor.Create() ;
85//-->
86                </script>
87                <br />
88                <input type="submit" value="Submit" />
89        </form>
90</body>
91</html>
Note: See TracBrowser for help on using the repository browser.