PageRenderTime 59ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/4.6/mambots/editors/mostlyce/jscripts/tiny_mce/index.html

http://miacms.googlecode.com/
HTML | 77 lines | 68 code | 7 blank | 2 comment | 0 complexity | a1db13348219775624950ff555a23cb7 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, LGPL-2.0
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head>
  3. <title>TinyMCPUK example</title>
  4. <!-- TinyMCE -->
  5. <script language="javascript" type="text/javascript" src="tiny_mce.js"></script>
  6. <script language="javascript" type="text/javascript">
  7. tinyMCE.init({
  8. mode : "textareas",
  9. theme : "advanced",
  10. plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,paste,directionality,fullscreen,noneditable,contextmenu",
  11. theme_advanced_buttons1_add_before : "save,newdocument,separator",
  12. theme_advanced_buttons1_add : "fontselect,fontsizeselect",
  13. theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor,liststyle",
  14. theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
  15. theme_advanced_buttons3_add_before : "tablecontrols,separator",
  16. theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
  17. theme_advanced_toolbar_location : "top",
  18. theme_advanced_toolbar_align : "left",
  19. theme_advanced_statusbar_location : "bottom",
  20. plugin_insertdate_dateFormat : "%Y-%m-%d",
  21. plugin_insertdate_timeFormat : "%H:%M:%S",
  22. extended_valid_elements : "hr[class|width|size|noshade]",
  23. file_browser_callback : "fileBrowserCallBack",
  24. paste_use_dialog : false,
  25. theme_advanced_resizing : true,
  26. theme_advanced_resize_horizontal : false,
  27. theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
  28. apply_source_formatting : true
  29. });
  30. function fileBrowserCallBack(field_name, url, type, win) {
  31. var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php";
  32. var enableAutoTypeSelection = true;
  33. var cType;
  34. tinymcpuk_field = field_name;
  35. tinymcpuk = win;
  36. switch (type) {
  37. case "image":
  38. cType = "Image";
  39. break;
  40. case "flash":
  41. cType = "Flash";
  42. break;
  43. case "file":
  44. cType = "File";
  45. break;
  46. }
  47. if (enableAutoTypeSelection && cType) {
  48. connector += "&Type=" + cType;
  49. }
  50. window.open(connector, "tinymcpuk", "modal,width=600,height=400");
  51. }
  52. </script>
  53. <!-- /TinyMCE -->
  54. </head>
  55. <body>
  56. <form method="post" action="http://tinymce.moxiecode.com/dump.php?example=true">
  57. <h3>TinyMCPUK example</h3>
  58. <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 100%">
  59. &lt;span class=&quot;example1&quot;&gt;Test header 1&lt;/span&gt;&lt;br /&gt;
  60. &lt;span class=&quot;example2&quot;&gt;Test header 2&lt;/span&gt;&lt;br /&gt;
  61. &lt;span class=&quot;example3&quot;&gt;Test header 3&lt;/span&gt;&lt;br /&gt;
  62. Some &lt;b&gt;element&lt;/b&gt;, this is to be editor 1. &lt;br /&gt; This editor instance has a 100% width to it.
  63. &lt;p&gt;Some paragraph. &lt;a href=&quot;http://www.sourceforge.net&quot;&gt;Some link&lt;/a&gt;&lt;/p&gt;
  64. </textarea>
  65. <br />
  66. <input type="submit" name="save" value="Submit" />
  67. <input type="reset" name="reset" value="Reset" />
  68. </form>
  69. </body>
  70. </html>