|
From: <se...@us...> - 2008-05-07 22:19:04
|
Revision: 102
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=102&view=rev
Author: sem62
Date: 2008-05-07 15:19:10 -0700 (Wed, 07 May 2008)
Log Message:
-----------
Added spaw2 wysiwyg editor to Lecture caption edit.
Modified Paths:
--------------
WebEditor/resources/index.html
WebEditor/src/edu/lnu/FireFly/WebEditor/GUI/Dialogs/LecturePropertiestsDlg.java
WebEditor/src/edu/lnu/FireFly/WebEditor/GUI/Dialogs/PropertyDlg.java
WebEditor/src/edu/lnu/FireFly/WebEditor/GUI/Dialogs/SimpleQuestionPropertiestsDlg.java
WebEditor/src/edu/lnu/FireFly/WebEditor/WebEditor.java
Added Paths:
-----------
WebEditor/resources/HTMLedit.php
WebEditor/resources/HTMLeditor.js
WebEditor/resources/spaw2/
WebEditor/resources/spaw2/class/
WebEditor/resources/spaw2/class/config.class.php
WebEditor/resources/spaw2/class/editor.class.php
WebEditor/resources/spaw2/class/lang.class.php
WebEditor/resources/spaw2/class/output.class.php
WebEditor/resources/spaw2/class/theme.class.php
WebEditor/resources/spaw2/class/toolbar.class.php
WebEditor/resources/spaw2/class/util.class.php
WebEditor/resources/spaw2/config/
WebEditor/resources/spaw2/config/config.php
WebEditor/resources/spaw2/demo/
WebEditor/resources/spaw2/demo/demo.php
WebEditor/resources/spaw2/dialogs/
WebEditor/resources/spaw2/dialogs/dialog.php
WebEditor/resources/spaw2/dialogs/img/
WebEditor/resources/spaw2/dialogs/img/spacer.gif
WebEditor/resources/spaw2/docs/
WebEditor/resources/spaw2/docs/changelog.txt
WebEditor/resources/spaw2/docs/documentation/
WebEditor/resources/spaw2/docs/documentation/documentation.css
WebEditor/resources/spaw2/docs/documentation/integrators.html
WebEditor/resources/spaw2/docs/documentation/plugins.html
WebEditor/resources/spaw2/docs/license.txt
WebEditor/resources/spaw2/docs/readme.txt
WebEditor/resources/spaw2/docs/releasenotes.txt
WebEditor/resources/spaw2/empty/
WebEditor/resources/spaw2/empty/empty.html
WebEditor/resources/spaw2/img/
WebEditor/resources/spaw2/img/flash.gif
WebEditor/resources/spaw2/img/spacer100.gif
WebEditor/resources/spaw2/js/
WebEditor/resources/spaw2/js/common/
WebEditor/resources/spaw2/js/common/color.js
WebEditor/resources/spaw2/js/common/contextmenu.js
WebEditor/resources/spaw2/js/common/editor.js
WebEditor/resources/spaw2/js/common/editorpage.js
WebEditor/resources/spaw2/js/common/engine.js
WebEditor/resources/spaw2/js/common/entities.js
WebEditor/resources/spaw2/js/common/events.js
WebEditor/resources/spaw2/js/common/tab.js
WebEditor/resources/spaw2/js/common/toolbar.js
WebEditor/resources/spaw2/js/common/utils.js
WebEditor/resources/spaw2/js/gecko/
WebEditor/resources/spaw2/js/gecko/editor.js
WebEditor/resources/spaw2/js/ie/
WebEditor/resources/spaw2/js/ie/editor.js
WebEditor/resources/spaw2/js/opera/
WebEditor/resources/spaw2/js/opera/editor.js
WebEditor/resources/spaw2/js/spaw.js.php
WebEditor/resources/spaw2/plugins/
WebEditor/resources/spaw2/plugins/core/
WebEditor/resources/spaw2/plugins/core/dialogs/
WebEditor/resources/spaw2/plugins/core/dialogs/colorpicker.inc.php
WebEditor/resources/spaw2/plugins/core/dialogs/colorpicker.js
WebEditor/resources/spaw2/plugins/core/dialogs/flash_prop.inc.php
WebEditor/resources/spaw2/plugins/core/dialogs/flash_prop.js
WebEditor/resources/spaw2/plugins/core/dialogs/hyperlink.inc.php
WebEditor/resources/spaw2/plugins/core/dialogs/hyperlink.js
WebEditor/resources/spaw2/plugins/core/dialogs/image_prop.inc.php
WebEditor/resources/spaw2/plugins/core/dialogs/image_prop.js
WebEditor/resources/spaw2/plugins/core/dialogs/img/
WebEditor/resources/spaw2/plugins/core/dialogs/img/crosshair.gif
WebEditor/resources/spaw2/plugins/core/dialogs/img/huesaturation.jpg
WebEditor/resources/spaw2/plugins/core/dialogs/img/leftarrow.gif
WebEditor/resources/spaw2/plugins/core/dialogs/img/spacer.gif
WebEditor/resources/spaw2/plugins/core/dialogs/table_cell_prop.inc.php
WebEditor/resources/spaw2/plugins/core/dialogs/table_cell_prop.js
WebEditor/resources/spaw2/plugins/core/dialogs/table_prop.inc.php
WebEditor/resources/spaw2/plugins/core/dialogs/table_prop.js
WebEditor/resources/spaw2/plugins/core/js/
WebEditor/resources/spaw2/plugins/core/js/common/
WebEditor/resources/spaw2/plugins/core/js/common/format.js
WebEditor/resources/spaw2/plugins/core/js/common/general.js
WebEditor/resources/spaw2/plugins/core/js/common/insert.js
WebEditor/resources/spaw2/plugins/core/js/common/mode.js
WebEditor/resources/spaw2/plugins/core/js/common/table.js
WebEditor/resources/spaw2/plugins/core/js/common/tools.js
WebEditor/resources/spaw2/plugins/core/js/gecko/
WebEditor/resources/spaw2/plugins/core/js/gecko/format_gecko.js
WebEditor/resources/spaw2/plugins/core/js/ie/
WebEditor/resources/spaw2/plugins/core/js/ie/format_ie.js
WebEditor/resources/spaw2/plugins/core/js/opera/
WebEditor/resources/spaw2/plugins/core/js/opera/format_opera.js
WebEditor/resources/spaw2/plugins/core/lib/
WebEditor/resources/spaw2/plugins/core/lib/lang/
WebEditor/resources/spaw2/plugins/core/lib/lang/ar.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/az.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/bg.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/br.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/ca.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/cz.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/de.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/dk.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/en.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/es.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/et.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/fi.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/fr.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/gr.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/gz.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/he.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/hr.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/hu.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/it.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/ja.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/lt.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/lv.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/nl.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/no.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/pl.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/pt.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/ru.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/se.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/si.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/sk.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/sr.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/tr.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/uk.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/vn.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/zh-big5.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/lang/zh-gb2312.lang.inc.php
WebEditor/resources/spaw2/plugins/core/lib/theme/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/config/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/config/theme.config.php
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/css/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/css/dialog.css
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/css/theme.css
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/atab_bg.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/atab_left.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/atab_right.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/bg_pattern.jpg
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/btbg.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/checkmark.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/graydot.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/sizing_grip.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/spacer.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tab_bg.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tab_left.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tab_right.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__empty.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__empty_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__empty_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__empty_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__plugin.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__plugin_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__plugin_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb__plugin_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_baseline.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_baseline_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_baseline_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_baseline_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bg_color.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bg_color_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bg_color_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bg_color_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bold.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bold_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bold_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bold_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bottom.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bottom_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bottom_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_bottom_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cleanup.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cleanup_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cleanup_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cleanup_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_colorpicker.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_colorpicker_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_colorpicker_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_colorpicker_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_copy.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_copy_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_copy_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_copy_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cut.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cut_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cut_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_cut_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_delete.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_delete_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_delete_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_delete_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_design.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_design_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_design_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_design_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_flash_prop.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_flash_prop_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_flash_prop_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_flash_prop_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_fore_color.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_fore_color_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_fore_color_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_fore_color_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_html.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_html_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_html_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_html_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_hyperlink.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_hyperlink_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_hyperlink_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_hyperlink_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_map.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_map_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_map_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_map_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_popup.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_popup_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_popup_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_popup_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_prop.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_prop_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_prop_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_image_prop_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_indent.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_indent_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_indent_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_indent_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_inserthorizontalrule.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_inserthorizontalrule_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_inserthorizontalrule_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_inserthorizontalrule_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertorderedlist.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertorderedlist_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertorderedlist_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertorderedlist_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertunorderedlist.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertunorderedlist_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertunorderedlist_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_insertunorderedlist_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_internal_link.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_internal_link_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_internal_link_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_internal_link_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_italic.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_italic_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_italic_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_italic_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifycenter.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifycenter_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifycenter_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifycenter_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyfull.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyfull_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyfull_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyfull_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyleft.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyleft_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyleft_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyleft_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyright.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyright_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyright_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_justifyright_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_middle.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_middle_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_middle_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_middle_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_new.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_new_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_new_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_new_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_outdent.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_outdent_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_outdent_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_outdent_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_page_prop.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_page_prop_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_page_prop_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_page_prop_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_paste.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_paste_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_paste_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_paste_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_preview.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_preview_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_preview_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_preview_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_redo.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_redo_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_redo_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_redo_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_all.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_all_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_all_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_all_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_save_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_separator.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_special_chars.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_special_chars_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_special_chars_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_special_chars_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_strikethrough.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_strikethrough_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_strikethrough_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_strikethrough_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_subscript.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_subscript_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_subscript_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_subscript_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_superscript.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_superscript_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_superscript_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_superscript_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_down_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_down_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_down_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_right.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_right_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_right_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_merge_right_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_prop.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_prop_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_prop_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_prop_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_horizontal.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_horizontal_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_horizontal_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_horizontal_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_vertical.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_vertical_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_vertical_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_cell_split_vertical_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_delete.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_delete_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_delete_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_delete_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_insert.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_insert_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_insert_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_column_insert_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_create.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_create_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_create_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_create_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_prop.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_prop_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_prop_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_prop_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_delete.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_delete_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_delete_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_delete_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_insert.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_insert_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_insert_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_insert_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_prop.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_prop_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_prop_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_table_row_prop_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_toggle_borders.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_toggle_borders_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_toggle_borders_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_toggle_borders_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_top.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_top_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_top_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_top_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_underline.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_underline_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_underline_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_underline_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_undo.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_undo_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_undo_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_undo_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_unlink.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_unlink_down.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_unlink_off.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/img/tb_unlink_over.gif
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/js/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/js/common/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/js/common/spaw2.js
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/templates/
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/templates/dialog_footer.tpl
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/templates/dialog_header.tpl
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/templates/editor.tpl
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/templates/editor_floating.tpl
WebEditor/resources/spaw2/plugins/core/lib/theme/spaw2/templates/toolbar_floating.tpl
WebEditor/resources/spaw2/plugins/core/lib/toolbars/
WebEditor/resources/spaw2/plugins/core/lib/toolbars/edit.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/font.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/format.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/format_mini.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/insert.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/mode_strip.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/style.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/table.toolbar.php
WebEditor/resources/spaw2/plugins/core/lib/toolbars/tools.toolbar.php
WebEditor/resources/spaw2/plugins/spawfm/
WebEditor/resources/spaw2/plugins/spawfm/class/
WebEditor/resources/spaw2/plugins/spawfm/class/spawfm.class.php
WebEditor/resources/spaw2/plugins/spawfm/config/
WebEditor/resources/spaw2/plugins/spawfm/config/config.php
WebEditor/resources/spaw2/plugins/spawfm/dialogs/
WebEditor/resources/spaw2/plugins/spawfm/dialogs/spawfm.inc.php
WebEditor/resources/spaw2/plugins/spawfm/dialogs/spawfm.js
WebEditor/resources/spaw2/plugins/spawfm/img/
WebEditor/resources/spaw2/plugins/spawfm/img/btn_new_folder.gif
WebEditor/resources/spaw2/plugins/spawfm/img/btn_new_folder_off.gif
WebEditor/resources/spaw2/plugins/spawfm/img/btn_up.gif
WebEditor/resources/spaw2/plugins/spawfm/img/btn_up_off.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_default.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_default_big.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_flash.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_flash_big.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_folder.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_image.gif
WebEditor/resources/spaw2/plugins/spawfm/img/ico_image_big.gif
WebEditor/resources/spaw2/plugins/spawfm/lib/
WebEditor/resources/spaw2/plugins/spawfm/lib/filelist0.css
WebEditor/resources/spaw2/plugins/spawfm/lib/filelist1.css
WebEditor/resources/spaw2/plugins/spawfm/lib/lang/
WebEditor/resources/spaw2/plugins/spawfm/lib/lang/en.lang.inc.php
WebEditor/resources/spaw2/plugins/spawfm/lib/lang/hu.lang.inc.php
WebEditor/resources/spaw2/plugins/spawfm/lib/lang/lt.lang.inc.php
WebEditor/resources/spaw2/plugins/spawfm/lib/lang/nl.lang.inc.php
WebEditor/resources/spaw2/plugins/spawfm/lib/lang/ru.lang.inc.php
WebEditor/resources/spaw2/plugins/spawfm/lib/theme/
WebEditor/resources/spaw2/plugins/spawfm/lib/theme/spaw2/
WebEditor/resources/spaw2/plugins/spawfm/lib/theme/spaw2/img/
WebEditor/resources/spaw2/plugins/spawfm/lib/theme/spaw2/img/btn_view_details.gif
WebEditor/resources/spaw2/plugins/spawfm/lib/theme/spaw2/img/btn_view_list.gif
WebEditor/resources/spaw2/plugins/spawfm/lib/theme/spaw2/img/btn_view_thumbs.gif
WebEditor/resources/spaw2/spacer.gif
WebEditor/resources/spaw2/spaw.inc.php
WebEditor/resources/spaw2/spaw_control.class.php
WebEditor/resources/spaw2/uploads/
WebEditor/resources/spaw2/uploads/files/
WebEditor/resources/spaw2/uploads/files/180px-UniwersytetJanaKazimierzaLw?\208?\147_w1.jpg
WebEditor/resources/spaw2/uploads/files/banner.GIF
WebEditor/resources/spaw2/uploads/files/lnu.doc
WebEditor/resources/spaw2/wysiwyg.css
WebEditor/template/ChapterModel.conf
WebEditor/template/OrganizationModel.conf
Added: WebEditor/resources/HTMLedit.php
===================================================================
--- WebEditor/resources/HTMLedit.php (rev 0)
+++ WebEditor/resources/HTMLedit.php 2008-05-07 22:19:10 UTC (rev 102)
@@ -0,0 +1,25 @@
+<html>
+<head>
+ <script type="text/javascript">
+
+ function save(){
+ var s=document.getElementById("spaw_edit_field").value;
+ opener.document.webeditor.setEditedHTML(s);
+ close();
+ }
+
+ </script>
+</head>
+<body>
+
+<?
+include("spaw2/spaw.inc.php");
+
+$spaw = new SpawEditor('spaw_edit_field');
+$spaw->show();
+?>
+
+<input type='button' value='save' onClick='javascript:save();'>
+
+</body>
+</html>
\ No newline at end of file
Added: WebEditor/resources/HTMLeditor.js
===================================================================
--- WebEditor/resources/HTMLeditor.js (rev 0)
+++ WebEditor/resources/HTMLeditor.js 2008-05-07 22:19:10 UTC (rev 102)
@@ -0,0 +1,3 @@
+function showEditor(){
+ myWin=window.open("HTMLedit.php", "wind1", "width=800,height=350");
+}
Modified: WebEditor/resources/index.html
===================================================================
--- WebEditor/resources/index.html 2008-05-07 19:24:22 UTC (rev 101)
+++ WebEditor/resources/index.html 2008-05-07 22:19:10 UTC (rev 102)
@@ -2,7 +2,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Learning system :: Editor of courses</title>
<script type="text/javascript" src="api.js"></script>
- <script type="text/javascript" src="navigation.js"></script>
+ <script type="text/javascript" src="HTMLeditor.js"></script>
<style>
.left-corn {
@@ -85,7 +85,7 @@
</tr>
<tr height='*'>
<td class='side-body'>
- <applet mayscript="" name="player" archive="webeditor.jar,RTEValidators.jar,FFManifest.jar, dom4j.jar" code=edu.lnu.FireFly.WebEditor.WebEditor.class width="100%" height="100%">
+ <applet mayscript="" name="webeditor" archive="webeditor.jar,RTEValidators.jar,FFManifest.jar, dom4j.jar" code=edu.lnu.FireFly.WebEditor.WebEditor.class width="100%" height="100%">
<PARAM NAME="courseLocation" VALUE="http://127.0.0.1/sem/course/">
<PARAM NAME="serviceLocation" VALUE="http://127.0.0.1/sem/WebEditor/service/">
<PARAM NAME="templateLocation" VALUE="http://127.0.0.1/sem/WebEditor/template/">
Added: WebEditor/resources/spaw2/class/config.class.php
===================================================================
--- WebEditor/resources/spaw2/class/config.class.php (rev 0)
+++ WebEditor/resources/spaw2/class/config.class.php 2008-05-07 22:19:10 UTC (rev 102)
@@ -0,0 +1,332 @@
+<?php
+/**
+ * SPAW Editor v.2 Config classes
+ *
+ * Configuration related classes
+ *
+ * @package spaw2
+ * @subpackage Configuration
+ * @author Alan Mendelevich <al...@so...>
+ * @copyright UAB Solmetra
+ */
+
+/**
+ * Specifies that value for the config item is not transfered to external parts of spaw
+ */
+define("SPAW_CFG_TRANSFER_NONE", 0);
+/**
+ * Specifies that value for the config item is transfered via JavaScript variables
+ */
+define("SPAW_CFG_TRANSFER_JS", 1);
+/**
+ * Specifies that value for the config item is appended to request url
+ */
+define("SPAW_CFG_TRANSFER_REQUEST", 2);
+/**
+ * Specifies that value for the config item is stored on the server
+ */
+define("SPAW_CFG_TRANSFER_SECURE", 4);
+
+/**
+ * Configuration item class
+ *
+ * Class defines single configuration item
+ * @package spaw2
+ * @subpackage Configuration
+ */
+class SpawConfigItem
+{
+ /**
+ * Sets config item values
+ * @param string $name Config item's name
+ * @param mixed $value Config item's value
+ * @param integer $tranfer_type The way item should be transfered to other parts of the editor (one of SPAW_CFG_TRANSFER_* constants)
+ * @return SpawConfigItem
+ */
+ function SpawConfigItem($name, $value, $transfer_type)
+ {
+ $this->name = $name;
+ $this->value = $value;
+ $this->transfer_type = $transfer_type;
+ }
+ /**
+ * item name
+ * @var string
+ */
+ var $name;
+ /**
+ * item value
+ * @var mixed
+ */
+ var $value;
+ /**
+ * the way item is transferred to dialogs, etc.
+ * Holds information on the prefered method to transfer this value to external
+ * of the editor like dialogs. Should be set to one (or several combined with OR)
+ * of SPAW_CFG_TRANFER_* constants.
+ * @var integer
+ */
+ var $transfer_type;
+}
+
+/**
+ * Configuration class
+ *
+ * Holds global (when accessed through class) SPAW configuration and
+ * instance configuration when insantiated
+ * @package spaw2
+ * @subpackage Configuration
+ */
+class SpawConfig
+{
+ /**
+ * array for instance config settings
+ * @access private
+ */
+ var $config;
+
+ /**
+ * Copies global SPAW configuration to instance
+ */
+ function SpawConfig()
+ {
+ // copy static config to this instance
+ $this->config = SpawConfig::configVar();
+ }
+
+ /**
+ * Workaround for "static" class variable under php4
+ * @access private
+ */
+ function &configVar()
+ {
+ static $config;
+
+ return $config;
+ }
+
+ /**
+ * Sets global config item
+ * @param string $name Config item's name
+ * @param mixed $value Config item's value
+ * @param integer $transfer_type Transfer type for the value (One or several of SPAW_CFG_TRANSFER_* constants). Default value - SPAW_CFG_TRANSFER_NONE
+ * @see SPAW_CFG_TRANSFER_NONE, SPAW_CFG_TRANSFER_JS, SPAW_CFG_TRANSFER_REQUEST, SPAW_CFG_TRANSFER_SECURE
+ * @static
+ */
+ function setStaticConfigItem($name, $value, $transfer_type=SPAW_CFG_TRANSFER_NONE)
+ {
+ $cfg = &SpawConfig::configVar();
+ $cfg[$name] = new SpawConfigItem($name, $value, $transfer_type);
+ }
+
+ /**
+ * Sets instance config item
+ * @param string $name Config item's name
+ * @param mixed $value Config item's value
+ * @param integer $transfer_type Transfer type for the value (One or several of SPAW_CFG_TRANSFER_* constants). Default value - SPAW_CFG_TRANSFER_NONE
+ * @see SPAW_CFG_TRANSFER_NONE, SPAW_CFG_TRANSFER_JS, SPAW_CFG_TRANSFER_REQUEST, SPAW_CFG_TRANSFER_SECURE
+ */
+ function setConfigItem($name, $value, $transfer_type=SPAW_CFG_TRANSFER_NONE)
+ {
+ $this->config[$name] = new SpawConfigItem($name, $value, $transfer_type);
+ }
+
+ /**
+ * Gets global config item
+ * @param string $name Config item name
+ * @returns SpawConfigItem
+ * @static
+ */
+ function getStaticConfigItem($name)
+ {
+ $cfg = &SpawConfig::configVar();
+ if (isset($cfg[$name]))
+ return $cfg[$name];
+ else
+ return NULL;
+ }
+
+ /**
+ * Gets instance config item
+ * @param string $name Config item name
+ * @returns SpawConfigItem
+ */
+ function getConfigItem($name)
+ {
+ $cfg = $this->config;
+ if (isset($cfg[$name]))
+ return $cfg[$name];
+ else
+ return NULL;
+ }
+
+ /**
+ * Sets global config item value
+ * @param string $name Config item name
+ * @param mixed $value Config item value
+ * @static
+ */
+ function setStaticConfigValue($name, $value)
+ {
+ $cfg_item = SpawConfig::getStaticConfigItem($name);
+ if ($cfg_item)
+ {
+ $cfg_item->value = $value;
+ SpawConfig::setStaticConfigItem($cfg_item->name, $cfg_item->value, $cfg_item->transfer_type);
+ }
+ }
+
+ /**
+ * Sets global value for the element of config item provided item's value is an array
+ * @param string $name Config item name
+ * @param mixed $index Array index
+ * @param mixed $value Element value
+ */
+ function setStaticConfigValueElement($name, $index, $value)
+ {
+ $cfg_item = SpawConfig::getStaticConfigItem($name);
+ if ($cfg_item && is_array($cfg_item->value))
+ {
+ $cfg_item->value[$index] = $value;
+ SpawConfig::setStaticConfigItem($cfg_item->name, $cfg_item->value, $cfg_item->transfer_type);
+ }
+ }
+
+ /**
+ * Sets instance config item value
+ * @param string $name Config item name
+ * @param mixed $value Config item value
+ */
+ function setConfigValue($name, $value)
+ {
+ $cfg_item = $this->getConfigItem($name);
+
+ if ($cfg_item)
+ {
+ $cfg_item->value = $value;
+ $this->setConfigItem($cfg_item->name, $cfg_item->value, $cfg_item->transfer_type);
+ }
+ }
+
+ /**
+ * Sets instance value for the element of config item provided item's value is an array
+ * @param string $name Config item name
+ * @param mixed $index Array index
+ * @param mixed $value Element value
+ */
+ function setConfigValueElement($name, $index, $value)
+ {
+ $cfg_item = $this->getConfigItem($name);
+ if ($cfg_item && is_array($cfg_item->value))
+ {
+ $cfg_item->value[$index] = $value;
+ $this->setConfigItem($cfg_item->name, $cfg_item->value, $cfg_item->transfer_type);
+ }
+ }
+
+ /**
+ * Gets global config item value
+ * @param string $name Config item name
+ * @returns mixed Config item value
+ * @static
+ */
+ function getStaticConfigValue($name)
+ {
+ $cfg_item = SpawConfig::getStaticConfigItem($name);
+
+ if ($cfg_item)
+ return $cfg_item->value;
+ else
+ return NULL;
+ }
+
+ /**
+ * Gets global value for the element of config item provided item's value is an array
+ * @param string $name Config item name
+ * @param mixed $index Array index
+ * @returns mixed Element value
+ */
+ function getStaticConfigValueElement($name, $index)
+ {
+ $cfg_item = SpawConfig::getStaticConfigItem($name);
+ if ($cfg_item && is_array($cfg_item->value) && !empty($cfg_item->value[$index]))
+ return $cfg_item->value[$index];
+ else
+ return NULL;
+ }
+
+
+ /**
+ * Gets instance config item value
+ * @param string $name Config item name
+ * @returns mixed Config item value
+ */
+ function getConfigValue($name)
+ {
+ $cfg_item = $this->getConfigItem($name);
+
+ if ($cfg_item)
+ return $cfg_item->value;
+ else
+ return NULL;
+ }
+
+ /**
+ * Gets instance value for the element of config item provided item's value is an array
+ * @param string $name Config item name
+ * @param mixed $index Array index
+ * @returns mixed Element value
+ */
+ function getConfigValueElement($name, $index)
+ {
+ $cfg_item = $this->getConfigItem($name);
+ if ($cfg_item && is_array($cfg_item->value) && !empty($cfg_item->value[$index]))
+ return $cfg_item->value[$index];
+ else
+ return NULL;
+ }
+
+ /**
+ * Stores "secure" config items in session and returns md5 of serialized config variables
+ * @returns string
+ */
+ function storeSecureConfig()
+ {
+ $strcfg = '';
+ $cfg = $this->config;
+ $sec_cfg = array();
+ $result = '';
+ $stored_cfg = SpawVars::getSessionVar("spaw_configs");
+
+ foreach($cfg as $key => $cfg_item)
+ {
+ if ($cfg_item->transfer_type & SPAW_CFG_TRANSFER_SECURE)
+ {
+ $strcfg .= $key . serialize($cfg_item);
+ $sec_cfg[$key] = $cfg_item;
+ }
+ }
+ if ($strcfg != '')
+ {
+ $result = md5($strcfg);
+ $stored_cfg[$result] = $sec_cfg;
+ SpawVars::setSessionVar("spaw_configs", $stored_cfg);
+ }
+ return $result;
+ }
+
+ /**
+ * Restores "secure" config items from session
+ * @params string $scid Config id
+ */
+ function restoreSecureConfig($scid)
+ {
+ $sec_cfg = SpawVars::getSessionVar("spaw_configs");
+ if ($sec_cfg != '' && is_array($sec_cfg[$scid]))
+ {
+ foreach($sec_cfg[$scid] as $key => $cfg_item)
+ $this->setConfigItem($cfg_item->name, $cfg_item->value, $cfg_item->transfer_type);
+ }
+ }
+}
+?>
Added: WebEditor/resources/spaw2/class/editor.class.php
===================================================================
--- WebEditor/resources/spaw2/class/editor.class.php (rev 0)
+++ WebEditor/resources/spaw2/class/editor.class.php 2008-05-07 22:19:10 UTC (rev 102)
@@ -0,0 +1,834 @@
+<?php
+/**
+ * SPAW Editor v.2 Editor classes
+ *
+ * Main editor classes
+ * @package spaw2
+ * @subpackage Editor
+ * @author Alan Mendelevich <al...@so...>
+ * @copyright UAB Solmetra
+ */
+
+require_once(str_replace('\\\\','/',dirname(__FILE__)).'/config.class.php');
+require_once(str_replace('\\\\','/',dirname(__FILE__)).'/toolbar.class.php');
+require_once(str_replace('\\\\','/',dirname(__FILE__)).'/theme.class.php');
+require_once(str_replace('\\\\','/',dirname(__FILE__)).'/lang.class.php');
+
+/**
+ * Represetns editor page
+ * @package spaw2
+ * @subpackage Editor
+ */
+class SpawEditorPage
+{
+ /**
+ * Page name
+ * @var string
+ */
+ var $name;
+
+ /**
+ * Name of the page input (textarea)
+ * @var string
+ */
+ var $intputName;
+
+ /**
+ * Page caption
+ * @var string
+ */
+ var $caption;
+
+ /**
+ * Page direction
+ * @var string
+ */
+ var $direction;
+
+ /**
+ * Page content
+ * @var string
+ */
+ var $value;
+
+ /**
+ * Constructor
+ * @param string $name Name
+ * @param string $caption Caption
+ * @param string $value Initial content
+ */
+ function SpawEditorPage($name, $caption, $value = '', $direction = 'ltr')
+ {
+ // workaround for names with [ and ]
+ $_page_count = SpawConfig::getStaticConfigItem('_page_count');
+ if ($_page_count != null)
+ {
+ SpawConfig::setStaticConfigItem('_page_count', $_page_count->value + 1);
+ }
+ else
+ {
+ SpawConfig::setStaticConfigItem('_page_count', 1);
+ }
+ $_pn = SpawConfig::getStaticConfigValue('_page_count');
+
+ $ctrl_id = str_replace(']','_', str_replace('[', '_', $name));
+ if ($ctrl_id != $name)
+ $ctrl_id = $ctrl_id . '_' . $_pn;
+
+ $this->name = $ctrl_id;
+ $this->inputName = $name;
+ $this->caption = $caption;
+ $this->value = $value;
+ $this->direction = $direction;
+ }
+}
+
+/**
+ * Represents the editor as a whole
+ * @package spaw2
+ * @subpackage Editor
+ */
+class SpawEditor
+{
+ /**
+ * Holds editor name
+ * @var string
+ */
+ var $name;
+
+
+ /**
+ * Workaround for "static" class variable under php4
+ * @access private
+ */
+ function &scriptSent()
+ {
+ static $script_sent;
+
+ return $script_sent;
+ }
+
+ /**
+ * Constructor
+ * @param string $name Editor name
+ */
+ function SpawEditor($name, $value='', $lang='', $toolbarset='',
+ $theme='', $width='', $height='', $stylesheet='', $page_caption='')
+ {
+ $this->name = $name;
+
+ // add first page
+ $page_caption = ($page_caption != '')?$page_caption:$name;
+ $page = new SpawEditorPage($name, $page_caption, $value);
+ if ($page->name != $this->name)
+ $this->name = $page->name;
+ $this->addPage($page);
+ $this->setActivePage($page);
+
+ if ($lang != '')
+ $this->setLanguage($lang);
+// if ($toolbarset != '')
+// $this->addToolbarSet($toolbarset);
+ if ($theme != '')
+ $this->setTheme($theme);
+ if ($width != '')
+ $this->setDimensions($width, null);
+ if ($height != '')
+ $this->setDimensions(null, $height);
+ if ($stylesheet != '')
+ $this->setStylesheet($stylesheet);
+
+ // load static config
+ $this->config = new SpawConfig();
+
+ if ($toolbarset != '')
+ $this->setConfigValue('default_toolbarset',$toolbarset);
+ }
+
+ /**
+ * Stores instance config
+ * @var SpawConfig
+ */
+ var $config;
+
+ /**
+ * Stores instance width
+ * @var string
+ */
+ var $width;
+
+ /**
+ * Stores instance height
+ * @var string
+ */
+ var $height;
+
+ /**
+ * Sets editor dimensions
+ * @param string width
+ * @param string height
+ */
+ function setDimensions($width, $height)
+ {
+ if ($width != null && $width != '')
+ $this->width = $width;
+ if ($height != null && $height != '')
+ $this->height = $height;
+ }
+
+ /**
+ * Stores toolbars used in this instance
+ * @var array
+ */
+ var $toolbars;
+
+ /**
+ * Adds toolbars to current instance (unlimited number of arguments could be passed)
+ *
+ * Specify a comma separated list of toolbars that should be displayed (ie. "format","table",etc.).
+ * @param string $toolbar,... list of toolbar names
+ */
+ function addToolbars($toolbar='')
+ {
+ $numargs = func_num_args();
+ if ($numargs)
+ {
+ // add specified toolbars
+ $args = func_get_args();
+ for ($i=0; $i<$numargs; $i++)
+ {
+ $this->toolbars[$args[$i]] = SpawToolbar::getToolbar($args[$i]);
+ $this->toolbars[$args[$i]]->editor = &$this;
+ }
+ }
+ }
+
+ /**
+ * Adds toolbar set
+ * @param string toolbar set name
+ */
+ function addToolbarSet($toolbarset)
+ {
+ $tset = SpawConfig::getStaticConfigValue("toolbarset_".$toolbarset);
+ if (is_array($tset))
+ {
+ foreach($tset as $substitute => $toolbar)
+ {
+ $this->addToolbar($toolbar, $substitute);
+ }
+ }
+ }
+
+ /**
+ * Adds toolbar (substitutes other toolbar if $substiture is specified)
+ * @param string $toolbar name of the toolbar to add
+ * @param string $substitute place this toolbar in place of specified
+ */
+ function addToolbar($toolbar, $substitute='')
+ {
+ $index = empty($substitute)?$toolbar:$substitute;
+
+ $this->toolbars[$index] = SpawToolbar::getToolbar($toolbar);
+ $this->toolbars[$index]->editor = &$this;
+ }
+
+ /**
+ * Theme/skin
+ * @var SpawTheme
+ */
+ var $theme;
+
+ /**
+ * Sets theme/skin for the instance
+ * @param string $theme Theme name
+ */
+ function setTheme($theme)
+ {
+ $this->theme = SpawTheme::getTheme($theme);
+ }
+
+ /**
+ * Language
+ * @var SpawLang
+ */
+ var $lang;
+
+ /**
+ * Sets editor language
+ * @param string $lang abbreviation of the language code
+ * @param string $out_charset output charset
+ */
+ function setLanguage($lang='', $out_charset='')
+ {
+ $this->lang = new SpawLang($lang);
+ if ($out_charset != null && $out_charset != '')
+ $this->lang->setOutputCharset($out_charset);
+ }
+
+ /**
+ * Editing area stylesheet
+ * @param string path to stylesheet file
+ */
+ var $stylesheet;
+
+ /**
+ * Sets editing area stylesheet
+ * @param string $filename path to stylesheet file
+ */
+ function setStylesheet($filename)
+ {
+ $this->stylesheet = $filename;
+ }
+
+ /**
+ * Pages collection
+ * @var array
+ */
+ var $pages;
+
+ /**
+ * Adds page
+ * @param SpawEditorPage page Page object
+ */
+ function addPage($page)
+ {
+ $this->pages[$page->name] = $page;
+ }
+
+ /**
+ * Returns page
+ * @param string $name Page name
+ * @returns SpawEditorPage
+ */
+ function getPage($name)
+ {
+ if (!empty($this->pages[$name]))
+ return $this->pages[$name];
+ else
+ return NULL;
+ }
+
+ /**
+ * Holds currently active page
+ * @var SpawEditorPage
+ */
+ var $active_page;
+
+ /**
+ * Sets active page
+ * @param SpawEditorPage $page
+ */
+ function setActivePage($page)
+ {
+ $this->active_page = $page;
+ }
+
+ /**
+ * Returns active page
+ * @returns SpawEditorPage
+ */
+ function getActivePage()
+ {
+ return $this->active_page;
+ }
+
+ /**
+ * Floating toolbar mode flag
+ * @var bool
+ */
+ var $floating_mode = false;
+
+ /**
+ * Sets floating toolbar mode on or off
+ * @param bool $value Should floating mode be enabled
+ */
+ function setFloatingMode($controlled_by = '', $value = true)
+ {
+ $this->floating_mode = $value;
+ if ($value)
+ $this->setToolbarFrom($controlled_by);
+ }
+
+ /**
+ * Returs true if floating toolbar mode is enabled
+ * @returns bool
+ */
+ function getFloatingMode()
+ {
+ return $this->floating_mode;
+ }
+
+ /**
+ * Holds instance of another SpawEditor which controls floating toolbar used for this instance
+ *
+ * If empty, this is the "main" instance for floating toolbar
+ * @var SpawEditor
+ */
+ var $toolbar_from;
+
+ /**
+ * Sets variable holding instance of another SpawEditor which controls floating toolbar used for this instance
+ * @param SpawEditor $controlled_by
+ */
+ function setToolbarFrom($controlled_by = '')
+ {
+ if ($controlled_by == '')
+ $controlled_by = $this;
+ $this->toolbar_from = $controlled_by;
+ }
+
+ /**
+ * Returns instance of another SpawEditor which controls floating toolbar used for this instance
+ * @returns SpawEditor
+ */
+ function getToolbarFrom()
+ {
+ if ($this->toolbar_from)
+ return $this->toolbar_from;
+ else
+ return $this;
+ }
+
+ /**
+ * Holds value whether mode strip should be displayed or not
+ * @var bool
+ */
+ var $is_mode_strip_visible = true;
+ /**
+ * Sets value indicating that mode strip should be shown
+ */
+ function showModeStrip()
+ {
+ $this->is_mode_strip_visible = true;
+ }
+ /**
+ * Sets value indicating that mode strip shouldn't be shown
+ */
+ function hideModeStrip()
+ {
+ $this->is_mode_strip_visible = false;
+ }
+ /**
+ * Returns value indicating whether mode strip should be shown or not
+ * @returns bool
+ */
+ function isModeStripVisible()
+ {
+ return $this->is_mode_strip_visible;
+ }
+
+ /**
+ * Holds value whether status bar should be displayed or not
+ * @var bool
+ */
+ var $is_status_bar_visible = true;
+ /**
+ * Sets value indicating that status bar should be shown
+ */
+ function showStatusBar()
+ {
+ $this->is_status_bar_visible = true;
+ }
+ /**
+ * Sets value indicating that status bar shouldn't be shown
+ */
+ function hideStatusBar()
+ {
+ $this->is_status_bar_visible = false;
+ }
+ /**
+ * Returns value indicating whether status bar should be shown or not
+ * @returns bool
+ */
+ function isStatusBarVisible()
+ {
+ return $this->is_status_bar_visible;
+ }
+
+ /**
+ * Holds value whether resizing grip should be displayed or not
+ * @var bool
+ */
+ var $is_resizable = true;
+ /**
+ * Sets value indicating that resizing grip should be shown
+ */
+ function showResizingGrip()
+ {
+ $this->is_resizable = true;
+ }
+ /**
+ * Sets value indicating that resizing grip shouldn't be shown
+ */
+ function hideResizingGrip()
+ {
+ $this->is_resizable = false;
+ }
+ /**
+ * Returns value indicating whether resizing grip should be shown or not
+ * @returns bool
+ */
+ function isResizingGripVisible()
+ {
+ return $this->is_resizable;
+ }
+
+ /**
+ * Set's instance config item
+ * @param string $name Config item's name
+ * @param mixed $value Config item's value
+ * @param integer $transfer_type Transfer type for the value (One or several of SPAW_CFG_TRANSFER_* constants). Default value - SPAW_CFG_TRANSFER_NONE
+ */
+ function setConfigItem($name, $value, $transfer_type=SPAW_CFG_TRANSFER_NONE)
+ {
+ $this->config->setConfigItem($name, $value, $transfer_type);
+ }
+
+ /**
+ * Gets instance config item
+ * @param string $name Config item name
+ * @returns SpawConfigItem
+ */
+ function getConfigItem($name)
+ {
+ return $this->config->getConfigItem($name);
+ }
+
+ /**
+ * Sets instance config item value
+ * @param string $name Config item name
+ * @param mixed $value Config item value
+ */
+ function setConfigValue($name, $value)
+ {
+ $this->config->setConfigValue($name, $value);
+ }
+
+ /**
+ * Sets instance value for the element of config item provided item's value is an array
+ * @param string $name Config item name
+ * @param mixed $index Array index
+ * @param mixed $value Element value
+ */
+ function setConfigValueElement($name, $index, $value)
+ {
+ $this->config->setConfigValueElement($name, $index, $value);
+ }
+
+ /**
+ * Gets instance config item value
+ * @param string $name Config item name
+ * @returns mixed Config item value
+ */
+ function getConfigValue($name)
+ {
+ return $this->config->getConfigValue($name);
+ }
+
+ /**
+ * Gets instance value for the element of config item provided item's value is an array
+ * @param string $name Config item name
+ * @param mixed $index Array index
+ * @returns mixed Element value
+ */
+ function getConfigValueElement($name, $index)
+ {
+ return $this->config->getConfigValueElement($name, $index);
+ }
+
+ /**
+ * Sets default property values if they were not explicitly specified
+ */
+ function setDefaults()
+ {
+ if ($this->theme == null)
+ $this->setTheme($this->config->getConfigValue('default_theme'));
+ if ($this->toolbars == null)
+ $this->addToolbarSet($this->config->getConfigValue('default_toolbarset'));
+ if ($this->stylesheet == null)
+ $this->setStylesheet($this->config->getConfigValue('default_stylesheet'));
+ if ($this->width == null)
+ $this->setDimensions($this->config->getConfigValue('default_width'), null);
+ if ($this->height == null)
+ $this->setDimensions(null, $this->config->getConfigValue('default_height'));
+ if ($this->lang == null)
+ $this->setLanguage($this->config->getConfigValue('default_lang'), $this->config->getConfigValue('default_output_charset'));
+ }
+
+ /**
+ * Returns HTML and JavaScript code for the editor
+ * @returns string
+ */
+ function getHtml()
+ {
+ $res = '';
+ $this->setDefaults();
+ if (SpawAgent::getAgent() != SPAW_AGENT_UNSUPPORTED)
+ {
+ // supported browser
+ $head_res = '';
+ $js_res = '';
+ $html_res = '';
+ $ssent = &SpawEditor::scriptSent();
+ if (!$ssent)
+ {
+ $head_res .= '<script type="text/javascript" src="'.SpawConfig::getStaticConfigValue("SPAW_DIR").'js/spaw.js.php" charset="utf-8"></script>';
+ $js_res .= 'SpawEngine.setSpawDir("'. SpawConfig::getStaticConfigValue("SPAW_DIR") . '");';
+ $ssent = true;
+ }
+ $objname = $this->name.'_obj';
+ $js_res .= 'var '....
[truncated message content] |