README 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. -------------------------------------------------------------------------------
  2. dojox.editor
  3. -------------------------------------------------------------------------------
  4. Version 0.9
  5. Release date: 9/14/2009
  6. -------------------------------------------------------------------------------
  7. Project state:
  8. experimental, beta, stable
  9. -------------------------------------------------------------------------------
  10. Credits
  11. Mike Wilcox - Author
  12. Jared Jurkiewicz - Author (PrettyPrint, PageBreak, ShowBlockNodes,
  13. Preview, Save, ToolbarLineBreak, InsertEntity,
  14. NormalizeIndentOutdent, Breadcrumb, FindReplace)
  15. Dustin Machi - Technical Assistance
  16. -------------------------------------------------------------------------------
  17. Project description
  18. Space for extensions and additional plugins for dijit.Editor. The project
  19. currently contains the following plugins:
  20. dojox.editor.plugins.TablePlugins:
  21. Status: Experimental.
  22. The Table Plugins provide a mechanism for editing tables withing the
  23. dijit.Editor. This plugin is experimental and does not work correctly
  24. in all dojo supported browsers.
  25. dojox.editor.plugins.UploadImage:
  26. Status: Experimental.
  27. The UploadImage plugin makes use of the dojox upload widgets to provide
  28. a mechanism to upload images to your server for use in the editor.
  29. dojox.editor.plugins.PrettyPrint:
  30. Status: Supported (stable).
  31. The PrettyPrint plugin provides a mechanism by which the output from
  32. editor.getValue()/editor.attr("value") is nicely formatted. Optional
  33. format parameters are how many spaces to indent by (default is tab),
  34. the maximum text line length (not including indent), and what
  35. characters in text strings should be encoded to their &<enc>;
  36. representation.
  37. dojox.editor.plugins.PageBreak:
  38. Status: Supported (stable).
  39. A simple plugin that allows you to insert 'page breaks' into the doc
  40. being edited. These page break styles will then cause the document
  41. to break to another page when printed.
  42. dojox.editor.plugins.ShowBlockNodes:
  43. Status: Supported (stable).
  44. A simple plugin that allows you to toggle on and off a CSS 'view' of
  45. how the page is laid out in terms of the block nodes used for its
  46. formatting.
  47. dojox.editor.plugins.Save:
  48. Status: Supported (beta).
  49. A simple plugin that allows you to POST the content of the editor back
  50. to a URL.
  51. dojox.editor.plugins.Preview:
  52. Status: Supported (beta).
  53. A simple plugin that allows you to display the content of the editor
  54. in a new window and apply a set of styles to it so you can see how
  55. content will look with various styles applied. It is likely this
  56. plugin will still evolve a bit.
  57. dojox.editor.plugins.ToolbarLineBreak:
  58. Status: Supported (stable).
  59. An extremely simple plugin that allows you to 'linebreak' the dijit toolbar so that really long
  60. toolbars for editor (lots of plugins enabled), can be broken up into multiple rows.
  61. dojox.editor.plugins.InsertEntity:
  62. Status: Experimental (unsupported).
  63. A plugin that enables the ability to insert HTML/XML entity characters
  64. into a page. These are often called 'symbols'. The set it provides are the
  65. basic latin (8859) set and a portion of greek symbols common to mathematics.
  66. It has been marked experimental as it is likely this plugin will evolve a bit.
  67. dojox.editor.plugins.NormalizeIndentOutdent:
  68. Status: Experimental (unsupported).
  69. A plugin that normalizes the behavior of indent/outdent to use margin styles instead
  70. of <blockquote> tags. Also fixes indent/outdent of lists to work properly. This is new
  71. and has been tested, but not extensively. Therefore it is currently classed as experimental.
  72. dojox.editor.plugins.Breadcrumb:
  73. Status: Experimental (unsupported).
  74. A plugin that adds a breadcrumb toolbar to the bottom of the editor. Useful for seeing
  75. where you aren and what operations you can perform. This is new and has been tested, but not
  76. extensively. Therefore it is currently classed as experimental.
  77. dojox.editor.plugins.FindReplace:
  78. Status: Experimental (unsupported).
  79. A plugin that adds a togglable Find/Replace toolbar to the editor. Useful for searching
  80. and replacing text strings in the editor content. Only works on FF, IE, and WebKit. No Opera
  81. support. This is new and has been tested, but not extensively. Therefore it is currently
  82. classed as experimental.
  83. -------------------------------------------------------------------------------
  84. Dependencies:
  85. dijit
  86. dojox.form
  87. dojox.html.format
  88. -------------------------------------------------------------------------------
  89. Documentation
  90. The plugins directory contains extensions which work with dijit.Editor.
  91. See also:
  92. http://docs.dojocampus.org/dojox/editor/plugins/TablePlugins
  93. http://docs.dojocampus.org/dojox/editor/plugins/PrettyPrint
  94. http://docs.dojocampus.org/dojox/editor/plugins/PageBreak
  95. http://docs.dojocampus.org/dojox/editor/plugins/ShowBlockNodes
  96. http://docs.dojocampus.org/dojox/editor/plugins/Preview
  97. http://docs.dojocampus.org/dojox/editor/plugins/Save
  98. http://docs.dojocampus.org/dojox/editor/plugins/ToolbarLineBreak
  99. http://docs.dojocampus.org/dojox/editor/plugins/InsertEntity
  100. http://docs.dojocampus.org/dojox/editor/plugins/NormalizeIndentOutdent
  101. http://docs.dojocampus.org/dojox/editor/plugins/Breadcrumb
  102. http://docs.dojocampus.org/dojox/editor/plugins/FindReplace
  103. -------------------------------------------------------------------------------
  104. Plugin Installation instructions
  105. Get dojo and dijit from svn. Include the Editor and plugins in your page:
  106. dojo.require("dijit.Editor");
  107. For the TablePlugins:
  108. dojo.require("dojox.editor.plugins.TablePlugins");
  109. and CSS:
  110. <link href="[path]dojox/editor/plugins/resources/editorPlugins.css" type="text/css" rel="stylesheet" />
  111. For the UploadImage plugin:
  112. dojo.require("dojox.editor.plugins.UploadImage");
  113. and CSS:
  114. <link href="[path]dojox/editor/plugins/resources/editorPlugins.css" type="text/css" rel="stylesheet" />
  115. <link href="[path]dojox/form/resources/FileInput.css" type="text/css" rel="stylesheet" />
  116. For the PrettyPrint plugin:
  117. dojo.require("dojox.editor.plugins.PrettyPrint");
  118. and CSS:
  119. No CSS required.
  120. For the PageBreak plugin:
  121. dojo.require("dojox.editor.plugins.PageBreak");
  122. and CSS:
  123. <link href="[path]dojox/editor/plugins/resources/css/PageBreak.css" type="text/css" rel="stylesheet" />
  124. For the ShowBlockNodes plugin:
  125. dojo.require("dojox.editor.plugins.ShowBockNodes");
  126. and CSS:
  127. <link href="[path]dojox/editor/plugins/resources/css/ShowBlockNodes.css" type="text/css" rel="stylesheet" />
  128. For the Preview plugin:
  129. dojo.require("dojox.editor.plugins.Preview");
  130. and CSS:
  131. <link href="[path]dojox/editor/plugins/resources/css/Preview.css" type="text/css" rel="stylesheet" />
  132. For the Save plugin:
  133. dojo.require("dojox.editor.plugins.Save");
  134. and CSS:
  135. <link href="[path]dojox/editor/plugins/resources/css/Save.css" type="text/css" rel="stylesheet" />
  136. For the ToolbarLineBreak plugin:
  137. dojo.require("dojox.editor.plugins.ToolbarLineBreak");
  138. and CSS:
  139. No CSS required.
  140. For the InsertEntity plugin:
  141. dojo.require("dojox.editor.plugins.InsertEntity");
  142. and CSS:
  143. <link href="[path]dojox/editor/plugins/resources/css/InsertEntity.css" type="text/css" rel="stylesheet" />
  144. For the NormalizeIndentOutdent plugin:
  145. dojo.require("dojox.editor.plugins.NormalizeIndentOutdent");
  146. and CSS:
  147. No CSS required.
  148. For the Breadcrumb plugin:
  149. dojo.require("dojox.editor.plugins.Breadcrumb");
  150. and CSS:
  151. <link href="[path]dojox/editor/plugins/resources/css/Breadcrumb.css" type="text/css" rel="stylesheet" />
  152. For the FindReplace plugin:
  153. dojo.require("dojox.editor.plugins.FindReplace");
  154. and CSS:
  155. <link href="[path]dojox/editor/plugins/resources/css/FindReplace.css" type="text/css" rel="stylesheet" />
  156. See tests for examples:
  157. dojox/editor/tests/editorTablePlugs.html
  158. dojox/editor/tests/editorUploadPlug.html
  159. dojox/editor/tests/editorPrettyPrint.html
  160. dojox/editor/tests/editorPageBreak.html
  161. dojox/editor/tests/editorShowBlockNodes.html
  162. dojox/editor/tests/editorPreview.html
  163. dojox/editor/tests/editorSave.html
  164. dojox/editor/tests/editorToolbarLineBreak.html
  165. dojox/editor/tests/editorInsertEntity.html
  166. dojox/editor/tests/editorNormalizeIndentOutdent.html
  167. dojox/editor/tests/editorBreadcrumb.html
  168. dojox/editor/tests/editorFindReplace.html