sample01.cfm 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <cfsetting enablecfoutputonly="true">
  2. <!---
  3. * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  4. * Copyright (C) 2003-2009 Frederico Caldeira Knabben
  5. *
  6. * == BEGIN LICENSE ==
  7. *
  8. * Licensed under the terms of any of the following licenses at your
  9. * choice:
  10. *
  11. * - GNU General Public License Version 2 or later (the "GPL")
  12. * http://www.gnu.org/licenses/gpl.html
  13. *
  14. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15. * http://www.gnu.org/licenses/lgpl.html
  16. *
  17. * - Mozilla Public License Version 1.1 or later (the "MPL")
  18. * http://www.mozilla.org/MPL/MPL-1.1.html
  19. *
  20. * == END LICENSE ==
  21. *
  22. * Sample page for ColdFusion.
  23. --->
  24. <cfoutput>
  25. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  26. <html>
  27. <head>
  28. <title>FCKeditor - Sample</title>
  29. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  30. <meta name="robots" content="noindex, nofollow">
  31. <link href="../sample.css" rel="stylesheet" type="text/css" />
  32. </head>
  33. <body>
  34. <h1>FCKeditor - ColdFusion - Sample 1</h1>
  35. This sample displays a normal HTML form with a FCKeditor with full features enabled.
  36. <hr>
  37. <form method="POST" action="sampleposteddata.cfm">
  38. </cfoutput>
  39. <!--- Calculate basepath for FCKeditor. It's in the folder right above _samples --->
  40. <cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )>
  41. <cfmodule
  42. template="../../fckeditor.cfm"
  43. basePath="#basePath#"
  44. instanceName="myEditor"
  45. value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
  46. width="100%"
  47. height="200"
  48. >
  49. <cfoutput>
  50. <br />
  51. <input type="submit" value="Submit">
  52. <hr />
  53. </form>
  54. </body>
  55. </html>
  56. </cfoutput>
  57. <cfsetting enablecfoutputonly="false">