Permalink
Browse files

Moving old editor to htmlarea folder.

  • Loading branch information...
julmis
julmis committed Mar 4, 2006
1 parent c2db12a commit 6c1e8ba8d2b6ea9fb8cdb189a46b646cd77f83b8
Showing with 11,679 additions and 0 deletions.
  1. +826 −0 lib/editor/htmlarea/coursefiles.php
  2. +80 −0 lib/editor/htmlarea/dialog.js
  3. +366 −0 lib/editor/htmlarea/htmlarea.class.php
  4. +180 −0 lib/editor/htmlarea/htmlarea.css
  5. +2,517 −0 lib/editor/htmlarea/htmlarea.php
  6. +2,304 −0 lib/editor/htmlarea/htmlarea_bak.php
  7. BIN lib/editor/htmlarea/images/ed_about.gif
  8. BIN lib/editor/htmlarea/images/ed_align_center.gif
  9. BIN lib/editor/htmlarea/images/ed_align_justify.gif
  10. BIN lib/editor/htmlarea/images/ed_align_left.gif
  11. BIN lib/editor/htmlarea/images/ed_align_right.gif
  12. BIN lib/editor/htmlarea/images/ed_anchor.gif
  13. BIN lib/editor/htmlarea/images/ed_blank.gif
  14. BIN lib/editor/htmlarea/images/ed_charmap.gif
  15. BIN lib/editor/htmlarea/images/ed_color_bg.gif
  16. BIN lib/editor/htmlarea/images/ed_color_fg.gif
  17. BIN lib/editor/htmlarea/images/ed_copy.gif
  18. BIN lib/editor/htmlarea/images/ed_custom.gif
  19. BIN lib/editor/htmlarea/images/ed_cut.gif
  20. BIN lib/editor/htmlarea/images/ed_delete.gif
  21. BIN lib/editor/htmlarea/images/ed_format_bold.gif
  22. BIN lib/editor/htmlarea/images/ed_format_italic.gif
  23. BIN lib/editor/htmlarea/images/ed_format_strike.gif
  24. BIN lib/editor/htmlarea/images/ed_format_sub.gif
  25. BIN lib/editor/htmlarea/images/ed_format_sup.gif
  26. BIN lib/editor/htmlarea/images/ed_format_underline.gif
  27. BIN lib/editor/htmlarea/images/ed_help.gif
  28. BIN lib/editor/htmlarea/images/ed_hr.gif
  29. BIN lib/editor/htmlarea/images/ed_html.gif
  30. BIN lib/editor/htmlarea/images/ed_image.gif
  31. BIN lib/editor/htmlarea/images/ed_indent_less.gif
  32. BIN lib/editor/htmlarea/images/ed_indent_more.gif
  33. BIN lib/editor/htmlarea/images/ed_left_to_right.gif
  34. BIN lib/editor/htmlarea/images/ed_link.gif
  35. BIN lib/editor/htmlarea/images/ed_list_bullet.gif
  36. BIN lib/editor/htmlarea/images/ed_list_num.gif
  37. BIN lib/editor/htmlarea/images/ed_nolink.gif
  38. BIN lib/editor/htmlarea/images/ed_paste.gif
  39. BIN lib/editor/htmlarea/images/ed_redo.gif
  40. BIN lib/editor/htmlarea/images/ed_replace.gif
  41. BIN lib/editor/htmlarea/images/ed_right_to_left.gif
  42. BIN lib/editor/htmlarea/images/ed_show_border.gif
  43. BIN lib/editor/htmlarea/images/ed_splitcel.gif
  44. BIN lib/editor/htmlarea/images/ed_undo.gif
  45. BIN lib/editor/htmlarea/images/ed_unlink.gif
  46. BIN lib/editor/htmlarea/images/ed_wordclean.gif
  47. BIN lib/editor/htmlarea/images/em.icon.smile.gif
  48. BIN lib/editor/htmlarea/images/folderup.gif
  49. BIN lib/editor/htmlarea/images/fullscreen_maximize.gif
  50. BIN lib/editor/htmlarea/images/fullscreen_minimize.gif
  51. BIN lib/editor/htmlarea/images/icon_ins_char.gif
  52. BIN lib/editor/htmlarea/images/icon_smile.gif
  53. BIN lib/editor/htmlarea/images/insert_table.gif
  54. BIN lib/editor/htmlarea/images/spell-check.gif
  55. 0 lib/editor/htmlarea/index.html
  56. +63 −0 lib/editor/htmlarea/lang/en.js
  57. +88 −0 lib/editor/htmlarea/lang/en.php
  58. +13 −0 lib/editor/htmlarea/license.txt
  59. BIN lib/editor/htmlarea/plugins/SpellChecker/img/spell-check.gif
  60. +37 −0 lib/editor/htmlarea/plugins/SpellChecker/lang/en.js
  61. +37 −0 lib/editor/htmlarea/plugins/SpellChecker/lang/ro.js
  62. +115 −0 lib/editor/htmlarea/plugins/SpellChecker/readme-tech.html
  63. +155 −0 lib/editor/htmlarea/plugins/SpellChecker/spell-check-logic.cgi
  64. +10 −0 lib/editor/htmlarea/plugins/SpellChecker/spell-check-style.css
  65. +119 −0 lib/editor/htmlarea/plugins/SpellChecker/spell-check-ui.html
  66. +334 −0 lib/editor/htmlarea/plugins/SpellChecker/spell-check-ui.js
  67. +72 −0 lib/editor/htmlarea/plugins/SpellChecker/spell-checker.js
  68. BIN lib/editor/htmlarea/plugins/TableOperations/img/cell-delete.gif
  69. BIN lib/editor/htmlarea/plugins/TableOperations/img/cell-insert-after.gif
  70. BIN lib/editor/htmlarea/plugins/TableOperations/img/cell-insert-before.gif
  71. BIN lib/editor/htmlarea/plugins/TableOperations/img/cell-merge.gif
  72. BIN lib/editor/htmlarea/plugins/TableOperations/img/cell-prop.gif
  73. BIN lib/editor/htmlarea/plugins/TableOperations/img/cell-split.gif
  74. BIN lib/editor/htmlarea/plugins/TableOperations/img/col-delete.gif
  75. BIN lib/editor/htmlarea/plugins/TableOperations/img/col-insert-after.gif
  76. BIN lib/editor/htmlarea/plugins/TableOperations/img/col-insert-before.gif
  77. BIN lib/editor/htmlarea/plugins/TableOperations/img/col-split.gif
  78. BIN lib/editor/htmlarea/plugins/TableOperations/img/row-delete.gif
  79. BIN lib/editor/htmlarea/plugins/TableOperations/img/row-insert-above.gif
  80. BIN lib/editor/htmlarea/plugins/TableOperations/img/row-insert-under.gif
  81. BIN lib/editor/htmlarea/plugins/TableOperations/img/row-prop.gif
  82. BIN lib/editor/htmlarea/plugins/TableOperations/img/row-split.gif
  83. BIN lib/editor/htmlarea/plugins/TableOperations/img/table-prop.gif
  84. +90 −0 lib/editor/htmlarea/plugins/TableOperations/lang/en.js
  85. +66 −0 lib/editor/htmlarea/plugins/TableOperations/lang/fi.js
  86. +90 −0 lib/editor/htmlarea/plugins/TableOperations/lang/ro.js
  87. +7 −0 lib/editor/htmlarea/plugins/TableOperations/makefile.xml
  88. +1,167 −0 lib/editor/htmlarea/plugins/TableOperations/table-operations.js
  89. +369 −0 lib/editor/htmlarea/popupdiv.js
  90. +55 −0 lib/editor/htmlarea/popups/about.html
  91. +2 −0 lib/editor/htmlarea/popups/blank.html
  92. +68 −0 lib/editor/htmlarea/popups/createanchor.php
  93. +72 −0 lib/editor/htmlarea/popups/dialog.css
  94. +142 −0 lib/editor/htmlarea/popups/dlg_ins_char.php
  95. +125 −0 lib/editor/htmlarea/popups/dlg_ins_smile.php
  96. +16 −0 lib/editor/htmlarea/popups/editor_help.html
  97. +175 −0 lib/editor/htmlarea/popups/fullscreen.php
  98. +346 −0 lib/editor/htmlarea/popups/insert_image.php
  99. +231 −0 lib/editor/htmlarea/popups/insert_image_std.php
  100. +172 −0 lib/editor/htmlarea/popups/insert_table.php
  101. +154 −0 lib/editor/htmlarea/popups/link.php
  102. +189 −0 lib/editor/htmlarea/popups/link_std.php
  103. +86 −0 lib/editor/htmlarea/popups/popup.js
  104. +35 −0 lib/editor/htmlarea/popups/preview.php
  105. +142 −0 lib/editor/htmlarea/popups/searchandreplace.php
  106. +355 −0 lib/editor/htmlarea/popups/select_color.php
  107. +127 −0 lib/editor/htmlarea/popupwin.js
  108. +82 −0 lib/editor/htmlarea/release-notes.html

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,80 @@
// $Id$
// Though "Dialog" looks like an object, it isn't really an object. Instead
// it's just namespace for protecting global symbols.
function Dialog(url, action, init) {
if (typeof init == "undefined") {
init = window; // pass this window object by default
}
Dialog._geckoOpenModal(url, action, init);
};
Dialog._parentEvent = function(ev) {
if (Dialog._modal && !Dialog._modal.closed) {
Dialog._modal.focus();
HTMLArea._stopEvent(ev);
}
};
// should be a function, the return handler of the currently opened dialog.
Dialog._return = null;
// constant, the currently opened dialog
Dialog._modal = null;
// the dialog will read it's args from this variable
Dialog._arguments = null;
Dialog._geckoOpenModal = function(url, action, init) {
var file = url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.'));
var x,y;
switch(file) {
case "insert_image": x = 730; y = 560; break;
case "dlg_ins_smile": x = 330; y = 320; break;
case "dlg_ins_char": x = 480; y = 290; break;
case "select_color": x = 238; y = 195; break;
case "insert_table": x = 420; y = 250; break;
case "link_std": x = 420; y = 230; break;
case "insert_image_std": x = 450; y = 240; break;
case "createanchor": x = 300; y = 140; break;
case "searchandreplace": x = 400; y = 250; break;
default: x = 50; y = 50;
}
var lx = (screen.width - x) / 2;
var tx = (screen.height - y) / 2;
var dlg = window.open(url, "ha_dialog", "toolbar=no,menubar=no,personalbar=no, width="+ x +",height="+ y +",scrollbars=no,resizable=no, left="+ lx +", top="+ tx +"");
Dialog._modal = dlg;
Dialog._arguments = init;
// capture some window's events
function capwin(w) {
HTMLArea._addEvent(w, "click", Dialog._parentEvent);
HTMLArea._addEvent(w, "mousedown", Dialog._parentEvent);
HTMLArea._addEvent(w, "focus", Dialog._parentEvent);
};
// release the captured events
function relwin(w) {
HTMLArea._removeEvent(w, "click", Dialog._parentEvent);
HTMLArea._removeEvent(w, "mousedown", Dialog._parentEvent);
HTMLArea._removeEvent(w, "focus", Dialog._parentEvent);
};
capwin(window);
// capture other frames
if(document.all) {
for (var i = 0; i < window.frames.length; capwin(window.frames[i++]));
}
// make up a function to be called when the Dialog ends.
Dialog._return = function (val) {
relwin(window);
// capture other frames
if(document.all) {
for (var i = 0; i < window.frames.length; relwin(window.frames[i++]));
}
if (val && action) {
action(val);
}
Dialog._modal = null;
};
};
Oops, something went wrong.

0 comments on commit 6c1e8ba

Please sign in to comment.