README 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. CollapsibleToolbar, Blockquote, PasteFromWord, InsertAnchor,
  16. TextColor, NormalizeStyle, StatusBar)
  17. Dustin Machi - Technical Assistance
  18. David Schwartz and Gu Yi He (IBM) - Contributed enhancements to the
  19. look and feel of FindReplace, as well as behavioral
  20. improvements.
  21. Eldon (IBM, CCLA) - LocalImage, AutoUrlLink, TablePluginsColorCell -
  22. dojox.widget.ColorPicker, ResizeTableColumn, AutoSave, SpellCheck
  23. -------------------------------------------------------------------------------
  24. Project description
  25. Space for extensions and additional plugins for dijit.Editor. The project
  26. currently contains the following plugins:
  27. dojox.editor.plugins.TablePlugins:
  28. Status: Experimental.
  29. The Table Plugins provide a mechanism for editing tables withing the
  30. dijit.Editor. This plugin is experimental and does not work correctly
  31. in all dojo supported browsers.
  32. dojox.editor.plugins.UploadImage:
  33. Status: Experimental.
  34. The UploadImage plugin makes use of the dojox upload widgets to provide
  35. a mechanism to upload images to your server for use in the editor.
  36. dojox.editor.plugins.PrettyPrint:
  37. Status: Supported (stable).
  38. The PrettyPrint plugin provides a mechanism by which the output from
  39. editor.getValue()/editor.attr("value") is nicely formatted. Optional
  40. format parameters are how many spaces to indent by (default is tab),
  41. the maximum text line length (not including indent), and what
  42. characters in text strings should be encoded to their &<enc>;
  43. representation.
  44. dojox.editor.plugins.PageBreak:
  45. Status: Supported (stable).
  46. A simple plugin that allows you to insert 'page breaks' into the doc
  47. being edited. These page break styles will then cause the document
  48. to break to another page when printed.
  49. dojox.editor.plugins.ShowBlockNodes:
  50. Status: Supported (stable).
  51. A simple plugin that allows you to toggle on and off a CSS 'view' of
  52. how the page is laid out in terms of the block nodes used for its
  53. formatting.
  54. dojox.editor.plugins.Save:
  55. Status: Supported (beta).
  56. A simple plugin that allows you to POST the content of the editor back
  57. to a URL.
  58. dojox.editor.plugins.Preview:
  59. Status: Supported (beta).
  60. A simple plugin that allows you to display the content of the editor
  61. in a new window and apply a set of styles to it so you can see how
  62. content will look with various styles applied. It is likely this
  63. plugin will still evolve a bit.
  64. dojox.editor.plugins.ToolbarLineBreak:
  65. Status: Supported (stable).
  66. An extremely simple plugin that allows you to 'linebreak' the dijit toolbar so that really long
  67. toolbars for editor (lots of plugins enabled), can be broken up into multiple rows.
  68. dojox.editor.plugins.InsertEntity:
  69. Status: Experimental (unsupported).
  70. A plugin that enables the ability to insert HTML/XML entity characters
  71. into a page. These are often called 'symbols'. The set it provides are the
  72. basic latin (8859) set and a portion of greek symbols common to mathematics.
  73. It has been marked experimental as it is likely this plugin will evolve a bit.
  74. dojox.editor.plugins.NormalizeIndentOutdent:
  75. Status: Experimental (unsupported).
  76. A plugin that normalizes the behavior of indent/outdent to use margin styles instead
  77. of <blockquote> tags. Also fixes indent/outdent of lists to work properly. This is new
  78. and has been tested, but not extensively. Therefore it is currently classed as experimental.
  79. dojox.editor.plugins.Breadcrumb:
  80. Status: Experimental (unsupported).
  81. A plugin that adds a breadcrumb toolbar to the bottom of the editor. Useful for seeing
  82. where you aren and what operations you can perform. This is new and has been tested, but not
  83. extensively. Therefore it is currently classed as experimental.
  84. dojox.editor.plugins.FindReplace:
  85. Status: Experimental (unsupported).
  86. A plugin that adds a togglable Find/Replace toolbar to the editor. Useful for searching
  87. and replacing text strings in the editor content. Only works on FF, IE, and WebKit. No Opera
  88. support. This is new and has been tested, but not extensively. Therefore it is currently
  89. classed as experimental.
  90. dojox.editor.plugins.CollapsibleToolbar:
  91. Status: Supported (Stable).
  92. A plugin that modified the header node of the editor so that it is 'collapsible'. Meaning that
  93. it can be closed (reduced), and reopened. Useful for increasing editor real-estate.
  94. dojox.editor.plugins.Blockquote:
  95. Status: Supported (Stable).
  96. A plugin that puts a button on the toolbar that allows users to select text for a semantic
  97. 'blockquote' tag-wrap action. It toggles on and off during state changes to determine if
  98. the current section is contained within a blockquote.
  99. dojox.editor.plugins.PasteFromWord:
  100. Status: Beta (unsupported).
  101. A plugin that puts a button that opens a dialog to paste in content from Word and similar
  102. programs like wordpad. It will then filter out extraneous and bad html from the content
  103. before injecting it into the RTE. Experimental as the filter list may not be complete yet.
  104. Feedback is welcome and appreciated. Filters will be updated based on it.
  105. dojox.editor.plugins.InsertAnchor:
  106. Status: Stable (supported).
  107. A plugin that allows anchor points to be inserted into the document being edited.
  108. The anchors are styled in the doc to make them easily visible/editable in the document.
  109. dojox.editor.plugins.TextColor:
  110. Status: Experimental (unsupported).
  111. A plugin that makes use of the dojox.widget.ColorPicker widget in lieu of the
  112. dijit.ColorPalette.
  113. dojox.editor.plugins.NormalizeStyle:
  114. Status: Experimental (unsupported).
  115. A plugin that tries to normalize the output from the editor as either CSS styled or semantic (<b>, <i>, etc)
  116. style.
  117. dojox.editor.plugins.StatusBar:
  118. Status: Experimental (unsupported).
  119. A plugin that adds a status bar and an optional resize handle to the footer of the editor.
  120. dojox.editor.plugins.LocalImage
  121. Status: Beta
  122. A plugin that adds local image upload and edit capability to the editor.
  123. dojox.editor.plugins.AutoUrlLink
  124. Status: Experimental (Unsupported)
  125. A plugin that adds auto url link creation capability as a headless plugin to the editor
  126. dojox.editor.plugins.ResizeColumnPlugin
  127. Status: Experimental (Unsupported)
  128. A plugin that adds column resize to the editor table plugins.
  129. dojox.editor.plugins.AutoSave
  130. Status: Experimental (Unsupported)
  131. A plugin that provides 'auto-save' capablity, eg, post back to some url at an interval.
  132. dojox.editor.plugins.SpellCheck
  133. Status: Experimental (Unsupported)
  134. A plugin that provides server-side spell-check support.
  135. -------------------------------------------------------------------------------
  136. Dependencies:
  137. dijit
  138. dojox.form
  139. dojox.html.format
  140. dojox.widget.ColorPicker
  141. dojox.layout.ResizeHandle
  142. -------------------------------------------------------------------------------
  143. Documentation
  144. The plugins directory contains extensions which work with dijit.Editor.
  145. See also:
  146. http://docs.dojocampus.org/dojox/editor/plugins/TablePlugins
  147. http://docs.dojocampus.org/dojox/editor/plugins/PrettyPrint
  148. http://docs.dojocampus.org/dojox/editor/plugins/PageBreak
  149. http://docs.dojocampus.org/dojox/editor/plugins/ShowBlockNodes
  150. http://docs.dojocampus.org/dojox/editor/plugins/Preview
  151. http://docs.dojocampus.org/dojox/editor/plugins/Save
  152. http://docs.dojocampus.org/dojox/editor/plugins/ToolbarLineBreak
  153. http://docs.dojocampus.org/dojox/editor/plugins/InsertEntity
  154. http://docs.dojocampus.org/dojox/editor/plugins/NormalizeIndentOutdent
  155. http://docs.dojocampus.org/dojox/editor/plugins/Breadcrumb
  156. http://docs.dojocampus.org/dojox/editor/plugins/FindReplace
  157. http://docs.dojocampus.org/dojox/editor/plugins/CollapsibleToolbar
  158. http://docs.dojocampus.org/dojox/editor/plugins/Blockquote
  159. http://docs.dojocampus.org/dojox/editor/plugins/PasteFromWord
  160. http://docs.dojocampus.org/dojox/editor/plugins/InsertAnchor
  161. http://docs.dojocampus.org/dojox/editor/plugins/TextColor
  162. http://docs.dojocampus.org/dojox/editor/plugins/NormalizeStyle
  163. http://docs.dojocampus.org/dojox/editor/plugins/StatusBar
  164. http://docs.dojocampus.org/dojox/editor/plugins/LocalImage
  165. http://docs.dojocampus.org/dojox/editor/plugins/AutoUrlLink
  166. http://docs.dojocampus.org/dojox/editor/plugins/ResizeTableColumn
  167. http://docs.dojocampus.org/dojox/editor/plugins/AutoSave
  168. http://docs.dojocampus.org/dojox/editor/plugins/SpellCheck
  169. -------------------------------------------------------------------------------
  170. Plugin Installation instructions
  171. Get dojo and dijit from svn. Include the Editor and plugins in your page:
  172. dojo.require("dijit.Editor");
  173. For the TablePlugins:
  174. dojo.require("dojox.editor.plugins.TablePlugins");
  175. and CSS:
  176. <link href="[path]dojox/editor/plugins/resources/editorPlugins.css" type="text/css" rel="stylesheet" />
  177. For the UploadImage plugin:
  178. dojo.require("dojox.editor.plugins.UploadImage");
  179. and CSS:
  180. <link href="[path]dojox/editor/plugins/resources/editorPlugins.css" type="text/css" rel="stylesheet" />
  181. <link href="[path]dojox/form/resources/FileInput.css" type="text/css" rel="stylesheet" />
  182. For the PrettyPrint plugin:
  183. dojo.require("dojox.editor.plugins.PrettyPrint");
  184. and CSS:
  185. No CSS required.
  186. For the PageBreak plugin:
  187. dojo.require("dojox.editor.plugins.PageBreak");
  188. and CSS:
  189. <link href="[path]dojox/editor/plugins/resources/css/PageBreak.css" type="text/css" rel="stylesheet" />
  190. For the ShowBlockNodes plugin:
  191. dojo.require("dojox.editor.plugins.ShowBockNodes");
  192. and CSS:
  193. <link href="[path]dojox/editor/plugins/resources/css/ShowBlockNodes.css" type="text/css" rel="stylesheet" />
  194. For the Preview plugin:
  195. dojo.require("dojox.editor.plugins.Preview");
  196. and CSS:
  197. <link href="[path]dojox/editor/plugins/resources/css/Preview.css" type="text/css" rel="stylesheet" />
  198. For the Save plugin:
  199. dojo.require("dojox.editor.plugins.Save");
  200. and CSS:
  201. <link href="[path]dojox/editor/plugins/resources/css/Save.css" type="text/css" rel="stylesheet" />
  202. For the ToolbarLineBreak plugin:
  203. dojo.require("dojox.editor.plugins.ToolbarLineBreak");
  204. and CSS:
  205. No CSS required.
  206. For the InsertEntity plugin:
  207. dojo.require("dojox.editor.plugins.InsertEntity");
  208. and CSS:
  209. <link href="[path]dojox/editor/plugins/resources/css/InsertEntity.css" type="text/css" rel="stylesheet" />
  210. For the NormalizeIndentOutdent plugin:
  211. dojo.require("dojox.editor.plugins.NormalizeIndentOutdent");
  212. and CSS:
  213. No CSS required.
  214. For the Breadcrumb plugin:
  215. dojo.require("dojox.editor.plugins.Breadcrumb");
  216. and CSS:
  217. <link href="[path]dojox/editor/plugins/resources/css/Breadcrumb.css" type="text/css" rel="stylesheet" />
  218. For the FindReplace plugin:
  219. dojo.require("dojox.editor.plugins.FindReplace");
  220. and CSS:
  221. <link href="[path]dojox/editor/plugins/resources/css/FindReplace.css" type="text/css" rel="stylesheet" />
  222. For the CollapsibleToolbar plugin:
  223. dojo.require("dojox.editor.plugins.CollapsibleToolbar");
  224. and CSS:
  225. <link href="[path]dojox/editor/plugins/resources/css/CollapsibleToolbar.css" type="text/css" rel="stylesheet" />
  226. For the Blockquote plugin:
  227. dojo.require("dojox.editor.plugins.Blockquote");
  228. and CSS:
  229. <link href="[path]dojox/editor/plugins/resources/css/Blockquote.css" type="text/css" rel="stylesheet" />
  230. For the PasteFromWord plugin:
  231. dojo.require("dojox.editor.plugins.PasteFromWord");
  232. and CSS:
  233. <link href="[path]dojox/editor/plugins/resources/css/PasteFromWord.css" type="text/css" rel="stylesheet" />
  234. For the InsertAnchor plugin:
  235. dojo.require("dojox.editor.plugins.InsertAnchor");
  236. and CSS:
  237. <link href="[path]dojox/editor/plugins/resources/css/InsertAnchor.css" type="text/css" rel="stylesheet" />
  238. For the TextColor plugin:
  239. dojo.require("dojox.editor.plugins.TextColor");
  240. and CSS:
  241. <link href="[path]dojox/editor/plugins/resources/css/TextColor.css" type="text/css" rel="stylesheet" />
  242. For the NormalizeStyle plugin:
  243. dojo.require("dojox.editor.plugins.NormalizeStyle");
  244. and CSS:
  245. No CSS required.
  246. For the StatusBar plugin:
  247. dojo.require("dojox.editor.plugins.StatusBar");
  248. and CSS:
  249. <link href="[path]dojox/editor/plugins/resources/css/StatusBar.css" type="text/css" rel="stylesheet" />
  250. For the LocalImage plugin:
  251. dojo.require("dojox.editor.plugins.LocalImage");
  252. and CSS:
  253. <link href="[path]dojox/editor/plugins/resources/css/LocalImage.css" type="text/css" rel="stylesheet" />
  254. For the AutoUrlLink plugin:
  255. dojo.require("dojox.editor.plugins.AutoUrlLink");
  256. and CSS:
  257. No CSS required.
  258. For the ResizeTableColumn plugin:
  259. dojo.require("dojox.editor.plugins.ResizeTableColumn");
  260. and CSS:
  261. No CSS required in addition to the table plugins css.
  262. For the AutoSave plugin:
  263. dojo.require("dojox.editor.plugins.AutoSave");
  264. and CSS:
  265. <link href="[path]dojox/editor/plugins/resources/css/AutoSave.css" type="text/css" rel="stylesheet" />
  266. For the SpellCheck plugin:
  267. dojo.require("dojox.editor.plugins.SpellCheck");
  268. and CSS:
  269. <link href="[path]dojox/editor/plugins/resources/css/SpellCheck.css" type="text/css" rel="stylesheet" />
  270. See tests for examples:
  271. dojox/editor/tests/editorTablePlugs.html
  272. dojox/editor/tests/editorUploadPlug.html
  273. dojox/editor/tests/editorPrettyPrint.html
  274. dojox/editor/tests/editorPageBreak.html
  275. dojox/editor/tests/editorShowBlockNodes.html
  276. dojox/editor/tests/editorPreview.html
  277. dojox/editor/tests/editorSave.html
  278. dojox/editor/tests/editorToolbarLineBreak.html
  279. dojox/editor/tests/editorInsertEntity.html
  280. dojox/editor/tests/editorNormalizeIndentOutdent.html
  281. dojox/editor/tests/editorBreadcrumb.html
  282. dojox/editor/tests/editorFindReplace.html
  283. dojox/editor/tests/editorCollapsibleToolbar.html
  284. dojox/editor/tests/editorBlockquote.html
  285. dojox/editor/tests/editorPasteFromWord.html
  286. dojox/editor/tests/editorInsertAnchor.html
  287. dojox/editor/tests/editorTextColor.html
  288. dojox/editor/tests/editorNormalizeStyle.html
  289. dojox/editor/tests/editorStatusBar.html
  290. dojox/editor/tests/editorLocalImage.html
  291. dojox/editor/tests/editorAutoUrlLink.html
  292. dojox/editor/tests/editorResizeTableColumn.html
  293. dojox/editor/tests/editorAutoSave.html
  294. dojox/editor/tests/editorSpellCheck.html
  295. dojox/editor/tests/testPluginsAll.html