Skip to content
Browse files

Remove FCKEditor from project (use CMS defaults)

  • Loading branch information...
1 parent 43a0e87 commit bf8e871b28f50ccbe7dba4f6dba2e3d92b740126 @peakpg peakpg committed Feb 11, 2011
Showing with 0 additions and 20,076 deletions.
  1. +0 −15 public/fckeditor/editor/css/behaviors/disablehandles.htc
  2. +0 −36 public/fckeditor/editor/css/behaviors/showtableborders.htc
  3. +0 −110 public/fckeditor/editor/css/fck_editorarea.css
  4. +0 −199 public/fckeditor/editor/css/fck_internal.css
  5. +0 −49 public/fckeditor/editor/css/fck_showtableborders_gecko.css
  6. BIN public/fckeditor/editor/css/images/block_address.png
  7. BIN public/fckeditor/editor/css/images/block_blockquote.png
  8. BIN public/fckeditor/editor/css/images/block_div.png
  9. BIN public/fckeditor/editor/css/images/block_h1.png
  10. BIN public/fckeditor/editor/css/images/block_h2.png
  11. BIN public/fckeditor/editor/css/images/block_h3.png
  12. BIN public/fckeditor/editor/css/images/block_h4.png
  13. BIN public/fckeditor/editor/css/images/block_h5.png
  14. BIN public/fckeditor/editor/css/images/block_h6.png
  15. BIN public/fckeditor/editor/css/images/block_p.png
  16. BIN public/fckeditor/editor/css/images/block_pre.png
  17. BIN public/fckeditor/editor/css/images/fck_anchor.gif
  18. BIN public/fckeditor/editor/css/images/fck_flashlogo.gif
  19. BIN public/fckeditor/editor/css/images/fck_hiddenfield.gif
  20. BIN public/fckeditor/editor/css/images/fck_pagebreak.gif
  21. BIN public/fckeditor/editor/css/images/fck_plugin.gif
  22. +0 −85 public/fckeditor/editor/dialog/common/fck_dialog_common.css
  23. +0 −311 public/fckeditor/editor/dialog/common/fck_dialog_common.js
  24. BIN public/fckeditor/editor/dialog/common/images/locked.gif
  25. BIN public/fckeditor/editor/dialog/common/images/reset.gif
  26. BIN public/fckeditor/editor/dialog/common/images/unlocked.gif
  27. +0 −161 public/fckeditor/editor/dialog/fck_about.html
  28. BIN public/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif
  29. BIN public/fckeditor/editor/dialog/fck_about/logo_fredck.gif
  30. BIN public/fckeditor/editor/dialog/fck_about/sponsors/spellchecker_net.gif
  31. +0 −220 public/fckeditor/editor/dialog/fck_anchor.html
  32. +0 −104 public/fckeditor/editor/dialog/fck_button.html
  33. +0 −104 public/fckeditor/editor/dialog/fck_checkbox.html
  34. +0 −172 public/fckeditor/editor/dialog/fck_colorselector.html
  35. +0 −364 public/fckeditor/editor/dialog/fck_div.html
  36. +0 −600 public/fckeditor/editor/dialog/fck_docprops.html
  37. +0 −113 public/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html
  38. +0 −152 public/fckeditor/editor/dialog/fck_flash.html
  39. +0 −300 public/fckeditor/editor/dialog/fck_flash/fck_flash.js
  40. +0 −50 public/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html
  41. +0 −109 public/fckeditor/editor/dialog/fck_form.html
  42. +0 −115 public/fckeditor/editor/dialog/fck_hiddenfield.html
  43. +0 −258 public/fckeditor/editor/dialog/fck_image.html
  44. +0 −512 public/fckeditor/editor/dialog/fck_image/fck_image.js
  45. +0 −72 public/fckeditor/editor/dialog/fck_image/fck_image_preview.html
  46. +0 −295 public/fckeditor/editor/dialog/fck_link.html
  47. +0 −893 public/fckeditor/editor/dialog/fck_link/fck_link.js
  48. +0 −120 public/fckeditor/editor/dialog/fck_listprop.html
  49. +0 −346 public/fckeditor/editor/dialog/fck_paste.html
  50. +0 −104 public/fckeditor/editor/dialog/fck_radiobutton.html
  51. +0 −648 public/fckeditor/editor/dialog/fck_replace.html
  52. +0 −180 public/fckeditor/editor/dialog/fck_select.html
  53. +0 −194 public/fckeditor/editor/dialog/fck_select/fck_select.js
  54. +0 −111 public/fckeditor/editor/dialog/fck_smiley.html
  55. +0 −68 public/fckeditor/editor/dialog/fck_source.html
  56. +0 −121 public/fckeditor/editor/dialog/fck_specialchar.html
  57. +0 −70 public/fckeditor/editor/dialog/fck_spellerpages.html
  58. 0 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html
  59. +0 −87 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js
  60. +0 −153 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html
  61. +0 −148 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm
  62. +0 −199 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
  63. +0 −181 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl
  64. +0 −461 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js
  65. +0 −71 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html
  66. +0 −49 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css
  67. +0 −272 public/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js
  68. +0 −298 public/fckeditor/editor/dialog/fck_table.html
  69. +0 −257 public/fckeditor/editor/dialog/fck_tablecell.html
  70. +0 −242 public/fckeditor/editor/dialog/fck_template.html
  71. BIN public/fckeditor/editor/dialog/fck_template/images/template1.gif
  72. BIN public/fckeditor/editor/dialog/fck_template/images/template2.gif
  73. BIN public/fckeditor/editor/dialog/fck_template/images/template3.gif
  74. +0 −94 public/fckeditor/editor/dialog/fck_textarea.html
  75. +0 −136 public/fckeditor/editor/dialog/fck_textfield.html
  76. +0 −41 public/fckeditor/editor/dtd/fck_dtd_test.html
  77. +0 −116 public/fckeditor/editor/dtd/fck_xhtml10strict.js
  78. +0 −140 public/fckeditor/editor/dtd/fck_xhtml10transitional.js
  79. +0 −153 public/fckeditor/editor/fckdebug.html
  80. +0 −812 public/fckeditor/editor/fckdialog.html
  81. +0 −317 public/fckeditor/editor/fckeditor.html
  82. +0 −424 public/fckeditor/editor/fckeditor.original.html
  83. +0 −87 public/fckeditor/editor/filemanager/browser/default/browser.css
  84. +0 −200 public/fckeditor/editor/filemanager/browser/default/browser.html
  85. +0 −95 public/fckeditor/editor/filemanager/browser/default/frmactualfolder.html
  86. +0 −114 public/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html
  87. +0 −198 public/fckeditor/editor/filemanager/browser/default/frmfolders.html
  88. +0 −169 public/fckeditor/editor/filemanager/browser/default/frmresourceslist.html
  89. +0 −68 public/fckeditor/editor/filemanager/browser/default/frmresourcetype.html
  90. +0 −115 public/fckeditor/editor/filemanager/browser/default/frmupload.html
  91. BIN public/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif
  92. BIN public/fckeditor/editor/filemanager/browser/default/images/Folder.gif
  93. BIN public/fckeditor/editor/filemanager/browser/default/images/Folder32.gif
  94. BIN public/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif
  95. BIN public/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif
  96. BIN public/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif
  97. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif
  98. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif
  99. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif
  100. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif
  101. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif
  102. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif
  103. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif
  104. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif
  105. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif
  106. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif
  107. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif
  108. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif
  109. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif
  110. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif
  111. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif
  112. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif
  113. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif
  114. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif
  115. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif
  116. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif
  117. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif
  118. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif
  119. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif
  120. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif
  121. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif
  122. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif
  123. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif
  124. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif
  125. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif
  126. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif
  127. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif
  128. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif
  129. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif
  130. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif
  131. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif
  132. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif
  133. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif
  134. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif
  135. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/html.gif
  136. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif
  137. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/js.gif
  138. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif
  139. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif
  140. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif
  141. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/png.gif
  142. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif
  143. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif
  144. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif
  145. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif
  146. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif
  147. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif
  148. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif
  149. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif
  150. BIN public/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif
  151. BIN public/fckeditor/editor/filemanager/browser/default/images/spacer.gif
  152. +0 −88 public/fckeditor/editor/filemanager/browser/default/js/common.js
  153. +0 −147 public/fckeditor/editor/filemanager/browser/default/js/fckxml.js
  154. BIN public/fckeditor/editor/images/anchor.gif
  155. BIN public/fckeditor/editor/images/arrow_ltr.gif
  156. BIN public/fckeditor/editor/images/arrow_rtl.gif
  157. BIN public/fckeditor/editor/images/smiley/msn/angel_smile.gif
  158. BIN public/fckeditor/editor/images/smiley/msn/angry_smile.gif
  159. BIN public/fckeditor/editor/images/smiley/msn/broken_heart.gif
  160. BIN public/fckeditor/editor/images/smiley/msn/cake.gif
  161. BIN public/fckeditor/editor/images/smiley/msn/confused_smile.gif
  162. BIN public/fckeditor/editor/images/smiley/msn/cry_smile.gif
  163. BIN public/fckeditor/editor/images/smiley/msn/devil_smile.gif
  164. BIN public/fckeditor/editor/images/smiley/msn/embaressed_smile.gif
  165. BIN public/fckeditor/editor/images/smiley/msn/envelope.gif
  166. BIN public/fckeditor/editor/images/smiley/msn/heart.gif
  167. BIN public/fckeditor/editor/images/smiley/msn/kiss.gif
  168. BIN public/fckeditor/editor/images/smiley/msn/lightbulb.gif
  169. BIN public/fckeditor/editor/images/smiley/msn/omg_smile.gif
  170. BIN public/fckeditor/editor/images/smiley/msn/regular_smile.gif
  171. BIN public/fckeditor/editor/images/smiley/msn/sad_smile.gif
  172. BIN public/fckeditor/editor/images/smiley/msn/shades_smile.gif
  173. BIN public/fckeditor/editor/images/smiley/msn/teeth_smile.gif
  174. BIN public/fckeditor/editor/images/smiley/msn/thumbs_down.gif
  175. BIN public/fckeditor/editor/images/smiley/msn/thumbs_up.gif
  176. BIN public/fckeditor/editor/images/smiley/msn/tounge_smile.gif
  177. BIN public/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif
  178. BIN public/fckeditor/editor/images/smiley/msn/wink_smile.gif
  179. BIN public/fckeditor/editor/images/spacer.gif
  180. +0 −176 public/fckeditor/editor/js/fckadobeair.js
  181. +0 −108 public/fckeditor/editor/js/fckeditorcode_gecko.js
  182. +0 −109 public/fckeditor/editor/js/fckeditorcode_ie.js
  183. +0 −78 public/fckeditor/editor/lang/_translationstatus.txt
  184. +0 −526 public/fckeditor/editor/lang/af.js
  185. +0 −526 public/fckeditor/editor/lang/ar.js
  186. +0 −526 public/fckeditor/editor/lang/bg.js
  187. +0 −526 public/fckeditor/editor/lang/bn.js
  188. +0 −526 public/fckeditor/editor/lang/bs.js
  189. +0 −526 public/fckeditor/editor/lang/ca.js
  190. +0 −526 public/fckeditor/editor/lang/cs.js
  191. +0 −526 public/fckeditor/editor/lang/da.js
  192. +0 −526 public/fckeditor/editor/lang/de.js
  193. +0 −526 public/fckeditor/editor/lang/el.js
  194. +0 −526 public/fckeditor/editor/lang/en-au.js
  195. +0 −526 public/fckeditor/editor/lang/en-ca.js
Sorry, we could not display the entire diff because too many files (315) changed.
View
15 public/fckeditor/editor/css/behaviors/disablehandles.htc
@@ -1,15 +0,0 @@
-<public:component lightweight="true">
-
-<script language="javascript">
-
-function CancelEvent()
-{
- return false ;
-}
-
-this.onresizestart = CancelEvent ;
-this.onbeforeeditfocus = CancelEvent ;
-
-</script>
-
-</public:component>
View
36 public/fckeditor/editor/css/behaviors/showtableborders.htc
@@ -1,36 +0,0 @@
-<public:component lightweight="true">
-
-<public:attach event="oncontentready" onevent="ShowBorders()" />
-<public:attach event="onpropertychange" onevent="OnPropertyChange()" />
-
-<script language="javascript">
-
-var oClassRegex = /\s*FCK__ShowTableBorders/ ;
-
-function ShowBorders()
-{
- if ( this.border == 0 )
- {
- if ( !oClassRegex.test( this.className ) )
- this.className += ' FCK__ShowTableBorders' ;
- }
- else
- {
- if ( oClassRegex.test( this.className ) )
- {
- this.className = this.className.replace( oClassRegex, '' ) ;
- if ( this.className.length == 0 )
- this.removeAttribute( 'className', 0 ) ;
- }
- }
-}
-
-function OnPropertyChange()
-{
- if ( event.propertyName == 'border' || event.propertyName == 'className' )
- ShowBorders.call(this) ;
-}
-
-</script>
-
-</public:component>
View
110 public/fckeditor/editor/css/fck_editorarea.css
@@ -1,110 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * This is the default CSS file used by the editor area. It defines the
- * initial font of the editor and background color.
- *
- * A user can configure the editor to use another CSS file. Just change
- * the value of the FCKConfig.EditorAreaCSS key in the configuration
- * file.
- */
-
-/**
- * The "body" styles should match your editor web site, mainly regarding
- * background color and font family and size.
- */
-
-body
-{
- background-color: #ffffff;
- padding: 5px 5px 5px 5px;
- margin: 0px;
-}
-
-body, td
-{
- font-family: Arial, Verdana, sans-serif;
- font-size: 12px;
-}
-
-a[href]
-{
- color: -moz-hyperlinktext !important; /* For Firefox... mark as important, otherwise it becomes black */
- text-decoration: -moz-anchor-decoration; /* For Firefox 3, otherwise no underline will be used */
-}
-
-/**
- * Just uncomment the following block if you want to avoid spaces between
- * paragraphs. Remember to apply the same style in your output front end page.
- */
-
-/*
-p, ul, li
-{
- margin-top: 0px;
- margin-bottom: 0px;
-}
-*/
-
-/**
- * Uncomment the following block, or only selected lines if appropriate,
- * if you have some style items that would break the styles combo box.
- * You can also write other CSS overrides inside the style block below
- * as needed and they will be applied to inside the style combo only.
- */
-
-/*
-.SC_Item *, .SC_ItemSelected *
-{
- margin: 0px !important;
- padding: 0px !important;
- text-indent: 0px !important;
- clip: auto !important;
- position: static !important;
-}
-*/
-
-/**
- * The following are some sample styles used in the "Styles" toolbar command.
- * You should instead remove them, and include the styles used by the site
- * you are using the editor in.
- */
-
-.Bold
-{
- font-weight: bold;
-}
-
-.Title
-{
- font-weight: bold;
- font-size: 18px;
- color: #cc3300;
-}
-
-.Code
-{
- border: #8b4513 1px solid;
- padding-right: 5px;
- padding-left: 5px;
- color: #000066;
- font-family: 'Courier New' , Monospace;
- background-color: #ff9933;
-}
View
199 public/fckeditor/editor/css/fck_internal.css
@@ -1,199 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * This CSS Style Sheet defines rules used by the editor for its internal use.
- */
-
-/* #########
- * WARNING
- * #########
- * When changing this file, the minified version of it must be updated in the
- * fckeditor.html file (see FCK_InternalCSS).
- */
-
-/* Fix to allow putting the caret at the end of the content in Firefox if
- clicking below the content. */
-html
-{
- min-height: 100%;
-}
-
-table.FCK__ShowTableBorders, table.FCK__ShowTableBorders td, table.FCK__ShowTableBorders th
-{
- border: #d3d3d3 1px solid;
-}
-
-form
-{
- border: 1px dotted #FF0000;
- padding: 2px;
-}
-
-.FCK__Flash
-{
- border: #a9a9a9 1px solid;
- background-position: center center;
- background-image: url(images/fck_flashlogo.gif);
- background-repeat: no-repeat;
- width: 80px;
- height: 80px;
-}
-
-.FCK__UnknownObject
-{
- border: #a9a9a9 1px solid;
- background-position: center center;
- background-image: url(images/fck_plugin.gif);
- background-repeat: no-repeat;
- width: 80px;
- height: 80px;
-}
-
-/* Empty anchors images */
-.FCK__Anchor
-{
- border: 1px dotted #00F;
- background-position: center center;
- background-image: url(images/fck_anchor.gif);
- background-repeat: no-repeat;
- width: 16px;
- height: 15px;
- vertical-align: middle;
-}
-
-/* Anchors with content */
-.FCK__AnchorC
-{
- border: 1px dotted #00F;
- background-position: 1px center;
- background-image: url(images/fck_anchor.gif);
- background-repeat: no-repeat;
- padding-left: 18px;
-}
-
-/* Any anchor for non-IE, if we combine it with the previous rule IE ignores all. */
-a[name]
-{
- border: 1px dotted #00F;
- background-position: 0 center;
- background-image: url(images/fck_anchor.gif);
- background-repeat: no-repeat;
- padding-left: 18px;
-}
-
-.FCK__PageBreak
-{
- background-position: center center;
- background-image: url(images/fck_pagebreak.gif);
- background-repeat: no-repeat;
- clear: both;
- display: block;
- float: none;
- width: 100%;
- border-top: #999999 1px dotted;
- border-bottom: #999999 1px dotted;
- border-right: 0px;
- border-left: 0px;
- height: 5px;
-}
-
-/* Hidden fields */
-.FCK__InputHidden
-{
- width: 19px;
- height: 18px;
- background-image: url(images/fck_hiddenfield.gif);
- background-repeat: no-repeat;
- vertical-align: text-bottom;
- background-position: center center;
-}
-
-.FCK__ShowBlocks p,
-.FCK__ShowBlocks div,
-.FCK__ShowBlocks pre,
-.FCK__ShowBlocks address,
-.FCK__ShowBlocks blockquote,
-.FCK__ShowBlocks h1,
-.FCK__ShowBlocks h2,
-.FCK__ShowBlocks h3,
-.FCK__ShowBlocks h4,
-.FCK__ShowBlocks h5,
-.FCK__ShowBlocks h6
-{
- background-repeat: no-repeat;
- border: 1px dotted gray;
- padding-top: 8px;
- padding-left: 8px;
-}
-
-.FCK__ShowBlocks p
-{
- background-image: url(images/block_p.png);
-}
-
-.FCK__ShowBlocks div
-{
- background-image: url(images/block_div.png);
-}
-
-.FCK__ShowBlocks pre
-{
- background-image: url(images/block_pre.png);
-}
-
-.FCK__ShowBlocks address
-{
- background-image: url(images/block_address.png);
-}
-
-.FCK__ShowBlocks blockquote
-{
- background-image: url(images/block_blockquote.png);
-}
-
-.FCK__ShowBlocks h1
-{
- background-image: url(images/block_h1.png);
-}
-
-.FCK__ShowBlocks h2
-{
- background-image: url(images/block_h2.png);
-}
-
-.FCK__ShowBlocks h3
-{
- background-image: url(images/block_h3.png);
-}
-
-.FCK__ShowBlocks h4
-{
- background-image: url(images/block_h4.png);
-}
-
-.FCK__ShowBlocks h5
-{
- background-image: url(images/block_h5.png);
-}
-
-.FCK__ShowBlocks h6
-{
- background-image: url(images/block_h6.png);
-}
View
49 public/fckeditor/editor/css/fck_showtableborders_gecko.css
@@ -1,49 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * This CSS Style Sheet defines the rules to show table borders on Gecko.
- */
-
-/* #########
- * WARNING
- * #########
- * When changing this file, the minified version of it must be updated in the
- * fckeditor.html file (see FCK_ShowTableBordersCSS).
- */
-
-/* For tables with the "border" attribute set to "0" */
-table[border="0"],
-table[border="0"] > tr > td, table[border="0"] > tr > th,
-table[border="0"] > tbody > tr > td, table[border="0"] > tbody > tr > th,
-table[border="0"] > thead > tr > td, table[border="0"] > thead > tr > th,
-table[border="0"] > tfoot > tr > td, table[border="0"] > tfoot > tr > th
-{
- border: #d3d3d3 1px dotted ;
-}
-
-/* For tables with no "border" attribute set */
-table:not([border]),
-table:not([border]) > tr > td, table:not([border]) > tr > th,
-table:not([border]) > tbody > tr > td, table:not([border]) > tbody > tr > th,
-table:not([border]) > thead > tr > td, table:not([border]) > thead > tr > th,
-table:not([border]) > tfoot > tr > td, table:not([border]) > tfoot > tr > th
-{
- border: #d3d3d3 1px dotted ;
-}
View
BIN public/fckeditor/editor/css/images/block_address.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_blockquote.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_div.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_h1.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_h2.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_h3.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_h4.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_h5.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_h6.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_p.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/block_pre.png
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/fck_anchor.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/fck_flashlogo.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/fck_hiddenfield.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/fck_pagebreak.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/css/images/fck_plugin.gif
Deleted file not rendered
View
85 public/fckeditor/editor/dialog/common/fck_dialog_common.css
@@ -1,85 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * This is the CSS file used for interface details in some dialog
- * windows.
- */
-
-/* #########
- * WARNING
- * #########
- * When changing this file, the minified version of it must be updated in the
- * fck_dialog_common.js file (see GetCommonDialogCss).
- */
-
-.ImagePreviewArea
-{
- border: #000000 1px solid;
- overflow: auto;
- width: 100%;
- height: 170px;
- background-color: #ffffff;
-}
-
-.FlashPreviewArea
-{
- border: #000000 1px solid;
- padding: 5px;
- overflow: auto;
- width: 100%;
- height: 170px;
- background-color: #ffffff;
-}
-
-.BtnReset
-{
- float: left;
- background-position: center center;
- background-image: url(images/reset.gif);
- width: 16px;
- height: 16px;
- background-repeat: no-repeat;
- border: 1px none;
- font-size: 1px ;
-}
-
-.BtnLocked, .BtnUnlocked
-{
- float: left;
- background-position: center center;
- background-image: url(images/locked.gif);
- width: 16px;
- height: 16px;
- background-repeat: no-repeat;
- border: none 1px;
- font-size: 1px ;
-}
-
-.BtnUnlocked
-{
- background-image: url(images/unlocked.gif);
-}
-
-.BtnOver
-{
- border: outset 1px;
- cursor: pointer;
- cursor: hand;
-}
View
311 public/fckeditor/editor/dialog/common/fck_dialog_common.js
@@ -1,311 +0,0 @@
-/*
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Useful functions used by almost all dialog window pages.
- * Dialogs should link to this file as the very first script on the page.
- */
-
-// Automatically detect the correct document.domain (#123).
-(function()
-{
- var d = document.domain ;
-
- while ( true )
- {
- // Test if we can access a parent property.
- try
- {
- var test = window.parent.document.domain ;
- break ;
- }
- catch( e ) {}
-
- // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
- d = d.replace( /.*?(?:\.|$)/, '' ) ;
-
- if ( d.length == 0 )
- break ; // It was not able to detect the domain.
-
- try
- {
- document.domain = d ;
- }
- catch (e)
- {
- break ;
- }
- }
-})() ;
-
-// Attention: FCKConfig must be available in the page.
-function GetCommonDialogCss( prefix )
-{
- // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt).
- return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ;
-}
-
-// Gets a element by its Id. Used for shorter coding.
-function GetE( elementId )
-{
- return document.getElementById( elementId ) ;
-}
-
-function ShowE( element, isVisible )
-{
- if ( typeof( element ) == 'string' )
- element = GetE( element ) ;
- element.style.display = isVisible ? '' : 'none' ;
-}
-
-function SetAttribute( element, attName, attValue )
-{
- if ( attValue == null || attValue.length == 0 )
- element.removeAttribute( attName, 0 ) ; // 0 : Case Insensitive
- else
- element.setAttribute( attName, attValue, 0 ) ; // 0 : Case Insensitive
-}
-
-function GetAttribute( element, attName, valueIfNull )
-{
- var oAtt = element.attributes[attName] ;
-
- if ( oAtt == null || !oAtt.specified )
- return valueIfNull ? valueIfNull : '' ;
-
- var oValue = element.getAttribute( attName, 2 ) ;
-
- if ( oValue == null )
- oValue = oAtt.nodeValue ;
-
- return ( oValue == null ? valueIfNull : oValue ) ;
-}
-
-function SelectField( elementId )
-{
- var element = GetE( elementId ) ;
- element.focus() ;
-
- // element.select may not be available for some fields (like <select>).
- if ( element.select )
- element.select() ;
-}
-
-// Functions used by text fields to accept numbers only.
-var IsDigit = ( function()
- {
- var KeyIdentifierMap =
- {
- End : 35,
- Home : 36,
- Left : 37,
- Right : 39,
- 'U+00007F' : 46 // Delete
- } ;
-
- return function ( e )
- {
- if ( !e )
- e = event ;
-
- var iCode = ( e.keyCode || e.charCode ) ;
-
- if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) )
- iCode = KeyIdentifierMap[ e.keyIdentifier ] ;
-
- return (
- ( iCode >= 48 && iCode <= 57 ) // Numbers
- || (iCode >= 35 && iCode <= 40) // Arrows, Home, End
- || iCode == 8 // Backspace
- || iCode == 46 // Delete
- || iCode == 9 // Tab
- ) ;
- }
- } )() ;
-
-String.prototype.Trim = function()
-{
- return this.replace( /(^\s*)|(\s*$)/g, '' ) ;
-}
-
-String.prototype.StartsWith = function( value )
-{
- return ( this.substr( 0, value.length ) == value ) ;
-}
-
-String.prototype.Remove = function( start, length )
-{
- var s = '' ;
-
- if ( start > 0 )
- s = this.substring( 0, start ) ;
-
- if ( start + length < this.length )
- s += this.substring( start + length , this.length ) ;
-
- return s ;
-}
-
-String.prototype.ReplaceAll = function( searchArray, replaceArray )
-{
- var replaced = this ;
-
- for ( var i = 0 ; i < searchArray.length ; i++ )
- {
- replaced = replaced.replace( searchArray[i], replaceArray[i] ) ;
- }
-
- return replaced ;
-}
-
-function OpenFileBrowser( url, width, height )
-{
- // oEditor must be defined.
-
- var iLeft = ( oEditor.FCKConfig.ScreenWidth - width ) / 2 ;
- var iTop = ( oEditor.FCKConfig.ScreenHeight - height ) / 2 ;
-
- var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes" ;
- sOptions += ",width=" + width ;
- sOptions += ",height=" + height ;
- sOptions += ",left=" + iLeft ;
- sOptions += ",top=" + iTop ;
-
- window.open( url, 'FCKBrowseWindow', sOptions ) ;
-}
-
-/**
- Utility function to create/update an element with a name attribute in IE, so it behaves properly when moved around
- It also allows to change the name or other special attributes in an existing node
- oEditor : instance of FCKeditor where the element will be created
- oOriginal : current element being edited or null if it has to be created
- nodeName : string with the name of the element to create
- oAttributes : Hash object with the attributes that must be set at creation time in IE
- Those attributes will be set also after the element has been
- created for any other browser to avoid redudant code
-*/
-function CreateNamedElement( oEditor, oOriginal, nodeName, oAttributes )
-{
- var oNewNode ;
-
- // IE doesn't allow easily to change properties of an existing object,
- // so remove the old and force the creation of a new one.
- var oldNode = null ;
- if ( oOriginal && oEditor.FCKBrowserInfo.IsIE )
- {
- // Force the creation only if some of the special attributes have changed:
- var bChanged = false;
- for( var attName in oAttributes )
- bChanged |= ( oOriginal.getAttribute( attName, 2) != oAttributes[attName] ) ;
-
- if ( bChanged )
- {
- oldNode = oOriginal ;
- oOriginal = null ;
- }
- }
-
- // If the node existed (and it's not IE), then we just have to update its attributes
- if ( oOriginal )
- {
- oNewNode = oOriginal ;
- }
- else
- {
- // #676, IE doesn't play nice with the name or type attribute
- if ( oEditor.FCKBrowserInfo.IsIE )
- {
- var sbHTML = [] ;
- sbHTML.push( '<' + nodeName ) ;
- for( var prop in oAttributes )
- {
- sbHTML.push( ' ' + prop + '="' + oAttributes[prop] + '"' ) ;
- }
- sbHTML.push( '>' ) ;
- if ( !oEditor.FCKListsLib.EmptyElements[nodeName.toLowerCase()] )
- sbHTML.push( '</' + nodeName + '>' ) ;
-
- oNewNode = oEditor.FCK.EditorDocument.createElement( sbHTML.join('') ) ;
- // Check if we are just changing the properties of an existing node: copy its properties
- if ( oldNode )
- {
- CopyAttributes( oldNode, oNewNode, oAttributes ) ;
- oEditor.FCKDomTools.MoveChildren( oldNode, oNewNode ) ;
- oldNode.parentNode.removeChild( oldNode ) ;
- oldNode = null ;
-
- if ( oEditor.FCK.Selection.SelectionData )
- {
- // Trick to refresh the selection object and avoid error in
- // fckdialog.html Selection.EnsureSelection
- var oSel = oEditor.FCK.EditorDocument.selection ;
- oEditor.FCK.Selection.SelectionData = oSel.createRange() ; // Now oSel.type will be 'None' reflecting the real situation
- }
- }
- oNewNode = oEditor.FCK.InsertElement( oNewNode ) ;
-
- // FCK.Selection.SelectionData is broken by now since we've
- // deleted the previously selected element. So we need to reassign it.
- if ( oEditor.FCK.Selection.SelectionData )
- {
- var range = oEditor.FCK.EditorDocument.body.createControlRange() ;
- range.add( oNewNode ) ;
- oEditor.FCK.Selection.SelectionData = range ;
- }
- }
- else
- {
- oNewNode = oEditor.FCK.InsertElement( nodeName ) ;
- }
- }
-
- // Set the basic attributes
- for( var attName in oAttributes )
- oNewNode.setAttribute( attName, oAttributes[attName], 0 ) ; // 0 : Case Insensitive
-
- return oNewNode ;
-}
-
-// Copy all the attributes from one node to the other, kinda like a clone
-// But oSkipAttributes is an object with the attributes that must NOT be copied
-function CopyAttributes( oSource, oDest, oSkipAttributes )
-{
- var aAttributes = oSource.attributes ;
-
- for ( var n = 0 ; n < aAttributes.length ; n++ )
- {
- var oAttribute = aAttributes[n] ;
-
- if ( oAttribute.specified )
- {
- var sAttName = oAttribute.nodeName ;
- // We can set the type only once, so do it with the proper value, not copying it.
- if ( sAttName in oSkipAttributes )
- continue ;
-
- var sAttValue = oSource.getAttribute( sAttName, 2 ) ;
- if ( sAttValue == null )
- sAttValue = oAttribute.nodeValue ;
-
- oDest.setAttribute( sAttName, sAttValue, 0 ) ; // 0 : Case Insensitive
- }
- }
- // The style:
- oDest.style.cssText = oSource.style.cssText ;
-}
View
BIN public/fckeditor/editor/dialog/common/images/locked.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/dialog/common/images/reset.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/dialog/common/images/unlocked.gif
Deleted file not rendered
View
161 public/fckeditor/editor/dialog/fck_about.html
@@ -1,161 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * "About" dialog window.
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="robots" content="noindex, nofollow" />
- <script src="common/fck_dialog_common.js" type="text/javascript"></script>
- <script type="text/javascript">
-
-var oEditor = window.parent.InnerDialogLoaded() ;
-var FCKLang = oEditor.FCKLang ;
-
-window.parent.AddTab( 'About', FCKLang.DlgAboutAboutTab ) ;
-window.parent.AddTab( 'License', FCKLang.DlgAboutLicenseTab ) ;
-window.parent.AddTab( 'BrowserInfo', FCKLang.DlgAboutBrowserInfoTab ) ;
-
-// Function called when a dialog tag is selected.
-function OnDialogTabChange( tabCode )
-{
- ShowE('divAbout', ( tabCode == 'About' ) ) ;
- ShowE('divLicense', ( tabCode == 'License' ) ) ;
- ShowE('divInfo' , ( tabCode == 'BrowserInfo' ) ) ;
-}
-
-function SendEMail()
-{
- var eMail = 'mailto:' ;
- eMail += 'fredck' ;
- eMail += '@' ;
- eMail += 'fckeditor' ;
- eMail += '.' ;
- eMail += 'net' ;
-
- window.location = eMail ;
-}
-
-window.onload = function()
-{
- // Translate the dialog box texts.
- oEditor.FCKLanguageManager.TranslatePage(document) ;
-
- window.parent.SetAutoSize( true ) ;
-}
-
- </script>
-</head>
-<body style="overflow: hidden">
- <div id="divAbout">
- <table cellpadding="0" cellspacing="0" border="0" width="100%" style="height: 100%">
- <tr>
- <td colspan="2">
- <img alt="" src="fck_about/logo_fckeditor.gif" width="236" height="41" align="left" />
- <table width="80" border="0" cellspacing="0" cellpadding="5" bgcolor="#ffffff" align="right">
- <tr>
- <td align="center" nowrap="nowrap" style="border-right: #000000 1px solid; border-top: #000000 1px solid;
- border-left: #000000 1px solid; border-bottom: #000000 1px solid">
- <span fcklang="DlgAboutVersion">version</span>
- <br />
- <b>2.6.3</b><br />
- Build 19836</td>
- </tr>
- </table>
- </td>
- </tr>
- <tr style="height: 100%">
- <td align="center" valign="middle">
- <span style="font-size: 14px" dir="ltr">
- <b><a href="http://www.fckeditor.net/?about" target="_blank" title="Visit the FCKeditor web site">
- Support <b>Open Source</b> Software</a></b> </span>
- <div style="padding-top:15px">
- <img alt="" src="fck_about/logo_fredck.gif" width="87" height="36" />
- </div>
- </td>
- <td align="center" nowrap="nowrap" valign="middle">
- <div>
- <div style="margin-bottom:5px" dir="ltr">Selected Sponsor</div>
- <a href="http://www.spellchecker.net/fckeditor/" target="_blank"><img alt="Selected Sponsor" border="0" src="fck_about/sponsors/spellchecker_net.gif" width="75" height="75" /></a>
- </div>
- </td>
- </tr>
- <tr>
- <td width="100%" nowrap="nowrap">
- <span fcklang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/?About"
- target="_blank">http://www.fckeditor.net/</a>.
- <br />
- Copyright &copy; 2003-2008 <a href="#" onclick="SendEMail();">Frederico Caldeira Knabben</a>
- </td>
- <td align="center">
- <a href="http://www.fckeditor.net/sponsors/apply" target="_blank">Become a Sponsor</a>
- </td>
- </tr>
- </table>
- </div>
- <div id="divLicense" style="display: none">
- <p>
- Licensed under the terms of any of the following licenses at your
- choice:
- </p>
- <ul>
- <li style="margin-bottom:15px">
- <b>GNU General Public License</b> Version 2 or later (the "GPL")<br />
- <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">http://www.gnu.org/licenses/gpl.html</a>
- </li>
- <li style="margin-bottom:15px">
- <b>GNU Lesser General Public License</b> Version 2.1 or later (the "LGPL")<br />
- <a href="http://www.gnu.org/licenses/lgpl.html" target="_blank">http://www.gnu.org/licenses/lgpl.html</a>
- </li>
- <li>
- <b>Mozilla Public License</b> Version 1.1 or later (the "MPL")<br />
- <a href="http://www.mozilla.org/MPL/MPL-1.1.html" target="_blank">http://www.mozilla.org/MPL/MPL-1.1.html</a>
- </li>
- </ul>
- </div>
- <div id="divInfo" style="display: none" dir="ltr">
- <table align="center" width="80%" border="0">
- <tr>
- <td>
- <script type="text/javascript">
-<!--
-document.write( '<b>User Agent<\/b><br />' + window.navigator.userAgent + '<br /><br />' ) ;
-document.write( '<b>Browser<\/b><br />' + window.navigator.appName + ' ' + window.navigator.appVersion + '<br /><br />' ) ;
-document.write( '<b>Platform<\/b><br />' + window.navigator.platform + '<br /><br />' ) ;
-
-var sUserLang = '?' ;
-
-if ( window.navigator.language )
- sUserLang = window.navigator.language.toLowerCase() ;
-else if ( window.navigator.userLanguage )
- sUserLang = window.navigator.userLanguage.toLowerCase() ;
-
-document.write( '<b>User Language<\/b><br />' + sUserLang ) ;
-//-->
- </script>
- </td>
- </tr>
- </table>
- </div>
-</body>
-</html>
View
BIN public/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/dialog/fck_about/logo_fredck.gif
Deleted file not rendered
View
BIN public/fckeditor/editor/dialog/fck_about/sponsors/spellchecker_net.gif
Deleted file not rendered
View
220 public/fckeditor/editor/dialog/fck_anchor.html
@@ -1,220 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Anchor dialog window.
--->
-<html>
- <head>
- <title>Anchor Properties</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta content="noindex, nofollow" name="robots">
- <script src="common/fck_dialog_common.js" type="text/javascript"></script>
- <script type="text/javascript">
-
-var dialog = window.parent ;
-var oEditor = dialog.InnerDialogLoaded() ;
-
-var FCK = oEditor.FCK ;
-var FCKBrowserInfo = oEditor.FCKBrowserInfo ;
-var FCKTools = oEditor.FCKTools ;
-var FCKRegexLib = oEditor.FCKRegexLib ;
-
-var oDOM = FCK.EditorDocument ;
-
-var oFakeImage = dialog.Selection.GetSelectedElement() ;
-
-var oAnchor ;
-
-if ( oFakeImage )
-{
- if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckanchor') )
- oAnchor = FCK.GetRealElement( oFakeImage ) ;
- else
- oFakeImage = null ;
-}
-
-//Search for a real anchor
-if ( !oFakeImage )
-{
- oAnchor = FCK.Selection.MoveToAncestorNode( 'A' ) ;
- if ( oAnchor )
- FCK.Selection.SelectNode( oAnchor ) ;
-}
-
-window.onload = function()
-{
- // First of all, translate the dialog box texts
- oEditor.FCKLanguageManager.TranslatePage(document) ;
-
- if ( oAnchor )
- GetE('txtName').value = oAnchor.name ;
- else
- oAnchor = null ;
-
- window.parent.SetOkButton( true ) ;
- window.parent.SetAutoSize( true ) ;
-
- SelectField( 'txtName' ) ;
-}
-
-function Ok()
-{
- var sNewName = GetE('txtName').value ;
-
- // Remove any illegal character in a name attribute:
- // A name should start with a letter, but the validator passes anyway.
- sNewName = sNewName.replace( /[^\w-_\.:]/g, '_' ) ;
-
- if ( sNewName.length == 0 )
- {
- // Remove the anchor if the user leaves the name blank
- if ( oAnchor )
- {
- // Removes the current anchor from the document using the new command
- FCK.Commands.GetCommand( 'AnchorDelete' ).Execute() ;
- return true ;
- }
-
- alert( oEditor.FCKLang.DlgAnchorErrorName ) ;
- return false ;
- }
-
- oEditor.FCKUndo.SaveUndoStep() ;
-
- if ( oAnchor ) // Modifying an existent anchor.
- {
- ReadjustLinksToAnchor( oAnchor.name, sNewName );
-
- // Buggy explorer, bad bad browser. http://alt-tag.com/blog/archives/2006/02/ie-dom-bugs/
- // Instead of just replacing the .name for the existing anchor (in order to preserve the content), we must remove the .name
- // and assign .name, although it won't appear until it's specially processed in fckxhtml.js
-
- // We remove the previous name
- oAnchor.removeAttribute( 'name' ) ;
- // Now we set it, but later we must process it specially
- oAnchor.name = sNewName ;
-
- return true ;
- }
-
- // Create a new anchor preserving the current selection
- var aNewAnchors = oEditor.FCK.CreateLink( '#' ) ;
-
- if ( aNewAnchors.length == 0 )
- aNewAnchors.push( oEditor.FCK.InsertElement( 'a' ) ) ;
- else
- {
- // Remove the fake href
- for ( var i = 0 ; i < aNewAnchors.length ; i++ )
- aNewAnchors[i].removeAttribute( 'href' ) ;
- }
-
- // More than one anchors may have been created, so interact through all of them (see #220).
- for ( var i = 0 ; i < aNewAnchors.length ; i++ )
- {
- oAnchor = aNewAnchors[i] ;
-
- // Set the name
- if ( FCKBrowserInfo.IsIE )
- {
- // Setting anchor names directly in IE will trash the HTML code stored
- // in FCKTempBin after undos. See #2263.
- var replaceAnchor = oEditor.FCK.EditorDocument.createElement( '<a name="' +
- FCKTools.HTMLEncode( sNewName ).replace( '"', '&quot;' ) + '">' ) ;
- oEditor.FCKDomTools.MoveChildren( oAnchor, replaceAnchor ) ;
- oAnchor.parentNode.replaceChild( replaceAnchor, oAnchor ) ;
- oAnchor = replaceAnchor ;
- }
- else
- oAnchor.name = sNewName ;
-
- // IE does require special processing to show the Anchor's image
- // Opera doesn't allow to select empty anchors
- if ( FCKBrowserInfo.IsIE || FCKBrowserInfo.IsOpera )
- {
- if ( oAnchor.innerHTML != '' )
- {
- if ( FCKBrowserInfo.IsIE )
- oAnchor.className += ' FCK__AnchorC' ;
- }
- else
- {
- // Create a fake image for both IE and Opera
- var oImg = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Anchor', oAnchor.cloneNode(true) ) ;
- oImg.setAttribute( '_fckanchor', 'true', 0 ) ;
-
- oAnchor.parentNode.insertBefore( oImg, oAnchor ) ;
- oAnchor.parentNode.removeChild( oAnchor ) ;
- }
-
- }
- }
-
- return true ;
-}
-
-// Checks all the links in the current page pointing to the current name and changes them to the new name
-function ReadjustLinksToAnchor( sCurrent, sNew )
-{
- var oDoc = FCK.EditorDocument ;
-
- var aLinks = oDoc.getElementsByTagName( 'A' ) ;
-
- var sReference = '#' + sCurrent ;
- // The url of the document, so we check absolute and partial references.
- var sFullReference = oDoc.location.href.replace( /(#.*$)/, '') ;
- sFullReference += sReference ;
-
- var oLink ;
- var i = aLinks.length - 1 ;
- while ( i >= 0 && ( oLink = aLinks[i--] ) )
- {
- var sHRef = oLink.getAttribute( '_fcksavedurl' ) ;
- if ( sHRef == null )
- sHRef = oLink.getAttribute( 'href' , 2 ) || '' ;
-
- if ( sHRef == sReference || sHRef == sFullReference )
- {
- oLink.href = '#' + sNew ;
- SetAttribute( oLink, '_fcksavedurl', '#' + sNew ) ;
- }
- }
-}
-
- </script>
- </head>
- <body style="overflow: hidden">
- <table height="100%" width="100%">
- <tr>
- <td align="center">
- <table border="0" cellpadding="0" cellspacing="0" width="80%">
- <tr>
- <td>
- <span fckLang="DlgAnchorName">Anchor Name</span><BR>
- <input id="txtName" style="WIDTH: 100%" type="text">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
-</html>
View
104 public/fckeditor/editor/dialog/fck_button.html
@@ -1,104 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Button dialog window.
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>Button Properties</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta content="noindex, nofollow" name="robots" />
- <script src="common/fck_dialog_common.js" type="text/javascript"></script>
- <script type="text/javascript">
-
-var dialog = window.parent ;
-var oEditor = dialog.InnerDialogLoaded() ;
-
-// Gets the document DOM
-var oDOM = oEditor.FCK.EditorDocument ;
-
-var oActiveEl = dialog.Selection.GetSelectedElement() ;
-
-window.onload = function()
-{
- // First of all, translate the dialog box texts
- oEditor.FCKLanguageManager.TranslatePage(document) ;
-
- if ( oActiveEl && oActiveEl.tagName.toUpperCase() == "INPUT" && ( oActiveEl.type == "button" || oActiveEl.type == "submit" || oActiveEl.type == "reset" ) )
- {
- GetE('txtName').value = oActiveEl.name ;
- GetE('txtValue').value = oActiveEl.value ;
- GetE('txtType').value = oActiveEl.type ;
- }
- else
- oActiveEl = null ;
-
- dialog.SetOkButton( true ) ;
- dialog.SetAutoSize( true ) ;
- SelectField( 'txtName' ) ;
-}
-
-function Ok()
-{
- oEditor.FCKUndo.SaveUndoStep() ;
-
- oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: GetE('txtType').value } ) ;
-
- SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
-
- return true ;
-}
-
- </script>
-</head>
-<body style="overflow: hidden">
- <table width="100%" style="height: 100%">
- <tr>
- <td align="center">
- <table border="0" cellpadding="0" cellspacing="0" width="80%">
- <tr>
- <td colspan="">
- <span fcklang="DlgCheckboxName">Name</span><br />
- <input type="text" size="20" id="txtName" style="width: 100%" />
- </td>
- </tr>
- <tr>
- <td>
- <span fcklang="DlgButtonText">Text (Value)</span><br />
- <input type="text" id="txtValue" style="width: 100%" />
- </td>
- </tr>
- <tr>
- <td>
- <span fcklang="DlgButtonType">Type</span><br />
- <select id="txtType">
- <option fcklang="DlgButtonTypeBtn" value="button" selected="selected">Button</option>
- <option fcklang="DlgButtonTypeSbm" value="submit">Submit</option>
- <option fcklang="DlgButtonTypeRst" value="reset">Reset</option>
- </select>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</body>
-</html>
View
104 public/fckeditor/editor/dialog/fck_checkbox.html
@@ -1,104 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Checkbox dialog window.
--->
-<html>
- <head>
- <title>Checkbox Properties</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta content="noindex, nofollow" name="robots">
- <script src="common/fck_dialog_common.js" type="text/javascript"></script>
- <script type="text/javascript">
-
-var dialog = window.parent ;
-var oEditor = dialog.InnerDialogLoaded() ;
-
-// Gets the document DOM
-var oDOM = oEditor.FCK.EditorDocument ;
-
-var oActiveEl = dialog.Selection.GetSelectedElement() ;
-
-window.onload = function()
-{
- // First of all, translate the dialog box texts
- oEditor.FCKLanguageManager.TranslatePage(document) ;
-
- if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'checkbox' )
- {
- GetE('txtName').value = oActiveEl.name ;
- GetE('txtValue').value = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ;
- GetE('txtSelected').checked = oActiveEl.checked ;
- }
- else
- oActiveEl = null ;
-
- dialog.SetOkButton( true ) ;
- dialog.SetAutoSize( true ) ;
- SelectField( 'txtName' ) ;
-}
-
-function Ok()
-{
- oEditor.FCKUndo.SaveUndoStep() ;
-
- oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: 'checkbox' } ) ;
-
- if ( oEditor.FCKBrowserInfo.IsIE )
- oActiveEl.value = GetE('txtValue').value ;
- else
- SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
-
- var bIsChecked = GetE('txtSelected').checked ;
- SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ; // For Firefox
- oActiveEl.checked = bIsChecked ;
-
- return true ;
-}
-
- </script>
- </head>
- <body style="OVERFLOW: hidden" scroll="no">
- <table height="100%" width="100%">
- <tr>
- <td align="center">
- <table border="0" cellpadding="0" cellspacing="0" width="80%">
- <tr>
- <td>
- <span fckLang="DlgCheckboxName">Name</span><br>
- <input type="text" size="20" id="txtName" style="WIDTH: 100%">
- </td>
- </tr>
- <tr>
- <td>
- <span fckLang="DlgCheckboxValue">Value</span><br>
- <input type="text" size="20" id="txtValue" style="WIDTH: 100%">
- </td>
- </tr>
- <tr>
- <td><input type="checkbox" id="txtSelected"><label for="txtSelected" fckLang="DlgCheckboxSelected">Checked</label></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
-</html>
View
172 public/fckeditor/editor/dialog/fck_colorselector.html
@@ -1,172 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Color Selection dialog window.
--->
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="robots" content="noindex, nofollow" />
- <style TYPE="text/css">
- #ColorTable { cursor: pointer ; cursor: hand ; }
- #hicolor { height: 74px ; width: 74px ; border-width: 1px ; border-style: solid ; }
- #hicolortext { width: 75px ; text-align: right ; margin-bottom: 7px ; }
- #selhicolor { height: 20px ; width: 74px ; border-width: 1px ; border-style: solid ; }
- #selcolor { width: 75px ; height: 20px ; margin-top: 0px ; margin-bottom: 7px ; }
- #btnClear { width: 75px ; height: 22px ; margin-bottom: 6px ; }
- .ColorCell { height: 15px ; width: 15px ; }
- </style>
- <script src="common/fck_dialog_common.js" type="text/javascript"></script>
- <script type="text/javascript">
-
-var oEditor = window.parent.InnerDialogLoaded() ;
-
-function OnLoad()
-{
- // First of all, translate the dialog box texts
- oEditor.FCKLanguageManager.TranslatePage(document) ;
-
- CreateColorTable() ;
-
- window.parent.SetOkButton( true ) ;
- window.parent.SetAutoSize( true ) ;
-}
-
-function CreateColorTable()
-{
- // Get the target table.
- var oTable = document.getElementById('ColorTable') ;
-
- // Create the base colors array.
- var aColors = ['00','33','66','99','cc','ff'] ;
-
- // This function combines two ranges of three values from the color array into a row.
- function AppendColorRow( rangeA, rangeB )
- {
- for ( var i = rangeA ; i < rangeA + 3 ; i++ )
- {
- var oRow = oTable.insertRow(-1) ;
-
- for ( var j = rangeB ; j < rangeB + 3 ; j++ )
- {
- for ( var n = 0 ; n < 6 ; n++ )
- {
- AppendColorCell( oRow, '#' + aColors[j] + aColors[n] + aColors[i] ) ;
- }
- }
- }
- }
-
- // This function create a single color cell in the color table.
- function AppendColorCell( targetRow, color )
- {
- var oCell = targetRow.insertCell(-1) ;
- oCell.className = 'ColorCell' ;
- oCell.bgColor = color ;
-
- oCell.onmouseover = function()
- {
- document.getElementById('hicolor').style.backgroundColor = this.bgColor ;
- document.getElementById('hicolortext').innerHTML = this.bgColor ;
- }
-
- oCell.onclick = function()
- {
- document.getElementById('selhicolor').style.backgroundColor = this.bgColor ;
- document.getElementById('selcolor').value = this.bgColor ;
- }
- }
-
- AppendColorRow( 0, 0 ) ;
- AppendColorRow( 3, 0 ) ;
- AppendColorRow( 0, 3 ) ;
- AppendColorRow( 3, 3 ) ;
-
- // Create the last row.
- var oRow = oTable.insertRow(-1) ;
-
- // Create the gray scale colors cells.
- for ( var n = 0 ; n < 6 ; n++ )
- {
- AppendColorCell( oRow, '#' + aColors[n] + aColors[n] + aColors[n] ) ;
- }
-
- // Fill the row with black cells.
- for ( var i = 0 ; i < 12 ; i++ )
- {
- AppendColorCell( oRow, '#000000' ) ;
- }
-}
-
-function Clear()
-{
- document.getElementById('selhicolor').style.backgroundColor = '' ;
- document.getElementById('selcolor').value = '' ;
-}
-
-function ClearActual()
-{
- document.getElementById('hicolor').style.backgroundColor = '' ;
- document.getElementById('hicolortext').innerHTML = '&nbsp;' ;
-}
-
-function UpdateColor()
-{
- try { document.getElementById('selhicolor').style.backgroundColor = document.getElementById('selcolor').value ; }
- catch (e) { Clear() ; }
-}
-
-function Ok()
-{
- if ( typeof(window.parent.Args().CustomValue) == 'function' )
- window.parent.Args().CustomValue( document.getElementById('selcolor').value ) ;
-
- return true ;
-}
- </script>
- </head>
- <body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
- <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
- <tr>
- <td align="center" valign="middle">
- <table border="0" cellspacing="5" cellpadding="0" width="100%">
- <tr>
- <td valign="top" align="center" nowrap width="100%">
- <table id="ColorTable" border="0" cellspacing="0" cellpadding="0" width="270" onmouseout="ClearActual();">
- </table>
- </td>
- <td valign="top" align="left" nowrap>
- <span fckLang="DlgColorHighlight">Highlight</span>
- <div id="hicolor"></div>
- <div id="hicolortext">&nbsp;</div>
- <span fckLang="DlgColorSelected">Selected</span>
- <div id="selhicolor"></div>
- <input id="selcolor" type="text" maxlength="20" onchange="UpdateColor();">
- <br>
- <input id="btnClear" type="button" fckLang="DlgColorBtnClear" value="Clear" onclick="Clear();" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
-</html>
View
364 public/fckeditor/editor/dialog/fck_div.html
@@ -1,364 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-<!--
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2008 Frederico Caldeira Knabben
- *
- * == BEGIN LICENSE ==
- *
- * Licensed under the terms of any of the following licenses at your
- * choice:
- *
- * - GNU General Public License Version 2 or later (the "GPL")
- * http://www.gnu.org/licenses/gpl.html
- *
- * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
- * http://www.gnu.org/licenses/lgpl.html
- *
- * - Mozilla Public License Version 1.1 or later (the "MPL")
- * http://www.mozilla.org/MPL/MPL-1.1.html
- *
- * == END LICENSE ==
- *
- * Form dialog window.
--->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta content="noindex, nofollow" name="robots" />
- <script src="common/fck_dialog_common.js" type="text/javascript"></script>
- <script type="text/javascript">
-var dialog = window.parent ;
-var oEditor = dialog.InnerDialogLoaded() ;
-var FCK = oEditor.FCK ;
-var FCKLang = oEditor.FCKLang ;
-var FCKBrowserInfo = oEditor.FCKBrowserInfo ;
-var FCKStyles = oEditor.FCKStyles ;
-var FCKElementPath = oEditor.FCKElementPath ;
-var FCKDomRange = oEditor.FCKDomRange ;
-var FCKDomTools = oEditor.FCKDomTools ;
-var FCKDomRangeIterator = oEditor.FCKDomRangeIterator ;
-var FCKListsLib = oEditor.FCKListsLib ;
-var AlwaysCreate = dialog.Args().CustomValue ;
-
-String.prototype.IEquals = function()
-{
- var thisUpper = this.toUpperCase() ;
-
- var aArgs = arguments ;
-
- // The arguments could also be a single array.
- if ( aArgs.length == 1 && aArgs[0].pop )
- aArgs = aArgs[0] ;
-
- for ( var i = 0 ; i < aArgs.length ; i++ )
- {
- if ( thisUpper == aArgs[i].toUpperCase() )
- return true ;
- }
- return false ;
-}
-
-var CurrentContainers = [] ;
-if ( !AlwaysCreate )
-{
- dialog.Selection.EnsureSelection() ;
- CurrentContainers = FCKDomTools.GetSelectedDivContainers() ;
-}
-
-// Add some tabs
-dialog.AddTab( 'General', FCKLang.DlgDivGeneralTab );
-dialog.AddTab( 'Advanced', FCKLang.DlgDivAdvancedTab ) ;
-
-function AddStyleOption( styleName )
-{
- var el = GetE( 'selStyle' ) ;
- var opt = document.createElement( 'option' ) ;
- opt.text = opt.value = styleName ;
-
- if ( FCKBrowserInfo.IsIE )
- el.add( opt ) ;
- else
- el.add( opt, null ) ;
-}
-
-function OnDialogTabChange( tabCode )
-{
- ShowE( 'divGeneral', tabCode == 'General' ) ;
- ShowE( 'divAdvanced', tabCode == 'Advanced' ) ;
- dialog.SetAutoSize( true ) ;
-}
-
-function GetNearestAncestorDirection( node )
-{
- var dir = 'ltr' ; // HTML default.
- while ( ( node = node.parentNode ) )
- {
- if ( node.dir )
- dir = node.dir ;
- }
- return dir ;
-}
-
-window.onload = function()
-{
- // First of all, translate the dialog box texts
- oEditor.FCKLanguageManager.TranslatePage(document) ;
-
- dialog.SetOkButton( true ) ;
- dialog.SetAutoSize( true ) ;
-
- // Popuplate the style menu
- var styles = FCKStyles.GetStyles() ;
- var selectableStyles = {} ;
- for ( var i in styles )
- {
- if ( ! /^_FCK_/.test( i ) && styles[i].Element == 'div' )
- selectableStyles[i] = styles[i] ;
- }
- if ( CurrentContainers.length <= 1 )
- {
- var target = CurrentContainers[0] ;
- var match = null ;
- for ( var i in selectableStyles )
- {
- if ( target && styles[i].CheckElementRemovable( target, true ) )
- match = i ;
- }
- if ( !match )
- AddStyleOption( "" ) ;
- for ( var i in selectableStyles )
- AddStyleOption( i ) ;
- if ( match )
- GetE( 'selStyle' ).value = match ;
-
- // Set the value for other inputs
- if ( target )
- {
- GetE( 'txtClass' ).value = target.className ;
- GetE( 'txtId' ).value = target.id ;
- GetE( 'txtLang' ).value = target.lang ;
- GetE( 'txtInlineStyle').value = target.style.cssText ;
- GetE( 'txtTitle' ).value = target.title ;
- GetE( 'selLangDir').value = target.dir || GetNearestAncestorDirection( target ) ;
- }
- }
- else
- {
- GetE( 'txtId' ).disabled = true ;
- AddStyleOption( "" ) ;
- for ( var i in selectableStyles )
- AddStyleOption( i ) ;
- }
-}
-
-function CreateDiv()
-{
- var newBlocks = [] ;
- var range = new FCKDomRange( FCK.EditorWindow ) ;
- range.MoveToSelection() ;
-
- var bookmark = range.CreateBookmark() ;
-
- // Kludge for #1592: if the bookmark nodes are in the beginning of
- // $tagName, then move them to the nearest block element in the
- // $tagName.
- if ( FCKBrowserInfo.IsIE )
- {
- var bStart = range.GetBookmarkNode( bookmark, true ) ;
- var bEnd = range.GetBookmarkNode( bookmark, false ) ;
-
- var cursor ;
-
- if ( bStart
- && bStart.parentNode.nodeName.IEquals( 'div' )
- && !bStart.previousSibling )
- {
- cursor = bStart ;
- while ( ( cursor = cursor.nextSibling ) )
- {
- if ( FCKListsLib.BlockElements[ cursor.nodeName.toLowerCase() ] )
- FCKDomTools.MoveNode( bStart, cursor, true ) ;
- }
- }
-
- if ( bEnd
- && bEnd.parentNode.nodeName.IEquals( 'div' )
- && !bEnd.previousSibling )
- {
- cursor = bEnd ;
- while ( ( cursor = cursor.nextSibling ) )
- {
- if ( FCKListsLib.BlockElements[ cursor.nodeName.toLowerCase() ] )
- {
- if ( cursor.firstChild == bStart )
- FCKDomTools.InsertAfterNode( bStart, bEnd ) ;
- else
- FCKDomTools.MoveNode( bEnd, cursor, true ) ;
- }
- }
- }
- }
-
- var iterator = new FCKDomRangeIterator( range ) ;
- var block ;
-
- iterator.EnforceRealBlocks = true ;
- var paragraphs = [] ;
- var groups = [] ;
- var lastBlockLimit = null ;
- while ( ( block = iterator.GetNextParagraph() ) )
- {
- var elementPath = new FCKElementPath( block ) ;
- if ( elementPath.BlockLimit != lastBlockLimit )
- {
- groups.push( [] ) ;
- lastBlockLimit = elementPath.BlockLimit ;
- }
- groups[groups.length - 1].push( block ) ;
- }
-
- for ( var i = 0 ; i < groups.length ; i++ )
- {
- var divNode = FCK.EditorDocument.createElement( 'div' ) ;
- groups[i][0].parentNode.insertBefore( divNode, groups[i][0] ) ;
- for ( var j = 0 ; j < groups[i].length ; j++ )
- FCKDomTools.MoveNode( groups[i][j], divNode ) ;
- newBlocks.push( divNode ) ;
- }
-
- range.MoveToBookmark( bookmark ) ;
- range.Select() ;
-
- FCK.Focus() ;
- FCK.Events.FireEvent( 'OnSelectionChange' ) ;
-
- return newBlocks ;
-}