Ticket #974: index.cfm

File index.cfm, 1.2 KB (added by hoffmandirt, 17 years ago)

Coldfusion page displaying the editor in a test form.

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4        <title>FCKeditor - Sample</title>
5        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6        <meta name="robots" content="noindex, nofollow">
7        <link href="../sample.css" rel="stylesheet" type="text/css" />
8
9        <script type="text/javascript">
10                function validateForm( theForm ) {
11                        if( document.getElementById( "myEditor").value == "" ) {
12                                alert( "This field is required." );
13                                return false;
14                        }
15
16                        return true;
17                }
18        </script>
19</head>
20<body>
21
22<form method="post" action="" onSubmit="return validateForm( this );">
23<cfscript>
24        fckEditor = createObject( "component", "FckEditorExample/fckeditor/fckeditor" );
25        fckEditor.Config["CustomConfigurationsPath"] = "http://localhost/FckEditorExample/config/fckcustom.js";
26        fckEditor.instanceName  = "myEditor";
27        fckEditor.value                 = "";
28        fckEditor.basePath              = "/FckEditorExample/fckeditor/";
29        fckEditor.width                 = 805;
30        fckEditor.height                = 400;
31        fckEditor.ToolbarSet    = "NmcBasicToolbar";
32        fckEditor.create(); // create the editor.
33</cfscript>
34<br /><br />
35<input type="submit" value="Submit"/>
36</form>
37</body>
38</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy