From 94c1f5c2dd7328fea54db5f4b2ea0055b8a1c2e9 Mon Sep 17 00:00:00 2001 From: sanj Date: Sun, 7 Mar 2010 21:51:14 +0530 Subject: [PATCH] added initial checkout into new structure --- edgware/.bzrignore | 2 + edgware/TODO.txt | 37 + edgware/__init__.py | 0 edgware/dropandcreatedb.py | 20 + edgware/edge | Bin 0 -> 162816 bytes edgware/editor/.DS_Store | Bin 0 -> 6148 bytes edgware/editor/__init__.py | 0 edgware/editor/admin.py | 27 + edgware/editor/fields.py | 34 + edgware/editor/models.py | 627 ++ edgware/editor/templatetags/__init__.py | 0 edgware/editor/templatetags/alter_size.py | 33 + edgware/editor/urls.py | 30 + edgware/editor/views.py | 604 ++ edgware/files/.DS_Store | Bin 0 -> 6148 bytes edgware/files/__init__.py | 0 edgware/files/admin.py | 26 + edgware/files/convert.py | 65 + edgware/files/models.py | 71 + edgware/files/views.py | 10 + edgware/manage.py | 11 + edgware/monitor.py | 113 + edgware/settings.py | 128 + edgware/settings.txt | 103 + edgware/static/Jcrop/css/Jcrop.gif | Bin 0 -> 329 bytes edgware/static/Jcrop/css/jquery.Jcrop.css | 35 + edgware/static/Jcrop/demos/crop.php | 106 + .../static/Jcrop/demos/demo_files/demos.css | 47 + .../static/Jcrop/demos/demo_files/flowers.jpg | Bin 0 -> 45739 bytes .../static/Jcrop/demos/demo_files/sago.jpg | Bin 0 -> 18891 bytes .../static/Jcrop/demos/demo_files/sagomod.jpg | Bin 0 -> 16251 bytes .../static/Jcrop/demos/demo_files/sagomod.png | Bin 0 -> 78408 bytes edgware/static/Jcrop/demos/tutorial1.html | 43 + edgware/static/Jcrop/demos/tutorial2.html | 81 + edgware/static/Jcrop/demos/tutorial3.html | 88 + edgware/static/Jcrop/demos/tutorial4.html | 94 + edgware/static/Jcrop/demos/tutorial5.html | 206 + edgware/static/Jcrop/index.html | 65 + edgware/static/Jcrop/js/jquery.Jcrop.js | 1197 ++++ edgware/static/Jcrop/js/jquery.Jcrop.min.js | 163 + edgware/static/Jcrop/js/jquery.min.js | 19 + edgware/static/ckeditor/.DS_Store | Bin 0 -> 6148 bytes edgware/static/ckeditor/.htaccess | 24 + edgware/static/ckeditor/CHANGES.html | 440 ++ edgware/static/ckeditor/INSTALL.html | 92 + edgware/static/ckeditor/LICENSE.html | 1334 ++++ edgware/static/ckeditor/_samples/ajax.html | 98 + edgware/static/ckeditor/_samples/api.html | 152 + .../static/ckeditor/_samples/api_dialog.html | 181 + .../ckeditor/_samples/api_dialog/my_dialog.js | 28 + .../static/ckeditor/_samples/divreplace.html | 137 + .../static/ckeditor/_samples/enterkey.html | 88 + .../static/ckeditor/_samples/fullpage.html | 62 + edgware/static/ckeditor/_samples/index.html | 53 + .../ckeditor/_samples/jqueryadapter.html | 73 + .../static/ckeditor/_samples/php/advanced.php | 92 + .../static/ckeditor/_samples/php/events.php | 129 + .../static/ckeditor/_samples/php/replace.php | 63 + .../ckeditor/_samples/php/replaceall.php | 68 + .../ckeditor/_samples/php/standalone.php | 64 + .../ckeditor/_samples/replacebyclass.html | 49 + .../ckeditor/_samples/replacebycode.html | 80 + edgware/static/ckeditor/_samples/sample.css | 81 + edgware/static/ckeditor/_samples/sample.js | 65 + .../ckeditor/_samples/sample_posteddata.php | 59 + .../ckeditor/_samples/sharedspaces.html | 136 + edgware/static/ckeditor/_samples/skins.html | 83 + .../static/ckeditor/_samples/ui_color.html | 87 + .../ckeditor/_samples/ui_languages.html | 106 + .../ckeditor/_source/adapters/jquery.js | 293 + .../ckeditor/_source/core/_bootstrap.js | 78 + edgware/static/ckeditor/_source/core/ajax.js | 143 + .../static/ckeditor/_source/core/ckeditor.js | 96 + .../ckeditor/_source/core/ckeditor_base.js | 190 + .../ckeditor/_source/core/ckeditor_basic.js | 241 + .../static/ckeditor/_source/core/command.js | 73 + .../_source/core/commanddefinition.js | 86 + .../static/ckeditor/_source/core/config.js | 302 + edgware/static/ckeditor/_source/core/dom.js | 21 + .../ckeditor/_source/core/dom/comment.js | 32 + .../ckeditor/_source/core/dom/document.js | 225 + .../_source/core/dom/documentfragment.js | 49 + .../ckeditor/_source/core/dom/domobject.js | 204 + .../ckeditor/_source/core/dom/element.js | 1431 ++++ .../ckeditor/_source/core/dom/elementpath.js | 104 + .../static/ckeditor/_source/core/dom/event.js | 142 + .../static/ckeditor/_source/core/dom/node.js | 649 ++ .../ckeditor/_source/core/dom/nodelist.js | 23 + .../static/ckeditor/_source/core/dom/range.js | 1729 +++++ .../static/ckeditor/_source/core/dom/text.js | 123 + .../ckeditor/_source/core/dom/walker.js | 451 ++ .../ckeditor/_source/core/dom/window.js | 96 + edgware/static/ckeditor/_source/core/dtd.js | 233 + .../static/ckeditor/_source/core/editor.js | 690 ++ .../ckeditor/_source/core/editor_basic.js | 179 + edgware/static/ckeditor/_source/core/env.js | 219 + edgware/static/ckeditor/_source/core/event.js | 335 + .../static/ckeditor/_source/core/eventInfo.js | 120 + .../ckeditor/_source/core/focusmanager.js | 123 + .../ckeditor/_source/core/htmlparser.js | 212 + .../_source/core/htmlparser/basicwriter.js | 141 + .../ckeditor/_source/core/htmlparser/cdata.js | 43 + .../_source/core/htmlparser/comment.js | 60 + .../_source/core/htmlparser/element.js | 240 + .../_source/core/htmlparser/filter.js | 262 + .../_source/core/htmlparser/fragment.js | 468 ++ .../ckeditor/_source/core/htmlparser/text.js | 55 + .../ckeditor/_source/core/imagecacher.js | 58 + edgware/static/ckeditor/_source/core/lang.js | 151 + .../static/ckeditor/_source/core/loader.js | 239 + .../ckeditor/_source/core/plugindefinition.js | 66 + .../static/ckeditor/_source/core/plugins.js | 83 + .../ckeditor/_source/core/resourcemanager.js | 234 + .../ckeditor/_source/core/scriptloader.js | 198 + edgware/static/ckeditor/_source/core/skins.js | 204 + .../static/ckeditor/_source/core/themes.js | 19 + edgware/static/ckeditor/_source/core/tools.js | 675 ++ edgware/static/ckeditor/_source/core/ui.js | 116 + edgware/static/ckeditor/_source/core/xml.js | 165 + .../ckeditor/_source/lang/_languages.js | 82 + .../_source/lang/_translationstatus.txt | 59 + edgware/static/ckeditor/_source/lang/af.js | 697 ++ edgware/static/ckeditor/_source/lang/ar.js | 697 ++ edgware/static/ckeditor/_source/lang/bg.js | 697 ++ edgware/static/ckeditor/_source/lang/bn.js | 697 ++ edgware/static/ckeditor/_source/lang/bs.js | 697 ++ edgware/static/ckeditor/_source/lang/ca.js | 697 ++ edgware/static/ckeditor/_source/lang/cs.js | 697 ++ edgware/static/ckeditor/_source/lang/da.js | 697 ++ edgware/static/ckeditor/_source/lang/de.js | 697 ++ edgware/static/ckeditor/_source/lang/el.js | 697 ++ edgware/static/ckeditor/_source/lang/en-au.js | 697 ++ edgware/static/ckeditor/_source/lang/en-ca.js | 697 ++ edgware/static/ckeditor/_source/lang/en-uk.js | 697 ++ edgware/static/ckeditor/_source/lang/en.js | 697 ++ edgware/static/ckeditor/_source/lang/eo.js | 697 ++ edgware/static/ckeditor/_source/lang/es.js | 697 ++ edgware/static/ckeditor/_source/lang/et.js | 697 ++ edgware/static/ckeditor/_source/lang/eu.js | 697 ++ edgware/static/ckeditor/_source/lang/fa.js | 697 ++ edgware/static/ckeditor/_source/lang/fi.js | 697 ++ edgware/static/ckeditor/_source/lang/fo.js | 697 ++ edgware/static/ckeditor/_source/lang/fr-ca.js | 697 ++ edgware/static/ckeditor/_source/lang/fr.js | 697 ++ edgware/static/ckeditor/_source/lang/gl.js | 697 ++ edgware/static/ckeditor/_source/lang/gu.js | 697 ++ edgware/static/ckeditor/_source/lang/he.js | 697 ++ edgware/static/ckeditor/_source/lang/hi.js | 697 ++ edgware/static/ckeditor/_source/lang/hr.js | 697 ++ edgware/static/ckeditor/_source/lang/hu.js | 697 ++ edgware/static/ckeditor/_source/lang/is.js | 697 ++ edgware/static/ckeditor/_source/lang/it.js | 697 ++ edgware/static/ckeditor/_source/lang/ja.js | 697 ++ edgware/static/ckeditor/_source/lang/km.js | 697 ++ edgware/static/ckeditor/_source/lang/ko.js | 697 ++ edgware/static/ckeditor/_source/lang/lt.js | 697 ++ edgware/static/ckeditor/_source/lang/lv.js | 697 ++ edgware/static/ckeditor/_source/lang/mn.js | 697 ++ edgware/static/ckeditor/_source/lang/ms.js | 697 ++ edgware/static/ckeditor/_source/lang/nb.js | 697 ++ edgware/static/ckeditor/_source/lang/nl.js | 697 ++ edgware/static/ckeditor/_source/lang/no.js | 697 ++ edgware/static/ckeditor/_source/lang/pl.js | 697 ++ edgware/static/ckeditor/_source/lang/pt-br.js | 697 ++ edgware/static/ckeditor/_source/lang/pt.js | 697 ++ edgware/static/ckeditor/_source/lang/ro.js | 697 ++ edgware/static/ckeditor/_source/lang/ru.js | 697 ++ edgware/static/ckeditor/_source/lang/sk.js | 697 ++ edgware/static/ckeditor/_source/lang/sl.js | 697 ++ .../static/ckeditor/_source/lang/sr-latn.js | 697 ++ edgware/static/ckeditor/_source/lang/sr.js | 697 ++ edgware/static/ckeditor/_source/lang/sv.js | 697 ++ edgware/static/ckeditor/_source/lang/th.js | 697 ++ edgware/static/ckeditor/_source/lang/tr.js | 697 ++ edgware/static/ckeditor/_source/lang/uk.js | 697 ++ edgware/static/ckeditor/_source/lang/vi.js | 697 ++ edgware/static/ckeditor/_source/lang/zh-cn.js | 697 ++ edgware/static/ckeditor/_source/lang/zh.js | 697 ++ .../_source/plugins/about/dialogs/about.js | 73 + .../plugins/about/dialogs/logo_ckeditor.png | Bin 0 -> 2759 bytes .../ckeditor/_source/plugins/about/plugin.js | 22 + .../_source/plugins/basicstyles/plugin.js | 50 + .../_source/plugins/blockquote/plugin.js | 301 + .../ckeditor/_source/plugins/button/plugin.js | 264 + .../plugins/clipboard/dialogs/paste.js | 167 + .../_source/plugins/clipboard/plugin.js | 358 + .../_source/plugins/colorbutton/plugin.js | 215 + .../colordialog/dialogs/colordialog.js | 191 + .../_source/plugins/colordialog/plugin.js | 13 + .../_source/plugins/contextmenu/plugin.js | 253 + .../plugins/dialog/dialogDefinition.js | 315 + .../ckeditor/_source/plugins/dialog/plugin.js | 2779 ++++++++ .../_source/plugins/dialogui/plugin.js | 1322 ++++ .../_source/plugins/div/dialogs/div.js | 442 ++ .../ckeditor/_source/plugins/div/plugin.js | 121 + .../_source/plugins/domiterator/plugin.js | 353 + .../_source/plugins/editingblock/plugin.js | 236 + .../_source/plugins/elementspath/plugin.js | 182 + .../_source/plugins/enterkey/plugin.js | 329 + .../_source/plugins/entities/plugin.js | 200 + .../_source/plugins/fakeobjects/plugin.js | 120 + .../_source/plugins/filebrowser/plugin.js | 383 ++ .../_source/plugins/find/dialogs/find.js | 846 +++ .../ckeditor/_source/plugins/find/plugin.js | 46 + .../_source/plugins/flash/dialogs/flash.js | 688 ++ .../plugins/flash/images/placeholder.png | Bin 0 -> 256 bytes .../ckeditor/_source/plugins/flash/plugin.js | 165 + .../_source/plugins/floatpanel/plugin.js | 360 + .../ckeditor/_source/plugins/font/plugin.js | 227 + .../ckeditor/_source/plugins/format/plugin.js | 195 + .../_source/plugins/forms/dialogs/button.js | 135 + .../_source/plugins/forms/dialogs/checkbox.js | 143 + .../_source/plugins/forms/dialogs/form.js | 177 + .../plugins/forms/dialogs/hiddenfield.js | 91 + .../_source/plugins/forms/dialogs/radio.js | 135 + .../_source/plugins/forms/dialogs/select.js | 556 ++ .../_source/plugins/forms/dialogs/textarea.js | 114 + .../plugins/forms/dialogs/textfield.js | 193 + .../ckeditor/_source/plugins/forms/plugin.js | 217 + .../_source/plugins/horizontalrule/plugin.js | 36 + .../plugins/htmldataprocessor/plugin.js | 453 ++ .../_source/plugins/htmlwriter/plugin.js | 309 + .../_source/plugins/iframedialog/plugin.js | 136 + .../_source/plugins/image/dialogs/image.js | 1378 ++++ .../ckeditor/_source/plugins/image/plugin.js | 64 + .../ckeditor/_source/plugins/indent/plugin.js | 323 + .../_source/plugins/justify/plugin.js | 164 + .../_source/plugins/keystrokes/plugin.js | 218 + .../_source/plugins/link/dialogs/anchor.js | 98 + .../_source/plugins/link/dialogs/link.js | 1379 ++++ .../_source/plugins/link/images/anchor.gif | Bin 0 -> 184 bytes .../ckeditor/_source/plugins/link/plugin.js | 188 + .../ckeditor/_source/plugins/list/plugin.js | 643 ++ .../_source/plugins/listblock/plugin.js | 231 + .../_source/plugins/maximize/plugin.js | 283 + .../ckeditor/_source/plugins/menu/plugin.js | 384 ++ .../_source/plugins/menubutton/plugin.js | 93 + .../_source/plugins/newpage/plugin.js | 54 + .../plugins/pagebreak/images/pagebreak.gif | Bin 0 -> 54 bytes .../_source/plugins/pagebreak/plugin.js | 97 + .../ckeditor/_source/plugins/panel/plugin.js | 338 + .../_source/plugins/panelbutton/plugin.js | 140 + .../plugins/pastefromword/filter/default.js | 1165 ++++ .../_source/plugins/pastefromword/plugin.js | 116 + .../plugins/pastetext/dialogs/pastetext.js | 68 + .../_source/plugins/pastetext/plugin.js | 162 + .../ckeditor/_source/plugins/popup/plugin.js | 62 + .../_source/plugins/preview/plugin.js | 108 + .../ckeditor/_source/plugins/print/plugin.js | 41 + .../_source/plugins/removeformat/plugin.js | 132 + .../ckeditor/_source/plugins/resize/plugin.js | 115 + .../_source/plugins/richcombo/plugin.js | 357 + .../ckeditor/_source/plugins/save/plugin.js | 55 + .../_source/plugins/scayt/dialogs/options.js | 533 ++ .../_source/plugins/scayt/dialogs/toolbar.css | 71 + .../ckeditor/_source/plugins/scayt/plugin.js | 603 ++ .../_source/plugins/selection/plugin.js | 1097 +++ .../showblocks/images/block_address.png | Bin 0 -> 288 bytes .../showblocks/images/block_blockquote.png | Bin 0 -> 293 bytes .../plugins/showblocks/images/block_div.png | Bin 0 -> 229 bytes .../plugins/showblocks/images/block_h1.png | Bin 0 -> 218 bytes .../plugins/showblocks/images/block_h2.png | Bin 0 -> 220 bytes .../plugins/showblocks/images/block_h3.png | Bin 0 -> 219 bytes .../plugins/showblocks/images/block_h4.png | Bin 0 -> 229 bytes .../plugins/showblocks/images/block_h5.png | Bin 0 -> 236 bytes .../plugins/showblocks/images/block_h6.png | Bin 0 -> 216 bytes .../plugins/showblocks/images/block_p.png | Bin 0 -> 205 bytes .../plugins/showblocks/images/block_pre.png | Bin 0 -> 223 bytes .../_source/plugins/showblocks/plugin.js | 154 + .../_source/plugins/showborders/plugin.js | 170 + .../_source/plugins/smiley/dialogs/smiley.js | 219 + .../plugins/smiley/images/angel_smile.gif | Bin 0 -> 465 bytes .../plugins/smiley/images/angry_smile.gif | Bin 0 -> 443 bytes .../plugins/smiley/images/broken_heart.gif | Bin 0 -> 192 bytes .../plugins/smiley/images/confused_smile.gif | Bin 0 -> 464 bytes .../plugins/smiley/images/cry_smile.gif | Bin 0 -> 468 bytes .../plugins/smiley/images/devil_smile.gif | Bin 0 -> 436 bytes .../smiley/images/embaressed_smile.gif | Bin 0 -> 442 bytes .../plugins/smiley/images/envelope.gif | Bin 0 -> 426 bytes .../_source/plugins/smiley/images/heart.gif | Bin 0 -> 183 bytes .../_source/plugins/smiley/images/kiss.gif | Bin 0 -> 241 bytes .../plugins/smiley/images/lightbulb.gif | Bin 0 -> 368 bytes .../plugins/smiley/images/omg_smile.gif | Bin 0 -> 451 bytes .../plugins/smiley/images/regular_smile.gif | Bin 0 -> 450 bytes .../plugins/smiley/images/sad_smile.gif | Bin 0 -> 460 bytes .../plugins/smiley/images/shades_smile.gif | Bin 0 -> 449 bytes .../plugins/smiley/images/teeth_smile.gif | Bin 0 -> 442 bytes .../plugins/smiley/images/thumbs_down.gif | Bin 0 -> 408 bytes .../plugins/smiley/images/thumbs_up.gif | Bin 0 -> 396 bytes .../plugins/smiley/images/tounge_smile.gif | Bin 0 -> 446 bytes .../images/whatchutalkingabout_smile.gif | Bin 0 -> 452 bytes .../plugins/smiley/images/wink_smile.gif | Bin 0 -> 458 bytes .../ckeditor/_source/plugins/smiley/plugin.js | 75 + .../_source/plugins/sourcearea/plugin.js | 200 + .../specialchar/dialogs/specialchar.js | 362 + .../_source/plugins/specialchar/plugin.js | 29 + .../ckeditor/_source/plugins/styles/plugin.js | 1243 ++++ .../_source/plugins/stylescombo/plugin.js | 298 + .../plugins/stylescombo/styles/default.js | 85 + .../ckeditor/_source/plugins/tab/plugin.js | 266 + .../_source/plugins/table/dialogs/table.js | 561 ++ .../ckeditor/_source/plugins/table/plugin.js | 70 + .../plugins/tabletools/dialogs/tableCell.js | 430 ++ .../_source/plugins/tabletools/plugin.js | 997 +++ .../plugins/templates/dialogs/templates.js | 180 + .../_source/plugins/templates/plugin.js | 100 + .../plugins/templates/templates/default.js | 94 + .../templates/templates/images/template1.gif | Bin 0 -> 375 bytes .../templates/templates/images/template2.gif | Bin 0 -> 333 bytes .../templates/templates/images/template3.gif | Bin 0 -> 422 bytes .../_source/plugins/toolbar/plugin.js | 415 ++ .../plugins/uicolor/dialogs/uicolor.js | 204 + .../_source/plugins/uicolor/lang/en.js | 15 + .../_source/plugins/uicolor/plugin.js | 37 + .../_source/plugins/uicolor/uicolor.gif | Bin 0 -> 1108 bytes .../plugins/uicolor/yui/assets/hue_bg.png | Bin 0 -> 1120 bytes .../plugins/uicolor/yui/assets/hue_thumb.png | Bin 0 -> 195 bytes .../uicolor/yui/assets/picker_mask.png | Bin 0 -> 12174 bytes .../uicolor/yui/assets/picker_thumb.png | Bin 0 -> 192 bytes .../plugins/uicolor/yui/assets/yui.css | 15 + .../_source/plugins/uicolor/yui/yui.js | 71 + .../ckeditor/_source/plugins/undo/plugin.js | 505 ++ .../_source/plugins/wsc/dialogs/ciframe.html | 49 + .../plugins/wsc/dialogs/tmpFrameset.html | 52 + .../_source/plugins/wsc/dialogs/wsc.css | 83 + .../_source/plugins/wsc/dialogs/wsc.js | 176 + .../ckeditor/_source/plugins/wsc/plugin.js | 32 + .../_source/plugins/wysiwygarea/plugin.js | 847 +++ .../ckeditor/_source/skins/kama/dialog.css | 759 +++ .../ckeditor/_source/skins/kama/editor.css | 25 + .../_source/skins/kama/elementspath.css | 67 + .../ckeditor/_source/skins/kama/icons.css | 326 + .../ckeditor/_source/skins/kama/icons.png | Bin 0 -> 4365 bytes .../skins/kama/images/dialog_sides.gif | Bin 0 -> 48 bytes .../skins/kama/images/dialog_sides.png | Bin 0 -> 178 bytes .../skins/kama/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes .../_source/skins/kama/images/mini.gif | Bin 0 -> 183 bytes .../_source/skins/kama/images/noimage.png | Bin 0 -> 2115 bytes .../_source/skins/kama/images/sprites.png | Bin 0 -> 7086 bytes .../_source/skins/kama/images/sprites_ie6.png | Bin 0 -> 2724 bytes .../skins/kama/images/toolbar_start.gif | Bin 0 -> 105 bytes .../ckeditor/_source/skins/kama/mainui.css | 163 + .../ckeditor/_source/skins/kama/menu.css | 179 + .../ckeditor/_source/skins/kama/panel.css | 203 + .../ckeditor/_source/skins/kama/presets.css | 49 + .../ckeditor/_source/skins/kama/reset.css | 78 + .../ckeditor/_source/skins/kama/richcombo.css | 260 + .../ckeditor/_source/skins/kama/skin.js | 263 + .../ckeditor/_source/skins/kama/templates.css | 71 + .../ckeditor/_source/skins/kama/toolbar.css | 407 ++ .../_source/skins/office2003/dialog.css | 660 ++ .../_source/skins/office2003/editor.css | 25 + .../_source/skins/office2003/elementspath.css | 68 + .../_source/skins/office2003/icons.css | 324 + .../_source/skins/office2003/icons.png | Bin 0 -> 4365 bytes .../skins/office2003/images/dialog_sides.gif | Bin 0 -> 48 bytes .../skins/office2003/images/dialog_sides.png | Bin 0 -> 178 bytes .../office2003/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes .../_source/skins/office2003/images/mini.gif | Bin 0 -> 183 bytes .../skins/office2003/images/noimage.png | Bin 0 -> 2115 bytes .../skins/office2003/images/sprites.png | Bin 0 -> 6119 bytes .../skins/office2003/images/sprites_ie6.png | Bin 0 -> 2715 bytes .../_source/skins/office2003/mainui.css | 107 + .../_source/skins/office2003/menu.css | 175 + .../_source/skins/office2003/panel.css | 198 + .../_source/skins/office2003/presets.css | 49 + .../_source/skins/office2003/reset.css | 78 + .../_source/skins/office2003/richcombo.css | 279 + .../ckeditor/_source/skins/office2003/skin.js | 76 + .../_source/skins/office2003/templates.css | 71 + .../_source/skins/office2003/toolbar.css | 460 ++ .../ckeditor/_source/skins/v2/dialog.css | 670 ++ .../ckeditor/_source/skins/v2/editor.css | 25 + .../_source/skins/v2/elementspath.css | 68 + .../ckeditor/_source/skins/v2/icons.css | 324 + .../ckeditor/_source/skins/v2/icons.png | Bin 0 -> 4365 bytes .../_source/skins/v2/images/dialog_sides.gif | Bin 0 -> 48 bytes .../_source/skins/v2/images/dialog_sides.png | Bin 0 -> 178 bytes .../skins/v2/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes .../ckeditor/_source/skins/v2/images/mini.gif | Bin 0 -> 183 bytes .../_source/skins/v2/images/noimage.png | Bin 0 -> 2115 bytes .../_source/skins/v2/images/sprites.png | Bin 0 -> 5389 bytes .../_source/skins/v2/images/sprites_ie6.png | Bin 0 -> 492 bytes .../_source/skins/v2/images/toolbar_start.gif | Bin 0 -> 105 bytes .../ckeditor/_source/skins/v2/mainui.css | 122 + .../static/ckeditor/_source/skins/v2/menu.css | 178 + .../ckeditor/_source/skins/v2/panel.css | 198 + .../ckeditor/_source/skins/v2/presets.css | 50 + .../ckeditor/_source/skins/v2/reset.css | 78 + .../ckeditor/_source/skins/v2/richcombo.css | 274 + .../static/ckeditor/_source/skins/v2/skin.js | 72 + .../ckeditor/_source/skins/v2/templates.css | 71 + .../ckeditor/_source/skins/v2/toolbar.css | 412 ++ .../ckeditor/_source/themes/default/theme.js | 332 + edgware/static/ckeditor/adapters/jquery.js | 6 + edgware/static/ckeditor/ckeditor.js | 119 + edgware/static/ckeditor/ckeditor.pack | 203 + edgware/static/ckeditor/ckeditor.php | 29 + edgware/static/ckeditor/ckeditor_basic.js | 8 + .../static/ckeditor/ckeditor_basic_source.js | 20 + edgware/static/ckeditor/ckeditor_php4.php | 593 ++ edgware/static/ckeditor/ckeditor_php5.php | 583 ++ edgware/static/ckeditor/ckeditor_source.js | 25 + edgware/static/ckeditor/config.js | 22 + edgware/static/ckeditor/contents.css | 42 + edgware/static/ckeditor/images/spacer.gif | Bin 0 -> 43 bytes edgware/static/ckeditor/lang/_languages.js | 6 + .../ckeditor/lang/_translationstatus.txt | 59 + edgware/static/ckeditor/lang/af.js | 6 + edgware/static/ckeditor/lang/ar.js | 6 + edgware/static/ckeditor/lang/bg.js | 6 + edgware/static/ckeditor/lang/bn.js | 6 + edgware/static/ckeditor/lang/bs.js | 6 + edgware/static/ckeditor/lang/ca.js | 6 + edgware/static/ckeditor/lang/cs.js | 6 + edgware/static/ckeditor/lang/da.js | 6 + edgware/static/ckeditor/lang/de.js | 6 + edgware/static/ckeditor/lang/el.js | 6 + edgware/static/ckeditor/lang/en-au.js | 6 + edgware/static/ckeditor/lang/en-ca.js | 6 + edgware/static/ckeditor/lang/en-uk.js | 6 + edgware/static/ckeditor/lang/en.js | 6 + edgware/static/ckeditor/lang/eo.js | 6 + edgware/static/ckeditor/lang/es.js | 6 + edgware/static/ckeditor/lang/et.js | 6 + edgware/static/ckeditor/lang/eu.js | 6 + edgware/static/ckeditor/lang/fa.js | 6 + edgware/static/ckeditor/lang/fi.js | 6 + edgware/static/ckeditor/lang/fo.js | 6 + edgware/static/ckeditor/lang/fr-ca.js | 6 + edgware/static/ckeditor/lang/fr.js | 6 + edgware/static/ckeditor/lang/gl.js | 6 + edgware/static/ckeditor/lang/gu.js | 6 + edgware/static/ckeditor/lang/he.js | 6 + edgware/static/ckeditor/lang/hi.js | 6 + edgware/static/ckeditor/lang/hr.js | 6 + edgware/static/ckeditor/lang/hu.js | 6 + edgware/static/ckeditor/lang/is.js | 6 + edgware/static/ckeditor/lang/it.js | 6 + edgware/static/ckeditor/lang/ja.js | 6 + edgware/static/ckeditor/lang/km.js | 6 + edgware/static/ckeditor/lang/ko.js | 6 + edgware/static/ckeditor/lang/lt.js | 6 + edgware/static/ckeditor/lang/lv.js | 6 + edgware/static/ckeditor/lang/mn.js | 6 + edgware/static/ckeditor/lang/ms.js | 6 + edgware/static/ckeditor/lang/nb.js | 6 + edgware/static/ckeditor/lang/nl.js | 6 + edgware/static/ckeditor/lang/no.js | 6 + edgware/static/ckeditor/lang/pl.js | 6 + edgware/static/ckeditor/lang/pt-br.js | 6 + edgware/static/ckeditor/lang/pt.js | 6 + edgware/static/ckeditor/lang/ro.js | 6 + edgware/static/ckeditor/lang/ru.js | 6 + edgware/static/ckeditor/lang/sk.js | 6 + edgware/static/ckeditor/lang/sl.js | 6 + edgware/static/ckeditor/lang/sr-latn.js | 6 + edgware/static/ckeditor/lang/sr.js | 6 + edgware/static/ckeditor/lang/sv.js | 6 + edgware/static/ckeditor/lang/th.js | 6 + edgware/static/ckeditor/lang/tr.js | 6 + edgware/static/ckeditor/lang/uk.js | 6 + edgware/static/ckeditor/lang/vi.js | 6 + edgware/static/ckeditor/lang/zh-cn.js | 6 + edgware/static/ckeditor/lang/zh.js | 6 + .../ckeditor/plugins/about/dialogs/about.js | 6 + .../plugins/about/dialogs/logo_ckeditor.png | Bin 0 -> 2759 bytes .../plugins/clipboard/dialogs/paste.js | 7 + .../colordialog/dialogs/colordialog.js | 6 + .../plugins/dialog/dialogDefinition.js | 4 + .../ckeditor/plugins/div/dialogs/div.js | 7 + .../ckeditor/plugins/find/dialogs/find.js | 9 + .../ckeditor/plugins/flash/dialogs/flash.js | 9 + .../plugins/flash/images/placeholder.png | Bin 0 -> 256 bytes .../ckeditor/plugins/forms/dialogs/button.js | 6 + .../plugins/forms/dialogs/checkbox.js | 6 + .../ckeditor/plugins/forms/dialogs/form.js | 6 + .../plugins/forms/dialogs/hiddenfield.js | 6 + .../ckeditor/plugins/forms/dialogs/radio.js | 6 + .../ckeditor/plugins/forms/dialogs/select.js | 9 + .../plugins/forms/dialogs/textarea.js | 6 + .../plugins/forms/dialogs/textfield.js | 6 + .../ckeditor/plugins/iframedialog/plugin.js | 6 + .../ckeditor/plugins/image/dialogs/image.js | 13 + .../ckeditor/plugins/link/dialogs/anchor.js | 6 + .../ckeditor/plugins/link/dialogs/link.js | 11 + .../ckeditor/plugins/link/images/anchor.gif | Bin 0 -> 184 bytes .../plugins/pagebreak/images/pagebreak.gif | Bin 0 -> 54 bytes .../plugins/pastefromword/filter/default.js | 10 + .../plugins/pastetext/dialogs/pastetext.js | 6 + .../ckeditor/plugins/scayt/dialogs/options.js | 8 + .../plugins/scayt/dialogs/toolbar.css | 6 + .../showblocks/images/block_address.png | Bin 0 -> 288 bytes .../showblocks/images/block_blockquote.png | Bin 0 -> 293 bytes .../plugins/showblocks/images/block_div.png | Bin 0 -> 229 bytes .../plugins/showblocks/images/block_h1.png | Bin 0 -> 218 bytes .../plugins/showblocks/images/block_h2.png | Bin 0 -> 220 bytes .../plugins/showblocks/images/block_h3.png | Bin 0 -> 219 bytes .../plugins/showblocks/images/block_h4.png | Bin 0 -> 229 bytes .../plugins/showblocks/images/block_h5.png | Bin 0 -> 236 bytes .../plugins/showblocks/images/block_h6.png | Bin 0 -> 216 bytes .../plugins/showblocks/images/block_p.png | Bin 0 -> 205 bytes .../plugins/showblocks/images/block_pre.png | Bin 0 -> 223 bytes .../ckeditor/plugins/smiley/dialogs/smiley.js | 7 + .../plugins/smiley/images/angel_smile.gif | Bin 0 -> 465 bytes .../plugins/smiley/images/angry_smile.gif | Bin 0 -> 443 bytes .../plugins/smiley/images/broken_heart.gif | Bin 0 -> 192 bytes .../plugins/smiley/images/confused_smile.gif | Bin 0 -> 464 bytes .../plugins/smiley/images/cry_smile.gif | Bin 0 -> 468 bytes .../plugins/smiley/images/devil_smile.gif | Bin 0 -> 436 bytes .../smiley/images/embaressed_smile.gif | Bin 0 -> 442 bytes .../plugins/smiley/images/envelope.gif | Bin 0 -> 426 bytes .../ckeditor/plugins/smiley/images/heart.gif | Bin 0 -> 183 bytes .../ckeditor/plugins/smiley/images/kiss.gif | Bin 0 -> 241 bytes .../plugins/smiley/images/lightbulb.gif | Bin 0 -> 368 bytes .../plugins/smiley/images/omg_smile.gif | Bin 0 -> 451 bytes .../plugins/smiley/images/regular_smile.gif | Bin 0 -> 450 bytes .../plugins/smiley/images/sad_smile.gif | Bin 0 -> 460 bytes .../plugins/smiley/images/shades_smile.gif | Bin 0 -> 449 bytes .../plugins/smiley/images/teeth_smile.gif | Bin 0 -> 442 bytes .../plugins/smiley/images/thumbs_down.gif | Bin 0 -> 408 bytes .../plugins/smiley/images/thumbs_up.gif | Bin 0 -> 396 bytes .../plugins/smiley/images/tounge_smile.gif | Bin 0 -> 446 bytes .../images/whatchutalkingabout_smile.gif | Bin 0 -> 452 bytes .../plugins/smiley/images/wink_smile.gif | Bin 0 -> 458 bytes .../specialchar/dialogs/specialchar.js | 7 + .../plugins/stylescombo/styles/default.js | 6 + .../ckeditor/plugins/table/dialogs/table.js | 8 + .../plugins/tabletools/dialogs/tableCell.js | 8 + .../plugins/templates/dialogs/templates.js | 6 + .../plugins/templates/templates/default.js | 6 + .../templates/templates/images/template1.gif | Bin 0 -> 375 bytes .../templates/templates/images/template2.gif | Bin 0 -> 333 bytes .../templates/templates/images/template3.gif | Bin 0 -> 422 bytes .../plugins/uicolor/dialogs/uicolor.js | 7 + .../ckeditor/plugins/uicolor/lang/en.js | 6 + .../static/ckeditor/plugins/uicolor/plugin.js | 6 + .../ckeditor/plugins/uicolor/uicolor.gif | Bin 0 -> 1108 bytes .../plugins/uicolor/yui/assets/hue_bg.png | Bin 0 -> 1120 bytes .../plugins/uicolor/yui/assets/hue_thumb.png | Bin 0 -> 195 bytes .../uicolor/yui/assets/picker_mask.png | Bin 0 -> 12174 bytes .../uicolor/yui/assets/picker_thumb.png | Bin 0 -> 192 bytes .../plugins/uicolor/yui/assets/yui.css | 6 + .../ckeditor/plugins/uicolor/yui/yui.js | 76 + .../ckeditor/plugins/wsc/dialogs/ciframe.html | 49 + .../plugins/wsc/dialogs/tmpFrameset.html | 52 + .../ckeditor/plugins/wsc/dialogs/wsc.css | 6 + .../ckeditor/plugins/wsc/dialogs/wsc.js | 7 + edgware/static/ckeditor/skins/.DS_Store | Bin 0 -> 6148 bytes edgware/static/ckeditor/skins/kama/dialog.css | 9 + edgware/static/ckeditor/skins/kama/editor.css | 12 + edgware/static/ckeditor/skins/kama/icons.png | Bin 0 -> 4365 bytes .../skins/kama/images/dialog_sides.gif | Bin 0 -> 48 bytes .../skins/kama/images/dialog_sides.png | Bin 0 -> 178 bytes .../skins/kama/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes .../ckeditor/skins/kama/images/mini.gif | Bin 0 -> 183 bytes .../ckeditor/skins/kama/images/noimage.png | Bin 0 -> 2115 bytes .../ckeditor/skins/kama/images/sprites.png | Bin 0 -> 7086 bytes .../skins/kama/images/sprites_ie6.png | Bin 0 -> 2724 bytes .../skins/kama/images/toolbar_start.gif | Bin 0 -> 105 bytes edgware/static/ckeditor/skins/kama/skin.js | 7 + .../static/ckeditor/skins/kama/templates.css | 6 + .../ckeditor/skins/office2003/dialog.css | 8 + .../ckeditor/skins/office2003/editor.css | 13 + .../ckeditor/skins/office2003/icons.png | Bin 0 -> 4365 bytes .../skins/office2003/images/dialog_sides.gif | Bin 0 -> 48 bytes .../skins/office2003/images/dialog_sides.png | Bin 0 -> 178 bytes .../office2003/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes .../ckeditor/skins/office2003/images/mini.gif | Bin 0 -> 183 bytes .../skins/office2003/images/noimage.png | Bin 0 -> 2115 bytes .../skins/office2003/images/sprites.png | Bin 0 -> 6119 bytes .../skins/office2003/images/sprites_ie6.png | Bin 0 -> 2715 bytes .../static/ckeditor/skins/office2003/skin.js | 6 + .../ckeditor/skins/office2003/templates.css | 6 + edgware/static/ckeditor/skins/v2/dialog.css | 8 + edgware/static/ckeditor/skins/v2/editor.css | 12 + edgware/static/ckeditor/skins/v2/icons.png | Bin 0 -> 4365 bytes .../ckeditor/skins/v2/images/dialog_sides.gif | Bin 0 -> 48 bytes .../ckeditor/skins/v2/images/dialog_sides.png | Bin 0 -> 178 bytes .../skins/v2/images/dialog_sides_rtl.png | Bin 0 -> 181 bytes .../static/ckeditor/skins/v2/images/mini.gif | Bin 0 -> 183 bytes .../ckeditor/skins/v2/images/noimage.png | Bin 0 -> 2115 bytes .../ckeditor/skins/v2/images/sprites.png | Bin 0 -> 5389 bytes .../ckeditor/skins/v2/images/sprites_ie6.png | Bin 0 -> 492 bytes .../skins/v2/images/toolbar_start.gif | Bin 0 -> 105 bytes edgware/static/ckeditor/skins/v2/skin.js | 6 + .../static/ckeditor/skins/v2/templates.css | 6 + .../static/ckeditor/themes/default/theme.js | 7 + edgware/static/colorpicker/.DS_Store | Bin 0 -> 6148 bytes .../static/colorpicker/css/colorpicker.css | 162 + edgware/static/colorpicker/css/layout.css | 83 + edgware/static/colorpicker/images/Thumbs.db | Bin 0 -> 19968 bytes edgware/static/colorpicker/images/blank.gif | Bin 0 -> 49 bytes .../images/colorpicker_background.png | Bin 0 -> 1897 bytes .../colorpicker/images/colorpicker_hex.png | Bin 0 -> 532 bytes .../colorpicker/images/colorpicker_hsb_b.png | Bin 0 -> 970 bytes .../colorpicker/images/colorpicker_hsb_h.png | Bin 0 -> 1012 bytes .../colorpicker/images/colorpicker_hsb_s.png | Bin 0 -> 1171 bytes .../colorpicker/images/colorpicker_indic.gif | Bin 0 -> 86 bytes .../images/colorpicker_overlay.png | Bin 0 -> 10355 bytes .../colorpicker/images/colorpicker_rgb_b.png | Bin 0 -> 970 bytes .../colorpicker/images/colorpicker_rgb_g.png | Bin 0 -> 1069 bytes .../colorpicker/images/colorpicker_rgb_r.png | Bin 0 -> 1066 bytes .../colorpicker/images/colorpicker_select.gif | Bin 0 -> 78 bytes .../colorpicker/images/colorpicker_submit.png | Bin 0 -> 984 bytes .../colorpicker/images/custom_background.png | Bin 0 -> 1916 bytes .../static/colorpicker/images/custom_hex.png | Bin 0 -> 562 bytes .../colorpicker/images/custom_hsb_b.png | Bin 0 -> 1097 bytes .../colorpicker/images/custom_hsb_h.png | Bin 0 -> 970 bytes .../colorpicker/images/custom_hsb_s.png | Bin 0 -> 1168 bytes .../colorpicker/images/custom_indic.gif | Bin 0 -> 86 bytes .../colorpicker/images/custom_rgb_b.png | Bin 0 -> 1008 bytes .../colorpicker/images/custom_rgb_g.png | Bin 0 -> 1069 bytes .../colorpicker/images/custom_rgb_r.png | Bin 0 -> 1018 bytes .../colorpicker/images/custom_submit.png | Bin 0 -> 997 bytes edgware/static/colorpicker/images/select.png | Bin 0 -> 506 bytes edgware/static/colorpicker/images/select2.png | Bin 0 -> 518 bytes edgware/static/colorpicker/images/slider.png | Bin 0 -> 315 bytes edgware/static/colorpicker/index.html | 184 + edgware/static/colorpicker/js/colorpicker.js | 484 ++ edgware/static/colorpicker/js/eye.js | 34 + edgware/static/colorpicker/js/jquery.js | 4376 ++++++++++++ edgware/static/colorpicker/js/layout.js | 67 + edgware/static/colorpicker/js/utils.js | 252 + edgware/static/css/articleDemo.css | 313 + edgware/static/css/colorbox.css | 63 + edgware/static/css/editor.css | 267 + edgware/static/css/farbtastic.css | 51 + edgware/static/css/homeDemo.css | 158 + edgware/static/css/jquery.tooltip.css | 13 + edgware/static/css/slider.css | 202 + .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin 0 -> 260 bytes .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 0 -> 251 bytes .../images/ui-bg_flat_10_000000_40x100.png | Bin 0 -> 178 bytes .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin 0 -> 104 bytes .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin 0 -> 125 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 0 -> 105 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin 0 -> 90 bytes .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin 0 -> 129 bytes .../images/ui-icons_222222_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_228ef1_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ef8c08_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffd27a_256x240.png | Bin 0 -> 4369 bytes .../images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes .../ui-lightness/jquery-ui-1.7.2.custom.css | 406 ++ edgware/static/images/TestDescription.srt | 3 + edgware/static/images/TestDescription2.srt | 3 + edgware/static/images/TestTranscript.srt | 45 + edgware/static/images/TestTranscript2.srt | 41 + edgware/static/images/border.png | Bin 0 -> 112 bytes edgware/static/images/controls.png | Bin 0 -> 1249 bytes edgware/static/images/icons/Audio.jpg | Bin 0 -> 1465 bytes edgware/static/images/icons/Video.jpg | Bin 0 -> 1476 bytes edgware/static/images/icons/speaker.png | Bin 0 -> 684 bytes edgware/static/images/icons/video.png | Bin 0 -> 971 bytes .../internet_explorer/borderBottomCenter.png | Bin 0 -> 111 bytes .../internet_explorer/borderBottomLeft.png | Bin 0 -> 215 bytes .../internet_explorer/borderBottomRight.png | Bin 0 -> 217 bytes .../internet_explorer/borderMiddleLeft.png | Bin 0 -> 108 bytes .../internet_explorer/borderMiddleRight.png | Bin 0 -> 108 bytes .../internet_explorer/borderTopCenter.png | Bin 0 -> 111 bytes .../internet_explorer/borderTopLeft.png | Bin 0 -> 216 bytes .../internet_explorer/borderTopRight.png | Bin 0 -> 214 bytes edgware/static/images/loading.gif | Bin 0 -> 2230 bytes edgware/static/images/oldenglish/dot.gif | Bin 0 -> 91 bytes edgware/static/images/oldenglish/oecomein.jpg | Bin 0 -> 81038 bytes edgware/static/images/oldenglish/oedig1.jpg | Bin 0 -> 101770 bytes .../static/images/oldenglish/oeentrance.jpg | Bin 0 -> 44891 bytes .../static/images/oldenglish/oemarkings.jpg | Bin 0 -> 60963 bytes .../static/images/oldenglish/oenomoney.jpg | Bin 0 -> 11785 bytes edgware/static/images/oldenglish/oepan1.jpg | Bin 0 -> 88963 bytes edgware/static/images/oldenglish/oepan2.jpg | Bin 0 -> 90914 bytes edgware/static/images/overlay.png | Bin 0 -> 145 bytes edgware/static/images/pageOff.png | Bin 0 -> 2989 bytes edgware/static/images/pageOn.png | Bin 0 -> 3098 bytes edgware/static/images/pagehover.png | Bin 0 -> 3104 bytes edgware/static/images/player.swf | Bin 0 -> 50038 bytes edgware/static/js/.DS_Store | Bin 0 -> 6148 bytes edgware/static/js/articleDemo.js | 96 + edgware/static/js/editor.js | 1591 +++++ edgware/static/js/farbtastic.js | 345 + edgware/static/js/jquery-ui.js | 298 + edgware/static/js/jquery.Jcrop.js | 1197 ++++ edgware/static/js/jquery.color.js | 123 + edgware/static/js/jquery.colorbox-min.js | 2 + edgware/static/js/jquery.colorbox.js | 698 ++ edgware/static/js/jquery.js | 5999 +++++++++++++++++ edgware/static/js/jquery.srt.js | 104 + edgware/static/js/jquery.tooltip.js | 294 + edgware/static/js/slider.js | 6 + edgware/static/js/swfobject.js | 8 + edgware/static/js/utils.js | 81 + edgware/static/txt/robots.txt | 3 + edgware/templates/.DS_Store | Bin 0 -> 6148 bytes edgware/templates/404.html | 12 + edgware/templates/500.html | 12 + edgware/templates/admin/404.html | 12 + edgware/templates/admin/500.html | 12 + edgware/templates/admin/app_index.html | 15 + edgware/templates/admin/base.html | 79 + edgware/templates/admin/base_site.html | 10 + edgware/templates/admin/change_form.html | 66 + edgware/templates/admin/change_list.html | 85 + .../templates/admin/change_list_results.html | 17 + edgware/templates/admin/date_hierarchy.html | 10 + .../templates/admin/delete_confirmation.html | 32 + edgware/templates/admin/filter.html | 8 + edgware/templates/admin/index.html | 80 + edgware/templates/admin/invalid_setup.html | 8 + edgware/templates/admin/login.html | 34 + edgware/templates/admin/object_history.html | 42 + edgware/templates/admin/pagination.html | 12 + .../admin/prepopulated_fields_js.html | 11 + edgware/templates/admin/search_form.html | 18 + edgware/templates/admin/submit_line.html | 16 + .../templates/admin/template_validator.html | 31 + edgware/templates/demo/.DS_Store | Bin 0 -> 6148 bytes edgware/templates/demo/articleDemo.html | 398 ++ edgware/templates/demo/audioDemo.html | 87 + edgware/templates/demo/homeDemo.html | 117 + edgware/templates/demo/padmaDemo.html | 93 + edgware/templates/editor.html | 217 + edgware/templates/frontPage.html | 39 + edgware/templates/image_rotate.html | 16 + edgware/templates/index.html | 71 + edgware/templates/slider.html | 134 + edgware/templates/slider.html.moved | 70 + edgware/templates/thumbnailTmp.txt | 3 + edgware/templates/view_article.html | 80 + edgware/templates/view_page.html | 38 + edgware/urls.py | 46 + requirements.txt | 5 + 733 files changed, 123926 insertions(+) create mode 100644 edgware/.bzrignore create mode 100644 edgware/TODO.txt create mode 100755 edgware/__init__.py create mode 100755 edgware/dropandcreatedb.py create mode 100644 edgware/edge create mode 100644 edgware/editor/.DS_Store create mode 100644 edgware/editor/__init__.py create mode 100644 edgware/editor/admin.py create mode 100644 edgware/editor/fields.py create mode 100644 edgware/editor/models.py create mode 100644 edgware/editor/templatetags/__init__.py create mode 100644 edgware/editor/templatetags/alter_size.py create mode 100644 edgware/editor/urls.py create mode 100644 edgware/editor/views.py create mode 100644 edgware/files/.DS_Store create mode 100755 edgware/files/__init__.py create mode 100755 edgware/files/admin.py create mode 100644 edgware/files/convert.py create mode 100755 edgware/files/models.py create mode 100644 edgware/files/views.py create mode 100755 edgware/manage.py create mode 100755 edgware/monitor.py create mode 100644 edgware/settings.py create mode 100755 edgware/settings.txt create mode 100644 edgware/static/Jcrop/css/Jcrop.gif create mode 100644 edgware/static/Jcrop/css/jquery.Jcrop.css create mode 100644 edgware/static/Jcrop/demos/crop.php create mode 100644 edgware/static/Jcrop/demos/demo_files/demos.css create mode 100755 edgware/static/Jcrop/demos/demo_files/flowers.jpg create mode 100755 edgware/static/Jcrop/demos/demo_files/sago.jpg create mode 100644 edgware/static/Jcrop/demos/demo_files/sagomod.jpg create mode 100644 edgware/static/Jcrop/demos/demo_files/sagomod.png create mode 100644 edgware/static/Jcrop/demos/tutorial1.html create mode 100644 edgware/static/Jcrop/demos/tutorial2.html create mode 100644 edgware/static/Jcrop/demos/tutorial3.html create mode 100644 edgware/static/Jcrop/demos/tutorial4.html create mode 100644 edgware/static/Jcrop/demos/tutorial5.html create mode 100644 edgware/static/Jcrop/index.html create mode 100644 edgware/static/Jcrop/js/jquery.Jcrop.js create mode 100644 edgware/static/Jcrop/js/jquery.Jcrop.min.js create mode 100644 edgware/static/Jcrop/js/jquery.min.js create mode 100644 edgware/static/ckeditor/.DS_Store create mode 100755 edgware/static/ckeditor/.htaccess create mode 100755 edgware/static/ckeditor/CHANGES.html create mode 100755 edgware/static/ckeditor/INSTALL.html create mode 100755 edgware/static/ckeditor/LICENSE.html create mode 100755 edgware/static/ckeditor/_samples/ajax.html create mode 100755 edgware/static/ckeditor/_samples/api.html create mode 100755 edgware/static/ckeditor/_samples/api_dialog.html create mode 100755 edgware/static/ckeditor/_samples/api_dialog/my_dialog.js create mode 100755 edgware/static/ckeditor/_samples/divreplace.html create mode 100755 edgware/static/ckeditor/_samples/enterkey.html create mode 100755 edgware/static/ckeditor/_samples/fullpage.html create mode 100755 edgware/static/ckeditor/_samples/index.html create mode 100755 edgware/static/ckeditor/_samples/jqueryadapter.html create mode 100755 edgware/static/ckeditor/_samples/php/advanced.php create mode 100755 edgware/static/ckeditor/_samples/php/events.php create mode 100755 edgware/static/ckeditor/_samples/php/replace.php create mode 100755 edgware/static/ckeditor/_samples/php/replaceall.php create mode 100755 edgware/static/ckeditor/_samples/php/standalone.php create mode 100755 edgware/static/ckeditor/_samples/replacebyclass.html create mode 100755 edgware/static/ckeditor/_samples/replacebycode.html create mode 100755 edgware/static/ckeditor/_samples/sample.css create mode 100755 edgware/static/ckeditor/_samples/sample.js create mode 100755 edgware/static/ckeditor/_samples/sample_posteddata.php create mode 100755 edgware/static/ckeditor/_samples/sharedspaces.html create mode 100755 edgware/static/ckeditor/_samples/skins.html create mode 100755 edgware/static/ckeditor/_samples/ui_color.html create mode 100755 edgware/static/ckeditor/_samples/ui_languages.html create mode 100755 edgware/static/ckeditor/_source/adapters/jquery.js create mode 100755 edgware/static/ckeditor/_source/core/_bootstrap.js create mode 100755 edgware/static/ckeditor/_source/core/ajax.js create mode 100755 edgware/static/ckeditor/_source/core/ckeditor.js create mode 100755 edgware/static/ckeditor/_source/core/ckeditor_base.js create mode 100755 edgware/static/ckeditor/_source/core/ckeditor_basic.js create mode 100755 edgware/static/ckeditor/_source/core/command.js create mode 100755 edgware/static/ckeditor/_source/core/commanddefinition.js create mode 100755 edgware/static/ckeditor/_source/core/config.js create mode 100755 edgware/static/ckeditor/_source/core/dom.js create mode 100755 edgware/static/ckeditor/_source/core/dom/comment.js create mode 100755 edgware/static/ckeditor/_source/core/dom/document.js create mode 100755 edgware/static/ckeditor/_source/core/dom/documentfragment.js create mode 100755 edgware/static/ckeditor/_source/core/dom/domobject.js create mode 100755 edgware/static/ckeditor/_source/core/dom/element.js create mode 100755 edgware/static/ckeditor/_source/core/dom/elementpath.js create mode 100755 edgware/static/ckeditor/_source/core/dom/event.js create mode 100755 edgware/static/ckeditor/_source/core/dom/node.js create mode 100755 edgware/static/ckeditor/_source/core/dom/nodelist.js create mode 100755 edgware/static/ckeditor/_source/core/dom/range.js create mode 100755 edgware/static/ckeditor/_source/core/dom/text.js create mode 100755 edgware/static/ckeditor/_source/core/dom/walker.js create mode 100755 edgware/static/ckeditor/_source/core/dom/window.js create mode 100755 edgware/static/ckeditor/_source/core/dtd.js create mode 100755 edgware/static/ckeditor/_source/core/editor.js create mode 100755 edgware/static/ckeditor/_source/core/editor_basic.js create mode 100755 edgware/static/ckeditor/_source/core/env.js create mode 100755 edgware/static/ckeditor/_source/core/event.js create mode 100755 edgware/static/ckeditor/_source/core/eventInfo.js create mode 100755 edgware/static/ckeditor/_source/core/focusmanager.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/basicwriter.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/cdata.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/comment.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/element.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/filter.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/fragment.js create mode 100755 edgware/static/ckeditor/_source/core/htmlparser/text.js create mode 100755 edgware/static/ckeditor/_source/core/imagecacher.js create mode 100755 edgware/static/ckeditor/_source/core/lang.js create mode 100755 edgware/static/ckeditor/_source/core/loader.js create mode 100755 edgware/static/ckeditor/_source/core/plugindefinition.js create mode 100755 edgware/static/ckeditor/_source/core/plugins.js create mode 100755 edgware/static/ckeditor/_source/core/resourcemanager.js create mode 100755 edgware/static/ckeditor/_source/core/scriptloader.js create mode 100755 edgware/static/ckeditor/_source/core/skins.js create mode 100755 edgware/static/ckeditor/_source/core/themes.js create mode 100755 edgware/static/ckeditor/_source/core/tools.js create mode 100755 edgware/static/ckeditor/_source/core/ui.js create mode 100755 edgware/static/ckeditor/_source/core/xml.js create mode 100755 edgware/static/ckeditor/_source/lang/_languages.js create mode 100755 edgware/static/ckeditor/_source/lang/_translationstatus.txt create mode 100755 edgware/static/ckeditor/_source/lang/af.js create mode 100755 edgware/static/ckeditor/_source/lang/ar.js create mode 100755 edgware/static/ckeditor/_source/lang/bg.js create mode 100755 edgware/static/ckeditor/_source/lang/bn.js create mode 100755 edgware/static/ckeditor/_source/lang/bs.js create mode 100755 edgware/static/ckeditor/_source/lang/ca.js create mode 100755 edgware/static/ckeditor/_source/lang/cs.js create mode 100755 edgware/static/ckeditor/_source/lang/da.js create mode 100755 edgware/static/ckeditor/_source/lang/de.js create mode 100755 edgware/static/ckeditor/_source/lang/el.js create mode 100755 edgware/static/ckeditor/_source/lang/en-au.js create mode 100755 edgware/static/ckeditor/_source/lang/en-ca.js create mode 100755 edgware/static/ckeditor/_source/lang/en-uk.js create mode 100755 edgware/static/ckeditor/_source/lang/en.js create mode 100755 edgware/static/ckeditor/_source/lang/eo.js create mode 100755 edgware/static/ckeditor/_source/lang/es.js create mode 100755 edgware/static/ckeditor/_source/lang/et.js create mode 100755 edgware/static/ckeditor/_source/lang/eu.js create mode 100755 edgware/static/ckeditor/_source/lang/fa.js create mode 100755 edgware/static/ckeditor/_source/lang/fi.js create mode 100755 edgware/static/ckeditor/_source/lang/fo.js create mode 100755 edgware/static/ckeditor/_source/lang/fr-ca.js create mode 100755 edgware/static/ckeditor/_source/lang/fr.js create mode 100755 edgware/static/ckeditor/_source/lang/gl.js create mode 100755 edgware/static/ckeditor/_source/lang/gu.js create mode 100755 edgware/static/ckeditor/_source/lang/he.js create mode 100755 edgware/static/ckeditor/_source/lang/hi.js create mode 100755 edgware/static/ckeditor/_source/lang/hr.js create mode 100755 edgware/static/ckeditor/_source/lang/hu.js create mode 100755 edgware/static/ckeditor/_source/lang/is.js create mode 100755 edgware/static/ckeditor/_source/lang/it.js create mode 100755 edgware/static/ckeditor/_source/lang/ja.js create mode 100755 edgware/static/ckeditor/_source/lang/km.js create mode 100755 edgware/static/ckeditor/_source/lang/ko.js create mode 100755 edgware/static/ckeditor/_source/lang/lt.js create mode 100755 edgware/static/ckeditor/_source/lang/lv.js create mode 100755 edgware/static/ckeditor/_source/lang/mn.js create mode 100755 edgware/static/ckeditor/_source/lang/ms.js create mode 100755 edgware/static/ckeditor/_source/lang/nb.js create mode 100755 edgware/static/ckeditor/_source/lang/nl.js create mode 100755 edgware/static/ckeditor/_source/lang/no.js create mode 100755 edgware/static/ckeditor/_source/lang/pl.js create mode 100755 edgware/static/ckeditor/_source/lang/pt-br.js create mode 100755 edgware/static/ckeditor/_source/lang/pt.js create mode 100755 edgware/static/ckeditor/_source/lang/ro.js create mode 100755 edgware/static/ckeditor/_source/lang/ru.js create mode 100755 edgware/static/ckeditor/_source/lang/sk.js create mode 100755 edgware/static/ckeditor/_source/lang/sl.js create mode 100755 edgware/static/ckeditor/_source/lang/sr-latn.js create mode 100755 edgware/static/ckeditor/_source/lang/sr.js create mode 100755 edgware/static/ckeditor/_source/lang/sv.js create mode 100755 edgware/static/ckeditor/_source/lang/th.js create mode 100755 edgware/static/ckeditor/_source/lang/tr.js create mode 100755 edgware/static/ckeditor/_source/lang/uk.js create mode 100755 edgware/static/ckeditor/_source/lang/vi.js create mode 100755 edgware/static/ckeditor/_source/lang/zh-cn.js create mode 100755 edgware/static/ckeditor/_source/lang/zh.js create mode 100755 edgware/static/ckeditor/_source/plugins/about/dialogs/about.js create mode 100755 edgware/static/ckeditor/_source/plugins/about/dialogs/logo_ckeditor.png create mode 100755 edgware/static/ckeditor/_source/plugins/about/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/basicstyles/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/blockquote/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/button/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/clipboard/dialogs/paste.js create mode 100755 edgware/static/ckeditor/_source/plugins/clipboard/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/colorbutton/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js create mode 100755 edgware/static/ckeditor/_source/plugins/colordialog/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/contextmenu/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/dialog/dialogDefinition.js create mode 100755 edgware/static/ckeditor/_source/plugins/dialog/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/dialogui/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/div/dialogs/div.js create mode 100755 edgware/static/ckeditor/_source/plugins/div/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/domiterator/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/editingblock/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/elementspath/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/enterkey/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/entities/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/fakeobjects/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/filebrowser/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/find/dialogs/find.js create mode 100755 edgware/static/ckeditor/_source/plugins/find/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/flash/dialogs/flash.js create mode 100755 edgware/static/ckeditor/_source/plugins/flash/images/placeholder.png create mode 100755 edgware/static/ckeditor/_source/plugins/flash/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/floatpanel/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/font/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/format/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/button.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/checkbox.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/form.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/radio.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/select.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/textarea.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/dialogs/textfield.js create mode 100755 edgware/static/ckeditor/_source/plugins/forms/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/horizontalrule/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/htmldataprocessor/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/htmlwriter/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/iframedialog/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/image/dialogs/image.js create mode 100755 edgware/static/ckeditor/_source/plugins/image/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/indent/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/justify/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/keystrokes/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/link/dialogs/anchor.js create mode 100755 edgware/static/ckeditor/_source/plugins/link/dialogs/link.js create mode 100755 edgware/static/ckeditor/_source/plugins/link/images/anchor.gif create mode 100755 edgware/static/ckeditor/_source/plugins/link/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/list/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/listblock/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/maximize/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/menu/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/menubutton/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/newpage/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/pagebreak/images/pagebreak.gif create mode 100755 edgware/static/ckeditor/_source/plugins/pagebreak/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/panel/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/panelbutton/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/pastefromword/filter/default.js create mode 100755 edgware/static/ckeditor/_source/plugins/pastefromword/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js create mode 100755 edgware/static/ckeditor/_source/plugins/pastetext/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/popup/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/preview/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/print/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/removeformat/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/resize/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/richcombo/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/save/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/scayt/dialogs/options.js create mode 100755 edgware/static/ckeditor/_source/plugins/scayt/dialogs/toolbar.css create mode 100755 edgware/static/ckeditor/_source/plugins/scayt/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/selection/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_address.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_blockquote.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_div.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_h1.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_h2.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_h3.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_h4.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_h5.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_h6.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_p.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/images/block_pre.png create mode 100755 edgware/static/ckeditor/_source/plugins/showblocks/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/showborders/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/dialogs/smiley.js create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/angel_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/angry_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/broken_heart.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/confused_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/cry_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/devil_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/embaressed_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/envelope.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/heart.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/kiss.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/lightbulb.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/omg_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/regular_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/sad_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/shades_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/teeth_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/thumbs_down.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/thumbs_up.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/tounge_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/whatchutalkingabout_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/images/wink_smile.gif create mode 100755 edgware/static/ckeditor/_source/plugins/smiley/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/sourcearea/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/specialchar/dialogs/specialchar.js create mode 100755 edgware/static/ckeditor/_source/plugins/specialchar/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/styles/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/stylescombo/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/stylescombo/styles/default.js create mode 100755 edgware/static/ckeditor/_source/plugins/tab/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/table/dialogs/table.js create mode 100755 edgware/static/ckeditor/_source/plugins/table/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js create mode 100755 edgware/static/ckeditor/_source/plugins/tabletools/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/templates/dialogs/templates.js create mode 100755 edgware/static/ckeditor/_source/plugins/templates/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/templates/templates/default.js create mode 100755 edgware/static/ckeditor/_source/plugins/templates/templates/images/template1.gif create mode 100755 edgware/static/ckeditor/_source/plugins/templates/templates/images/template2.gif create mode 100755 edgware/static/ckeditor/_source/plugins/templates/templates/images/template3.gif create mode 100755 edgware/static/ckeditor/_source/plugins/toolbar/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/lang/en.js create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/uicolor.gif create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/yui/assets/hue_bg.png create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/yui/assets/hue_thumb.png create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/yui/assets/picker_mask.png create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/yui/assets/picker_thumb.png create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/yui/assets/yui.css create mode 100755 edgware/static/ckeditor/_source/plugins/uicolor/yui/yui.js create mode 100755 edgware/static/ckeditor/_source/plugins/undo/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/wsc/dialogs/ciframe.html create mode 100755 edgware/static/ckeditor/_source/plugins/wsc/dialogs/tmpFrameset.html create mode 100755 edgware/static/ckeditor/_source/plugins/wsc/dialogs/wsc.css create mode 100755 edgware/static/ckeditor/_source/plugins/wsc/dialogs/wsc.js create mode 100755 edgware/static/ckeditor/_source/plugins/wsc/plugin.js create mode 100755 edgware/static/ckeditor/_source/plugins/wysiwygarea/plugin.js create mode 100755 edgware/static/ckeditor/_source/skins/kama/dialog.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/editor.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/elementspath.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/icons.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/icons.png create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/dialog_sides.gif create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/dialog_sides.png create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/dialog_sides_rtl.png create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/mini.gif create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/noimage.png create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/sprites.png create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/sprites_ie6.png create mode 100755 edgware/static/ckeditor/_source/skins/kama/images/toolbar_start.gif create mode 100755 edgware/static/ckeditor/_source/skins/kama/mainui.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/menu.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/panel.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/presets.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/reset.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/richcombo.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/skin.js create mode 100755 edgware/static/ckeditor/_source/skins/kama/templates.css create mode 100755 edgware/static/ckeditor/_source/skins/kama/toolbar.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/dialog.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/editor.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/elementspath.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/icons.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/icons.png create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/dialog_sides.gif create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/dialog_sides.png create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/dialog_sides_rtl.png create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/mini.gif create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/noimage.png create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/sprites.png create mode 100755 edgware/static/ckeditor/_source/skins/office2003/images/sprites_ie6.png create mode 100755 edgware/static/ckeditor/_source/skins/office2003/mainui.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/menu.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/panel.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/presets.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/reset.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/richcombo.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/skin.js create mode 100755 edgware/static/ckeditor/_source/skins/office2003/templates.css create mode 100755 edgware/static/ckeditor/_source/skins/office2003/toolbar.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/dialog.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/editor.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/elementspath.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/icons.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/icons.png create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/dialog_sides.gif create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/dialog_sides.png create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/dialog_sides_rtl.png create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/mini.gif create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/noimage.png create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/sprites.png create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/sprites_ie6.png create mode 100755 edgware/static/ckeditor/_source/skins/v2/images/toolbar_start.gif create mode 100755 edgware/static/ckeditor/_source/skins/v2/mainui.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/menu.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/panel.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/presets.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/reset.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/richcombo.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/skin.js create mode 100755 edgware/static/ckeditor/_source/skins/v2/templates.css create mode 100755 edgware/static/ckeditor/_source/skins/v2/toolbar.css create mode 100755 edgware/static/ckeditor/_source/themes/default/theme.js create mode 100755 edgware/static/ckeditor/adapters/jquery.js create mode 100755 edgware/static/ckeditor/ckeditor.js create mode 100755 edgware/static/ckeditor/ckeditor.pack create mode 100755 edgware/static/ckeditor/ckeditor.php create mode 100755 edgware/static/ckeditor/ckeditor_basic.js create mode 100755 edgware/static/ckeditor/ckeditor_basic_source.js create mode 100755 edgware/static/ckeditor/ckeditor_php4.php create mode 100755 edgware/static/ckeditor/ckeditor_php5.php create mode 100755 edgware/static/ckeditor/ckeditor_source.js create mode 100755 edgware/static/ckeditor/config.js create mode 100755 edgware/static/ckeditor/contents.css create mode 100755 edgware/static/ckeditor/images/spacer.gif create mode 100755 edgware/static/ckeditor/lang/_languages.js create mode 100755 edgware/static/ckeditor/lang/_translationstatus.txt create mode 100755 edgware/static/ckeditor/lang/af.js create mode 100755 edgware/static/ckeditor/lang/ar.js create mode 100755 edgware/static/ckeditor/lang/bg.js create mode 100755 edgware/static/ckeditor/lang/bn.js create mode 100755 edgware/static/ckeditor/lang/bs.js create mode 100755 edgware/static/ckeditor/lang/ca.js create mode 100755 edgware/static/ckeditor/lang/cs.js create mode 100755 edgware/static/ckeditor/lang/da.js create mode 100755 edgware/static/ckeditor/lang/de.js create mode 100755 edgware/static/ckeditor/lang/el.js create mode 100755 edgware/static/ckeditor/lang/en-au.js create mode 100755 edgware/static/ckeditor/lang/en-ca.js create mode 100755 edgware/static/ckeditor/lang/en-uk.js create mode 100755 edgware/static/ckeditor/lang/en.js create mode 100755 edgware/static/ckeditor/lang/eo.js create mode 100755 edgware/static/ckeditor/lang/es.js create mode 100755 edgware/static/ckeditor/lang/et.js create mode 100755 edgware/static/ckeditor/lang/eu.js create mode 100755 edgware/static/ckeditor/lang/fa.js create mode 100755 edgware/static/ckeditor/lang/fi.js create mode 100755 edgware/static/ckeditor/lang/fo.js create mode 100755 edgware/static/ckeditor/lang/fr-ca.js create mode 100755 edgware/static/ckeditor/lang/fr.js create mode 100755 edgware/static/ckeditor/lang/gl.js create mode 100755 edgware/static/ckeditor/lang/gu.js create mode 100755 edgware/static/ckeditor/lang/he.js create mode 100755 edgware/static/ckeditor/lang/hi.js create mode 100755 edgware/static/ckeditor/lang/hr.js create mode 100755 edgware/static/ckeditor/lang/hu.js create mode 100755 edgware/static/ckeditor/lang/is.js create mode 100755 edgware/static/ckeditor/lang/it.js create mode 100755 edgware/static/ckeditor/lang/ja.js create mode 100755 edgware/static/ckeditor/lang/km.js create mode 100755 edgware/static/ckeditor/lang/ko.js create mode 100755 edgware/static/ckeditor/lang/lt.js create mode 100755 edgware/static/ckeditor/lang/lv.js create mode 100755 edgware/static/ckeditor/lang/mn.js create mode 100755 edgware/static/ckeditor/lang/ms.js create mode 100755 edgware/static/ckeditor/lang/nb.js create mode 100755 edgware/static/ckeditor/lang/nl.js create mode 100755 edgware/static/ckeditor/lang/no.js create mode 100755 edgware/static/ckeditor/lang/pl.js create mode 100755 edgware/static/ckeditor/lang/pt-br.js create mode 100755 edgware/static/ckeditor/lang/pt.js create mode 100755 edgware/static/ckeditor/lang/ro.js create mode 100755 edgware/static/ckeditor/lang/ru.js create mode 100755 edgware/static/ckeditor/lang/sk.js create mode 100755 edgware/static/ckeditor/lang/sl.js create mode 100755 edgware/static/ckeditor/lang/sr-latn.js create mode 100755 edgware/static/ckeditor/lang/sr.js create mode 100755 edgware/static/ckeditor/lang/sv.js create mode 100755 edgware/static/ckeditor/lang/th.js create mode 100755 edgware/static/ckeditor/lang/tr.js create mode 100755 edgware/static/ckeditor/lang/uk.js create mode 100755 edgware/static/ckeditor/lang/vi.js create mode 100755 edgware/static/ckeditor/lang/zh-cn.js create mode 100755 edgware/static/ckeditor/lang/zh.js create mode 100755 edgware/static/ckeditor/plugins/about/dialogs/about.js create mode 100755 edgware/static/ckeditor/plugins/about/dialogs/logo_ckeditor.png create mode 100755 edgware/static/ckeditor/plugins/clipboard/dialogs/paste.js create mode 100755 edgware/static/ckeditor/plugins/colordialog/dialogs/colordialog.js create mode 100755 edgware/static/ckeditor/plugins/dialog/dialogDefinition.js create mode 100755 edgware/static/ckeditor/plugins/div/dialogs/div.js create mode 100755 edgware/static/ckeditor/plugins/find/dialogs/find.js create mode 100755 edgware/static/ckeditor/plugins/flash/dialogs/flash.js create mode 100755 edgware/static/ckeditor/plugins/flash/images/placeholder.png create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/button.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/checkbox.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/form.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/hiddenfield.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/radio.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/select.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/textarea.js create mode 100755 edgware/static/ckeditor/plugins/forms/dialogs/textfield.js create mode 100755 edgware/static/ckeditor/plugins/iframedialog/plugin.js create mode 100755 edgware/static/ckeditor/plugins/image/dialogs/image.js create mode 100755 edgware/static/ckeditor/plugins/link/dialogs/anchor.js create mode 100755 edgware/static/ckeditor/plugins/link/dialogs/link.js create mode 100755 edgware/static/ckeditor/plugins/link/images/anchor.gif create mode 100755 edgware/static/ckeditor/plugins/pagebreak/images/pagebreak.gif create mode 100755 edgware/static/ckeditor/plugins/pastefromword/filter/default.js create mode 100755 edgware/static/ckeditor/plugins/pastetext/dialogs/pastetext.js create mode 100755 edgware/static/ckeditor/plugins/scayt/dialogs/options.js create mode 100755 edgware/static/ckeditor/plugins/scayt/dialogs/toolbar.css create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_address.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_blockquote.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_div.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_h1.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_h2.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_h3.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_h4.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_h5.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_h6.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_p.png create mode 100755 edgware/static/ckeditor/plugins/showblocks/images/block_pre.png create mode 100755 edgware/static/ckeditor/plugins/smiley/dialogs/smiley.js create mode 100755 edgware/static/ckeditor/plugins/smiley/images/angel_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/angry_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/broken_heart.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/confused_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/cry_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/devil_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/embaressed_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/envelope.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/heart.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/kiss.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/lightbulb.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/omg_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/regular_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/sad_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/shades_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/teeth_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/thumbs_down.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/thumbs_up.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/tounge_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif create mode 100755 edgware/static/ckeditor/plugins/smiley/images/wink_smile.gif create mode 100755 edgware/static/ckeditor/plugins/specialchar/dialogs/specialchar.js create mode 100755 edgware/static/ckeditor/plugins/stylescombo/styles/default.js create mode 100755 edgware/static/ckeditor/plugins/table/dialogs/table.js create mode 100755 edgware/static/ckeditor/plugins/tabletools/dialogs/tableCell.js create mode 100755 edgware/static/ckeditor/plugins/templates/dialogs/templates.js create mode 100755 edgware/static/ckeditor/plugins/templates/templates/default.js create mode 100755 edgware/static/ckeditor/plugins/templates/templates/images/template1.gif create mode 100755 edgware/static/ckeditor/plugins/templates/templates/images/template2.gif create mode 100755 edgware/static/ckeditor/plugins/templates/templates/images/template3.gif create mode 100755 edgware/static/ckeditor/plugins/uicolor/dialogs/uicolor.js create mode 100755 edgware/static/ckeditor/plugins/uicolor/lang/en.js create mode 100755 edgware/static/ckeditor/plugins/uicolor/plugin.js create mode 100755 edgware/static/ckeditor/plugins/uicolor/uicolor.gif create mode 100755 edgware/static/ckeditor/plugins/uicolor/yui/assets/hue_bg.png create mode 100755 edgware/static/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png create mode 100755 edgware/static/ckeditor/plugins/uicolor/yui/assets/picker_mask.png create mode 100755 edgware/static/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png create mode 100755 edgware/static/ckeditor/plugins/uicolor/yui/assets/yui.css create mode 100755 edgware/static/ckeditor/plugins/uicolor/yui/yui.js create mode 100755 edgware/static/ckeditor/plugins/wsc/dialogs/ciframe.html create mode 100755 edgware/static/ckeditor/plugins/wsc/dialogs/tmpFrameset.html create mode 100755 edgware/static/ckeditor/plugins/wsc/dialogs/wsc.css create mode 100755 edgware/static/ckeditor/plugins/wsc/dialogs/wsc.js create mode 100644 edgware/static/ckeditor/skins/.DS_Store create mode 100755 edgware/static/ckeditor/skins/kama/dialog.css create mode 100755 edgware/static/ckeditor/skins/kama/editor.css create mode 100755 edgware/static/ckeditor/skins/kama/icons.png create mode 100755 edgware/static/ckeditor/skins/kama/images/dialog_sides.gif create mode 100755 edgware/static/ckeditor/skins/kama/images/dialog_sides.png create mode 100755 edgware/static/ckeditor/skins/kama/images/dialog_sides_rtl.png create mode 100755 edgware/static/ckeditor/skins/kama/images/mini.gif create mode 100755 edgware/static/ckeditor/skins/kama/images/noimage.png create mode 100755 edgware/static/ckeditor/skins/kama/images/sprites.png create mode 100755 edgware/static/ckeditor/skins/kama/images/sprites_ie6.png create mode 100755 edgware/static/ckeditor/skins/kama/images/toolbar_start.gif create mode 100755 edgware/static/ckeditor/skins/kama/skin.js create mode 100755 edgware/static/ckeditor/skins/kama/templates.css create mode 100755 edgware/static/ckeditor/skins/office2003/dialog.css create mode 100755 edgware/static/ckeditor/skins/office2003/editor.css create mode 100755 edgware/static/ckeditor/skins/office2003/icons.png create mode 100755 edgware/static/ckeditor/skins/office2003/images/dialog_sides.gif create mode 100755 edgware/static/ckeditor/skins/office2003/images/dialog_sides.png create mode 100755 edgware/static/ckeditor/skins/office2003/images/dialog_sides_rtl.png create mode 100755 edgware/static/ckeditor/skins/office2003/images/mini.gif create mode 100755 edgware/static/ckeditor/skins/office2003/images/noimage.png create mode 100755 edgware/static/ckeditor/skins/office2003/images/sprites.png create mode 100755 edgware/static/ckeditor/skins/office2003/images/sprites_ie6.png create mode 100755 edgware/static/ckeditor/skins/office2003/skin.js create mode 100755 edgware/static/ckeditor/skins/office2003/templates.css create mode 100755 edgware/static/ckeditor/skins/v2/dialog.css create mode 100755 edgware/static/ckeditor/skins/v2/editor.css create mode 100755 edgware/static/ckeditor/skins/v2/icons.png create mode 100755 edgware/static/ckeditor/skins/v2/images/dialog_sides.gif create mode 100755 edgware/static/ckeditor/skins/v2/images/dialog_sides.png create mode 100755 edgware/static/ckeditor/skins/v2/images/dialog_sides_rtl.png create mode 100755 edgware/static/ckeditor/skins/v2/images/mini.gif create mode 100755 edgware/static/ckeditor/skins/v2/images/noimage.png create mode 100755 edgware/static/ckeditor/skins/v2/images/sprites.png create mode 100755 edgware/static/ckeditor/skins/v2/images/sprites_ie6.png create mode 100755 edgware/static/ckeditor/skins/v2/images/toolbar_start.gif create mode 100755 edgware/static/ckeditor/skins/v2/skin.js create mode 100755 edgware/static/ckeditor/skins/v2/templates.css create mode 100755 edgware/static/ckeditor/themes/default/theme.js create mode 100644 edgware/static/colorpicker/.DS_Store create mode 100755 edgware/static/colorpicker/css/colorpicker.css create mode 100755 edgware/static/colorpicker/css/layout.css create mode 100755 edgware/static/colorpicker/images/Thumbs.db create mode 100755 edgware/static/colorpicker/images/blank.gif create mode 100755 edgware/static/colorpicker/images/colorpicker_background.png create mode 100755 edgware/static/colorpicker/images/colorpicker_hex.png create mode 100755 edgware/static/colorpicker/images/colorpicker_hsb_b.png create mode 100755 edgware/static/colorpicker/images/colorpicker_hsb_h.png create mode 100755 edgware/static/colorpicker/images/colorpicker_hsb_s.png create mode 100755 edgware/static/colorpicker/images/colorpicker_indic.gif create mode 100755 edgware/static/colorpicker/images/colorpicker_overlay.png create mode 100755 edgware/static/colorpicker/images/colorpicker_rgb_b.png create mode 100755 edgware/static/colorpicker/images/colorpicker_rgb_g.png create mode 100755 edgware/static/colorpicker/images/colorpicker_rgb_r.png create mode 100755 edgware/static/colorpicker/images/colorpicker_select.gif create mode 100755 edgware/static/colorpicker/images/colorpicker_submit.png create mode 100755 edgware/static/colorpicker/images/custom_background.png create mode 100755 edgware/static/colorpicker/images/custom_hex.png create mode 100755 edgware/static/colorpicker/images/custom_hsb_b.png create mode 100755 edgware/static/colorpicker/images/custom_hsb_h.png create mode 100755 edgware/static/colorpicker/images/custom_hsb_s.png create mode 100755 edgware/static/colorpicker/images/custom_indic.gif create mode 100755 edgware/static/colorpicker/images/custom_rgb_b.png create mode 100755 edgware/static/colorpicker/images/custom_rgb_g.png create mode 100755 edgware/static/colorpicker/images/custom_rgb_r.png create mode 100755 edgware/static/colorpicker/images/custom_submit.png create mode 100755 edgware/static/colorpicker/images/select.png create mode 100755 edgware/static/colorpicker/images/select2.png create mode 100755 edgware/static/colorpicker/images/slider.png create mode 100755 edgware/static/colorpicker/index.html create mode 100755 edgware/static/colorpicker/js/colorpicker.js create mode 100755 edgware/static/colorpicker/js/eye.js create mode 100755 edgware/static/colorpicker/js/jquery.js create mode 100755 edgware/static/colorpicker/js/layout.js create mode 100755 edgware/static/colorpicker/js/utils.js create mode 100644 edgware/static/css/articleDemo.css create mode 100644 edgware/static/css/colorbox.css create mode 100644 edgware/static/css/editor.css create mode 100644 edgware/static/css/farbtastic.css create mode 100644 edgware/static/css/homeDemo.css create mode 100644 edgware/static/css/jquery.tooltip.css create mode 100644 edgware/static/css/slider.css create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png create mode 100644 edgware/static/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png create mode 100644 edgware/static/css/ui-lightness/images/ui-icons_222222_256x240.png create mode 100644 edgware/static/css/ui-lightness/images/ui-icons_228ef1_256x240.png create mode 100644 edgware/static/css/ui-lightness/images/ui-icons_ef8c08_256x240.png create mode 100644 edgware/static/css/ui-lightness/images/ui-icons_ffd27a_256x240.png create mode 100644 edgware/static/css/ui-lightness/images/ui-icons_ffffff_256x240.png create mode 100644 edgware/static/css/ui-lightness/jquery-ui-1.7.2.custom.css create mode 100644 edgware/static/images/TestDescription.srt create mode 100644 edgware/static/images/TestDescription2.srt create mode 100644 edgware/static/images/TestTranscript.srt create mode 100644 edgware/static/images/TestTranscript2.srt create mode 100644 edgware/static/images/border.png create mode 100644 edgware/static/images/controls.png create mode 100644 edgware/static/images/icons/Audio.jpg create mode 100644 edgware/static/images/icons/Video.jpg create mode 100644 edgware/static/images/icons/speaker.png create mode 100644 edgware/static/images/icons/video.png create mode 100644 edgware/static/images/internet_explorer/borderBottomCenter.png create mode 100644 edgware/static/images/internet_explorer/borderBottomLeft.png create mode 100644 edgware/static/images/internet_explorer/borderBottomRight.png create mode 100644 edgware/static/images/internet_explorer/borderMiddleLeft.png create mode 100644 edgware/static/images/internet_explorer/borderMiddleRight.png create mode 100644 edgware/static/images/internet_explorer/borderTopCenter.png create mode 100644 edgware/static/images/internet_explorer/borderTopLeft.png create mode 100644 edgware/static/images/internet_explorer/borderTopRight.png create mode 100644 edgware/static/images/loading.gif create mode 100644 edgware/static/images/oldenglish/dot.gif create mode 100644 edgware/static/images/oldenglish/oecomein.jpg create mode 100644 edgware/static/images/oldenglish/oedig1.jpg create mode 100644 edgware/static/images/oldenglish/oeentrance.jpg create mode 100644 edgware/static/images/oldenglish/oemarkings.jpg create mode 100644 edgware/static/images/oldenglish/oenomoney.jpg create mode 100644 edgware/static/images/oldenglish/oepan1.jpg create mode 100644 edgware/static/images/oldenglish/oepan2.jpg create mode 100644 edgware/static/images/overlay.png create mode 100644 edgware/static/images/pageOff.png create mode 100644 edgware/static/images/pageOn.png create mode 100644 edgware/static/images/pagehover.png create mode 100644 edgware/static/images/player.swf create mode 100644 edgware/static/js/.DS_Store create mode 100644 edgware/static/js/articleDemo.js create mode 100644 edgware/static/js/editor.js create mode 100644 edgware/static/js/farbtastic.js create mode 100644 edgware/static/js/jquery-ui.js create mode 100644 edgware/static/js/jquery.Jcrop.js create mode 100644 edgware/static/js/jquery.color.js create mode 100644 edgware/static/js/jquery.colorbox-min.js create mode 100644 edgware/static/js/jquery.colorbox.js create mode 100644 edgware/static/js/jquery.js create mode 100644 edgware/static/js/jquery.srt.js create mode 100644 edgware/static/js/jquery.tooltip.js create mode 100644 edgware/static/js/slider.js create mode 100644 edgware/static/js/swfobject.js create mode 100644 edgware/static/js/utils.js create mode 100755 edgware/static/txt/robots.txt create mode 100644 edgware/templates/.DS_Store create mode 100644 edgware/templates/404.html create mode 100644 edgware/templates/500.html create mode 100755 edgware/templates/admin/404.html create mode 100755 edgware/templates/admin/500.html create mode 100755 edgware/templates/admin/app_index.html create mode 100644 edgware/templates/admin/base.html create mode 100644 edgware/templates/admin/base_site.html create mode 100644 edgware/templates/admin/change_form.html create mode 100644 edgware/templates/admin/change_list.html create mode 100755 edgware/templates/admin/change_list_results.html create mode 100755 edgware/templates/admin/date_hierarchy.html create mode 100755 edgware/templates/admin/delete_confirmation.html create mode 100755 edgware/templates/admin/filter.html create mode 100644 edgware/templates/admin/index.html create mode 100755 edgware/templates/admin/invalid_setup.html create mode 100644 edgware/templates/admin/login.html create mode 100755 edgware/templates/admin/object_history.html create mode 100644 edgware/templates/admin/pagination.html create mode 100755 edgware/templates/admin/prepopulated_fields_js.html create mode 100644 edgware/templates/admin/search_form.html create mode 100755 edgware/templates/admin/submit_line.html create mode 100755 edgware/templates/admin/template_validator.html create mode 100644 edgware/templates/demo/.DS_Store create mode 100644 edgware/templates/demo/articleDemo.html create mode 100644 edgware/templates/demo/audioDemo.html create mode 100644 edgware/templates/demo/homeDemo.html create mode 100644 edgware/templates/demo/padmaDemo.html create mode 100644 edgware/templates/editor.html create mode 100644 edgware/templates/frontPage.html create mode 100644 edgware/templates/image_rotate.html create mode 100755 edgware/templates/index.html create mode 100755 edgware/templates/slider.html create mode 100755 edgware/templates/slider.html.moved create mode 100644 edgware/templates/thumbnailTmp.txt create mode 100644 edgware/templates/view_article.html create mode 100644 edgware/templates/view_page.html create mode 100644 edgware/urls.py diff --git a/edgware/.bzrignore b/edgware/.bzrignore new file mode 100644 index 0000000..71631a8 --- /dev/null +++ b/edgware/.bzrignore @@ -0,0 +1,2 @@ +.bzrlog +settings.py diff --git a/edgware/TODO.txt b/edgware/TODO.txt new file mode 100644 index 0000000..dc9637d --- /dev/null +++ b/edgware/TODO.txt @@ -0,0 +1,37 @@ + + + Audio / Video / Bins: + i> Controls on items inside Bin to do various things, including adding audio and video to page. ( + some interface to show / edit audio / video associated with page, probably in the Canvas controls). + ii> For audio / video, a way to attach them to transcripts ? How the fuck is that working ? + iii> Work-flow of creating an image box from item inside bin. - ALMOST DONE. + iv> If needed, a way to filter within bins. + + Revisions: -Sanjay + i> If using Django-Reversion, figure its API to do reversions. + ii> Else, create a url where front-end sends JSON of entire Article (or page?) to back-end as a revision to be pickled and stored in DB. + iii> If using Django-Reversion, + + Article / Issue / Page: + i> Cleanly implement work-flow to create a new Issue, then Articles under that and pages under articles - some interface to browse and edit issues. + ii> Create the functions to add / delete articles, issues, pages. - Sanjay + + Generate front-end pages: + i> Generate web view alongwith audio / video, scrolling logic, etc. + ii> Work on audio / video widgets. + iii> Generate really big view for printing based on parameters - figure math to do on CSS, etc. to make this possible. + + + +DONE: + + TextBoxes. + + Image-Boxes: + i> DONE - in JS, create init functions etc. for imageBoxes as per textBoxes. -Sanjay + ii> DONE - Implement a url which handles cropping image and returns a url. -Sanjay + iii> DONE - Implement a url which handles resizing image and returns a url. -Sanjay + iv> DONE - Figure logic of paths / naming conventions to get cropped, resized, high quality, web quality, etc. + + Misc: + i> DONE - Implement delete for boxes. -Sanjay + diff --git a/edgware/__init__.py b/edgware/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/edgware/dropandcreatedb.py b/edgware/dropandcreatedb.py new file mode 100755 index 0000000..94127e4 --- /dev/null +++ b/edgware/dropandcreatedb.py @@ -0,0 +1,20 @@ +import sys +import os +from settings import DATABASE_NAME + +try: + import settings # Assumed to be in the same directory. +except ImportError: + sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) + sys.exit(1) + +filename = "/tmp/tmp.txt" +tmpfile = open(filename, "w") +tmpfile.write("DROP DATABASE %s;\nCREATE DATABASE %s;\n" % (DATABASE_NAME, DATABASE_NAME) ) +tmpfile.close() + +os.system("mysql -u root < " + filename) +os.system("python manage.py syncdb --noinput") +os.system("python manage.py createsuperuser --username admin --email user@user.com") + + diff --git a/edgware/edge b/edgware/edge new file mode 100644 index 0000000000000000000000000000000000000000..b15cb78157934845846ebdc2cd4acb3229eee24b GIT binary patch literal 162816 zcmeFa33MFEbs(4#QAiX4f)@xD0g%lkKoUd~0PDoX?j}JHya`@llkBTHt11B$SyxvT zNTPMP!EQ+{ug4=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TxS z*Hz{k|M1A)eW1|Ln-b4sm4!uAb(hcFM&ye?(Ode zG3f`l+j0)hhE zkr=4$iRoGe&+yD`3Z}TB+#d``6{p$09LT8|2A(#!`ptu;O{03nHM7m>@z3*!=ZQgx zR^NIyrTsqje z%xjBNgrtwS;oPKj>9X9OT|BBz-y^;$%T78=Hp8v@1LLgl)_(0O0 zV(z{ywO0zj^LzWmakXg)Z6h!LK0oXrnZ5UHrsZI#rZT|TT<(Loac78=;y?WhJ zr*q(^JOM&i3d*0|03fNQS4V0r=#!Nnc(h7CY4MS#$Irj*Y)A#vyW7L=_UP0Fp9dX&fpJbcb)j=Qpwo2P zI>y7g-XPm9(~SAElyN97`}aS^U@5;Zo&nmY5T|%vEAIjV$VLn$9m4q!|8yEC+mt5i z#qpV186uQ|Kx;O^D-2(K>1f^neiz5N?$R{CC;Nlz8v+7e^fRtUjQjz%mV^fIuSKnj zlz9VX@%n%eV0=H|d;h_*On#A%^B+Lvi-yLV0;r1G`C{N1BeCe+)(0WA#o>oSGzJ9M z7SfjhPM!yFy6jH3vx-vsaTg5%%o3~UJ$@fZaq%+Oh<>2*fjr7L1}G8ujyvT2WMlDi hqwEVPL)r250n7?l$Q=F_i@EYB4x{}YnE4{T{|`Ut-)R5< literal 0 HcmV?d00001 diff --git a/edgware/editor/.DS_Store b/edgware/editor/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..81c75db8f0fee9a60fed8c884781d3682d1dd713 GIT binary patch literal 6148 zcmeHKO-sW-5S^(NT6!s-Jg$F0@E*9iFOhf~?U~h<~!{oYn%X%I;2D08`NiTGRzM_4Ej3WNfOrvPfU*kEKBZ72{5gaTUyZb#ZZUKOOgw@cOpGDy$$Lv@PaRtUk1sauoi@`=mJb7MrEQUrW_RR9*a6Z{q~ nCV9nhOF>6VF><98pTgA;PtpNq$6|;GEPe!3hG;^8Usd26%koc- literal 0 HcmV?d00001 diff --git a/edgware/editor/__init__.py b/edgware/editor/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/edgware/editor/admin.py b/edgware/editor/admin.py new file mode 100644 index 0000000..5208a1e --- /dev/null +++ b/edgware/editor/admin.py @@ -0,0 +1,27 @@ +from editor.models import * +from django.contrib import admin + +class ProductTypeAdmin(admin.ModelAdmin): + pass + +class ProductAdmin(admin.ModelAdmin): + pass + +class LinksAdmin(admin.ModelAdmin): + pass + +class LinkCategoryAdmin(admin.ModelAdmin): + pass + +admin.site.register(ProductType, ProductTypeAdmin) +admin.site.register(Product, ProductAdmin) +admin.site.register(Link, LinksAdmin) +admin.site.register(LinkCategory, LinkCategoryAdmin) +admin.site.register(Article) +admin.site.register(ImageBox) +admin.site.register(TextBox) +admin.site.register(Video) +admin.site.register(Audio) +admin.site.register(Srt) +admin.site.register(SliderImage) + diff --git a/edgware/editor/fields.py b/edgware/editor/fields.py new file mode 100644 index 0000000..ca903c7 --- /dev/null +++ b/edgware/editor/fields.py @@ -0,0 +1,34 @@ +# Django Snippet from http://www.djangosnippets.org/snippets/1521/ + +import re +from django.forms import fields +from django.forms import ValidationError +from django.utils.encoding import smart_unicode + +class HexColorField(fields.Field): + + default_error_messages = { + 'hex_error': u'This is an invalid color code. It must be a html hex color code e.g. #000000' + } + + def clean(self, value): + + super(HexColorField, self).clean(value) + + if value in fields.EMPTY_VALUES: + return u'' + + value = smart_unicode(value) + value_length = len(value) + + if value_length != 7 or not re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', value): + raise ValidationError(self.error_messages['hex_error']) + + return value + + def widget_attrs(self, widget): + if isinstance(widget, (fields.TextInput)): + return {'maxlength': str(7)} + + def __unicode__(self): + return self.value diff --git a/edgware/editor/models.py b/edgware/editor/models.py new file mode 100644 index 0000000..ff27ac6 --- /dev/null +++ b/edgware/editor/models.py @@ -0,0 +1,627 @@ +from django.db import models +from files.models import File +from fields import HexColorField +from django.contrib.comments.signals import comment_was_posted +import simplejson +from django.core.mail import send_mail +import os +from PIL import Image +from django.template import Template, Context +from django.template.loader import get_template +from settings import MEDIA_ROOT +from django.contrib.auth.models import User +from tagging.fields import TagField +from tagging.models import Tag + + +def addPx(val): + ''' + Adds 'px' to an integer value for a CSS property from DB + ''' + r = str(int(val)) + "px" + return r + +def cleanCSS(prop): + ''' + Takes a CSS property and returns it into a value safe for insertion into DB + ''' + propStr = str(prop) + if propStr[-2:] == 'px': + r = int(propStr[:-2]) +# elif prop[0] == '#': +# r = prop[1:] + else: + r = prop + return r + +def isPx(s): + if s[:-2] == 'px': + return True + else: + return False + +def baseFileName(filename): + r = filename.rindex('.') + return filename[0:r] + +def extFileName(filename): + r = filename.rindex('.') + 1 + return filename[r:] + +class LinkCategory(models.Model): + title = models.CharField(max_length=255) + is_onfront = models.BooleanField(default=False) + +class Link(models.Model): + product = models.ForeignKey("Product") + category = models.ForeignKey("LinkCategory") + thumbnail = models.ImageField(upload_to='images/link_thumbs/') + description = models.TextField(blank=True, null=True) + order = models.IntegerField() + def __unicode__(self): + return self.description + +class ProductType(models.Model): + name = models.CharField(max_length=255) + aspect_ratio = models.FloatField(default=0.707, help_text="Default 0.707 as per http://en.wikipedia.org/wiki/Paper_size") + print_width = models.IntegerField(help_text="Unit: mm") + + def __unicode__(self): + return self.name + +class Product(models.Model): + title = models.CharField(max_length=255) + published = models.BooleanField(default=False) + date_published = models.DateField(blank=True, null=True) + typ = models.ForeignKey("ProductType") + tags = TagField() + creator = models.ForeignKey(User) + abstract = models.TextField(blank=True, null=True) + videos = models.ManyToManyField("Video", blank=True) + audios = models.ManyToManyField("Audio", blank=True) + def __unicode__(self): + return "%s" % (self.title) + +class Video(models.Model): + fil = models.ForeignKey(File) + srt = models.ManyToManyField("Srt", blank=True, null=True) + + def __unicode__(self): + return self.fil.title + +class Audio(models.Model): + fil = models.ForeignKey(File) + srt = models.ManyToManyField("Srt", blank=True, null=True) + + def __unicode__(self): + return self.fil.title + +SRT_LANGS = ( + ('en', 'English'), + ('ar', 'Arabic'), + ) + +SRT_TYPES = ( + ('transcript', 'Transcript'), + ('description', 'Description'), + ) + +class Srt(models.Model): + fil = models.FileField(upload_to="srt/") + lang = models.CharField(max_length=20, choices=SRT_LANGS) + typ = models.CharField(max_length = 40, choices=SRT_TYPES) + +''' +This models holds revisions, gets saved to whenever anything in an article changes - when a box changes, its pretty straightforward what's supposed to happen. When a new box or page is created, slightly strange things happen: +For a new box- prop = 'new_box', old_val='', new_val=String JSON representation of the new box. +For new page- prop = 'new_page', old_val='', new_val=String JSON representation of the new page. +For delete box, prop = 'delete_box' +For image_crop, prop = 'crop', +For image_resize, prop = 'image_resize' + +(of course this is ugly). +''' + +class Revision(models.Model): + article = models.ForeignKey("Article") + page = models.ForeignKey("Page") + box_type = models.CharField(max_length=100) + box_id = models.IntegerField() + prop = models.CharField(max_length=100) + old_val = models.TextField() + new_val = models.TextField() + uuid = models.IntegerField() + +def saveRevision(r): + page = Page.objects.get(pk=r['page_id']) + article = page.article + rev = Revision(article=article, page=page, box_type=r['box_type'], box_id=r['box_id'], prop=r['prop'], old_val=r['old_val'], new_val=r['new_val'], uuid=r['uuid']) + rev.save() + return rev.id + +class Article(models.Model): + """ + Each page references an article. A single page cannot reference more than one article. The article is what people comment on (and potentially what audio & video are attached to). + """ + name = models.CharField(max_length=255) + product = models.ForeignKey("Product") + order = models.IntegerField() + + ''' + + ''' + def changes(self, revision_no, uuid): + if int(revision_no) == self.current_revision(): + return {'ok': 'ok'} + else: + d = [] + new_revisions_all = Revision.objects.filter(article=self).filter(id__gt=revision_no) + new_revisions_others = new_revisions_all.exclude(uuid=uuid) + for rev in new_revisions_others: + if new_revisions_all.filter(id__gt=rev.id, prop=rev.prop, box_type=rev.box_type, page=rev.page).count() > 0: + UGLY_HACK = True + else: + d.append({ + 'page_id': rev.page.id, + 'prop': rev.prop, + 'old_val': rev.old_val, + 'new_val': rev.new_val, + 'box_type': rev.box_type, + 'box_id': rev.box_id, + 'uuid': rev.uuid, + 'rev_no': rev.id + }) + last_rev = self.current_revision() + return {'revs': d, 'rev_id': last_rev} + + def current_revision(self): + try: + rev = Revision.objects.filter(article=self).order_by('-id')[0] + return rev.id + except: + return 0 + + def editor_size(self): + height = self.editor_width / self.aspect_ratio + return (self.editor_width, height,) + + def view_size(self): + product = Product.objects.get(pk=self.product.id) + aspect_ratio = product.typ.aspect_ratio + width = 800 + height = int(800.0 // aspect_ratio) + return (width, height,) + + def print_size(self, print_width): + height = print_width / aspect_ratio + multiplier = print_width / (self.editor_width + .0) + return (self.print_width, height, multiplier,) + + def get_print_multiplier(self, dpi): + product = Product.objects.get(pk=self.product.id) + print_width_mm = product.typ.print_width + dpm = dpi // 25.4 + pixel_width = print_width_mm * dpm + m = pixel_width // 800.0 + return m + + def __unicode__(self): + return self.name + + def get_dict(self, *args): + if len(args) > 0: + m = args[0] + else: + m = 1 + if len(args) > 1: + page_id = args[1] + pages = Page.objects.filter(id__iexact=page_id) + else: + pages = Page.objects.filter(article=self).order_by('page_no') + rList = [] + for p in pages: + rList.append(p.get_dict(m)) + return rList + + class Meta: + unique_together = ('product', 'order',) + +class Page(models.Model): +# Question: Does Page need some custom CSS definitions like bg_color, borders, etc. ? + page_no = models.IntegerField() + article = models.ForeignKey('Article') + videos = models.ManyToManyField(Video) + audios = models.ManyToManyField(Audio) + background_color = models.CharField(max_length=30) + + + def __unicode__(self): + return "%s: %s" % (self.page_no, self.article) + + def set_page_no(self, new_page_no): + """ + Use this function to set a new page no. on a Page instance. Changes page numbers of other pages in article accordingly. + """ + old_page_no = self.page_no + self.page_no = new_page_no + self.save() + if new_page_no < old_page_no: + pages_after = Page.objects.filter(article=self.article, page_no__gte=new_page_no).filter(page_no__lt=old_page_no).exclude(pk=self.id) + for a in pages_after: + a.page_no = a.page_no + 1 + a.save() + else: + pages_before = Page.objects.filter(article=self.article, page_no__lte=new_page_no).filter(page_no__gt=old_page_no).exclude(pk=self.id) + for b in pages_before: + b.page_no = b.page_no - 1 + b.save() + return self + + def get_dict(self, m): + """ + This function iterates through all boxes on the page and returns a Dict representation which the view converts to json to send to front-end. + """ + # Image Boxes: + imageBoxes = [] + for i in ImageBox.objects.filter(page = self).exclude(is_displayed = False): + imageBoxes.append(i.to_dict(m)) + + # Text Boxes: + textBoxes = [] + for t in TextBox.objects.filter(page = self).exclude(is_displayed = False): + textBoxes.append(t.to_dict()) + ''' + videos = [] + for v in self.videos: + r = { + 'title' = v.fil.title, + 'description' = v.fil.description + 'srts' = [] + for s in v.srt: + ''' + + #Resources: + ''' + resources = [] + for res in self.resources.all(): + r = {} + r = { + 'file': res.file, + 'title': res.title, + 'description': res.description, + 'tags': res.tags, + 'userID': res.userID, + 'added': res.added, + 'categories': res.categories + } + resources.append(r) + ''' + rDict = { + 'id': self.id, + 'imageBoxes' : imageBoxes, + 'textBoxes': textBoxes, +# 'resources' : resources + } + + return rDict + + def save_from_dict(self, d): + imageBoxes = d.imageBoxes + textBoxes = d.textBoxes + for i in imageBoxes: + img = ImageBox.objects.get(pk=i.id) + img.save_from_dict() + for t in textBoxes: + txt = TextBox.objects.get(pk=t.id) + txt.save_from_dict() + +#The next two functions are painful. Whoever writes them wins a trip to the moon. + def save_revision(self): + """ + This function saves the json for the page as a Page Revision. + """ + return True + + def load_revision(self, rev_no): + """ + Loads the json data from a revision to populate the page. First, of course, it saves its current state as a revision + """ + return True + + + def deleteme(self): + """ + Deletes self - needs to change next page numbers. + """ + return True + + +class TextBox(models.Model): + +# Positioning stuff: + height = models.IntegerField() + width = models.IntegerField() + top = models.IntegerField() + left = models.IntegerField() + +# Store reference to file containing text, if any: + file = models.ForeignKey(File, blank=True, null=True) + +# Content, reference to page and whether is_displayed: + html = models.TextField() + page = models.ForeignKey(Page) + is_displayed = models.BooleanField(default=True) + +# CSS: + z_index = models.IntegerField() + background_color = models.CharField(max_length=16) + border_style = models.CharField(max_length=16) + border_width = models.IntegerField() +# line_height = models.IntegerField(blank=True, null=True) +# letter_spacing = models.IntegerField(blank=True, null=True) +# word_spacing = models.IntegerField(blank=True, null=True) + border_color = models.CharField(max_length=10) + border_radius = models.IntegerField() + padding_top = models.IntegerField() + padding_left = models.IntegerField() + padding_bottom = models.IntegerField() + padding_right = models.IntegerField() + opacity = models.FloatField() + + + def set_css(self, prop, val): + p = prop.replace("-", "_") + self.__setattr__(p, cleanCSS(val)) + return self + + def get_css(self, prop): + p = prop.replace("-", "_") + r = self.__getattribute__(p) + return r + + def to_dict(self): + return { + 'id': self.id, + 'html': self.html, + 'css': { + 'height': addPx(self.height), + 'width': addPx(self.width), + 'top': addPx(self.top), + 'left': addPx(self.left), + 'z-index': self.z_index, + 'opacity': self.opacity, + 'border-style': self.border_style, + 'border-width': addPx(self.border_width), + 'border-color': self.border_color, + 'background-color': self.background_color, + 'border-radius': addPx(self.border_radius), + 'padding-top': addPx(self.padding_top), + 'padding-left': addPx(self.padding_left), + 'padding-right': addPx(self.padding_right), + 'padding-bottom': addPx(self.padding_bottom) + } + } + + + def save_from_dict(self, d): + self.html = d.html + self.save() + for prop in d.css: + self.set_css(prop, d.css[prop]) + return self + +class ImageBox(models.Model): +# Positioning stuff: + height = models.IntegerField() + width = models.IntegerField() + top = models.IntegerField() + left = models.IntegerField() +# Data about the crop: + is_cropped = models.BooleanField(default=False) + crop_x1 = models.IntegerField(default = 0) + crop_x2 = models.IntegerField(default = 0) + crop_y1 = models.IntegerField(default = 0) + crop_y2 = models.IntegerField(default = 0) + +# Filename (originally uploaded), reference to page and whether is_displayed: + file = models.ForeignKey(File) + page = models.ForeignKey(Page) + is_displayed = models.BooleanField(default=True) +# CSS: + z_index = models.IntegerField() + border_style = models.CharField(max_length=16) + border_width = models.IntegerField() + border_color = models.CharField(max_length=10) + opacity = models.FloatField() + + def __unicode__(self): + return self.id + + def set_css(self, prop, val): + p = prop.replace("-", "_") + self.__setattr__(p, cleanCSS(val)) + return self + + def get_css(self, prop): + p = prop.replace("-", "_") + r = self.__getattribute__(p) + return r + + def to_dict(self, m): + return { + 'id': self.id, + 'original_print': self.original_print(), + # 'original_web': i.original_web(), + 'output_web': self.get_path(m), + 'css': { + 'height': addPx(self.height), + 'width': addPx(self.width), + 'top': addPx(self.top), + 'left': addPx(self.left), + 'z-index': int(self.z_index), + 'opacity': self.opacity, + 'border-style': self.border_style, + 'border-width': addPx(self.border_width), + 'border-color': self.border_color, + }, + #DIRTY HACK: Creates a 'resource' thingie to match the front-end droppable behaviour. Try n fix at some point. + 'resource': { + 'height': self.height * m, + 'width': self.width * m, + 'resized': self.get_path(m) + } + } + + def save_from_dict(self, d): + self.html = d.html + for prop in d.css: + self.set_css(prop, d.css[prop]) + return self + + def from_dict(self, d): + self.html = d.html + self.crop_top = d.crop_top + self.crop_bottom = d.crop_bottom + self.crop_left = d.crop_left + self.crop_right = d.crop_right + self.save() + for prop in d.css: + self.set_css(prop, d.css[prop]) + return self + + def resize(self, width, height): + ''' + self.width = width + self.height = height + self.save() + ''' + return self + + +#Question: Can the following methods be constructed in such a way that if the filename (based on our naming conventions) exists, it returns the filename, else, it creates it ? + + """ + This function returns the filename of the highest res original dimensions file, converted to jpeg + """ + def original_print(self): + basePath = "media/images/original/" + filename = os.path.basename(str(self.file.file)) + if extFileName(filename) != 'jpg': + f = baseFileName(filename) + ".jpg" + else: + f = filename + return basePath + f + + def crop(self, x1, y1, x2, y2, width, height): + original_image = Image.open(MEDIA_ROOT + "/" + self.actual_unresized()) + original_width = original_image.size[0] + original_height = original_image.size[1] + current_width = self.width + current_height = self.height + divisor = original_width / (current_width + .0) + if self.is_cropped == False: + self.crop_x1 = int(x1 * divisor) + self.crop_y1 = int(y1 * divisor) + self.crop_x2 = int(x2 * divisor) + self.crop_y2 = int(y2 * divisor) + self.is_cropped = True + else: + old_x1 = self.crop_x1 + old_y1 = self.crop_y1 + old_x2 = self.crop_x2 + old_y2 = self.crop_y2 + self.crop_x1 = int(x1 * divisor) + old_x1 + self.crop_y1 = int(y1 * divisor) + old_y1 + self.crop_x2 = int(x2 * divisor) + old_x1 + self.crop_y2 = int(y2 * divisor) + old_y1 + self.width = width + self.height = height + self.save() + tpl = (self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2,) + original_cropped = Image.open(MEDIA_ROOT + "/" + self.original_print()).crop(tpl) + original_cropped.save(self.cropped_path()) + return self + + def cropped_fname(self): + filename = baseFileName(os.path.basename(self.original_print())) + cropped_fname = "%s_%d_%d_%d_%d.jpg" % (filename, self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2) + return cropped_fname + + def cropped_path(self): + return MEDIA_ROOT + "/media/images/cropped/" + self.cropped_fname() + + def actual_unresized(self): + if self.is_cropped: + return "media/images/cropped/" + self.cropped_fname() + else: + return self.original_print() + + def get_path(self, *args): + if len(args) > 0: + m = args[0] + else: + m = 1 + path = self.actual_unresized() + context = { + 'path': path, + 'size': (self.width * m, self.height * m,) + } + return get_template("thumbnailTmp.txt").render(Context(context)) + + + + ''' + def original_web(self): + """ + This function returns the filename of the original dimensions file, converted to jpeg, low res for web + """ + return self + + def output_print(self): + """ + This function returns the filename of the high-res cropped file + """ + + return self + + def output_web(self): + """ + This function returns the filename of the low-res cropped file + """ + return self + ''' +class PageRev(models.Model): + """ + Stores states of the page (json representations of all boxes on page) with revision numbers so user can revert to a previous state of the page + """ + page = models.ForeignKey(Page) + pickle = models.TextField() + rev_no = models.IntegerField() + comment = models.TextField(blank=True) + + def __unicode__(self): + return "%s: %s" % (self.page.page_no, self.rev_no) + +class SliderImage(models.Model): + small_image = models.ImageField(upload_to='images/small/', width_field='width', height_field='height', blank=False, null=False) + big_image = models.ImageField(upload_to='images/big/', width_field='width', height_field='height', blank=False, null=False) + width = models.IntegerField(editable=False) + height = models.IntegerField(editable=False) + caption = models.CharField(max_length=255, blank=True) + def __unicode__(self): + return self.caption + +def comments_notify(sender, **kwargs): + comment = kwargs['comment'] + name = comment.name + email = comment.email + content = comment.comment + img_id = comment.content_object.id + url = "http://edgwareroad.org/slider/%d" % (img_id) + message = "Page: %s \n Name: %s \n Email: %s \n Comment: %s" % (url, name, email, content) + send_mail("New comment on edgwareroad.org", message, "do_not_reply@edgwareroad.org", ["hello@edgwareroad.org"]) +# f = open("/home/sanj/tmp/edgeTest.txt", "w") +# f.write(message) + return True + +comment_was_posted.connect(comments_notify) diff --git a/edgware/editor/templatetags/__init__.py b/edgware/editor/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/edgware/editor/templatetags/alter_size.py b/edgware/editor/templatetags/alter_size.py new file mode 100644 index 0000000..02824f3 --- /dev/null +++ b/edgware/editor/templatetags/alter_size.py @@ -0,0 +1,33 @@ +from django import template +import re + +register = template.Library() + +def make_really_big(value, m): + """ + >>>make_really_big("40px", 4) + >>>160px + """ + v = str(value).strip() + if v[-2:] == 'px': + no = int(value.replace("px", "")) * m + return str(int(no)) + "px" + else: + return value + +def parse_html(value, m): + """ + >>>parse_html("foo is 20px", 4) + >>>"foo is 80px" + """ + p = "[0-9][0-9]?px" + matches = re.findall(p, value) + for match in matches: + val = int(match.replace("px", "")) + new_val = val * m + r = str(new_val) + "px" + value = value.replace(match, r) + return value + +register.filter('make_really_big', make_really_big) +register.filter("parse_html", parse_html) diff --git a/edgware/editor/urls.py b/edgware/editor/urls.py new file mode 100644 index 0000000..e8d68c8 --- /dev/null +++ b/edgware/editor/urls.py @@ -0,0 +1,30 @@ +from django.conf.urls.defaults import * +import views + +urlpatterns = patterns('', + (r'^editor/$', views.editor), + (r'^new_page/', views.new_page), + (r'^article/json/', views.article_json), + (r'^textbox/new/', views.textbox_new), + (r'^textbox/update_css/', views.textbox_update_css), + (r'^textbox/set_html/', views.textbox_set_html), + (r'^textbox/delete/', views.textbox_delete), + (r'^imagebox/new/', views.imagebox_new), + (r'^imagebox/update_css/', views.imagebox_update_css), + (r'^imagebox/resize/', views.imagebox_resize), + (r'^imagebox/crop/', views.imagebox_crop), + (r'^imagebox/delete/', views.imagebox_delete), + (r'^image/rotate/(?P\d+)/$', views.image_rotate), + (r'^add_media/', views.add_media), + (r'^add_srt/', views.add_srt), + (r'^category/json/', views.category_json), + (r'^save_page/$', views.canvas_save), + (r'^article/(?P\d+)/$', views.edit_article), + (r'^view_page/(?P\d+)/$', views.view_page), + (r'^view_article/(?P\d+)/$', views.view_article), + (r'^issue/(?P\d+)/$', views.edit_issue), + (r'^issue_list/', views.issue_list), + (r'^new_issue/', views.new_issue), + (r'^page_pdf/', views.page_pdf), + (r'^poll_changes/', views.poll_changes), +) diff --git a/edgware/editor/views.py b/edgware/editor/views.py new file mode 100644 index 0000000..5ddf41d --- /dev/null +++ b/edgware/editor/views.py @@ -0,0 +1,604 @@ +# Create your s here. +from models import * +from files.models import * +from django.http import HttpResponse, HttpResponseRedirect +from django.shortcuts import render_to_response +from django.contrib.auth.decorators import login_required +try: + import json +except: + import simplejson as json +from django.template import Template, Context +from django.template.loader import get_template +from os.path import join +from settings import MEDIA_ROOT +from PIL import Image +import os + +@login_required +def editor(request): + c = Category.objects.all() + return render_to_response("editor.html", {'categories': c}) + +''' +def edit_page(request, id): + page = Page.objects.get(pk=id) + pageDict = page.get_dict() + c = Category.objects.all() + rDict = { + 'categories': c, + 'page': pageDict + } +''' + +""" + send GET request to to /edit/add_media/ with page_id and resource_id . +""" +def add_media(request): + page_id = request.GET['page_id'] + file_id = request.GET['resource_id'] + page = Page.objects.get(pk=page_id) + fil = File.objects.get(pk=file_id) + typ = Type.objects.get(pk=fil.type_id) + if typ.mime == 'ogv': + try: + video = Video.objects.get(fil__id=file_id) + page.videos.append(video) + except: + pass + elif typ.mime == 'mp3': + try: + audio = Audio.objects.get(fil__id=file_id) + page.audios.append(audio) + except: + pass + page.save() + r = { + 'status': 1 + } + return HttpResponse(simplejson.dumps(r), mimetype="application/json") + +def add_srt(request): + file_id = request.POST['id'] + mime = request.POST['mime'] + srt_file = request.FILES['srt'] +## REMEMBER TO SAVE SRT FILE!!!## + if mime == 'ogv': + media = Video.objects.get(fil_id=file_id) + elif mime == 'mp3': + media = Audio.objects.get(fil_id=file_id) + media.srt.append(srt) + media.save() + return HttpResponse("1") + +# @login_required +def edit_article(request, id): + c = Category.objects.all() + a = Article.objects.get(pk=id) + rDict = { + 'categories': c, + 'article_id': id, + 'article_width': a.view_size()[0], + 'article_height': a.view_size()[1], + 'rev_no': a.current_revision() + } + return render_to_response("editor.html", rDict) + + +def image_rotate(request, id): + image_id = int(id) + if request.GET.has_key('degree'): + degrees = int(request.GET['degree']) + else: + degrees = 0 + image_obj = File.objects.get(pk=image_id) + if ImageBox.objects.filter(file=image_obj).filter(is_displayed=True).count() > 0: + return HttpResponse("This image is being used on a page. Cannot rotate") + else: + if degrees != 0: + full_path = MEDIA_ROOT + "/" + image_obj.original_print() + im = Image.open(full_path).rotate(degrees).save(full_path) + thumbs = baseFileName(full_path) + "_*" + cmd = "rm %s" % (thumbs,) + os.system(cmd) + path = image_obj.original_print() + return render_to_response("image_rotate.html", {'path': path, 'id': image_id}) + +def testCrop(request): + d = { + 'path': "images/oldenglish/oepan1.jpg" + } + return render_to_response("testCrop.html", d) + +def imagebox_crop(request): + o = request.GET +# project_path = "/home/sanj/soc/edgware-py/" +# tpl = (int(o['x1']), int(o['y1']), int(o['x2']), int(o['y2']), o['width'], o['height']) + thisBox = ImageBox.objects.get(pk=o['id']) + old_value = json.dumps({'path': thisBox.get_path(), 'height': thisBox.height, 'width': thisBox.width}) + thisBox.crop(int(o['x1']), int(o['y1']), int(o['x2']), int(o['y2']), o['width'], o['height']) + revision_id = saveRevision({ + 'box_id': thisBox.id, + 'box_type': 'image', + 'prop': 'image_crop', + 'old_val': old_value, + 'new_val': json.dumps({'path': thisBox.get_path(), 'height': thisBox.height, 'width': thisBox.width}), + 'page_id': thisBox.page.id, + 'uuid': o['uuid'] + }) + r = { + 'path': thisBox.get_path(), + 'rev_id': revision_id + } + return HttpResponse(json.dumps(r), mimetype="application/json") + + +def test_thumb(request): + f = File.objects.filter(type__mime__exact='jpg')[0] + r = {'path': 'media/images/original/facade.jpg'} + return render_to_response("thumbnailTmp.txt", r) + +def textbox_new(request): + if request.GET['json']: + box = TextBox() + d = json.loads(request.GET['json']) + box.html = d['html'] + box.page = Page.objects.get(pk=request.GET['page_id']) + if d['resource_id'] != 0: + box.file = File.objects.get(pk=d['resource_id']) + for c in d['css']: + prop = c + val = d['css'][c] + box.set_css(prop, val) + box.save() + revision_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'text', + 'prop': 'new_box', + 'old_val': '', + 'new_val': json.dumps(box.to_dict()), + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + r = { + 'id': box.id, + 'rev_id': revision_id + } + j = json.dumps(r) + return HttpResponse(j, mimetype="application/json") + else: + return False + +def textbox_update_css(request): + box_id = request.GET['id'] + try: + box = TextBox.objects.get(pk=box_id) + for c in request.GET: + if c != 'id' and c != 'uuid': + prop = c + val = request.GET[c] + old_value = box.get_css(prop) + box.set_css(prop, val) + revision_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'text', + 'prop': prop, + 'old_val': old_value, + 'new_val': val, + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + box.save() + r = { + 'status': 1, + 'rev_id': revision_id + } + except: + r = { + 'error': 'Invalid Id: No such box.', + 'status': 0 + } + j = json.dumps(r) + return HttpResponse(j, mimetype="application/json") + +def textbox_set_html(request): + id = request.GET['id'] + html = request.GET['html'] + box = TextBox.objects.get(pk=id) + old_value = box.html + box.html = html + box.save() + revision_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'text', + 'prop': 'html', + 'old_val': old_value, + 'new_val': html, + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + r = { + 'status': 1, + 'rev_id': revision_id + } + return HttpResponse(json.dumps(r), mimetype="application/json") + +def textbox_delete(request): + id = request.GET['id'] + box = TextBox.objects.get(pk=id) + old_value = json.dumps(box.to_dict()) + box.is_displayed = False + box.save() + rev_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'text', + 'prop': 'delete_box', + 'old_val': old_value, + 'new_val': '', + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + return HttpResponse(str(rev_id)) + +def imagebox_new(request): + jsonString = request.GET['json'] + d = json.loads(jsonString) + page = Page.objects.get(pk=int(d['page_id'])) + resource = File.objects.get(pk=int(d['resource_id'])) + box = ImageBox() + box.file = resource + box.page = page + for c in d['css']: + prop = c + val = d['css'][c] + box.set_css(prop, val) + box.save() + revision_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'image', + 'prop': 'new_box', + 'old_val': '', + 'new_val': json.dumps(box.to_dict(1)), + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + r = { + 'id': box.id, + 'rev_id': revision_id, + 'status': 1 + } + j = json.dumps(r) + return HttpResponse(j, mimetype="application/json") + +def imagebox_update_css(request): + box_id = request.GET['id'] + box = ImageBox.objects.get(pk = box_id) + for c in request.GET: + if c != 'id' and c!= 'uuid': + prop = c + val = request.GET[c] + old_value = box.get_css(prop) + box.set_css(prop, val) + revision_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'image', + 'prop': prop, + 'old_val': old_value, + 'new_val': val, + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + box.save() + r = { + 'status': 1, + 'id': box.id, + 'rev_id': revision_id + } + j = json.dumps(r) + return HttpResponse(j, mimetype="application/json") + +def imagebox_resize(request): + box_id = request.GET['id'] + width = request.GET['width'] + height = request.GET['height'] + box = ImageBox.objects.get(pk = box_id) + old_value = json.dumps({ + 'path': box.get_path(), + 'width': box.width, + 'height': box.height + }) + box.resize(width, height) + box.set_css('width', width) + box.set_css('height', height) + box.save() + resizedPath = box.get_path() + revision_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'image', + 'prop': 'image_resize', + 'old_val': old_value, + 'new_val': json.dumps({ + 'path': box.get_path(), + 'width': width, + 'height': height + }), + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + r = { + 'status': 1, + 'path': resizedPath, + 'rev_id': revision_id + } + j = json.dumps(r) + return HttpResponse(j, mimetype="application/json") + +def imagebox_delete(request): + id = request.GET['id'] + box = ImageBox.objects.get(pk=id) + old_value = json.dumps(box.to_dict(1)) + box.is_displayed = False + box.save() + rev_id = saveRevision({ + 'box_id': box.id, + 'box_type': 'image', + 'prop': 'delete_box', + 'old_val': old_value, + 'new_val': '', + 'page_id': box.page.id, + 'uuid': request.GET['uuid'] + }) + return HttpResponse(str(rev_id)) + +def category_json(request): + if request.GET: + catid = request.GET['id'] + resources = File.objects.filter(categories__id=catid) + rList = [] + for r in resources: + # these should not be here + width = 0 + height = 0 + if r.type.mime == 'jpg': + filePath = r.original_print() + try: + fil = Image.open(join(MEDIA_ROOT, filePath)) + TARGET_WIDTH = 320 + width = TARGET_WIDTH + orig_size = fil.size; + aspect_ratio = orig_size[1] / (orig_size[0] + .0) + height = TARGET_WIDTH * aspect_ratio + output_size = (TARGET_WIDTH, int(height),) + context = {'path': filePath, 'size': (100,100,)} + context2 = {'path': filePath, 'size': output_size} + iconPath = get_template("thumbnailTmp.txt").render(Context(context)) + resizedPath = get_template("thumbnailTmp.txt").render(Context(context2)) + except: + iconPath = "/static/images/binimages/jpg.jpg" + resizedPath = filePath + else: + filePath = r.file.url + iconPath = "/static/images/binimages/%s.jpg" % (r.type.mime) + resizedPath = filePath + if r.type.mime == 'ogv': + try: + v = Video.objects.filter(fil=r)[0] + media_id = v.id + except: + media_id = 0 + elif r.type.mime == 'mp3': + try: + a = Audio.objects.filter(fil=r)[0] + media_id = a.id + except: + media_id = 0 + else: + media_id = 0 + + + d = { + 'id': r.id, + 'type': r.type.name, + 'title': r.title, + 'file': filePath, + 'description': r.description, + 'tags': r.tags, + 'icon': iconPath, + 'width': width, + 'height': int(height), + 'resized': resizedPath, + 'added': str(r.added), + 'mime': r.type.mime, + 'media_id': media_id + } + rList.append(d) + j = json.dumps(rList) + return HttpResponse(j, mimetype="application/json") + else: + return False + +def canvas_save(request): + j1 = request.GET['json'] + id = request.GET['id'] + d = json.loads(j1) + canvas = Page.objects.get(pk=id) + canvas.save_from_dict(d) + json2 = json.dumps(d) + return HttpResponse(json2) + +''' +Not using this views after all ... but maybe, just maybe, they were a good idea ... +def save_revision(request): + page_id = request.GET['page_id'] + page = Page.objects.get(pk = page_id) + page.save_revision() + return HttpResponse("1") + +def load_revision(request): + page_id = request.GET['page_id'] + page = Page.objects.get(pk = page_id) + rev_no = request.GET['rev_no'] + json = page.load_revision(rev_no) +#FIXME: Return Json with its proper mime-type, etc. + return HttpResponse(json) +''' + +def get_page_json(request, issue_no, page_no): +#FIXME: There's got to be a better way to get the page based on issue no. and page no. (OR, pass the page id somehow, but the URL's look prettier if its /issue_no/page_no . Alternatively, at least make getPage() a function somewhere. + page = Page.objects.filter(issue__issue_no = issue_no).filter(page_no = page_no)[0] + d = page.get_dict() + json = json.dumps(d) + return HttpResponse(json) + +def view_page(request, id): + """ + View for the actual front-end view of the page + """ + id = int(id) + page = Page.objects.get(pk=id) + d = page.get_dict() + return render_to_response("view_page.html", d) + +def view_article(request, id): + if request.GET.has_key('m'): + m = float(request.GET['m']) + else: + m = 1 + id = int(id) + article = Article.objects.get(pk=id) + if request.GET.has_key('p'): + p = int(request.GET['p']) + d = article.get_dict(m, p) + else: + d = article.get_dict(m) + page_width = article.view_size()[0] + page_height = article.view_size()[1] + return render_to_response("view_article.html", {'pages': d, 'm': m, 'width': addPx(page_width), 'height': addPx(page_height)}) + +def poll_changes(request): + a_id = request.GET['article_id'] + article = Article.objects.get(pk=a_id) + rev_no = request.GET['rev_no'] + uuid = request.GET['uuid'] + changes = article.changes(rev_no, uuid) + return HttpResponse(json.dumps(changes), mimetype="application/javascript") + +def page_pdf(request): + article_id = request.GET['a'] + page_id = request.GET['p'] + if request.GET.has_key('dpi'): + dpi = request.GET['dpi'] + else: + dpi = 150 + if request.GET.has_key('m'): + m = request.GET['m'] + else: + article = Article.objects.get(pk=article_id) + m = article.get_print_multiplier(dpi) + print_width_mm = article.product.typ.print_width + print_height_mm = int(print_width_mm // article.product.typ.aspect_ratio) + output_path = MEDIA_ROOT + "/pdf/tmpPDF" + article_id + page_id + ".pdf" + cmd = "wkhtmltopdf --page-width %d --page-height %d 'http://localhost/edit/view_article/%s/?m=%f&p=%s' '%s'" % (print_width_mm, print_height_mm, article_id, m, page_id,output_path,) + os.system(cmd) + return HttpResponseRedirect(output_path.replace(MEDIA_ROOT, "/static")) + +def article_json(request): + article_id = request.GET['id'] + article = Article.objects.get(pk=article_id) + d = article.get_dict() + j = json.dumps(d) + return HttpResponse(j, mimetype="application/json") + +def new_page(request): + article = Article.objects.get(pk=request.GET['article_id']) + p = Page() + p.article = article + try: + last_page = Page.objects.filter(article=article).order_by('-page_no')[0:1] + last_page_no = last_page.page_no + except: + last_page_no = 0 + p.page_no = last_page_no + 1 + p.save() + rev_id = saveRevision({ + 'box_id': 0, + 'box_type': 'page', + 'prop': 'new_page', + 'old_val': 0, + 'new_val': json.dumps(p.get_dict(1)), + 'page_id': p.id, + 'uuid': request.GET['uuid'] + }) + r = { + 'id': p.id, + 'rev_id': rev_id + } + return HttpResponse(json.dumps(r), mimetype="application/json") + +def issue_list(request): + issues = Issue.objects.all().order_by('issue_no') + return render_to_response("issue_list.html", {'issues': issues}) + +def new_issue(request): + name = request.GET['issueName'] + last_issue_no = Issue.objects.all().order_by('-issue_no')[0].issue_no + issue_no = last_issue_no + 1 + i = Issue(title = name, issue_no = issue_no) + i.save() + return HttpResponse("saved") + +def edit_issue(request, id): + i = Issue.objects.get(pk=id) + return render_to_response +""" +These are some views that I could think of that need to be created. Please add more. + +def new_text_box(request): + return box_id + +def new_image_box(request): + return box_id + +def edit_page(request, issue, page): + +def publish_issue(request): + +""" + +def show_slide(request, id): + img = SliderImage.objects.get(pk=id) + if request.GET.has_key('c'): + hasCommented = True + else: + hasCommented = False + try: + prevImage = SliderImage.objects.filter(id__lt=id).order_by('-id')[0] + hasPrev = prevImage.id + except: + hasPrev = False + try: + nextImage = SliderImage.objects.filter(id__gt=id)[0] + hasNext = nextImage.id + except: + hasNext = False + d = { + 'img': img, + 'hasPrev': hasPrev, + 'hasNext': hasNext, + 'hasCommented': hasCommented + } + return render_to_response("slider.html", d) + +def show_slide2(request): + img = SliderImage.objects.get(pk=1) + hasPrev = False + nextImage = SliderImage.objects.filter(id__gt=1)[0] + hasNext = nextImage.id + d = { + 'img': img, + 'hasPrev': hasPrev, + 'hasNext': hasNext + } + return render_to_response("slider.html", d) + + diff --git a/edgware/files/.DS_Store b/edgware/files/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..06a4154448d383bf9555333c01498e4a16ac7c46 GIT binary patch literal 6148 zcmeHK%Sr=55bV|*R&oiRJdQsg_yP@Zd)(|0p?l;lnpvIb{k>m9`F@gV*Pu`L)&Y2>lUcpES(dBW^V zc`nCWMz4DrF{`jpAQT7%LV-}=Ck1e3)2gv!)S*Bq5DI)L!2Kbi5bKPcqir3i>^C|vE&?V> sys.stderr, '%s Change detected to \'%s\'.' % (prefix, path) + print >> sys.stderr, '%s Triggering process restart.' % prefix + os.kill(os.getpid(), signal.SIGINT) + +def _modified(path): + try: + # If path doesn't denote a file and were previously + # tracking it, then it has been removed or the file type + # has changed so force a restart. If not previously + # tracking the file then we can ignore it as probably + # pseudo reference such as when file extracted from a + # collection of modules contained in a zip file. + + if not os.path.isfile(path): + return path in _times + + # Check for when file last modified. + + mtime = os.stat(path).st_mtime + if path not in _times: + _times[path] = mtime + + # Force restart when modification time has changed, even + # if time now older, as that could indicate older file + # has been restored. + + if mtime != _times[path]: + return True + except: + # If any exception occured, likely that file has been + # been removed just before stat(), so force a restart. + + return True + + return False + +def _monitor(): + while 1: + # Check modification times on all files in sys.modules. + + for module in sys.modules.values(): + if not hasattr(module, '__file__'): + continue + path = getattr(module, '__file__') + if not path: + continue + if os.path.splitext(path)[1] in ['.pyc', '.pyo', '.pyd']: + path = path[:-1] + if _modified(path): + return _restart(path) + + # Check modification times on files which have + # specifically been registered for monitoring. + + for path in _files: + if _modified(path): + return _restart(path) + + # Go to sleep for specified interval. + + try: + return _queue.get(timeout=_interval) + except: + pass + +_thread = threading.Thread(target=_monitor) +_thread.setDaemon(True) + +def _exiting(): + try: + _queue.put(True) + except: + pass + _thread.join() + +atexit.register(_exiting) + +def track(path): + if not path in _files: + _files.append(path) + +def start(interval=1.0): + global _interval + if interval < _interval: + _interval = interval + + global _running + _lock.acquire() + if not _running: + _running = True + _thread.start() + _lock.release() diff --git a/edgware/settings.py b/edgware/settings.py new file mode 100644 index 0000000..da834d5 --- /dev/null +++ b/edgware/settings.py @@ -0,0 +1,128 @@ +# Django settings for edge project. +import os +from os.path import join + +DEBUG = False +TEMPLATE_DEBUG = DEBUG +LOCAL_DEVELOPMENT = True +APPEND_SLASH = True +LOGGING_INTERCEPT_REDIRECTS = False +LOGGING_LOG_SQL = True +LOGGING_SHOW_METRICS = True +LOGGING_OUTPUT_ENABLED = True +INTERNAL_IPS = ('127.0.0.1',) + +PROJECT_PATH = os.path.dirname(__file__) + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +LOGIN_URL = "/accounts/login/" +MANAGERS = ADMINS + +DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'edge' # Or path to database file if using sqlite3. +DATABASE_USER = 'root' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'America/Chicago' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = join(PROJECT_PATH, 'static') + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '/static/' + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/admin/media/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '(yx#dcc((x(&^la3)1m(6a%0n*z3awt7_(6zjy&dq+0h+_b!7#' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', +# 'django.template.loaders.eggs.load_template_source', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', + 'debug_toolbar.middleware.DebugToolbarMiddleware', +) + +ROOT_URLCONF = 'urls' + +TEMPLATE_DIRS = ( + join(PROJECT_PATH, 'templates'), + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.admin', + 'files', + 'editor', + 'tagging', + 'django_extensions', + 'django.contrib.flatpages', + 'debug_toolbar', +# 'south', + 'django.contrib.comments', + 'sorl.thumbnail', + 'firefogg', +) + +#overwrite default settings with local settings +try: + from local_settings import * +except ImportError: + pass + +# Make this unique, creates random key first at first time. +try: + SECRET_KEY +except NameError: + SECRET_FILE = os.path.join(PROJECT_ROOT, 'secret.txt') + try: + SECRET_KEY = open(SECRET_FILE).read().strip() + except IOError: + try: + from random import choice + SECRET_KEY = ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]) + secret = file(SECRET_FILE, 'w') + secret.write(SECRET_KEY) + secret.close() + except IOError: + Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE) diff --git a/edgware/settings.txt b/edgware/settings.txt new file mode 100755 index 0000000..e2f417b --- /dev/null +++ b/edgware/settings.txt @@ -0,0 +1,103 @@ +# Django settings for edge project. +import os +from os.path import join + +DEBUG = True +TEMPLATE_DEBUG = DEBUG +LOCAL_DEVELOPMENT = True +APPEND_SLASH = True +LOGGING_INTERCEPT_REDIRECTS = True +LOGGING_LOG_SQL = True +LOGGING_SHOW_METRICS = True +LOGGING_OUTPUT_ENABLED = True +INTERNAL_IPS = ('127.0.0.1',) + +PROJECT_PATH = os.path.dirname(__file__) + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'edge' # Or path to database file if using sqlite3. +DATABASE_USER = 'root' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'America/Chicago' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = join(PROJECT_PATH, 'static') + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '/static/' + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/admin/media/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '(yx#dcc((x(&^la3)1m(6a%0n*z3awt7_(6zjy&dq+0h+_b!7#' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', +# 'django.template.loaders.eggs.load_template_source', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', + 'debug_toolbar.middleware.DebugToolbarMiddleware', +) + +ROOT_URLCONF = 'urls' + +TEMPLATE_DIRS = ( + join(PROJECT_PATH, 'templates'), + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.admin', + 'files', + 'editor', +# 'tagging', + 'django_extensions', + 'django.contrib.flatpages', + 'debug_toolbar', +# 'south', + 'django.contrib.comments', + 'sorl.thumbnail', +) diff --git a/edgware/static/Jcrop/css/Jcrop.gif b/edgware/static/Jcrop/css/Jcrop.gif new file mode 100644 index 0000000000000000000000000000000000000000..72ea7ccb5321d5384d70437cfaac73011237901e GIT binary patch literal 329 zcmZ?wbhEHb9b#5NV>2k zBC~b@b~P=nNfWAe-b%_i6tS^-1y(h@EsB~1TqDA_h@fkxG$bHgvj}VxE1JLgr!*!^ ILUxTc0Q$^Q5C8xG literal 0 HcmV?d00001 diff --git a/edgware/static/Jcrop/css/jquery.Jcrop.css b/edgware/static/Jcrop/css/jquery.Jcrop.css new file mode 100644 index 0000000..24925dc --- /dev/null +++ b/edgware/static/Jcrop/css/jquery.Jcrop.css @@ -0,0 +1,35 @@ +/* Fixes issue here http://code.google.com/p/jcrop/issues/detail?id=1 */ +.jcrop-holder { text-align: left; } + +.jcrop-vline, .jcrop-hline +{ + font-size: 0; + position: absolute; + background: white url('Jcrop.gif') top left repeat; +} +.jcrop-vline { height: 100%; width: 1px !important; } +.jcrop-hline { width: 100%; height: 1px !important; } +.jcrop-handle { + font-size: 1px; + width: 7px !important; + height: 7px !important; + border: 1px #eee solid; + background-color: #333; + *width: 9px; + *height: 9px; +} + +.jcrop-tracker { width: 100%; height: 100%; } + +.custom .jcrop-vline, +.custom .jcrop-hline +{ + background: yellow; +} +.custom .jcrop-handle +{ + border-color: black; + background-color: #C7BB00; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} diff --git a/edgware/static/Jcrop/demos/crop.php b/edgware/static/Jcrop/demos/crop.php new file mode 100644 index 0000000..d6e3a11 --- /dev/null +++ b/edgware/static/Jcrop/demos/crop.php @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + +
+
+
+ +

Jcrop - Crop Behavior

+ + + + + +
+ + + + + +
+ +

+ An example server-side crop script. Hidden form values + are set when a selection is made. If you press the Crop Image + button, the form will be submitted and a 150x150 thumbnail will be + dumped to the browser. Try it! +

+ + + + +
+
+
+ + + diff --git a/edgware/static/Jcrop/demos/demo_files/demos.css b/edgware/static/Jcrop/demos/demo_files/demos.css new file mode 100644 index 0000000..574d772 --- /dev/null +++ b/edgware/static/Jcrop/demos/demo_files/demos.css @@ -0,0 +1,47 @@ +body +{ + margin: 0; + padding: 0; + background: #eee; +} + +.jcropper-holder { border: 1px black solid; } + +#outer { + text-align: center; +} + +.jcExample +{ + text-align: left; + background: white; + width: 700px; + font-size: 80%; + margin: 3.5em auto 2em auto; + *margin: 3.5em 10% 2em 10%; + border: 1px black solid; + padding: 1em 2em 2em; +} + +.jcExample .article +{ + width: 565px; +} + +form +{ + margin: 1.5em 0; +} + +form label +{ + margin-right: 1em; + font-weight: bold; + color: #990000; +} + +.jcExample p +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: 90%; +} diff --git a/edgware/static/Jcrop/demos/demo_files/flowers.jpg b/edgware/static/Jcrop/demos/demo_files/flowers.jpg new file mode 100755 index 0000000000000000000000000000000000000000..accbe9f398c2327a77572339de3393967dfa323a GIT binary patch literal 45739 zcma%iWl$VU(B|UqEbi_EclX8J32uu7*Wm7pyE`ntSb*Rf2<~pdc_D#dA(yZ2>gs;p zGc{FRGgDJf&GcCJ^xyTr`v6>!qKYB_4juro{g(iLuK;-RJ~rS002}}j007ATE4l$- z%h8N z;^N>C0f9gwlK%@hBxGcCG;{(?OaekYY&^pMTk-!Z{2c_~p~88>{X&4l1Hj|KA>hIN z9R;-h=VAR?o{0Z`H40PqO^Zw&we5e^;+fQ*6*fQLgsfdAJL1>qkr zlz*dv0Kh|}#Yf^nmeHmoK(Qk92-7>WM7i;&ahKNz-&)Ket> zM*$x0Uw8k;1M#1P^p6G}JOV8bKB9~^ft3dx(tqI)-m=!A1=#}~dcr$o>j=;CVLo}_ z-%S7}!arho2zUS~z?2q-;rI1#6q)c?J~A5!_tyP?0X}@H7$&6}N~sJ)+O;)zc6{yD zzX0DVMSv9s+y>@=9Z*9Pp!an5}!>wO;PaNh_pe`mkUJ#`W~Hwe;Z!?JEoD-C!2BlUc*Uds*nj zUDSyb3CJDQReY?FdD(0`;%V0K11mGKCa9W(uNzV_2K8{g(T`Hrh%(Ac+Z+@;hBMbF z*njH*32~x56z3w%3^XlD&qc93SQB=%%y~eo^&NOT#~GSX{qpl7Ui33gI?PT1M^T0G zv0nm8Wm6e66HGas(ko0uaXYT6TP%U;6%*&uzSy}hgW|PrLkuCpNVRSg%KHh!4UCjA zRa$J5SdB`dWNgH+l+lQ?HUgqaPHn~|a{nghslsu_gt$g+h%eS-`CM4y;kVBDwPGJe zzO7qxM9dlIUgQM?4$jooyi(Xa3Nv69VoSDXve2Z#uFJc=eMWWtzKIm>^F=4%3qDU` z^M(1-?mTws)n5QebC2Q?&6u*TmH*?f>N~qMzhQ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as~;8zv~3+h4j_nmp*B`S&D+e5^E&q$k45kyF*#+oUL-hf2ZMrWe-I*k5fDY3 zLF01Kn+}e^yx4qq>K=u@T0eHZ&dZCS5)Ov#gg>zp`JDD;&!=D*L!%kV&&esJJ}0)H zcIpyYr9LhOhd0OSO~;>@1~AEsm#Z=0Bgk}FSr0dVHk-}7z6LHay+k-IgeSQrArtJD za_-`|EaD%4kHGLE-@tPzgl&r<9mm=hF@Vc@vR{3(rZ-LRmJ^ae(2*79B1aTvrr0ma0!8y)8Dw`UnF&lq6^&3)DgFy;>(w-%>evj-rt1 zyV*MMWFswFPuY@^_7fP`CtWVLYYgV!--B-s>$dH;u=O}tdbpXkUh6=2m=Ja$mV?CD zPCd+=)g>G@Q%J)Z>(1M4vEW-C2ZlVyh;esM3}PQ~1iHN(&wN42ej{Cx0(yn9pVfxf zwiMzF)8K{SEL?@j1g6e#O5n>=t(0T1zGl;V)MSPDa`f zMl?B$#vT-my;_XMj^oqBd3!~C= kA^?u=Wc4n>0E6KZAWld+5?(DQE?7gDeM5*&c>e(Z*|uvsmH+?% literal 0 HcmV?d00001 diff --git a/edgware/static/Jcrop/demos/demo_files/sagomod.jpg b/edgware/static/Jcrop/demos/demo_files/sagomod.jpg new file mode 100644 index 0000000000000000000000000000000000000000..654696c47aa9842f69f984e71f9d998f82e25877 GIT binary patch literal 16251 zcmb8Vc|2QP_cwfy5(FXUImFb)tfndvK~!qIu3nUyVr)@URn;sAVu)EyHMBabp@vR^ zlpw}xOKHtxRSl)8h9}p3Kkxf_-+zA3=h-=NVxP74-fMl=-e>K#_R09k3;?}gW?=>} zF);yH#s@f=1q4ka{Ja6+;zi&z003admr+h80TY0Wor9AD%*Dyc$-~VB<%bLK^YQU3 zN=ORB)lO@utDaU-);ed2($Y28Q&vGcqRp*r{`&hbO`|J#XFCr|`@d}eZG?%Nhlih+ zUqL`X!B$&E+xGvuoOA-bV5V&5%PdTAfSH$xg_r4s3Wx##3quH||Bm)Qf0>wBK&Mz4 z&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XL;Ry~J3 z3Y@rUl*U>77;U@PTD;bswzw$n4SAf)dyUi^LhdvWlCDvm5}g~O=~=YQGwYvX4C|tJ z;H#y4^RdMnmP(jVwZ3n{Ty2cAgCG6oegUpWP}O_YV&CtVxM4#~@%{Odi8$TRXbprZ z<-nE?mg;Eh20zV*(@`FErR{$v#F%0TA;!Sq(iD?~zY|p8WNj;rWD;}upMWb=zfLT) z&#=+P4Z}Ro^E@6uK716-DF=xa$!vc6^ABJ0>Ep+blhc&BQ$4@Fyr0*Ig(*%%gxH3I z1xgG3?VN%ARep#6D7W|NE)x;D22nLrUB}PbD{8i^W$E@x&1fX5fsR+SSGeM-s)`1$ zZ*8+xm6mwZz7O6hGU#v1(=JfWHd>qQ2CLM@-0cQkB8N6|autr+;U1C;V*TNb)J49Q zQBFCnmvdY&7f|&PVB=TLImrpFls4A-aUADq7`(H_*qM+#A47RrmStIEh`~mk3|9BI zGTKQzysx<^Ym^15SyH76C^yu7?~tL20qoe`<@U+aSHy0r`#h_3 zpLVh1aqHfaTE9qb4~eM(O;mHU8lb(qPBOE29I5rTktw-0U-jQh(`XD&mMTzW8}Ra0 z&^lT7X@=au_D%7X$Qb9m(_8wG@Ue8CN3>zRT2&-Ulh^E7zRw9P^#=Ma|n&wu_2hfhzRCZ{Ne7?$O7etCI)y~I?Msj@ee6`8bTs?)dh z^{`EO%iTD{7Fu^Dl#u{q)#tBW+gp45o%~;E8JJkAUA}B7!3u68s{OC+TPxhd-JLIrT!!BUq#*cP688{^)Bt#q%=x(XT4l?JbOq1in-;hpaI&g%=rF zP8>x;U<~6>E3r~;Te8>{%%VtIji^xxDd!X!ej|eu#n`8eIfj(P>u9X?!#FV4M*n|4 WWIxr=d6}jF0000 + + + + + + + + + + + + +

+
+
+ +

Jcrop - Hello World

+ + +

+ This example is provided as a demo of the default behavior of Jcrop. + Since no event handlers have been attached it only performs + the cropping behavior. +

+ + + +
+
+
+ + + diff --git a/edgware/static/Jcrop/demos/tutorial2.html b/edgware/static/Jcrop/demos/tutorial2.html new file mode 100644 index 0000000..33180c3 --- /dev/null +++ b/edgware/static/Jcrop/demos/tutorial2.html @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + +
+
+
+ +

Jcrop - Event Handlers

+ + + + + +
+ + + + + + +
+ +

+ An example with a basic event handler. Here we've tied + several form values together with a simple event handler invocation. + The result is that the form values are updated in real-time as + the selection is changed, thanks to Jcrop's onChange event handler. +

+ +

+ That's how easily Jcrop can be integrated into a traditional web form! +

+ + + + +
+
+
+ + + diff --git a/edgware/static/Jcrop/demos/tutorial3.html b/edgware/static/Jcrop/demos/tutorial3.html new file mode 100644 index 0000000..7f44b53 --- /dev/null +++ b/edgware/static/Jcrop/demos/tutorial3.html @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + +
+
+
+ +

Jcrop - Aspect ratio lock w/ preview pane

+ + + + + + + +
+ + +
+ +
+ +
+ +

+ An example with aspect ratio locking and preview pane. + Obviously the most visual demo, the preview pane is accomplished + entirely outside of Jcrop with a simple jQuery-flavored callback. + This type of interface could be useful for creating a thumbnail + or avatar. The onChange event handler is used to update the + view in the preview pane. +

+ + + + +
+
+
+ + + diff --git a/edgware/static/Jcrop/demos/tutorial4.html b/edgware/static/Jcrop/demos/tutorial4.html new file mode 100644 index 0000000..0e96a25 --- /dev/null +++ b/edgware/static/Jcrop/demos/tutorial4.html @@ -0,0 +1,94 @@ + + + + + + + + + + + + + +
+
+
+ +

Jcrop - API Demo

+ + +
+ + + + + + +
+ +

+ API feature demonstration. + Press the buttons above to animate different selections. + This was the original API demo, before additional API functionality + was added (see Advanced API demo). +

+ + + +
+
+
+ + + diff --git a/edgware/static/Jcrop/demos/tutorial5.html b/edgware/static/Jcrop/demos/tutorial5.html new file mode 100644 index 0000000..1b9c0f3 --- /dev/null +++ b/edgware/static/Jcrop/demos/tutorial5.html @@ -0,0 +1,206 @@ + + + + + + + + + + + + + +
+
+
+ +

Jcrop - API Demo

+ + +
+ + + + + + + + + + + + +
+ +
+ Option Toggles +
+ + + +
+
+ + + +
+
+ + + +
+
+
+ + + diff --git a/edgware/static/Jcrop/index.html b/edgware/static/Jcrop/index.html new file mode 100644 index 0000000..4f65fb0 --- /dev/null +++ b/edgware/static/Jcrop/index.html @@ -0,0 +1,65 @@ + + +Jcrop: the jQuery Image Cropping Plugin + + + +
+

Jcrop Image Cropping Plugin

+ + + Jcrop + is the image cropping plugin for + jQuery.
+ You've successfully unpacked Jcrop. +
+ +

Static Demos

+ + + +

Live Demo

+ + + +

Jcrop Links

+ + + +
+ + © 2008 Kelly Hallman and DeepLiquid.com
+ Free software released under + MIT License +
+
+ + + + + + + + + + + + + diff --git a/edgware/static/Jcrop/js/jquery.Jcrop.js b/edgware/static/Jcrop/js/jquery.Jcrop.js new file mode 100644 index 0000000..ad261f9 --- /dev/null +++ b/edgware/static/Jcrop/js/jquery.Jcrop.js @@ -0,0 +1,1197 @@ +/** + * jquery.Jcrop.js v0.9.8 + * jQuery Image Cropping Plugin + * @author Kelly Hallman + * Copyright (c) 2008-2009 Kelly Hallman - released under MIT License {{{ + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + + * }}} + */ + +(function($) { + +$.Jcrop = function(obj,opt) +{ + // Initialization {{{ + + // Sanitize some options {{{ + var obj = obj, opt = opt; + + if (typeof(obj) !== 'object') obj = $(obj)[0]; + if (typeof(opt) !== 'object') opt = { }; + + // Some on-the-fly fixes for MSIE...sigh + if (!('trackDocument' in opt)) + { + opt.trackDocument = $.browser.msie ? false : true; + if ($.browser.msie && $.browser.version.split('.')[0] == '8') + opt.trackDocument = true; + } + + if (!('keySupport' in opt)) + opt.keySupport = $.browser.msie ? false : true; + + // }}} + // Extend the default options {{{ + var defaults = { + + // Basic Settings + trackDocument: false, + baseClass: 'jcrop', + addClass: null, + + // Styling Options + bgColor: 'black', + bgOpacity: .6, + borderOpacity: .4, + handleOpacity: .5, + + handlePad: 5, + handleSize: 9, + handleOffset: 5, + edgeMargin: 14, + + aspectRatio: 0, + keySupport: true, + cornerHandles: true, + sideHandles: true, + drawBorders: true, + dragEdges: true, + + boxWidth: 0, + boxHeight: 0, + + boundary: 8, + animationDelay: 20, + swingSpeed: 3, + + allowSelect: true, + allowMove: true, + allowResize: true, + + minSelect: [ 0, 0 ], + maxSize: [ 0, 0 ], + minSize: [ 0, 0 ], + + // Callbacks / Event Handlers + onChange: function() { }, + onSelect: function() { } + + }; + var options = defaults; + setOptions(opt); + + // }}} + // Initialize some jQuery objects {{{ + + var $origimg = $(obj); + var $img = $origimg.clone().removeAttr('id').css({ position: 'absolute' }); + + $img.width($origimg.width()); + $img.height($origimg.height()); + $origimg.after($img).hide(); + + presize($img,options.boxWidth,options.boxHeight); + + var boundx = $img.width(), + boundy = $img.height(), + + $div = $('
') + .width(boundx).height(boundy) + .addClass(cssClass('holder')) + .css({ + position: 'relative', + backgroundColor: options.bgColor + }).insertAfter($origimg).append($img); + ; + + if (options.addClass) $div.addClass(options.addClass); + //$img.wrap($div); + + var $img2 = $('')/*{{{*/ + .attr('src',$img.attr('src')) + .css('position','absolute') + .width(boundx).height(boundy) + ;/*}}}*/ + var $img_holder = $('
')/*{{{*/ + .width(pct(100)).height(pct(100)) + .css({ + zIndex: 310, + position: 'absolute', + overflow: 'hidden' + }) + .append($img2) + ;/*}}}*/ + var $hdl_holder = $('
')/*{{{*/ + .width(pct(100)).height(pct(100)) + .css('zIndex',320); + /*}}}*/ + var $sel = $('
')/*{{{*/ + .css({ + position: 'absolute', + zIndex: 300 + }) + .insertBefore($img) + .append($img_holder,$hdl_holder) + ;/*}}}*/ + + var bound = options.boundary; + var $trk = newTracker().width(boundx+(bound*2)).height(boundy+(bound*2)) + .css({ position: 'absolute', top: px(-bound), left: px(-bound), zIndex: 290 }) + .mousedown(newSelection); + + /* }}} */ + // Set more variables {{{ + + var xlimit, ylimit, xmin, ymin; + var xscale, yscale, enabled = true; + var docOffset = getPos($img), + // Internal states + btndown, lastcurs, dimmed, animating, + shift_down; + + // }}} + + + // }}} + // Internal Modules {{{ + + var Coords = function()/*{{{*/ + { + var x1 = 0, y1 = 0, x2 = 0, y2 = 0, ox, oy; + + function setPressed(pos)/*{{{*/ + { + var pos = rebound(pos); + x2 = x1 = pos[0]; + y2 = y1 = pos[1]; + }; + /*}}}*/ + function setCurrent(pos)/*{{{*/ + { + var pos = rebound(pos); + ox = pos[0] - x2; + oy = pos[1] - y2; + x2 = pos[0]; + y2 = pos[1]; + }; + /*}}}*/ + function getOffset()/*{{{*/ + { + return [ ox, oy ]; + }; + /*}}}*/ + function moveOffset(offset)/*{{{*/ + { + var ox = offset[0], oy = offset[1]; + + if (0 > x1 + ox) ox -= ox + x1; + if (0 > y1 + oy) oy -= oy + y1; + + if (boundy < y2 + oy) oy += boundy - (y2 + oy); + if (boundx < x2 + ox) ox += boundx - (x2 + ox); + + x1 += ox; + x2 += ox; + y1 += oy; + y2 += oy; + }; + /*}}}*/ + function getCorner(ord)/*{{{*/ + { + var c = getFixed(); + switch(ord) + { + case 'ne': return [ c.x2, c.y ]; + case 'nw': return [ c.x, c.y ]; + case 'se': return [ c.x2, c.y2 ]; + case 'sw': return [ c.x, c.y2 ]; + } + }; + /*}}}*/ + function getFixed()/*{{{*/ + { + if (!options.aspectRatio) return getRect(); + // This function could use some optimization I think... + var aspect = options.aspectRatio, + min_x = options.minSize[0]/xscale, + min_y = options.minSize[1]/yscale, + max_x = options.maxSize[0]/xscale, + max_y = options.maxSize[1]/yscale, + rw = x2 - x1, + rh = y2 - y1, + rwa = Math.abs(rw), + rha = Math.abs(rh), + real_ratio = rwa / rha, + xx, yy + ; + if (max_x == 0) { max_x = boundx * 10 } + if (max_y == 0) { max_y = boundy * 10 } + if (real_ratio < aspect) + { + yy = y2; + w = rha * aspect; + xx = rw < 0 ? x1 - w : w + x1; + + if (xx < 0) + { + xx = 0; + h = Math.abs((xx - x1) / aspect); + yy = rh < 0 ? y1 - h: h + y1; + } + else if (xx > boundx) + { + xx = boundx; + h = Math.abs((xx - x1) / aspect); + yy = rh < 0 ? y1 - h : h + y1; + } + } + else + { + xx = x2; + h = rwa / aspect; + yy = rh < 0 ? y1 - h : y1 + h; + if (yy < 0) + { + yy = 0; + w = Math.abs((yy - y1) * aspect); + xx = rw < 0 ? x1 - w : w + x1; + } + else if (yy > boundy) + { + yy = boundy; + w = Math.abs(yy - y1) * aspect; + xx = rw < 0 ? x1 - w : w + x1; + } + } + + // Magic %-) + if(xx > x1) { // right side + if(xx - x1 < min_x) { + xx = x1 + min_x; + } else if (xx - x1 > max_x) { + xx = x1 + max_x; + } + if(yy > y1) { + yy = y1 + (xx - x1)/aspect; + } else { + yy = y1 - (xx - x1)/aspect; + } + } else if (xx < x1) { // left side + if(x1 - xx < min_x) { + xx = x1 - min_x + } else if (x1 - xx > max_x) { + xx = x1 - max_x; + } + if(yy > y1) { + yy = y1 + (x1 - xx)/aspect; + } else { + yy = y1 - (x1 - xx)/aspect; + } + } + + if(xx < 0) { + x1 -= xx; + xx = 0; + } else if (xx > boundx) { + x1 -= xx - boundx; + xx = boundx; + } + + if(yy < 0) { + y1 -= yy; + yy = 0; + } else if (yy > boundy) { + y1 -= yy - boundy; + yy = boundy; + } + + return last = makeObj(flipCoords(x1,y1,xx,yy)); + }; + /*}}}*/ + function rebound(p)/*{{{*/ + { + if (p[0] < 0) p[0] = 0; + if (p[1] < 0) p[1] = 0; + + if (p[0] > boundx) p[0] = boundx; + if (p[1] > boundy) p[1] = boundy; + + return [ p[0], p[1] ]; + }; + /*}}}*/ + function flipCoords(x1,y1,x2,y2)/*{{{*/ + { + var xa = x1, xb = x2, ya = y1, yb = y2; + if (x2 < x1) + { + xa = x2; + xb = x1; + } + if (y2 < y1) + { + ya = y2; + yb = y1; + } + return [ Math.round(xa), Math.round(ya), Math.round(xb), Math.round(yb) ]; + }; + /*}}}*/ + function getRect()/*{{{*/ + { + var xsize = x2 - x1; + var ysize = y2 - y1; + + if (xlimit && (Math.abs(xsize) > xlimit)) + x2 = (xsize > 0) ? (x1 + xlimit) : (x1 - xlimit); + if (ylimit && (Math.abs(ysize) > ylimit)) + y2 = (ysize > 0) ? (y1 + ylimit) : (y1 - ylimit); + + if (ymin && (Math.abs(ysize) < ymin)) + y2 = (ysize > 0) ? (y1 + ymin) : (y1 - ymin); + if (xmin && (Math.abs(xsize) < xmin)) + x2 = (xsize > 0) ? (x1 + xmin) : (x1 - xmin); + + if (x1 < 0) { x2 -= x1; x1 -= x1; } + if (y1 < 0) { y2 -= y1; y1 -= y1; } + if (x2 < 0) { x1 -= x2; x2 -= x2; } + if (y2 < 0) { y1 -= y2; y2 -= y2; } + if (x2 > boundx) { var delta = x2 - boundx; x1 -= delta; x2 -= delta; } + if (y2 > boundy) { var delta = y2 - boundy; y1 -= delta; y2 -= delta; } + if (x1 > boundx) { var delta = x1 - boundy; y2 -= delta; y1 -= delta; } + if (y1 > boundy) { var delta = y1 - boundy; y2 -= delta; y1 -= delta; } + + return makeObj(flipCoords(x1,y1,x2,y2)); + }; + /*}}}*/ + function makeObj(a)/*{{{*/ + { + return { x: a[0], y: a[1], x2: a[2], y2: a[3], + w: a[2] - a[0], h: a[3] - a[1] }; + }; + /*}}}*/ + + return { + flipCoords: flipCoords, + setPressed: setPressed, + setCurrent: setCurrent, + getOffset: getOffset, + moveOffset: moveOffset, + getCorner: getCorner, + getFixed: getFixed + }; + }(); + + /*}}}*/ + var Selection = function()/*{{{*/ + { + var start, end, dragmode, awake, hdep = 370; + var borders = { }; + var handle = { }; + var seehandles = false; + var hhs = options.handleOffset; + + /* Insert draggable elements {{{*/ + + // Insert border divs for outline + if (options.drawBorders) { + borders = { + top: insertBorder('hline') + .css('top',$.browser.msie?px(-1):px(0)), + bottom: insertBorder('hline'), + left: insertBorder('vline'), + right: insertBorder('vline') + }; + } + + // Insert handles on edges + if (options.dragEdges) { + handle.t = insertDragbar('n'); + handle.b = insertDragbar('s'); + handle.r = insertDragbar('e'); + handle.l = insertDragbar('w'); + } + + // Insert side handles + options.sideHandles && + createHandles(['n','s','e','w']); + + // Insert corner handles + options.cornerHandles && + createHandles(['sw','nw','ne','se']); + + /*}}}*/ + // Private Methods + function insertBorder(type)/*{{{*/ + { + var jq = $('
') + .css({position: 'absolute', opacity: options.borderOpacity }) + .addClass(cssClass(type)); + $img_holder.append(jq); + return jq; + }; + /*}}}*/ + function dragDiv(ord,zi)/*{{{*/ + { + var jq = $('
') + .mousedown(createDragger(ord)) + .css({ + cursor: ord+'-resize', + position: 'absolute', + zIndex: zi + }) + ; + $hdl_holder.append(jq); + return jq; + }; + /*}}}*/ + function insertHandle(ord)/*{{{*/ + { + return dragDiv(ord,hdep++) + .css({ top: px(-hhs+1), left: px(-hhs+1), opacity: options.handleOpacity }) + .addClass(cssClass('handle')); + }; + /*}}}*/ + function insertDragbar(ord)/*{{{*/ + { + var s = options.handleSize, + o = hhs, + h = s, w = s, + t = o, l = o; + + switch(ord) + { + case 'n': case 's': w = pct(100); break; + case 'e': case 'w': h = pct(100); break; + } + + return dragDiv(ord,hdep++).width(w).height(h) + .css({ top: px(-t+1), left: px(-l+1)}); + }; + /*}}}*/ + function createHandles(li)/*{{{*/ + { + for(i in li) handle[li[i]] = insertHandle(li[i]); + }; + /*}}}*/ + function moveHandles(c)/*{{{*/ + { + var midvert = Math.round((c.h / 2) - hhs), + midhoriz = Math.round((c.w / 2) - hhs), + north = west = -hhs+1, + east = c.w - hhs, + south = c.h - hhs, + x, y; + + 'e' in handle && + handle.e.css({ top: px(midvert), left: px(east) }) && + handle.w.css({ top: px(midvert) }) && + handle.s.css({ top: px(south), left: px(midhoriz) }) && + handle.n.css({ left: px(midhoriz) }); + + 'ne' in handle && + handle.ne.css({ left: px(east) }) && + handle.se.css({ top: px(south), left: px(east) }) && + handle.sw.css({ top: px(south) }); + + 'b' in handle && + handle.b.css({ top: px(south) }) && + handle.r.css({ left: px(east) }); + }; + /*}}}*/ + function moveto(x,y)/*{{{*/ + { + $img2.css({ top: px(-y), left: px(-x) }); + $sel.css({ top: px(y), left: px(x) }); + }; + /*}}}*/ + function resize(w,h)/*{{{*/ + { + $sel.width(w).height(h); + }; + /*}}}*/ + function refresh()/*{{{*/ + { + var c = Coords.getFixed(); + + Coords.setPressed([c.x,c.y]); + Coords.setCurrent([c.x2,c.y2]); + + updateVisible(); + }; + /*}}}*/ + + // Internal Methods + function updateVisible()/*{{{*/ + { if (awake) return update(); }; + /*}}}*/ + function update()/*{{{*/ + { + var c = Coords.getFixed(); + + resize(c.w,c.h); + moveto(c.x,c.y); + + options.drawBorders && + borders['right'].css({ left: px(c.w-1) }) && + borders['bottom'].css({ top: px(c.h-1) }); + + seehandles && moveHandles(c); + awake || show(); + + options.onChange(unscale(c)); + }; + /*}}}*/ + function show()/*{{{*/ + { + $sel.show(); + $img.css('opacity',options.bgOpacity); + awake = true; + }; + /*}}}*/ + function release()/*{{{*/ + { + disableHandles(); + $sel.hide(); + $img.css('opacity',1); + awake = false; + }; + /*}}}*/ + function showHandles()//{{{ + { + if (seehandles) + { + moveHandles(Coords.getFixed()); + $hdl_holder.show(); + } + }; + //}}} + function enableHandles()/*{{{*/ + { + seehandles = true; + if (options.allowResize) + { + moveHandles(Coords.getFixed()); + $hdl_holder.show(); + return true; + } + }; + /*}}}*/ + function disableHandles()/*{{{*/ + { + seehandles = false; + $hdl_holder.hide(); + }; + /*}}}*/ + function animMode(v)/*{{{*/ + { + (animating = v) ? disableHandles(): enableHandles(); + }; + /*}}}*/ + function done()/*{{{*/ + { + animMode(false); + refresh(); + }; + /*}}}*/ + + var $track = newTracker().mousedown(createDragger('move')) + .css({ cursor: 'move', position: 'absolute', zIndex: 360 }) + + $img_holder.append($track); + disableHandles(); + + return { + updateVisible: updateVisible, + update: update, + release: release, + refresh: refresh, + setCursor: function (cursor) { $track.css('cursor',cursor); }, + enableHandles: enableHandles, + enableOnly: function() { seehandles = true; }, + showHandles: showHandles, + disableHandles: disableHandles, + animMode: animMode, + done: done + }; + }(); + /*}}}*/ + var Tracker = function()/*{{{*/ + { + var onMove = function() { }, + onDone = function() { }, + trackDoc = options.trackDocument; + + if (!trackDoc) + { + $trk + .mousemove(trackMove) + .mouseup(trackUp) + .mouseout(trackUp) + ; + } + + function toFront()/*{{{*/ + { + $trk.css({zIndex:450}); + if (trackDoc) + { + $(document) + .mousemove(trackMove) + .mouseup(trackUp) + ; + } + } + /*}}}*/ + function toBack()/*{{{*/ + { + $trk.css({zIndex:290}); + if (trackDoc) + { + $(document) + .unbind('mousemove',trackMove) + .unbind('mouseup',trackUp) + ; + } + } + /*}}}*/ + function trackMove(e)/*{{{*/ + { + onMove(mouseAbs(e)); + }; + /*}}}*/ + function trackUp(e)/*{{{*/ + { + e.preventDefault(); + e.stopPropagation(); + + if (btndown) + { + btndown = false; + + onDone(mouseAbs(e)); + options.onSelect(unscale(Coords.getFixed())); + toBack(); + onMove = function() { }; + onDone = function() { }; + } + + return false; + }; + /*}}}*/ + + function activateHandlers(move,done)/* {{{ */ + { + btndown = true; + onMove = move; + onDone = done; + toFront(); + return false; + }; + /* }}} */ + + function setCursor(t) { $trk.css('cursor',t); }; + + $img.before($trk); + return { + activateHandlers: activateHandlers, + setCursor: setCursor + }; + }(); + /*}}}*/ + var KeyManager = function()/*{{{*/ + { + var $keymgr = $('') + .css({ position: 'absolute', left: '-30px' }) + .keypress(parseKey) + .blur(onBlur), + + $keywrap = $('
') + .css({ + position: 'absolute', + overflow: 'hidden' + }) + .append($keymgr) + ; + + function watchKeys()/*{{{*/ + { + if (options.keySupport) + { + $keymgr.show(); + $keymgr.focus(); + } + }; + /*}}}*/ + function onBlur(e)/*{{{*/ + { + $keymgr.hide(); + }; + /*}}}*/ + function doNudge(e,x,y)/*{{{*/ + { + if (options.allowMove) { + Coords.moveOffset([x,y]); + Selection.updateVisible(); + }; + e.preventDefault(); + e.stopPropagation(); + }; + /*}}}*/ + function parseKey(e)/*{{{*/ + { + if (e.ctrlKey) return true; + shift_down = e.shiftKey ? true : false; + var nudge = shift_down ? 10 : 1; + switch(e.keyCode) + { + case 37: doNudge(e,-nudge,0); break; + case 39: doNudge(e,nudge,0); break; + case 38: doNudge(e,0,-nudge); break; + case 40: doNudge(e,0,nudge); break; + + case 27: Selection.release(); break; + + case 9: return true; + } + + return nothing(e); + }; + /*}}}*/ + + if (options.keySupport) $keywrap.insertBefore($img); + return { + watchKeys: watchKeys + }; + }(); + /*}}}*/ + + // }}} + // Internal Methods {{{ + + function px(n) { return '' + parseInt(n) + 'px'; }; + function pct(n) { return '' + parseInt(n) + '%'; }; + function cssClass(cl) { return options.baseClass + '-' + cl; }; + function getPos(obj)/*{{{*/ + { + // Updated in v0.9.4 to use built-in dimensions plugin + var pos = $(obj).offset(); + return [ pos.left, pos.top ]; + }; + /*}}}*/ + function mouseAbs(e)/*{{{*/ + { + return [ (e.pageX - docOffset[0]), (e.pageY - docOffset[1]) ]; + }; + /*}}}*/ + function myCursor(type)/*{{{*/ + { + if (type != lastcurs) + { + Tracker.setCursor(type); + //Handles.xsetCursor(type); + lastcurs = type; + } + }; + /*}}}*/ + function startDragMode(mode,pos)/*{{{*/ + { + docOffset = getPos($img); + Tracker.setCursor(mode=='move'?mode:mode+'-resize'); + + if (mode == 'move') + return Tracker.activateHandlers(createMover(pos), doneSelect); + + var fc = Coords.getFixed(); + var opp = oppLockCorner(mode); + var opc = Coords.getCorner(oppLockCorner(opp)); + + Coords.setPressed(Coords.getCorner(opp)); + Coords.setCurrent(opc); + + Tracker.activateHandlers(dragmodeHandler(mode,fc),doneSelect); + }; + /*}}}*/ + function dragmodeHandler(mode,f)/*{{{*/ + { + return function(pos) { + if (!options.aspectRatio) switch(mode) + { + case 'e': pos[1] = f.y2; break; + case 'w': pos[1] = f.y2; break; + case 'n': pos[0] = f.x2; break; + case 's': pos[0] = f.x2; break; + } + else switch(mode) + { + case 'e': pos[1] = f.y+1; break; + case 'w': pos[1] = f.y+1; break; + case 'n': pos[0] = f.x+1; break; + case 's': pos[0] = f.x+1; break; + } + Coords.setCurrent(pos); + Selection.update(); + }; + }; + /*}}}*/ + function createMover(pos)/*{{{*/ + { + var lloc = pos; + KeyManager.watchKeys(); + + return function(pos) + { + Coords.moveOffset([pos[0] - lloc[0], pos[1] - lloc[1]]); + lloc = pos; + + Selection.update(); + }; + }; + /*}}}*/ + function oppLockCorner(ord)/*{{{*/ + { + switch(ord) + { + case 'n': return 'sw'; + case 's': return 'nw'; + case 'e': return 'nw'; + case 'w': return 'ne'; + case 'ne': return 'sw'; + case 'nw': return 'se'; + case 'se': return 'nw'; + case 'sw': return 'ne'; + }; + }; + /*}}}*/ + function createDragger(ord)/*{{{*/ + { + return function(e) { + if (options.disabled) return false; + if ((ord == 'move') && !options.allowMove) return false; + btndown = true; + startDragMode(ord,mouseAbs(e)); + e.stopPropagation(); + e.preventDefault(); + return false; + }; + }; + /*}}}*/ + function presize($obj,w,h)/*{{{*/ + { + var nw = $obj.width(), nh = $obj.height(); + if ((nw > w) && w > 0) + { + nw = w; + nh = (w/$obj.width()) * $obj.height(); + } + if ((nh > h) && h > 0) + { + nh = h; + nw = (h/$obj.height()) * $obj.width(); + } + xscale = $obj.width() / nw; + yscale = $obj.height() / nh; + $obj.width(nw).height(nh); + }; + /*}}}*/ + function unscale(c)/*{{{*/ + { + return { + x: parseInt(c.x * xscale), y: parseInt(c.y * yscale), + x2: parseInt(c.x2 * xscale), y2: parseInt(c.y2 * yscale), + w: parseInt(c.w * xscale), h: parseInt(c.h * yscale) + }; + }; + /*}}}*/ + function doneSelect(pos)/*{{{*/ + { + var c = Coords.getFixed(); + if (c.w > options.minSelect[0] && c.h > options.minSelect[1]) + { + Selection.enableHandles(); + Selection.done(); + } + else + { + Selection.release(); + } + Tracker.setCursor( options.allowSelect?'crosshair':'default' ); + }; + /*}}}*/ + function newSelection(e)/*{{{*/ + { + if (options.disabled) return false; + if (!options.allowSelect) return false; + btndown = true; + docOffset = getPos($img); + Selection.disableHandles(); + myCursor('crosshair'); + var pos = mouseAbs(e); + Coords.setPressed(pos); + Tracker.activateHandlers(selectDrag,doneSelect); + KeyManager.watchKeys(); + Selection.update(); + + e.stopPropagation(); + e.preventDefault(); + return false; + }; + /*}}}*/ + function selectDrag(pos)/*{{{*/ + { + Coords.setCurrent(pos); + Selection.update(); + }; + /*}}}*/ + function newTracker() + { + var trk = $('
').addClass(cssClass('tracker')); + $.browser.msie && trk.css({ opacity: 0, backgroundColor: 'white' }); + return trk; + }; + + // }}} + // API methods {{{ + + function animateTo(a)/*{{{*/ + { + var x1 = a[0] / xscale, + y1 = a[1] / yscale, + x2 = a[2] / xscale, + y2 = a[3] / yscale; + + if (animating) return; + + var animto = Coords.flipCoords(x1,y1,x2,y2); + var c = Coords.getFixed(); + var animat = initcr = [ c.x, c.y, c.x2, c.y2 ]; + var interv = options.animationDelay; + + var x = animat[0]; + var y = animat[1]; + var x2 = animat[2]; + var y2 = animat[3]; + var ix1 = animto[0] - initcr[0]; + var iy1 = animto[1] - initcr[1]; + var ix2 = animto[2] - initcr[2]; + var iy2 = animto[3] - initcr[3]; + var pcent = 0; + var velocity = options.swingSpeed; + + Selection.animMode(true); + + var animator = function() + { + return function() + { + pcent += (100 - pcent) / velocity; + + animat[0] = x + ((pcent / 100) * ix1); + animat[1] = y + ((pcent / 100) * iy1); + animat[2] = x2 + ((pcent / 100) * ix2); + animat[3] = y2 + ((pcent / 100) * iy2); + + if (pcent < 100) animateStart(); + else Selection.done(); + + if (pcent >= 99.8) pcent = 100; + + setSelectRaw(animat); + }; + }(); + + function animateStart() + { window.setTimeout(animator,interv); }; + + animateStart(); + }; + /*}}}*/ + function setSelect(rect)//{{{ + { + setSelectRaw([rect[0]/xscale,rect[1]/yscale,rect[2]/xscale,rect[3]/yscale]); + }; + //}}} + function setSelectRaw(l) /*{{{*/ + { + Coords.setPressed([l[0],l[1]]); + Coords.setCurrent([l[2],l[3]]); + Selection.update(); + }; + /*}}}*/ + function setOptions(opt)/*{{{*/ + { + if (typeof(opt) != 'object') opt = { }; + options = $.extend(options,opt); + + if (typeof(options.onChange)!=='function') + options.onChange = function() { }; + + if (typeof(options.onSelect)!=='function') + options.onSelect = function() { }; + + }; + /*}}}*/ + function tellSelect()/*{{{*/ + { + return unscale(Coords.getFixed()); + }; + /*}}}*/ + function tellScaled()/*{{{*/ + { + return Coords.getFixed(); + }; + /*}}}*/ + function setOptionsNew(opt)/*{{{*/ + { + setOptions(opt); + interfaceUpdate(); + }; + /*}}}*/ + function disableCrop()//{{{ + { + options.disabled = true; + Selection.disableHandles(); + Selection.setCursor('default'); + Tracker.setCursor('default'); + }; + //}}} + function enableCrop()//{{{ + { + options.disabled = false; + interfaceUpdate(); + }; + //}}} + function cancelCrop()//{{{ + { + Selection.done(); + Tracker.activateHandlers(null,null); + }; + //}}} + function destroy()//{{{ + { + $div.remove(); + $origimg.show(); + }; + //}}} + + function interfaceUpdate(alt)//{{{ + // This method tweaks the interface based on options object. + // Called when options are changed and at end of initialization. + { + options.allowResize ? + alt?Selection.enableOnly():Selection.enableHandles(): + Selection.disableHandles(); + + Tracker.setCursor( options.allowSelect? 'crosshair': 'default' ); + Selection.setCursor( options.allowMove? 'move': 'default' ); + + $div.css('backgroundColor',options.bgColor); + + if ('setSelect' in options) { + setSelect(opt.setSelect); + Selection.done(); + delete(options.setSelect); + } + + if ('trueSize' in options) { + xscale = options.trueSize[0] / boundx; + yscale = options.trueSize[1] / boundy; + } + + xlimit = options.maxSize[0] || 0; + ylimit = options.maxSize[1] || 0; + xmin = options.minSize[0] || 0; + ymin = options.minSize[1] || 0; + + if ('outerImage' in options) + { + $img.attr('src',options.outerImage); + delete(options.outerImage); + } + + Selection.refresh(); + }; + //}}} + + // }}} + + $hdl_holder.hide(); + interfaceUpdate(true); + + var api = { + animateTo: animateTo, + setSelect: setSelect, + setOptions: setOptionsNew, + tellSelect: tellSelect, + tellScaled: tellScaled, + + disable: disableCrop, + enable: enableCrop, + cancel: cancelCrop, + + focus: KeyManager.watchKeys, + + getBounds: function() { return [ boundx * xscale, boundy * yscale ]; }, + getWidgetSize: function() { return [ boundx, boundy ]; }, + + release: Selection.release, + destroy: destroy + + }; + + $origimg.data('Jcrop',api); + return api; +}; + +$.fn.Jcrop = function(options)/*{{{*/ +{ + function attachWhenDone(from)/*{{{*/ + { + var loadsrc = options.useImg || from.src; + var img = new Image(); + img.onload = function() { $.Jcrop(from,options); }; + img.src = loadsrc; + }; + /*}}}*/ + if (typeof(options) !== 'object') options = { }; + + // Iterate over each object, attach Jcrop + this.each(function() + { + // If we've already attached to this object + if ($(this).data('Jcrop')) + { + // The API can be requested this way (undocumented) + if (options == 'api') return $(this).data('Jcrop'); + // Otherwise, we just reset the options... + else $(this).data('Jcrop').setOptions(options); + } + // If we haven't been attached, preload and attach + else attachWhenDone(this); + }); + + // Return "this" so we're chainable a la jQuery plugin-style! + return this; +}; +/*}}}*/ + +})(jQuery); diff --git a/edgware/static/Jcrop/js/jquery.Jcrop.min.js b/edgware/static/Jcrop/js/jquery.Jcrop.min.js new file mode 100644 index 0000000..9002b97 --- /dev/null +++ b/edgware/static/Jcrop/js/jquery.Jcrop.min.js @@ -0,0 +1,163 @@ +/** + * Jcrop v.0.9.8 (minimized) + * (c) 2008 Kelly Hallman and DeepLiquid.com + * More information: http://deepliquid.com/content/Jcrop.html + * Released under MIT License - this header must remain with code + */ + + +(function($){$.Jcrop=function(obj,opt) +{var obj=obj,opt=opt;if(typeof(obj)!=='object')obj=$(obj)[0];if(typeof(opt)!=='object')opt={};if(!('trackDocument'in opt)) +{opt.trackDocument=$.browser.msie?false:true;if($.browser.msie&&$.browser.version.split('.')[0]=='8') +opt.trackDocument=true;} +if(!('keySupport'in opt)) +opt.keySupport=$.browser.msie?false:true;var defaults={trackDocument:false,baseClass:'jcrop',addClass:null,bgColor:'black',bgOpacity:.6,borderOpacity:.4,handleOpacity:.5,handlePad:5,handleSize:9,handleOffset:5,edgeMargin:14,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:8,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){}};var options=defaults;setOptions(opt);var $origimg=$(obj);var $img=$origimg.clone().removeAttr('id').css({position:'absolute'});$img.width($origimg.width());$img.height($origimg.height());$origimg.after($img).hide();presize($img,options.boxWidth,options.boxHeight);var boundx=$img.width(),boundy=$img.height(),$div=$('
').width(boundx).height(boundy).addClass(cssClass('holder')).css({position:'relative',backgroundColor:options.bgColor}).insertAfter($origimg).append($img);;if(options.addClass)$div.addClass(options.addClass);var $img2=$('').attr('src',$img.attr('src')).css('position','absolute').width(boundx).height(boundy);var $img_holder=$('
').width(pct(100)).height(pct(100)).css({zIndex:310,position:'absolute',overflow:'hidden'}).append($img2);var $hdl_holder=$('
').width(pct(100)).height(pct(100)).css('zIndex',320);var $sel=$('
').css({position:'absolute',zIndex:300}).insertBefore($img).append($img_holder,$hdl_holder);var bound=options.boundary;var $trk=newTracker().width(boundx+(bound*2)).height(boundy+(bound*2)).css({position:'absolute',top:px(-bound),left:px(-bound),zIndex:290}).mousedown(newSelection);var xlimit,ylimit,xmin,ymin;var xscale,yscale,enabled=true;var docOffset=getPos($img),btndown,lastcurs,dimmed,animating,shift_down;var Coords=function() +{var x1=0,y1=0,x2=0,y2=0,ox,oy;function setPressed(pos) +{var pos=rebound(pos);x2=x1=pos[0];y2=y1=pos[1];};function setCurrent(pos) +{var pos=rebound(pos);ox=pos[0]-x2;oy=pos[1]-y2;x2=pos[0];y2=pos[1];};function getOffset() +{return[ox,oy];};function moveOffset(offset) +{var ox=offset[0],oy=offset[1];if(0>x1+ox)ox-=ox+x1;if(0>y1+oy)oy-=oy+y1;if(boundyboundx) +{xx=boundx;h=Math.abs((xx-x1)/aspect);yy=rh<0?y1-h:h+y1;}} +else +{xx=x2;h=rwa/aspect;yy=rh<0?y1-h:y1+h;if(yy<0) +{yy=0;w=Math.abs((yy-y1)*aspect);xx=rw<0?x1-w:w+x1;} +else if(yy>boundy) +{yy=boundy;w=Math.abs(yy-y1)*aspect;xx=rw<0?x1-w:w+x1;}} +if(xx>x1){if(xx-x1max_x){xx=x1+max_x;} +if(yy>y1){yy=y1+(xx-x1)/aspect;}else{yy=y1-(xx-x1)/aspect;}}else if(xxmax_x){xx=x1-max_x;} +if(yy>y1){yy=y1+(x1-xx)/aspect;}else{yy=y1-(x1-xx)/aspect;}} +if(xx<0){x1-=xx;xx=0;}else if(xx>boundx){x1-=xx-boundx;xx=boundx;} +if(yy<0){y1-=yy;yy=0;}else if(yy>boundy){y1-=yy-boundy;yy=boundy;} +return last=makeObj(flipCoords(x1,y1,xx,yy));};function rebound(p) +{if(p[0]<0)p[0]=0;if(p[1]<0)p[1]=0;if(p[0]>boundx)p[0]=boundx;if(p[1]>boundy)p[1]=boundy;return[p[0],p[1]];};function flipCoords(x1,y1,x2,y2) +{var xa=x1,xb=x2,ya=y1,yb=y2;if(x2xlimit)) +x2=(xsize>0)?(x1+xlimit):(x1-xlimit);if(ylimit&&(Math.abs(ysize)>ylimit)) +y2=(ysize>0)?(y1+ylimit):(y1-ylimit);if(ymin&&(Math.abs(ysize)0)?(y1+ymin):(y1-ymin);if(xmin&&(Math.abs(xsize)0)?(x1+xmin):(x1-xmin);if(x1<0){x2-=x1;x1-=x1;} +if(y1<0){y2-=y1;y1-=y1;} +if(x2<0){x1-=x2;x2-=x2;} +if(y2<0){y1-=y2;y2-=y2;} +if(x2>boundx){var delta=x2-boundx;x1-=delta;x2-=delta;} +if(y2>boundy){var delta=y2-boundy;y1-=delta;y2-=delta;} +if(x1>boundx){var delta=x1-boundy;y2-=delta;y1-=delta;} +if(y1>boundy){var delta=y1-boundy;y2-=delta;y1-=delta;} +return makeObj(flipCoords(x1,y1,x2,y2));};function makeObj(a) +{return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]};};return{flipCoords:flipCoords,setPressed:setPressed,setCurrent:setCurrent,getOffset:getOffset,moveOffset:moveOffset,getCorner:getCorner,getFixed:getFixed};}();var Selection=function() +{var start,end,dragmode,awake,hdep=370;var borders={};var handle={};var seehandles=false;var hhs=options.handleOffset;if(options.drawBorders){borders={top:insertBorder('hline').css('top',$.browser.msie?px(-1):px(0)),bottom:insertBorder('hline'),left:insertBorder('vline'),right:insertBorder('vline')};} +if(options.dragEdges){handle.t=insertDragbar('n');handle.b=insertDragbar('s');handle.r=insertDragbar('e');handle.l=insertDragbar('w');} +options.sideHandles&&createHandles(['n','s','e','w']);options.cornerHandles&&createHandles(['sw','nw','ne','se']);function insertBorder(type) +{var jq=$('
').css({position:'absolute',opacity:options.borderOpacity}).addClass(cssClass(type));$img_holder.append(jq);return jq;};function dragDiv(ord,zi) +{var jq=$('
').mousedown(createDragger(ord)).css({cursor:ord+'-resize',position:'absolute',zIndex:zi});$hdl_holder.append(jq);return jq;};function insertHandle(ord) +{return dragDiv(ord,hdep++).css({top:px(-hhs+1),left:px(-hhs+1),opacity:options.handleOpacity}).addClass(cssClass('handle'));};function insertDragbar(ord) +{var s=options.handleSize,o=hhs,h=s,w=s,t=o,l=o;switch(ord) +{case'n':case's':w=pct(100);break;case'e':case'w':h=pct(100);break;} +return dragDiv(ord,hdep++).width(w).height(h).css({top:px(-t+1),left:px(-l+1)});};function createHandles(li) +{for(i in li)handle[li[i]]=insertHandle(li[i]);};function moveHandles(c) +{var midvert=Math.round((c.h/2)-hhs),midhoriz=Math.round((c.w/2)-hhs),north=west=-hhs+1,east=c.w-hhs,south=c.h-hhs,x,y;'e'in handle&&handle.e.css({top:px(midvert),left:px(east)})&&handle.w.css({top:px(midvert)})&&handle.s.css({top:px(south),left:px(midhoriz)})&&handle.n.css({left:px(midhoriz)});'ne'in handle&&handle.ne.css({left:px(east)})&&handle.se.css({top:px(south),left:px(east)})&&handle.sw.css({top:px(south)});'b'in handle&&handle.b.css({top:px(south)})&&handle.r.css({left:px(east)});};function moveto(x,y) +{$img2.css({top:px(-y),left:px(-x)});$sel.css({top:px(y),left:px(x)});};function resize(w,h) +{$sel.width(w).height(h);};function refresh() +{var c=Coords.getFixed();Coords.setPressed([c.x,c.y]);Coords.setCurrent([c.x2,c.y2]);updateVisible();};function updateVisible() +{if(awake)return update();};function update() +{var c=Coords.getFixed();resize(c.w,c.h);moveto(c.x,c.y);options.drawBorders&&borders['right'].css({left:px(c.w-1)})&&borders['bottom'].css({top:px(c.h-1)});seehandles&&moveHandles(c);awake||show();options.onChange(unscale(c));};function show() +{$sel.show();$img.css('opacity',options.bgOpacity);awake=true;};function release() +{disableHandles();$sel.hide();$img.css('opacity',1);awake=false;};function showHandles() +{if(seehandles) +{moveHandles(Coords.getFixed());$hdl_holder.show();}};function enableHandles() +{seehandles=true;if(options.allowResize) +{moveHandles(Coords.getFixed());$hdl_holder.show();return true;}};function disableHandles() +{seehandles=false;$hdl_holder.hide();};function animMode(v) +{(animating=v)?disableHandles():enableHandles();};function done() +{animMode(false);refresh();};var $track=newTracker().mousedown(createDragger('move')).css({cursor:'move',position:'absolute',zIndex:360}) +$img_holder.append($track);disableHandles();return{updateVisible:updateVisible,update:update,release:release,refresh:refresh,setCursor:function(cursor){$track.css('cursor',cursor);},enableHandles:enableHandles,enableOnly:function(){seehandles=true;},showHandles:showHandles,disableHandles:disableHandles,animMode:animMode,done:done};}();var Tracker=function() +{var onMove=function(){},onDone=function(){},trackDoc=options.trackDocument;if(!trackDoc) +{$trk.mousemove(trackMove).mouseup(trackUp).mouseout(trackUp);} +function toFront() +{$trk.css({zIndex:450});if(trackDoc) +{$(document).mousemove(trackMove).mouseup(trackUp);}} +function toBack() +{$trk.css({zIndex:290});if(trackDoc) +{$(document).unbind('mousemove',trackMove).unbind('mouseup',trackUp);}} +function trackMove(e) +{onMove(mouseAbs(e));};function trackUp(e) +{e.preventDefault();e.stopPropagation();if(btndown) +{btndown=false;onDone(mouseAbs(e));options.onSelect(unscale(Coords.getFixed()));toBack();onMove=function(){};onDone=function(){};} +return false;};function activateHandlers(move,done) +{btndown=true;onMove=move;onDone=done;toFront();return false;};function setCursor(t){$trk.css('cursor',t);};$img.before($trk);return{activateHandlers:activateHandlers,setCursor:setCursor};}();var KeyManager=function() +{var $keymgr=$('').css({position:'absolute',left:'-30px'}).keypress(parseKey).blur(onBlur),$keywrap=$('
').css({position:'absolute',overflow:'hidden'}).append($keymgr);function watchKeys() +{if(options.keySupport) +{$keymgr.show();$keymgr.focus();}};function onBlur(e) +{$keymgr.hide();};function doNudge(e,x,y) +{if(options.allowMove){Coords.moveOffset([x,y]);Selection.updateVisible();};e.preventDefault();e.stopPropagation();};function parseKey(e) +{if(e.ctrlKey)return true;shift_down=e.shiftKey?true:false;var nudge=shift_down?10:1;switch(e.keyCode) +{case 37:doNudge(e,-nudge,0);break;case 39:doNudge(e,nudge,0);break;case 38:doNudge(e,0,-nudge);break;case 40:doNudge(e,0,nudge);break;case 27:Selection.release();break;case 9:return true;} +return nothing(e);};if(options.keySupport)$keywrap.insertBefore($img);return{watchKeys:watchKeys};}();function px(n){return''+parseInt(n)+'px';};function pct(n){return''+parseInt(n)+'%';};function cssClass(cl){return options.baseClass+'-'+cl;};function getPos(obj) +{var pos=$(obj).offset();return[pos.left,pos.top];};function mouseAbs(e) +{return[(e.pageX-docOffset[0]),(e.pageY-docOffset[1])];};function myCursor(type) +{if(type!=lastcurs) +{Tracker.setCursor(type);lastcurs=type;}};function startDragMode(mode,pos) +{docOffset=getPos($img);Tracker.setCursor(mode=='move'?mode:mode+'-resize');if(mode=='move') +return Tracker.activateHandlers(createMover(pos),doneSelect);var fc=Coords.getFixed();var opp=oppLockCorner(mode);var opc=Coords.getCorner(oppLockCorner(opp));Coords.setPressed(Coords.getCorner(opp));Coords.setCurrent(opc);Tracker.activateHandlers(dragmodeHandler(mode,fc),doneSelect);};function dragmodeHandler(mode,f) +{return function(pos){if(!options.aspectRatio)switch(mode) +{case'e':pos[1]=f.y2;break;case'w':pos[1]=f.y2;break;case'n':pos[0]=f.x2;break;case's':pos[0]=f.x2;break;} +else switch(mode) +{case'e':pos[1]=f.y+1;break;case'w':pos[1]=f.y+1;break;case'n':pos[0]=f.x+1;break;case's':pos[0]=f.x+1;break;} +Coords.setCurrent(pos);Selection.update();};};function createMover(pos) +{var lloc=pos;KeyManager.watchKeys();return function(pos) +{Coords.moveOffset([pos[0]-lloc[0],pos[1]-lloc[1]]);lloc=pos;Selection.update();};};function oppLockCorner(ord) +{switch(ord) +{case'n':return'sw';case's':return'nw';case'e':return'nw';case'w':return'ne';case'ne':return'sw';case'nw':return'se';case'se':return'nw';case'sw':return'ne';};};function createDragger(ord) +{return function(e){if(options.disabled)return false;if((ord=='move')&&!options.allowMove)return false;btndown=true;startDragMode(ord,mouseAbs(e));e.stopPropagation();e.preventDefault();return false;};};function presize($obj,w,h) +{var nw=$obj.width(),nh=$obj.height();if((nw>w)&&w>0) +{nw=w;nh=(w/$obj.width())*$obj.height();} +if((nh>h)&&h>0) +{nh=h;nw=(h/$obj.height())*$obj.width();} +xscale=$obj.width()/nw;yscale=$obj.height()/nh;$obj.width(nw).height(nh);};function unscale(c) +{return{x:parseInt(c.x*xscale),y:parseInt(c.y*yscale),x2:parseInt(c.x2*xscale),y2:parseInt(c.y2*yscale),w:parseInt(c.w*xscale),h:parseInt(c.h*yscale)};};function doneSelect(pos) +{var c=Coords.getFixed();if(c.w>options.minSelect[0]&&c.h>options.minSelect[1]) +{Selection.enableHandles();Selection.done();} +else +{Selection.release();} +Tracker.setCursor(options.allowSelect?'crosshair':'default');};function newSelection(e) +{if(options.disabled)return false;if(!options.allowSelect)return false;btndown=true;docOffset=getPos($img);Selection.disableHandles();myCursor('crosshair');var pos=mouseAbs(e);Coords.setPressed(pos);Tracker.activateHandlers(selectDrag,doneSelect);KeyManager.watchKeys();Selection.update();e.stopPropagation();e.preventDefault();return false;};function selectDrag(pos) +{Coords.setCurrent(pos);Selection.update();};function newTracker() +{var trk=$('
').addClass(cssClass('tracker'));$.browser.msie&&trk.css({opacity:0,backgroundColor:'white'});return trk;};function animateTo(a) +{var x1=a[0]/xscale,y1=a[1]/yscale,x2=a[2]/xscale,y2=a[3]/yscale;if(animating)return;var animto=Coords.flipCoords(x1,y1,x2,y2);var c=Coords.getFixed();var animat=initcr=[c.x,c.y,c.x2,c.y2];var interv=options.animationDelay;var x=animat[0];var y=animat[1];var x2=animat[2];var y2=animat[3];var ix1=animto[0]-initcr[0];var iy1=animto[1]-initcr[1];var ix2=animto[2]-initcr[2];var iy2=animto[3]-initcr[3];var pcent=0;var velocity=options.swingSpeed;Selection.animMode(true);var animator=function() +{return function() +{pcent+=(100-pcent)/velocity;animat[0]=x+((pcent/100)*ix1);animat[1]=y+((pcent/100)*iy1);animat[2]=x2+((pcent/100)*ix2);animat[3]=y2+((pcent/100)*iy2);if(pcent<100)animateStart();else Selection.done();if(pcent>=99.8)pcent=100;setSelectRaw(animat);};}();function animateStart() +{window.setTimeout(animator,interv);};animateStart();};function setSelect(rect) +{setSelectRaw([rect[0]/xscale,rect[1]/yscale,rect[2]/xscale,rect[3]/yscale]);};function setSelectRaw(l) +{Coords.setPressed([l[0],l[1]]);Coords.setCurrent([l[2],l[3]]);Selection.update();};function setOptions(opt) +{if(typeof(opt)!='object')opt={};options=$.extend(options,opt);if(typeof(options.onChange)!=='function') +options.onChange=function(){};if(typeof(options.onSelect)!=='function') +options.onSelect=function(){};};function tellSelect() +{return unscale(Coords.getFixed());};function tellScaled() +{return Coords.getFixed();};function setOptionsNew(opt) +{setOptions(opt);interfaceUpdate();};function disableCrop() +{options.disabled=true;Selection.disableHandles();Selection.setCursor('default');Tracker.setCursor('default');};function enableCrop() +{options.disabled=false;interfaceUpdate();};function cancelCrop() +{Selection.done();Tracker.activateHandlers(null,null);};function destroy() +{$div.remove();$origimg.show();};function interfaceUpdate(alt) +{options.allowResize?alt?Selection.enableOnly():Selection.enableHandles():Selection.disableHandles();Tracker.setCursor(options.allowSelect?'crosshair':'default');Selection.setCursor(options.allowMove?'move':'default');$div.css('backgroundColor',options.bgColor);if('setSelect'in options){setSelect(opt.setSelect);Selection.done();delete(options.setSelect);} +if('trueSize'in options){xscale=options.trueSize[0]/boundx;yscale=options.trueSize[1]/boundy;} +xlimit=options.maxSize[0]||0;ylimit=options.maxSize[1]||0;xmin=options.minSize[0]||0;ymin=options.minSize[1]||0;if('outerImage'in options) +{$img.attr('src',options.outerImage);delete(options.outerImage);} +Selection.refresh();};$hdl_holder.hide();interfaceUpdate(true);var api={animateTo:animateTo,setSelect:setSelect,setOptions:setOptionsNew,tellSelect:tellSelect,tellScaled:tellScaled,disable:disableCrop,enable:enableCrop,cancel:cancelCrop,focus:KeyManager.watchKeys,getBounds:function(){return[boundx*xscale,boundy*yscale];},getWidgetSize:function(){return[boundx,boundy];},release:Selection.release,destroy:destroy};$origimg.data('Jcrop',api);return api;};$.fn.Jcrop=function(options) +{function attachWhenDone(from) +{var loadsrc=options.useImg||from.src;var img=new Image();img.onload=function(){$.Jcrop(from,options);};img.src=loadsrc;};if(typeof(options)!=='object')options={};this.each(function() +{if($(this).data('Jcrop')) +{if(options=='api')return $(this).data('Jcrop');else $(this).data('Jcrop').setOptions(options);} +else attachWhenDone(this);});return this;};})(jQuery); \ No newline at end of file diff --git a/edgware/static/Jcrop/js/jquery.min.js b/edgware/static/Jcrop/js/jquery.min.js new file mode 100644 index 0000000..b1ae21d --- /dev/null +++ b/edgware/static/Jcrop/js/jquery.min.js @@ -0,0 +1,19 @@ +/* + * jQuery JavaScript Library v1.3.2 + * http://jquery.com/ + * + * Copyright (c) 2009 John Resig + * Dual licensed under the MIT and GPL licenses. + * http://docs.jquery.com/License + * + * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) + * Revision: 6246 + */ +(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); +/* + * Sizzle CSS Selector Engine - v0.9.3 + * Copyright 2009, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/edgware/static/ckeditor/.DS_Store b/edgware/static/ckeditor/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..606e0fd858d35e6b2833354ced71a34cf34b2ea2 GIT binary patch literal 6148 zcmeH~K~BR!3`Om>pjK?MWI0EG8;q*<1Y7_W1dXT?sS)iCWe3OOHf;I!7%4RBmIeBj zX8y!uPm;HYV-eBi>*K9RB_eYSQ+c;(Y_@M>WRvhrq3UOJPsjRZvuih_*mDlcy^u~` zq?Sg8`IUU=VsbhCsvnwzoqrnH9d~W>4DaXZ&SBea+dUrY&5~#&KmsH{0wh2J0|KR{ z%KU2J0MHrSZdiLS0ZrzB=Fq+Tb2f%SCM+y{6ULgmI7YV~F)|OkRqiUW##HrTBUfmu!vw9NHK4bof0T${zvaLL-5{ GAn*+>KqH9& literal 0 HcmV?d00001 diff --git a/edgware/static/ckeditor/.htaccess b/edgware/static/ckeditor/.htaccess new file mode 100755 index 0000000..ed1d794 --- /dev/null +++ b/edgware/static/ckeditor/.htaccess @@ -0,0 +1,24 @@ +# +# Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +# For licensing, see LICENSE.html or http://ckeditor.com/license +# + +# +# On some specific Linux installations you could face problems with Firefox. +# It could give you errors when loading the editor saying that some illegal +# characters were found (three strange chars in the beginning of the file). +# This could happen if you map the .js or .css files to PHP, for example. +# +# Those characters are the Byte Order Mask (BOM) of the Unicode encoded files. +# All FCKeditor files are Unicode encoded. +# + +AddType application/x-javascript .js +AddType text/css .css + +# +# If PHP is mapped to handle XML files, you could have some issues. The +# following will disable it. +# + +AddType text/xml .xml diff --git a/edgware/static/ckeditor/CHANGES.html b/edgware/static/ckeditor/CHANGES.html new file mode 100755 index 0000000..cd2e7b6 --- /dev/null +++ b/edgware/static/ckeditor/CHANGES.html @@ -0,0 +1,440 @@ + + + + + Changelog - CKEditor + + + + +

+ CKEditor Changelog +

+

+ CKEditor 3.1 (SVN)

+

+ New features:

+
    +
  • #4729 : Added support to fake elements for comments.
  • +
  • #4463 : Added inline CSS support in all places where custom stylesheet could apply.
  • +
  • #3881 : Added color dialog for 'more color' option in color buttons.
  • +
  • #2885 : Added 'div' dialog and corresponding context menu options.
  • +
  • #4341 : Added the 'showborder' plugin.
  • +
  • #4549 : Make the anti-cache query string configurable.
  • +
  • #4708 : Added the 'htmlEncodeOutput' config option.
  • +
  • #4574 : Added the table merging tools and corresponding context menu options.
  • +
  • #4340 : Added the email protection option for link dialog.
  • +
  • #4210 : Added CKEditor plugin for jQuery.
  • +
  • #4067 : Introduced the full page editing support (from <html> to </html>).
  • +
  • #4342 : Introduced the bodyId and bodyClass settings to specify the id and class. to be used in the editing area at runtime.
  • +
  • #3401 : Introduced the baseHref setting so it's possible to set the URL to be used to resolve absolute and relative URLs in the contents.
  • +
  • #4228 : Introduced the Shared Spaces feature.
  • +
  • +
+

+ Fixed issues:

+
    +
  • #4707 : Fixed invalid link is requested in image preview.
  • +
  • #4461 : Fixed toolbar separator line along side combo penetrate toolbar height.
  • +
  • #4596 : Fixed image re-size lock buttons aren't accessible in high-contrast mode.
  • +
  • #4676 : Fixed editing tables using table properties dialog overwrites original style values.
  • +
  • #4714 : Fixed IE6 JavaScript error when editing flash by commit 'Flash' dialog.
  • +
  • #3905 : Fixed 'wysiwyg' mode causes unauthenticated content warnings over SSL in FF 3.5.
  • +
  • #4768 : Fixed open context menu in IE throws js error when focus is not inside document.
  • +
  • #4822 : Fixed applying 'Headers' to existing table does not work in IE.
  • +
  • #4855 : Fixed toolbar doesn't wrap well for 'v2' skin in all browsers.
  • +
  • #4882 : Fixed auto detect paste from MS-Word is not working for Safari.
  • +
  • #4882 : Fixed unexpected margin style left behind on content cleaning up from MS-Word.
  • +
  • #4896 : Fixed paste nested list from MS-Word with measurement units set to cm is broken.
  • +
  • #4899 : Fixed unable to undo pre-formatted style.
  • +
  • #4900 : Fixed ratio-lock inconsistent between browsers.
  • +
  • #4901 : Fixed unable to edit any link with popup window's features in Firefox.
  • +
  • #4904 : Fixed when paste happen from dialog, it always throw JavaScript error.
  • +
  • #4905 : Fixed paste plain text result incorrect when content from dialog.
  • +
  • #4889 : Fixed unable to undo 'New Page' command after typing inside editor.
  • +
  • #4892 : Fixed table alignment style is not properly represented by the wrapping div.
  • +
  • #4918 : Fixed switching mode when maximized is showing background page contents.
  • +
+

+ CKEditor 3.0.2

+

+ New features:

+
    +
  • #4343 : Added the configuration option 'browserContextMenuOnCtrl' so it's possible to enable the default browser context menu by holding the CTRL key.
  • +
+

+ Fixed issues:

+
    +
  • #4552 : Fixed float panel doesn't show up since editor instanced been destroyed once.
  • +
  • #3918 : Fixed fake object is editable with Image dialog.
  • +
  • #4053 : Fixed 'Form Properties' missing from context menu when selection collapsed inside form.
  • +
  • #4401 : Fixed customized by removing 'upload' tab page from 'Link dialog' cause JavaScript error.
  • +
  • #4477 : Adding missing tag names in object style elements.
  • +
  • #4567 : Fixed IE throw error when pressing BACKSPACE in source mode.
  • +
  • #4573 : Fixed 'IgnoreEmptyPargraph' config doesn't work with the config 'entities' is set to 'false'.
  • +
  • #4614 : Fixed attribute protection fails because of line-break.
  • +
  • #4546 : Fixed UIColor plugin doesn't work when editor id contains CSS selector preserved keywords.
  • +
  • #4609 : Fixed flash object is lost when loading data from outside editor.
  • +
  • #4625 : Fixed editor stays visible in a div with style 'visibility:hidden'.
  • +
  • #4621 : Fixed clicking below table caused an empty table been generated.
  • +
  • #3373 : Fixed empty context menu when there's no menu item at all.
  • +
  • #4473 : Fixed setting rules on the same element tag name throws error.
  • +
  • #4514 : Fixed press 'Back' button breaks wysiwyg editing mode is Firefox.
  • +
  • #4542 : Fixed unable to access buttons using tab key in Safari and Opera.
  • +
  • #4577 : Fixed relative link url is broken after opening 'Link' dialog.
  • +
  • #4597 : Fixed custom style with same attribute name but different attribute value doesn't work.
  • +
  • #4651 : Fixed 'Deleted' and 'Inserted' text style is not rendering in wysiwyg mode and is wrong is source mode.
  • +
  • #4654 : Fixed 'CKEDITOR.config.font_defaultLabel(fontSize_defaultLabel)' is not working.
  • +
  • #3950 : Fixed table column insertion incorrect when selecting empty cell area.
  • +
  • #3912 : Fixed UIColor not working in IE when page has more than 30+ editors.
  • +
  • #4031 : Fixed mouse cursor on toolbar combo has more than 3 shapes.
  • +
  • #4041 : Fixed open context menu on multiple cells to remove them result in only one removed.
  • +
  • #4185 : Fixed resize handler effect doesn't affect flash object on output.
  • +
  • #4196 : Fixed 'Remove Numbered/Bulleted List' on nested list doesn't work well on nested list.
  • +
  • #4200 : Fixed unable to insert 'password' type filed with attributes.
  • +
  • #4530 : Fixed context menu couldn't open in Opera.
  • +
  • #4536 : Fixed keyboard navigation doesn't work at all in IE quirks mode.
  • +
  • #4584 : Fixed updated link Target field is not updating when updating to certain values.
  • +
  • #4603 : Fixed unable to disable submenu items in contextmenu.
  • +
  • #4672 : Fixed unable to redo the insertion of horizontal line.
  • +
  • #4677 : Fixed 'Tab' key is trapped by hidden dialog elements.
  • +
  • #4073 : Fixed insert template with replace option could result in empty document.
  • +
  • #4455 : Fixed unable to start editing when image inside document not loaded.
  • +
  • #4517 : Fixed 'dialog_backgroundCoverColor' doesn't work on IE6.
  • +
  • #3165 : Fixed enter key in empty list item before nested one result in collapsed line.
  • +
  • #4527 : Fixed checkbox generate invalid 'checked' attribute.
  • +
  • #1659 : Fixed unable to click below content to start editing in IE with 'config.docType' setting to standard compliant.
  • +
  • #3933 : Fixed extra <br> left at the end of document when the last element is a table.
  • +
  • #4736 : Fixed PAGE UP and PAGE DOWN keys in standards mode are not working.
  • +
  • #4725 : Fixed hitting 'enter' before html comment node produces a JavaScript error.
  • +
  • #4522 : Fixed unable to redo when typing after insert an image with relative url.
  • +
  • #4594 : Fixed context menu goes off-screen when mouse is at right had side of screen.
  • +
  • #4673 : Fixed undo not available straight away if shift key is used to enter first character.
  • +
  • #4690 : Fixed the parsing of nested inline elements.
  • +
  • #4450 : Fixed selecting multiple table cells before apply justify commands generates spurious paragraph in Firefox.
  • +
  • #4733 : Fixed dialog opening sometimes hang up Firefox and Safari.
  • +
  • #4498 : Fixed toolbar collapse button missing tooltip.
  • +
  • #4738 : Fixed inserting table inside bold/italic/underline generates error on ENTER_BR mode.
  • +
  • #4246 : Fixed avoid XHTML deprecated attributes for image styling.
  • +
  • #4543 : Fixed unable to move cursor between table and hr.
  • +
  • #4764 : Fixed wrong exception message when CKEDITOR.editor.append() to non-existing elements.
  • +
  • #4521 : Fixed dialog layout in IE6/7 may have scroll-bar and other weird effects.
  • +
  • #4709 : Fixed inconsistent scroll-bar behavior on IE.
  • +
  • #4776 : Fixed preview page failed to open when relative URl contains in document.
  • +
  • #4812 : Fixed 'Esc' key not working on dialogs in Opera.
  • +
  • Updated the following language files:
  • +
+

+ CKEditor 3.0.1

+

+ New features:

+
    +
  • #4219 : Added fallback mechanism for config.language.
  • +
  • #4194 : Added support for using multiple css style sheets within the editor.
  • +
+

+ Fixed issues:

+
    +
  • #3898 : Added validation for URL value in Image dialog.
  • +
  • #3528 : Fixed Context Menu issue when triggered using Shift+F10.
  • +
  • #4028 : Maximize control's tool tip was wrong once it is maximized.
  • +
  • #4237 : Toolbar is chopped off in Safari browser 3.x.
  • +
  • #4241 : Float panels are left on screen while editor is destroyed.
  • +
  • #4274 : Double click event is incorrect handled in 'divreplace' sample.
  • +
  • #4354 : Fixed TAB key on toolbar to not focus disabled buttons.
  • +
  • #3856 : Fixed focus and blur events in source view mode.
  • +
  • #3438 : Floating panels are off by (-1px, 0px) in RTL mode.
  • +
  • #3370 : Refactored use of CKEDITOR.env.isCustomDomain().
  • +
  • #4230 : HC detection caused js error.
  • +
  • #3978 : Fixed setStyle float on IE7 strict.
  • +
  • #4262 : Tab and Shift+Tab was not working to cycle through CTRL+SHIFT+F10 context menu in IE.
  • +
  • #3633 : Default context menu isn't disabled in toolbar, status bar, panels...
  • +
  • #3897 : Now there is no image previews when the URL is empty in image dialog.
  • +
  • #4048 : Context submenu was lacking uiColor.
  • +
  • #3568 : Dialogs now select all text when tabbing to text inputs.
  • +
  • #3727 : Cell Properties dialog was missing color selection option.
  • +
  • #3517 : Fixed "Match cyclic" field in Find & Replace dialog.
  • +
  • #4368 : borderColor table cell attribute haven't worked for none-IE
  • +
  • #4203 : In IE quirks mode + toolbar collapsed + source mode editing block height was incorrect.
  • +
  • #4387 : Fixed: right clicking in Kama skin can lead to a javascript error.
  • +
  • #4397 : Wysiwyg mode caused the host page scroll.
  • +
  • #4385 : Fixed editor's auto adjusting on DOM structure were confusing the dirty checking mechanism.
  • +
  • #4397 : Fixed regression of [3816] where turn on design mode was causing Firefox3 to scroll the host page.
  • +
  • #4254 : Added basic API sample.
  • +
  • #4107 : Normalize css font-family style text for correct comparision.
  • +
  • #3664 : Insert block element in empty editor document should not create new paragraph.
  • +
  • #4037 : 'id' attribute is missing with Flash dialog advanced page.
  • +
  • #4047 : Delete selected control type element when 'Backspace' is pressed on it.
  • +
  • #4191 : Fixed: dialog changes confirmation on image dialog appeared even when no changes have been made.
  • +
  • #4351 : Dash and dot could appear in attribute names.
  • +
  • #4355 : 'maximize' and 'showblock' commands shouldn't take editor focus.
  • +
  • #4504 : Fixed 'Enter'/'Esc' key is not working on dialog button.
  • +
  • #4245 : 'Strange Template' now come with a style attribute for width.
  • +
  • #4512 : Fixed styles plugin incorrectly adding semicolons to style text.
  • +
  • #3855 : Fixed loading unminified _source files when ckeditor_source.js is used.
  • +
  • #3717 : Dialog settings defaults can now be overridden in-page through the CKEDITOR.config object.
  • +
  • #4481 : The 'stylesCombo_stylesSet' configuration entry didn't work for full URLs.
  • +
  • #4480 : Fixed scope attribute in th.
  • +
  • #4467 : Fixed bug to use custom icon in context menus. Thanks to george.
  • +
  • #4190 : Fixed select field dialog layout in Safari.
  • +
  • #4518 : Fixed unable to open dialog without editor focus in IE.
  • +
  • #4519 : Fixed maximize without editor focus throw error in IE.
  • +
  • Updated the following language files:
  • +
+

+ CKEditor 3.0

+

+ New features:

+
    +
  • #3188 : Introduce + <pre> formatting feature when converting from other blocks.
  • +
  • #4445 : editor::setData now support an optional callback parameter.
  • +
+

+ Fixed issues:

+
    +
  • #2856 : Fixed problem with inches in Paste From Word plugin.
  • +
  • #3929 : Using Paste dialog, + the text is pasted into current selection
  • +
  • #3920 : Mouse cursor over characters in + Special Character dialog now is correct
  • +
  • #3882 : Fixed an issue + with PasteFromWord dialog in which default values was ignored
  • +
  • #3859 : Fixed Flash dialog layout in Webkit
  • +
  • #3852 : Disabled textarea resizing in dialogs
  • +
  • #3831 : The attempt to remove the contextmenu plugin + will not anymore break the editor
  • +
  • #3781 : Colorbutton is now disabled in 'source' mode
  • +
  • #3848 : Fixed an issue with Webkit in witch + elements in the Image and Link dialogs had wrong dimensions.
  • +
  • #3808 : Fixed UI Color Picker dialog size in example page.
  • +
  • #3658 : Editor had horizontal scrollbar in IE6.
  • +
  • #3819 : The cursor was not visible + when applying style to collapsed selections in Firefox 2.
  • +
  • #3809 : Fixed beam cursor + when mouse cursor is over text-only buttons in IE.
  • +
  • #3815 : Fixed an issue + with the form dialog in which the "enctype" attribute is outputted as "encoding".
  • +
  • #3785 : Fixed an issue + in CKEDITOR.tools.htmlEncode() which incorrectly outputs &nbsp; in IE8.
  • +
  • #3820 : Fixed an issue in + bullet list command in which a list created at the bottom of another gets merged to the top. +
  • +
  • #3830 : Table cell properties dialog + doesn't apply to all selected cells.
  • +
  • #3835 : Element path is not refreshed + after click on 'newpage'; and safari is not putting focus on document also. +
  • +
  • #3821 : Fixed an issue with JAWS in which + toolbar items are read inconsistently between virtual cursor modes.
  • +
  • #3789 : The "src" attribute + was getting duplicated in some situations.
  • +
  • #3591 : Protecting flash related elements + including '<object>', '<embed>' and '<param>'. +
  • +
  • #3759 : Fixed CKEDITOR.dom.element::scrollIntoView + logic bug which scroll even element is inside viewport. +
  • +
  • #3773 : Fixed remove list will merge lines. +
  • +
  • #3829 : Fixed remove empty link on output data.
  • +
  • #3730 : Indent is performing on the whole + block instead of selected lines in enterMode = BR.
  • +
  • #3844 : Fixed UndoManager register keydown on obsoleted document
  • +
  • #3805 : Enabled SCAYT plugin for IE.
  • +
  • #3834 : Context menu on table caption was incorrect.
  • +
  • #3812 : Fixed an issue in which the editor + may show up empty or uneditable in IE7, 8 and Firefox 3.
  • +
  • #3825 : Fixed JS error when opening spellingcheck.
  • +
  • #3862 : Fixed html parser infinite loop on certain malformed + source code.
  • +
  • #3639 : Button size was inconsistent.
  • +
  • #3874 : Paste as plain text in Safari loosing lines.
  • +
  • #3849 : Fixed IE8 crashes when applying lists and indenting.
  • +
  • #3876 : Changed dialog checkbox and radio labels to explicit labels.
  • +
  • #3843 : Fixed context submenu position in IE 6 & 7 RTL.
  • +
  • #3864 : [FF]Document is not editable after inserting element on a fresh page.
  • +
  • #3883 : Fixed removing inline style logic incorrect on Firefox2.
  • +
  • #3884 : Empty "href" attribute was duplicated on output data.
  • +
  • #3858 : Fixed the issue where toolbars + break up in IE6 and IE7 after the browser is resized.
  • +
  • #3868 : [chrome] SCAYT toolbar options was in reversed order.
  • +
  • #3875 : Fixed an issue in Safari where + table row/column/cell menus are not useable when table cells are selected.
  • +
  • #3896 : The editing area was + flashing when switching forth and back to source view.
  • +
  • #3894 : Fixed an issue where editor failed to initialize when using the on-demand loading way.
  • +
  • #3903 : Color button plugin doesn't read config entry from editor instance correctly.
  • +
  • #3801 : Comments at the start of the document was lost in IE.
  • +
  • #3871 : Unable to redo when undos to the front of snapshots stack.
  • +
  • #3909 : Move focus from editor into a text input control is broken.
  • +
  • #3870 : The empty paragraph + desappears when hitting ENTER after "New Page".
  • +
  • #3887 : Fixed an issue in which the create + list command may leak outside of a selected table cell and into the rest of document.
  • +
  • #3916 : Fixed maximize does not enlarge editor width when width is set.
  • +
  • #3879 : [webkit] Color button panel had incorrect size on first open.
  • +
  • #3839 : Update Scayt plugin to reflect the latest change from SpellChecker.net.
  • +
  • #3742 : Fixed wrong dialog layout for dialogs without tab bar in IE RTL mode .
  • +
  • #3671 : Fixed body fixing should be applied to the real type under fake elements.
  • +
  • #3836 : Fixed remove list in enterMode=BR will merge sibling text to one line.
  • +
  • #3949 : Fixed enterKey within pre-formatted text introduce wrong line-break.
  • +
  • #3878 : Whenever possible, + dialogs will not present scrollbars if the content is too big for its standard + size.
  • +
  • #3782 : Remove empty list in table cell result in collapsed cell.
  • +
  • Updated the following language files:
  • +
  • #3984 : [IE]The pre-formatted style is generating error.
  • +
  • #3946 : Fixed unable to hide contextmenu.
  • +
  • #3956 : Fixed About dialog in Source Mode for IE.
  • +
  • #3953 : Fixed keystroke for close Paste dialog.
  • +
  • #3951 : Reset size and lock ratio options were not accessible in Image dialog.
  • +
  • #3921 : Fixed Container scroll issue on IE7.
  • +
  • #3940 : Fixed list operation doesn't stop at table.
  • +
  • #3891 : [IE] Fixed 'automatic' font color doesn't work.
  • +
  • #3972 : Fixed unable to remove a single empty list in document in Firefox with enterMode=BR.
  • +
  • #3973 : Fixed list creation error at the end of document.
  • +
  • #3959 : Pasting styled text from word result in content lost.
  • +
  • #3793 : Combined images into sprites.
  • +
  • #3783 : Fixed indenting command in table cells create collapsed paragraph.
  • +
  • #3968 : About dialog layout was broken with IE+Standards+RTL.
  • +
  • #3991 : In IE quirks, text was not visible in v2 and office2003 skins.
  • +
  • #3983 : In IE, we'll now + silently ignore wrong toolbar definition settings which have extra commas being + left around.
  • +
  • Fixed the following test cases:
      +
    • #3992 : core/ckeditor2.html
    • +
    • #4138 : core/plugins.html
    • +
    • #3801 : plugins/htmldataprocessor/htmldataprocessor.html
    • +
  • +
  • #3989 : Host page horizontal scrolling a lot when on having righ-to-left direction.
  • +
  • #4001 : Create link around existing image result incorrect.
  • +
  • #3988 : Destroy editor on form submit event cause error.
  • +
  • #3994 : Insert horizontal line at end of document cause error.
  • +
  • #4074 : Indent error with 'indentClasses' config specified.
  • +
  • #4057 : Fixed anchor is lost after switch between editing modes.
  • +
  • #3644 : Image dialog was missin radio lock.
  • +
  • #4014 : Firefox2 had no dialog button backgrounds.
  • +
  • #4018 : Firefox2 had no richcombo text visible.
  • +
  • #4035 : [IE6] Paste dialog size was too small.
  • +
  • #4049 : Kama skin was too wide with config.width.
  • +
  • The following released files now doesn't require the _source folder
      +
    • #4086 : _samples/ui_languages.html
    • +
    • #4093 : _tests/core/dom/document.html
    • +
    • #4094 : Smiley plugin file
    • +
    • #4097 : No undo/redo support for fontColor and backgroundColor buttons.
    • +
  • +
  • #4085 : Paste and Paste from Word dialogs were not well styled in IE+RTL.
  • +
  • #3982 : Fixed enterKey on empty list item result in weird dom structure.
  • +
  • #4101 : Now it is possible to close dialog before gets focus.
  • +
  • #4075 : [IE6/7]Fixed apply custom inline style with "class" attribute failed.
  • +
  • #4087 : [Firefox]Fixed extra blocks created on create list when full document selected.
  • +
  • #4097 : No undo/redo support for fontColor and backgroundColor buttons.
  • +
  • #4111 : Fixed apply block style after inline style applied on full document error.
  • +
  • #3622 : Fixed shift enter with selection not deleting highlighted text.
  • +
  • #4092 : [IE6] Close button was missing for dialog without multiple tabs.
  • +
  • #4003 : Markup on the image dialog was disrupted when removing the border input.
  • +
  • #4096 : Editor content area was pushed down in IE RTL quirks.
  • +
  • #4112 : [FF] Paste dialog had scrollbars in quirks.
  • +
  • #4118 : Dialog dragging was + occasionally behaving strangely .
  • +
  • #4077 : The toolbar combos + were rendering incorrectly in some languages, like Chinese.
  • +
  • #3622 : The toolbar in the v2 + skin was wrapping improperly in some languages.
  • +
  • #4119 : Unable to edit image link with image dialog.
  • +
  • #4117 : Fixed dialog error when transforming image into button.
  • +
  • #4058 : [FF] wysiwyg mode is sometimes not been activated.
  • +
  • #4114 : [IE] RTE + IE6/IE7 Quirks = dialog mispositoned.
  • +
  • #4123 : Some dialog buttons were broken in IE7 quirks.
  • +
  • #4122 : [IE] The image dialog + was being rendered improperly when loading an image with long URL.
  • +
  • #4144 : Fixed the white-spaces at the end of <pre> is incorrectly removed.
  • +
  • #4143 : Fixed element id is lost when extracting contents from the range.
  • +
  • #4007 : [IE] Source area overflow from editor chrome.
  • +
  • #4145 : Fixed the on demand + ("basic") loading model of the editor.
  • +
  • #4139 : Fixed list plugin regression of [3903].
  • +
  • #4147 : Unify style text normalization logic when comparing styles.
  • +
  • #4150 : Fixed enlarge list result incorrect at the inner boundary of block.
  • +
  • #4164 : Now it is possible to paste text + in Source mode even if forcePasteAsPlainText = true.
  • +
  • #4129 : [FF]Unable to remove list with Ctrl-A.
  • +
  • #4172 : [Safari] The trailing + <br> was not been always added to blank lines ending with &nbsp;.
  • +
  • #4178 : It's now possible to + copy and paste Flash content among different editor instances.
  • +
  • #4193 : Automatic font color produced empty span on Firefox 3.5.
  • +
  • #4186 : [FF] Fixed First open float panel cause host page scrollbar blinking.
  • +
  • #4227 : Fixed destroy editor instance created on textarea which is not within form cause error.
  • +
  • #4240 : Fixed editor name containing hyphen break editor completely.
  • +
  • #3828 : Malformed nested list is now corrected by the parser.
  • +
+

+ CKEditor 3.0 RC

+

+ Changelog starts at this release.

+ + + diff --git a/edgware/static/ckeditor/INSTALL.html b/edgware/static/ckeditor/INSTALL.html new file mode 100755 index 0000000..8cf37f9 --- /dev/null +++ b/edgware/static/ckeditor/INSTALL.html @@ -0,0 +1,92 @@ + + + + + Installation Guide - CKEditor + + + + +

+ CKEditor Installation Guide

+

+ What's CKEditor?

+

+ CKEditor is a text editor to be used inside web pages. It's not a replacement + for desktop text editors like Word or OpenOffice, but a component to be used as + part of web applications and web sites.

+

+ Installation

+

+ Installing CKEditor is an easy task. Just follow these simple steps:

+
    +
  1. Download the latest version of the editor from our web site: http://ckeditor.com. You should have already completed + this step, but be sure you have the very latest version.
  2. +
  3. Extract (decompress) the downloaded file into the root of your + web site.
  4. +
+

+ Note: CKEditor is by default installed in the "ckeditor" + folder. You can place the files in whichever you want though.

+

+ Checking Your Installation +

+

+ The editor comes with a few sample pages that can be used to verify that installation + proceeded properly. Take a look at the _samples directory.

+

+ To test your installation, just call the following page at your web site:

+
+http://<your site>/<CKEditor installation path>/_samples/index.html
+
+For example:
+http://www.example.com/ckeditor/_samples/index.html
+

+ Documentation

+

+ The full editor documentation is available online at the following address:
+ http://docs.cksource.com/ckeditor

+ + + diff --git a/edgware/static/ckeditor/LICENSE.html b/edgware/static/ckeditor/LICENSE.html new file mode 100755 index 0000000..ecbe06e --- /dev/null +++ b/edgware/static/ckeditor/LICENSE.html @@ -0,0 +1,1334 @@ + + + + + License - CKEditor + + +

+ Software License Agreement +

+

+ CKEditor™ - The text editor for Internet™ - + http://ckeditor.com
+ Copyright © 2003-2010, CKSource - Frederico Knabben. All rights reserved. +

+

+ Licensed under the terms of any of the following licenses at your choice: +

+ +

+ You are not required to, but if you want to explicitly declare the license you have + chosen to be bound to when using, reproducing, modifying and distributing this software, + just include a text file titled "LEGAL" in your version of this software, indicating + your license choice. In any case, your choice will not restrict any recipient of + your version of this software to use, reproduce, modify and distribute this software + under any of the above licenses. +

+

+ Sources of Intellectual Property Included in CKEditor +

+

+ Where not otherwise indicated, all CKEditor content is authored by CKSource engineers + and consists of CKSource-owned intellectual property. In some specific instances, + CKEditor will incorporate work done by developers outside of CKSource with their + express permission. +

+

+ YUI Test: At _source/tests/yuitest.js + can be found part of the source code of YUI, which is licensed under the terms of + the BSD License. YUI is + Copyright © 2008, Yahoo! Inc. +

+

+ Trademarks +

+

+ CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product + names are trademarks, registered trademarks or service marks of their respective + holders. +

+ + diff --git a/edgware/static/ckeditor/_samples/ajax.html b/edgware/static/ckeditor/_samples/ajax.html new file mode 100755 index 0000000..931f58b --- /dev/null +++ b/edgware/static/ckeditor/_samples/ajax.html @@ -0,0 +1,98 @@ + + + + + Ajax - CKEditor Sample + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+

+ + +

+ +
+
+ + + + diff --git a/edgware/static/ckeditor/_samples/api.html b/edgware/static/ckeditor/_samples/api.html new file mode 100755 index 0000000..f853350 --- /dev/null +++ b/edgware/static/ckeditor/_samples/api.html @@ -0,0 +1,152 @@ + + + + + API usage - CKEditor Sample + + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+

+ This sample shows how to use the CKeditor JavaScript API to interact with the editor + at runtime.

+ + + + +
+
+ +
+ + + diff --git a/edgware/static/ckeditor/_samples/api_dialog.html b/edgware/static/ckeditor/_samples/api_dialog.html new file mode 100755 index 0000000..2620625 --- /dev/null +++ b/edgware/static/ckeditor/_samples/api_dialog.html @@ -0,0 +1,181 @@ + + + + + Using API to customize dialogs - CKEditor Sample + + + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+ +

+ This sample shows how to use the dialog API to customize dialogs whithout changing + the original editor code. The following customizations are being done::

+
    +
  1. Add dialog pages ("My Tab" in the Link dialog).
  2. +
  3. Remove a dialog tab ("Target" tab from the Link dialog).
  4. +
  5. Add dialog fields ("My Custom Field" into the Link dialog).
  6. +
  7. Remove dialog fields ("Link Type" and "Browser Server" the Link + dialog).
  8. +
  9. Set default values for dialog fields (for the "URL" field in the + Link dialog).
  10. +
  11. Create a custom dialog ("My Dialog" button).
  12. +
+ + + + + diff --git a/edgware/static/ckeditor/_samples/api_dialog/my_dialog.js b/edgware/static/ckeditor/_samples/api_dialog/my_dialog.js new file mode 100755 index 0000000..02f412f --- /dev/null +++ b/edgware/static/ckeditor/_samples/api_dialog/my_dialog.js @@ -0,0 +1,28 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'myDialog', function( editor ) +{ + return { + title : 'My Dialog', + minWidth : 400, + minHeight : 200, + contents : [ + { + id : 'tab1', + label : 'First Tab', + title : 'First Tab', + elements : + [ + { + id : 'input1', + type : 'text', + label : 'Input 1' + } + ] + } + ] + }; +} ); diff --git a/edgware/static/ckeditor/_samples/divreplace.html b/edgware/static/ckeditor/_samples/divreplace.html new file mode 100755 index 0000000..bee6797 --- /dev/null +++ b/edgware/static/ckeditor/_samples/divreplace.html @@ -0,0 +1,137 @@ + + + + + Replace DIV - CKEditor Sample + + + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+

+ Double-click on any of the following DIVs to transform them into editor instances.

+
+

+ Part 1

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi + semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna + rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla + nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce + eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. +

+
+
+

+ Part 2

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi + semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna + rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla + nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce + eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. +

+

+ Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus + sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum + vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate. +

+
+
+

+ Part 3

+

+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi + semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna + rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla + nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce + eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus. +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/enterkey.html b/edgware/static/ckeditor/_samples/enterkey.html new file mode 100755 index 0000000..def67ae --- /dev/null +++ b/edgware/static/ckeditor/_samples/enterkey.html @@ -0,0 +1,88 @@ + + + + + ENTER Key Configuration - CKEditor Sample + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+ When ENTER is pressed:
+ +
+
+ When SHIFT + ENTER is pressed:
+ +
+
+
+

+
+ +

+

+ +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/fullpage.html b/edgware/static/ckeditor/_samples/fullpage.html new file mode 100755 index 0000000..bdd301e --- /dev/null +++ b/edgware/static/ckeditor/_samples/fullpage.html @@ -0,0 +1,62 @@ + + + + + Full Page Editing - CKEditor Sample + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+

+ In this sample the editor is configured to edit entire HTML pages, from the <html> + tag to </html>.

+

+
+ + +

+

+ +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/index.html b/edgware/static/ckeditor/_samples/index.html new file mode 100755 index 0000000..148db02 --- /dev/null +++ b/edgware/static/ckeditor/_samples/index.html @@ -0,0 +1,53 @@ + + + + + Samples List - CKEditor + + + +

+ CKEditor Samples List +

+

+ Basic Samples +

+ +

+ Basic Customization +

+ +

+ Advanced Samples +

+ + + + diff --git a/edgware/static/ckeditor/_samples/jqueryadapter.html b/edgware/static/ckeditor/_samples/jqueryadapter.html new file mode 100755 index 0000000..66bf976 --- /dev/null +++ b/edgware/static/ckeditor/_samples/jqueryadapter.html @@ -0,0 +1,73 @@ + + + + + jQuery adapter - CKEditor Sample + + + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+

+
+ +

+

+ +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/php/advanced.php b/edgware/static/ckeditor/_samples/php/advanced.php new file mode 100755 index 0000000..98c2ba8 --- /dev/null +++ b/edgware/static/ckeditor/_samples/php/advanced.php @@ -0,0 +1,92 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+ Output +
+

+
+

+returnOutput = true; + +// Path to CKEditor directory, ideally instead of relative dir, use an absolute path: +// $CKEditor->basePath = '/ckeditor/' +// If not set, CKEditor will try to detect the correct path. +$CKEditor->basePath = '../../'; + +// Set global configuration (will be used by all instances of CKEditor). +$CKEditor->config['width'] = 600; + +// Change default textarea attributes +$CKEditor->textareaAttributes = array("cols" => 80, "rows" => 10); + +// The initial value to be displayed in the editor. +$initialValue = '

This is some sample text. You are using CKEditor.

'; + +// Create first instance. +$code = $CKEditor->editor("editor1", $initialValue); + +echo $code; +?> +

+
+

+editor("editor2", $initialValue, $config); +?> + +

+
+
+ + + diff --git a/edgware/static/ckeditor/_samples/php/events.php b/edgware/static/ckeditor/_samples/php/events.php new file mode 100755 index 0000000..583e05e --- /dev/null +++ b/edgware/static/ckeditor/_samples/php/events.php @@ -0,0 +1,129 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+ Output +
+

+
+

+addGlobalEventHandler('dialogDefinition', $function); +} + +/** + * Adds global event, will notify about opened dialog. + */ +function CKEditorNotifyAboutOpenedDialog(&$CKEditor) { + $function = 'function (evt) { + alert("Loading dialog: " + evt.data.name); + }'; + + $CKEditor->addGlobalEventHandler('dialogDefinition', $function); +} + +// Include CKEditor class. +include("../../ckeditor.php"); + +// Create class instance. +$CKEditor = new CKEditor(); + +// Set configuration option for all editors. +$CKEditor->config['width'] = 750; + +// Path to CKEditor directory, ideally instead of relative dir, use an absolute path: +// $CKEditor->basePath = '/ckeditor/' +// If not set, CKEditor will try to detect the correct path. +$CKEditor->basePath = '../../'; + +// The initial value to be displayed in the editor. +$initialValue = '

This is some sample text. You are using CKEditor.

'; + +// Event that will be handled only by the first editor. +$CKEditor->addEventHandler('instanceReady', 'function (evt) { + alert("Loaded editor: " + evt.editor.name); +}'); + +// Create first instance. +$CKEditor->editor("editor1", $initialValue); + +// Clear event handlers, instances that will be created later will not have +// the 'instanceReady' listener defined a couple of lines above. +$CKEditor->clearEventHandlers(); +?> +

+
+

+editor("editor2", $initialValue, $config, $events); +?> + +

+
+
+ + + diff --git a/edgware/static/ckeditor/_samples/php/replace.php b/edgware/static/ckeditor/_samples/php/replace.php new file mode 100755 index 0000000..80d813b --- /dev/null +++ b/edgware/static/ckeditor/_samples/php/replace.php @@ -0,0 +1,63 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+ Output +
+

+
+ +

+

+ +

+
+
+ + basePath = '/ckeditor/' + // If not set, CKEditor will try to detect the correct path. + $CKEditor->basePath = '../../'; + // Replace textarea with id (or name) "editor1". + $CKEditor->replace("editor1"); + ?> + + diff --git a/edgware/static/ckeditor/_samples/php/replaceall.php b/edgware/static/ckeditor/_samples/php/replaceall.php new file mode 100755 index 0000000..38efc80 --- /dev/null +++ b/edgware/static/ckeditor/_samples/php/replaceall.php @@ -0,0 +1,68 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+ Output +
+

+
+ +

+

+
+ +

+

+ +

+
+
+ + basePath = '/ckeditor/' + // If not set, CKEditor will try to detect the correct path. + $CKEditor->basePath = '../../'; + // Replace all textareas with CKEditor. + $CKEditor->replaceAll(); + ?> + + diff --git a/edgware/static/ckeditor/_samples/php/standalone.php b/edgware/static/ckeditor/_samples/php/standalone.php new file mode 100755 index 0000000..2a39ca1 --- /dev/null +++ b/edgware/static/ckeditor/_samples/php/standalone.php @@ -0,0 +1,64 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor Sample +

+ +
+ +
+ +
+ Output +
+

+
+

+

+ This is some sample text.

'; + // Create class instance. + $CKEditor = new CKEditor(); + // Path to CKEditor directory, ideally instead of relative dir, use an absolute path: + // $CKEditor->basePath = '/ckeditor/' + // If not set, CKEditor will try to detect the correct path. + $CKEditor->basePath = '../../'; + // Create textarea element and attach CKEditor to it. + $CKEditor->editor("editor1", $initialValue); + ?> + +

+
+
+ + + diff --git a/edgware/static/ckeditor/_samples/replacebyclass.html b/edgware/static/ckeditor/_samples/replacebyclass.html new file mode 100755 index 0000000..fd31e7d --- /dev/null +++ b/edgware/static/ckeditor/_samples/replacebyclass.html @@ -0,0 +1,49 @@ + + + + + Replace Textareas by Class Name - CKEditor Sample + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+

+
+ +

+

+ +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/replacebycode.html b/edgware/static/ckeditor/_samples/replacebycode.html new file mode 100755 index 0000000..bd3f54d --- /dev/null +++ b/edgware/static/ckeditor/_samples/replacebycode.html @@ -0,0 +1,80 @@ + + + + + Replace Textarea by Code - CKEditor Sample + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+

+
+ + +

+

+
+ + +

+

+ +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/sample.css b/edgware/static/ckeditor/_samples/sample.css new file mode 100755 index 0000000..cee85e8 --- /dev/null +++ b/edgware/static/ckeditor/_samples/sample.css @@ -0,0 +1,81 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +fieldset +{ + margin: 0; + padding: 10px; +} + +form +{ + margin: 0; + padding: 0; +} + +pre +{ + background-color: #F7F7F7; + border: 1px solid #D7D7D7; + overflow: auto; + margin: 0; + padding: 0.25em; +} + +#alerts +{ + color: Red; +} + +#footer hr +{ + margin: 10px 0 15px 0; + height: 1px; + border: solid 1px gray; + border-bottom: none; +} + +#footer p +{ + margin: 0 10px 10px 10px; + float: left; +} + +#footer #copy +{ + float: right; +} + +#outputSample +{ + width: 100%; + table-layout: fixed; +} + +#outputSample thead th +{ + color: #dddddd; + background-color: #999999; + padding: 4px; + white-space: nowrap; +} + +#outputSample tbody th +{ + vertical-align: top; + text-align: left; +} + +#outputSample pre +{ + margin: 0; + padding: 0; + white-space: pre; /* CSS2 */ + white-space: -moz-pre-wrap; /* Mozilla*/ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS 2.1 */ + white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ + word-wrap: break-word; /* IE */ +} diff --git a/edgware/static/ckeditor/_samples/sample.js b/edgware/static/ckeditor/_samples/sample.js new file mode 100755 index 0000000..f7c023c --- /dev/null +++ b/edgware/static/ckeditor/_samples/sample.js @@ -0,0 +1,65 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +// This file is not required by CKEditor and may be safely ignored. +// It is just a helper file that displays a red message about browser compatibility +// at the top of the samples (if incompatible browser is detected). + +if ( window.CKEDITOR ) +{ + (function() + { + var showCompatibilityMsg = function() + { + var env = CKEDITOR.env; + + var html = '

Your browser is not compatible with CKEditor.'; + + var browsers = + { + gecko : 'Firefox 2.0', + ie : 'Internet Explorer 6.0', + opera : 'Opera 9.5', + webkit : 'Safari 3.0' + }; + + var alsoBrowsers = ''; + + for ( var key in env ) + { + if ( browsers[ key ] ) + { + if ( env[key] ) + html += ' CKEditor is compatible with ' + browsers[ key ] + ' or higher.'; + else + alsoBrowsers += browsers[ key ] + '+, '; + } + } + + alsoBrowsers = alsoBrowsers.replace( /\+,([^,]+), $/, '+ and $1' ); + + html += ' It is also compatible with ' + alsoBrowsers + '.'; + + html += '

With non compatible browsers, you should still be able to see and edit the contents (HTML) in a plain text field.

'; + + var alertsEl = document.getElementById( 'alerts' ); + alertsEl && ( alertsEl.innerHTML = html ); + }; + + var onload = function() + { + // Show a friendly compatibility message as soon as the page is loaded, + // for those browsers that are not compatible with CKEditor. + if ( !CKEDITOR.env.isCompatible ) + showCompatibilityMsg(); + }; + + // Register the onload listener. + if ( window.addEventListener ) + window.addEventListener( 'load', onload, false ); + else if ( window.attachEvent ) + window.attachEvent( 'onload', onload ); + })(); +} diff --git a/edgware/static/ckeditor/_samples/sample_posteddata.php b/edgware/static/ckeditor/_samples/sample_posteddata.php new file mode 100755 index 0000000..af20e89 --- /dev/null +++ b/edgware/static/ckeditor/_samples/sample_posteddata.php @@ -0,0 +1,59 @@ + + + + + Sample - CKEditor + + + + +

+ CKEditor - Posted Data +

+ + + + + + + + + $value ) +{ + if ( get_magic_quotes_gpc() ) + $postedValue = htmlspecialchars( stripslashes( $value ) ) ; + else + $postedValue = htmlspecialchars( $value ) ; + +?> + + + + + +
Field NameValue
+ + + diff --git a/edgware/static/ckeditor/_samples/sharedspaces.html b/edgware/static/ckeditor/_samples/sharedspaces.html new file mode 100755 index 0000000..435b8bc --- /dev/null +++ b/edgware/static/ckeditor/_samples/sharedspaces.html @@ -0,0 +1,136 @@ + + + + + Shared toolbars - CKEditor Sample + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+
+
+

+
+ + +

+

+
+ + +

+

+
+ + +

+

+
+ + +

+

+ +

+
+
+
+ + + diff --git a/edgware/static/ckeditor/_samples/skins.html b/edgware/static/ckeditor/_samples/skins.html new file mode 100755 index 0000000..7f8ea83 --- /dev/null +++ b/edgware/static/ckeditor/_samples/skins.html @@ -0,0 +1,83 @@ + + + + + Skins - CKEditor Sample + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+

+ "Kama" skin:
+ + +

+

+ "Office 2003" skin:
+ + +

+

+ "V2" skin:
+ + +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/ui_color.html b/edgware/static/ckeditor/_samples/ui_color.html new file mode 100755 index 0000000..8ba1acf --- /dev/null +++ b/edgware/static/ckeditor/_samples/ui_color.html @@ -0,0 +1,87 @@ + + + + + UI Color Setting Tool - CKEditor Sample + + + + + + +

+ CKEditor Sample +

+ +
+ +
+

+ Click the UI Color Picker button to test your color preferences at runtime.

+
+

+ + +

+

+ + +

+

+ +

+
+ + + diff --git a/edgware/static/ckeditor/_samples/ui_languages.html b/edgware/static/ckeditor/_samples/ui_languages.html new file mode 100755 index 0000000..c610588 --- /dev/null +++ b/edgware/static/ckeditor/_samples/ui_languages.html @@ -0,0 +1,106 @@ + + + + + User Interface Globalization - CKEditor Sample + + + + + + + +

+ CKEditor Sample +

+ +
+ +
+
+

+
+ +
+ (You may see strange characters if your system doesn't + support the selected language) +

+

+ + +

+
+ + + diff --git a/edgware/static/ckeditor/_source/adapters/jquery.js b/edgware/static/ckeditor/_source/adapters/jquery.js new file mode 100755 index 0000000..314c8ed --- /dev/null +++ b/edgware/static/ckeditor/_source/adapters/jquery.js @@ -0,0 +1,293 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview jQuery adapter provides easy use of basic CKEditor functions + * and access to internal API. It also integrates some aspects of CKEditor with + * jQuery framework. + * + * Every TEXTAREA, DIV and P elements can be converted to working editor. + * + * Plugin exposes some of editor's event to jQuery event system. All of those are namespaces inside + * ".ckeditor" namespace and can be binded/listened on supported textarea, div and p nodes. + * + * Available jQuery events: + * - instanceReady.ckeditor( editor, rootNode ) + * Triggered when new instance is ready. + * - destroy.ckeditor( editor ) + * Triggered when instance is destroyed. + * - getData.ckeditor( editor, eventData ) + * Triggered when getData event is fired inside editor. It can change returned data using eventData reference. + * - setData.ckeditor( editor ) + * Triggered when getData event is fired inside editor. + * + * @example + * + * + * + */ + +(function() +{ + /** + * Allow CKEditor to override jQuery.fn.val(). This results in ability to use val() + * function on textareas as usual and having those calls synchronized with CKEditor + * Rich Text Editor component. + * + * This config option is global and executed during plugin load. + * Can't be customized across editor instances. + * + * @type Boolean + * @example + * $( 'textarea' ).ckeditor(); + * // ... + * $( 'textarea' ).val( 'New content' ); + */ + CKEDITOR.config.jqueryOverrideVal = typeof CKEDITOR.config.jqueryOverrideVal == 'undefined' + ? true : CKEDITOR.config.jqueryOverrideVal; + + var jQuery = window.jQuery; + + if ( typeof jQuery == 'undefined' ) + return; + + // jQuery object methods. + jQuery.extend( jQuery.fn, + /** @lends jQuery.fn */ + { + /** + * Return existing CKEditor instance for first matched element. + * Allows to easily use internal API. Doesn't return jQuery object. + * + * Raised exception if editor doesn't exist or isn't ready yet. + * + * @name jQuery.ckeditorGet + * @return CKEDITOR.editor + * @see CKEDITOR.editor + */ + ckeditorGet: function() + { + var instance = this.eq( 0 ).data( 'ckeditorInstance' ); + if ( !instance ) + throw "CKEditor not yet initialized, use ckeditor() with callback."; + return instance; + }, + /** + * Triggers creation of CKEditor in all matched elements (reduced to DIV, P and TEXTAREAs). + * Binds callback to instanceReady event of all instances. If editor is already created, than + * callback is fired right away. + * + * Mixed parameter order allowed. + * + * @param callback Function to be run on editor instance. Passed parameters: [ textarea ]. + * Callback is fiered in "this" scope being ckeditor instance and having source textarea as first param. + * + * @param config Configuration options for new instance(s) if not already created. + * See URL + * + * @example + * $( 'textarea' ).ckeditor( function( textarea ) { + * $( textarea ).val( this.getData() ) + * } ); + * + * @name jQuery.fn.ckeditor + * @return jQuery.fn + */ + ckeditor: function( callback, config ) + { + if ( !jQuery.isFunction( callback )) + { + var tmp = config; + config = callback; + callback = tmp; + } + config = config || {}; + + this.filter( 'textarea, div, p' ).each( function() + { + var $element = jQuery( this ), + editor = $element.data( 'ckeditorInstance' ), + instanceLock = $element.data( '_ckeditorInstanceLock' ), + element = this; + + if ( editor && !instanceLock ) + { + if ( callback ) + callback.apply( editor, [ this ] ); + } + else if ( !instanceLock ) + { + // CREATE NEW INSTANCE + + // Handle config.autoUpdateElement inside this plugin if desired. + if ( config.autoUpdateElement + || ( typeof config.autoUpdateElement == 'undefined' && CKEDITOR.config.autoUpdateElement ) ) + { + config.autoUpdateElementJquery = true; + } + + // Always disable config.autoUpdateElement. + config.autoUpdateElement = false; + $element.data( '_ckeditorInstanceLock', true ); + + // Set instance reference in element's data. + editor = CKEDITOR.replace( element, config ); + $element.data( 'ckeditorInstance', editor ); + + // Register callback. + editor.on( 'instanceReady', function( event ) + { + var editor = event.editor; + setTimeout( function() + { + // Delay bit more if editor is still not ready. + if ( !editor.element ) + { + setTimeout( arguments.callee, 100 ); + return; + } + + // Remove this listener. + event.removeListener( 'instanceReady', this.callee ); + + // Forward setData on dataReady. + editor.on( 'dataReady', function() + { + $element.trigger( 'setData' + '.ckeditor', [ editor ] ); + }); + + // Forward getData. + editor.on( 'getData', function( event ) { + $element.trigger( 'getData' + '.ckeditor', [ editor, event.data ] ); + }, 999 ); + + // Forward destroy event. + editor.on( 'destroy', function() + { + $element.trigger( 'destroy.ckeditor', [ editor ] ); + }); + + // Integrate with form submit. + if ( editor.config.autoUpdateElementJquery && $element.is( 'textarea' ) && $element.parents( 'form' ).length ) + { + var onSubmit = function() + { + $element.ckeditor( function() + { + editor.updateElement(); + }); + }; + + // Bind to submit event. + $element.parents( 'form' ).submit( onSubmit ); + + // Unbind when editor destroyed. + $element.bind( 'destroy.ckeditor', function() + { + $element.parents( 'form' ).unbind( 'submit', onSubmit ); + }); + } + + // Garbage collect on destroy. + editor.on( 'destroy', function() + { + $element.data( 'ckeditorInstance', null ); + }); + + // Remove lock. + $element.data( '_ckeditorInstanceLock', null ); + + // Fire instanceReady event. + $element.trigger( 'instanceReady.ckeditor', [ editor ] ); + + // Run given (first) code. + if ( callback ) + callback.apply( editor, [ element ] ); + }, 0 ); + }, null, null, 9999); + } + else + { + // Editor is already during creation process, bind our code to the event. + CKEDITOR.on( 'instanceReady', function( event ) + { + var editor = event.editor; + setTimeout( function() + { + // Delay bit more if editor is still not ready. + if ( !editor.element ) + { + setTimeout( arguments.callee, 100 ); + return; + } + + if ( editor.element.$ == element ) + { + // Run given code. + if ( callback ) + callback.apply( editor, [ element ] ); + } + }, 0 ); + }, null, null, 9999); + } + }); + return this; + } + }); + + // New val() method for objects. + if ( CKEDITOR.config.jqueryOverrideVal ) + { + jQuery.fn.val = CKEDITOR.tools.override( jQuery.fn.val, function( oldValMethod ) + { + /** + * CKEditor-aware val() method. + * + * Acts same as original jQuery val(), but for textareas which have CKEditor instances binded to them, method + * returns editor's content. It also works for settings values. + * + * @param oldValMethod + * @name jQuery.fn.val + */ + return function( newValue, forceNative ) + { + var isSetter = typeof newValue != 'undefined', + result; + + this.each( function() + { + var $this = jQuery( this ), + editor = $this.data( 'ckeditorInstance' ); + + if ( !forceNative && $this.is( 'textarea' ) && editor ) + { + if ( isSetter ) + editor.setData( newValue ); + else + { + result = editor.getData(); + // break; + return null; + } + } + else + { + if ( isSetter ) + oldValMethod.call( $this, newValue ); + else + { + result = oldValMethod.call( $this ); + // break; + return null; + } + } + + return true; + }); + return isSetter ? this : result; + }; + }); + } +})(); diff --git a/edgware/static/ckeditor/_source/core/_bootstrap.js b/edgware/static/ckeditor/_source/core/_bootstrap.js new file mode 100755 index 0000000..86e1fce --- /dev/null +++ b/edgware/static/ckeditor/_source/core/_bootstrap.js @@ -0,0 +1,78 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview API initialization code. + */ + +(function() +{ + // Check is High Contrast is active by creating a temporary element with a + // background image. + + var useSpacer = CKEDITOR.env.ie && CKEDITOR.env.version < 7, + useBlank = CKEDITOR.env.ie && CKEDITOR.env.version == 7; + + + var backgroundImageUrl = useSpacer ? ( CKEDITOR.basePath + 'images/spacer.gif' ) : + useBlank ? 'about:blank' : 'data:image/png;base64,'; + + var hcDetect = CKEDITOR.dom.element.createFromHtml( + '
', CKEDITOR.document ); + + hcDetect.appendTo( CKEDITOR.document.getHead() ); + + // Update CKEDITOR.env. + // Catch exception needed sometimes for FF. (#4230) + try + { + CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ); + } + catch (e) + { + CKEDITOR.env.hc = false; + } + if ( CKEDITOR.env.hc ) + CKEDITOR.env.cssClass += ' cke_hc'; + + hcDetect.remove(); +})(); + +// Load core plugins. +CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function() + { + CKEDITOR.status = 'loaded'; + CKEDITOR.fire( 'loaded' ); + + // Process all instances created by the "basic" implementation. + var pending = CKEDITOR._.pending; + if ( pending ) + { + delete CKEDITOR._.pending; + + for ( var i = 0 ; i < pending.length ; i++ ) + CKEDITOR.add( pending[ i ] ); + } + }); + +/* +TODO: Enable the following and check if effective. + +if ( CKEDITOR.env.ie ) +{ + // Remove IE mouse flickering on IE6 because of background images. + try + { + document.execCommand( 'BackgroundImageCache', false, true ); + } + catch (e) + { + // We have been reported about loading problems caused by the above + // line. For safety, let's just ignore errors. + } +} +*/ diff --git a/edgware/static/ckeditor/_source/core/ajax.js b/edgware/static/ckeditor/_source/core/ajax.js new file mode 100755 index 0000000..078c15a --- /dev/null +++ b/edgware/static/ckeditor/_source/core/ajax.js @@ -0,0 +1,143 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.ajax} object, which holds ajax methods for + * data loading. + */ + +/** + * Ajax methods for data loading. + * @namespace + * @example + */ +CKEDITOR.ajax = (function() +{ + var createXMLHttpRequest = function() + { + // In IE, using the native XMLHttpRequest for local files may throw + // "Access is Denied" errors. + if ( !CKEDITOR.env.ie || location.protocol != 'file:' ) + try { return new XMLHttpRequest(); } catch(e) {} + + try { return new ActiveXObject( 'Msxml2.XMLHTTP' ); } catch (e) {} + try { return new ActiveXObject( 'Microsoft.XMLHTTP' ); } catch (e) {} + + return null; + }; + + var checkStatus = function( xhr ) + { + // HTTP Status Codes: + // 2xx : Success + // 304 : Not Modified + // 0 : Returned when running locally (file://) + // 1223 : IE may change 204 to 1223 (see http://dev.jquery.com/ticket/1450) + + return ( xhr.readyState == 4 && + ( ( xhr.status >= 200 && xhr.status < 300 ) || + xhr.status == 304 || + xhr.status === 0 || + xhr.status == 1223 ) ); + }; + + var getResponseText = function( xhr ) + { + if ( checkStatus( xhr ) ) + return xhr.responseText; + return null; + }; + + var getResponseXml = function( xhr ) + { + if ( checkStatus( xhr ) ) + { + var xml = xhr.responseXML; + return new CKEDITOR.xml( xml && xml.firstChild ? xml : xhr.responseText ); + } + return null; + }; + + var load = function( url, callback, getResponseFn ) + { + var async = !!callback; + + var xhr = createXMLHttpRequest(); + + if ( !xhr ) + return null; + + xhr.open( 'GET', url, async ); + + if ( async ) + { + // TODO: perform leak checks on this closure. + /** @ignore */ + xhr.onreadystatechange = function() + { + if ( xhr.readyState == 4 ) + { + callback( getResponseFn( xhr ) ); + xhr = null; + } + }; + } + + xhr.send(null); + + return async ? '' : getResponseFn( xhr ); + }; + + return /** @lends CKEDITOR.ajax */ { + + /** + * Loads data from an URL as plain text. + * @param {String} url The URL from which load data. + * @param {Function} [callback] A callback function to be called on + * data load. If not provided, the data will be loaded + * asynchronously, passing the data value the function on load. + * @returns {String} The loaded data. For asynchronous requests, an + * empty string. For invalid requests, null. + * @example + * // Load data synchronously. + * var data = CKEDITOR.ajax.load( 'somedata.txt' ); + * alert( data ); + * @example + * // Load data asynchronously. + * var data = CKEDITOR.ajax.load( 'somedata.txt', function( data ) + * { + * alert( data ); + * } ); + */ + load : function( url, callback ) + { + return load( url, callback, getResponseText ); + }, + + /** + * Loads data from an URL as XML. + * @param {String} url The URL from which load data. + * @param {Function} [callback] A callback function to be called on + * data load. If not provided, the data will be loaded + * asynchronously, passing the data value the function on load. + * @returns {CKEDITOR.xml} An XML object holding the loaded data. For asynchronous requests, an + * empty string. For invalid requests, null. + * @example + * // Load XML synchronously. + * var xml = CKEDITOR.ajax.loadXml( 'somedata.xml' ); + * alert( xml.getInnerXml( '//' ) ); + * @example + * // Load XML asynchronously. + * var data = CKEDITOR.ajax.loadXml( 'somedata.xml', function( xml ) + * { + * alert( xml.getInnerXml( '//' ) ); + * } ); + */ + loadXml : function( url, callback ) + { + return load( url, callback, getResponseXml ); + } + }; +})(); diff --git a/edgware/static/ckeditor/_source/core/ckeditor.js b/edgware/static/ckeditor/_source/core/ckeditor.js new file mode 100755 index 0000000..5e03693 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/ckeditor.js @@ -0,0 +1,96 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Contains the third and last part of the {@link CKEDITOR} object + * definition. + */ + +// Remove the CKEDITOR.loadFullCore reference defined on ckeditor_basic. +delete CKEDITOR.loadFullCore; + +/** + * Holds references to all editor instances created. The name of the properties + * in this object correspond to instance names, and their values contains the + * {@link CKEDITOR.editor} object representing them. + * @type {Object} + * @example + * alert( CKEDITOR.instances.editor1.name ); // "editor1" + */ +CKEDITOR.instances = {}; + +/** + * The document of the window holding the CKEDITOR object. + * @type {CKEDITOR.dom.document} + * @example + * alert( CKEDITOR.document.getBody().getName() ); // "body" + */ +CKEDITOR.document = new CKEDITOR.dom.document( document ); + +/** + * Adds an editor instance to the global {@link CKEDITOR} object. This function + * is available for internal use mainly. + * @param {CKEDITOR.editor} editor The editor instance to be added. + * @example + */ +CKEDITOR.add = function( editor ) +{ + CKEDITOR.instances[ editor.name ] = editor; + + editor.on( 'focus', function() + { + if ( CKEDITOR.currentInstance != editor ) + { + CKEDITOR.currentInstance = editor; + CKEDITOR.fire( 'currentInstance' ); + } + }); + + editor.on( 'blur', function() + { + if ( CKEDITOR.currentInstance == editor ) + { + CKEDITOR.currentInstance = null; + CKEDITOR.fire( 'currentInstance' ); + } + }); +}; + +/** + * Removes and editor instance from the global {@link CKEDITOR} object. his function + * is available for internal use mainly. + * @param {CKEDITOR.editor} editor The editor instance to be added. + * @example + */ +CKEDITOR.remove = function( editor ) +{ + delete CKEDITOR.instances[ editor.name ]; +}; + +// Load the bootstrap script. +CKEDITOR.loader.load( 'core/_bootstrap' ); // @Packager.RemoveLine + +// Tri-state constants. + +/** + * Used to indicate the ON or ACTIVE state. + * @constant + * @example + */ +CKEDITOR.TRISTATE_ON = 1; + +/** + * Used to indicate the OFF or NON ACTIVE state. + * @constant + * @example + */ +CKEDITOR.TRISTATE_OFF = 2; + +/** + * Used to indicate DISABLED state. + * @constant + * @example + */ +CKEDITOR.TRISTATE_DISABLED = 0; diff --git a/edgware/static/ckeditor/_source/core/ckeditor_base.js b/edgware/static/ckeditor/_source/core/ckeditor_base.js new file mode 100755 index 0000000..25e1581 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/ckeditor_base.js @@ -0,0 +1,190 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Contains the first and essential part of the {@link CKEDITOR} + * object definition. + */ + +// #### Compressed Code +// Must be updated on changes in the script, as well as updated in the +// ckeditor_source.js and ckeditor_basic_source.js files. + +// if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.1 SVN',rev:'4867',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f=0?'&':'?')+('t=')+this.timestamp;return d;}},b=window.CKEDITOR_GETURL;if(b){var c=a.getUrl;a.getUrl=function(d){return b.call(a,d)||c.call(a,d);};}return a;})(); + +// #### Raw code +// ATTENTION: read the above "Compressed Code" notes when changing this code. + +if ( !window.CKEDITOR ) +{ + /** + * This is the API entry point. The entire CKEditor code runs under this object. + * @name CKEDITOR + * @namespace + * @example + */ + window.CKEDITOR = (function() + { + var CKEDITOR = + /** @lends CKEDITOR */ + { + + /** + * A constant string unique for each release of CKEditor. Its value + * is used, by default, to build the URL for all resources loaded + * by the editor code, guaranteing clean cache results when + * upgrading. + * @type String + * @example + * alert( CKEDITOR.timestamp ); // e.g. '87dm' + */ + // The production implementation contains a fixed timestamp, unique + // for each release, generated by the releaser. + // (Base 36 value of each component of YYMMDDHH - 4 chars total - e.g. 87bm == 08071122) + timestamp : 'A038', + + /** + * Contains the CKEditor version number. + * @type String + * @example + * alert( CKEDITOR.version ); // e.g. 'CKEditor 3.0 Beta' + */ + version : '3.1 SVN', + + /** + * Contains the CKEditor revision number. + * Revision number is incremented automatically after each modification of CKEditor source code. + * @type String + * @example + * alert( CKEDITOR.revision ); // e.g. '3975' + */ + revision : '4867', + + /** + * Private object used to hold core stuff. It should not be used out of + * the API code as properties defined here may change at any time + * without notice. + * @private + */ + _ : {}, + + /** + * Indicates the API loading status. The following status are available: + *
    + *
  • unloaded: the API is not yet loaded.
  • + *
  • basic_loaded: the basic API features are available.
  • + *
  • basic_ready: the basic API is ready to load the full core code.
  • + *
  • loading: the full API is being loaded.
  • + *
  • ready: the API can be fully used.
  • + *
+ * @type String + * @example + * if ( CKEDITOR.status == 'ready' ) + * { + * // The API can now be fully used. + * } + */ + status : 'unloaded', + + /** + * Contains the full URL for the CKEditor installation directory. + * It's possible to manually provide the base path by setting a + * global variable named CKEDITOR_BASEPATH. This global variable + * must be set "before" the editor script loading. + * @type String + * @example + * alert( CKEDITOR.basePath ); // "http://www.example.com/ckeditor/" (e.g.) + */ + basePath : (function() + { + // ATTENTION: fixes on this code must be ported to + // var basePath in "core/loader.js". + + // Find out the editor directory path, based on its ")' ); + } + } + + return $ && new CKEDITOR.dom.document( $.contentWindow.document ); + }, + + /** + * Copy all the attributes from one node to the other, kinda like a clone + * skipAttributes is an object with the attributes that must NOT be copied. + * @param {CKEDITOR.dom.element} dest The destination element. + * @param {Object} skipAttributes A dictionary of attributes to skip. + * @example + */ + copyAttributes : function( dest, skipAttributes ) + { + var attributes = this.$.attributes; + skipAttributes = skipAttributes || {}; + + for ( var n = 0 ; n < attributes.length ; n++ ) + { + var attribute = attributes[n]; + + // Lowercase attribute name hard rule is broken for + // some attribute on IE, e.g. CHECKED. + var attrName = attribute.nodeName.toLowerCase(), + attrValue; + + // We can set the type only once, so do it with the proper value, not copying it. + if ( attrName in skipAttributes ) + continue; + + if( attrName == 'checked' && ( attrValue = this.getAttribute( attrName ) ) ) + dest.setAttribute( attrName, attrValue ); + // IE BUG: value attribute is never specified even if it exists. + else if ( attribute.specified || + ( CKEDITOR.env.ie && attribute.nodeValue && attrName == 'value' ) ) + { + attrValue = this.getAttribute( attrName ); + if ( attrValue === null ) + attrValue = attribute.nodeValue; + + dest.setAttribute( attrName, attrValue ); + } + } + + // The style: + if ( this.$.style.cssText !== '' ) + dest.$.style.cssText = this.$.style.cssText; + }, + + /** + * Changes the tag name of the current element. + * @param {String} newTag The new tag for the element. + */ + renameNode : function( newTag ) + { + // If it's already correct exit here. + if ( this.getName() == newTag ) + return; + + var doc = this.getDocument(); + + // Create the new node. + var newNode = new CKEDITOR.dom.element( newTag, doc ); + + // Copy all attributes. + this.copyAttributes( newNode ); + + // Move children to the new node. + this.moveChildren( newNode ); + + // Replace the node. + this.$.parentNode.replaceChild( newNode.$, this.$ ); + newNode.$._cke_expando = this.$._cke_expando; + this.$ = newNode.$; + }, + + /** + * Gets a DOM tree descendant under the current node. + * @param {Array|Number} indices The child index or array of child indices under the node. + * @returns {CKEDITOR.dom.node} The specified DOM child under the current node. Null if child does not exist. + * @example + * var strong = p.getChild(0); + */ + getChild : function( indices ) + { + var rawNode = this.$; + + if ( !indices.slice ) + rawNode = rawNode.childNodes[ indices ]; + else + { + while ( indices.length > 0 && rawNode ) + rawNode = rawNode.childNodes[ indices.shift() ]; + } + + return rawNode ? new CKEDITOR.dom.node( rawNode ) : null; + }, + + getChildCount : function() + { + return this.$.childNodes.length; + }, + + disableContextMenu : function() + { + this.on( 'contextmenu', function( event ) + { + // Cancel the browser context menu. + if ( !event.data.getTarget().hasClass( 'cke_enable_context_menu' ) ) + event.data.preventDefault(); + } ); + } + }); diff --git a/edgware/static/ckeditor/_source/core/dom/elementpath.js b/edgware/static/ckeditor/_source/core/dom/elementpath.js new file mode 100755 index 0000000..090f7d7 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/elementpath.js @@ -0,0 +1,104 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + // Elements that may be considered the "Block boundary" in an element path. + var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,de:1 }; + + // Elements that may be considered the "Block limit" in an element path. + var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1 }; + + // Check if an element contains any block element. + var checkHasBlock = function( element ) + { + var childNodes = element.getChildren(); + + for ( var i = 0, count = childNodes.count() ; i < count ; i++ ) + { + var child = childNodes.getItem( i ); + + if ( child.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$block[ child.getName() ] ) + return true; + } + + return false; + }; + + CKEDITOR.dom.elementPath = function( lastNode ) + { + var block = null; + var blockLimit = null; + var elements = []; + + var e = lastNode; + + while ( e ) + { + if ( e.type == CKEDITOR.NODE_ELEMENT ) + { + if ( !this.lastElement ) + this.lastElement = e; + + var elementName = e.getName(); + if ( CKEDITOR.env.ie && e.$.scopeName != 'HTML' ) + elementName = e.$.scopeName.toLowerCase() + ':' + elementName; + + if ( !blockLimit ) + { + if ( !block && pathBlockElements[ elementName ] ) + block = e; + + if ( pathBlockLimitElements[ elementName ] ) + { + // DIV is considered the Block, if no block is available (#525) + // and if it doesn't contain other blocks. + if ( !block && elementName == 'div' && !checkHasBlock( e ) ) + block = e; + else + blockLimit = e; + } + } + + elements.push( e ); + + if ( elementName == 'body' ) + break; + } + e = e.getParent(); + } + + this.block = block; + this.blockLimit = blockLimit; + this.elements = elements; + }; +})(); + +CKEDITOR.dom.elementPath.prototype = +{ + /** + * Compares this element path with another one. + * @param {CKEDITOR.dom.elementPath} otherPath The elementPath object to be + * compared with this one. + * @returns {Boolean} "true" if the paths are equal, containing the same + * number of elements and the same elements in the same order. + */ + compare : function( otherPath ) + { + var thisElements = this.elements; + var otherElements = otherPath && otherPath.elements; + + if ( !otherElements || thisElements.length != otherElements.length ) + return false; + + for ( var i = 0 ; i < thisElements.length ; i++ ) + { + if ( !thisElements[ i ].equals( otherElements[ i ] ) ) + return false; + } + + return true; + } +}; diff --git a/edgware/static/ckeditor/_source/core/dom/event.js b/edgware/static/ckeditor/_source/core/dom/event.js new file mode 100755 index 0000000..cf7d66c --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/event.js @@ -0,0 +1,142 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.event} class, which + * represents the a native DOM event object. + */ + +/** + * Represents a native DOM event object. + * @constructor + * @param {Object} domEvent A native DOM event object. + * @example + */ +CKEDITOR.dom.event = function( domEvent ) +{ + /** + * The native DOM event object represented by this class instance. + * @type Object + * @example + */ + this.$ = domEvent; +}; + +CKEDITOR.dom.event.prototype = +{ + /** + * Gets the key code associated to the event. + * @returns {Number} The key code. + * @example + * alert( event.getKey() ); "65" is "a" has been pressed + */ + getKey : function() + { + return this.$.keyCode || this.$.which; + }, + + /** + * Gets a number represeting the combination of the keys pressed during the + * event. It is the sum with the current key code and the {@link CKEDITOR.CTRL}, + * {@link CKEDITOR.SHIFT} and {@link CKEDITOR.ALT} constants. + * @returns {Number} The number representing the keys combination. + * @example + * alert( event.getKeystroke() == 65 ); // "a" key + * alert( event.getKeystroke() == CKEDITOR.CTRL + 65 ); // CTRL + "a" key + * alert( event.getKeystroke() == CKEDITOR.CTRL + CKEDITOR.SHIFT + 65 ); // CTRL + SHIFT + "a" key + */ + getKeystroke : function() + { + var keystroke = this.getKey(); + + if ( this.$.ctrlKey || this.$.metaKey ) + keystroke += CKEDITOR.CTRL; + + if ( this.$.shiftKey ) + keystroke += CKEDITOR.SHIFT; + + if ( this.$.altKey ) + keystroke += CKEDITOR.ALT; + + return keystroke; + }, + + /** + * Prevents the original behavior of the event to happen. It can optionally + * stop propagating the event in the event chain. + * @param {Boolean} [stopPropagation] Stop propagating this event in the + * event chain. + * @example + * var element = CKEDITOR.document.getById( 'myElement' ); + * element.on( 'click', function( ev ) + * { + * // The DOM event object is passed by the "data" property. + * var domEvent = ev.data; + * // Prevent the click to chave any effect in the element. + * domEvent.preventDefault(); + * }); + */ + preventDefault : function( stopPropagation ) + { + var $ = this.$; + if ( $.preventDefault ) + $.preventDefault(); + else + $.returnValue = false; + + if ( stopPropagation ) + this.stopPropagation(); + }, + + stopPropagation : function() + { + var $ = this.$; + if ( $.stopPropagation ) + $.stopPropagation(); + else + $.cancelBubble = true; + }, + + /** + * Returns the DOM node where the event was targeted to. + * @returns {CKEDITOR.dom.node} The target DOM node. + * @example + * var element = CKEDITOR.document.getById( 'myElement' ); + * element.on( 'click', function( ev ) + * { + * // The DOM event object is passed by the "data" property. + * var domEvent = ev.data; + * // Add a CSS class to the event target. + * domEvent.getTarget().addClass( 'clicked' ); + * }); + */ + + getTarget : function() + { + var rawNode = this.$.target || this.$.srcElement; + return rawNode ? new CKEDITOR.dom.node( rawNode ) : null; + } +}; + +/** + * CTRL key (1000). + * @constant + * @example + */ +CKEDITOR.CTRL = 1000; + +/** + * SHIFT key (2000). + * @constant + * @example + */ +CKEDITOR.SHIFT = 2000; + +/** + * ALT key (4000). + * @constant + * @example + */ +CKEDITOR.ALT = 4000; diff --git a/edgware/static/ckeditor/_source/core/dom/node.js b/edgware/static/ckeditor/_source/core/dom/node.js new file mode 100755 index 0000000..6f25ec1 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/node.js @@ -0,0 +1,649 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.node} class, which is the base + * class for classes that represent DOM nodes. + */ + +/** + * Base class for classes representing DOM nodes. This constructor may return + * and instance of classes that inherits this class, like + * {@link CKEDITOR.dom.element} or {@link CKEDITOR.dom.text}. + * @augments CKEDITOR.dom.domObject + * @param {Object} domNode A native DOM node. + * @constructor + * @see CKEDITOR.dom.element + * @see CKEDITOR.dom.text + * @example + */ +CKEDITOR.dom.node = function( domNode ) +{ + if ( domNode ) + { + switch ( domNode.nodeType ) + { + case CKEDITOR.NODE_ELEMENT : + return new CKEDITOR.dom.element( domNode ); + + case CKEDITOR.NODE_TEXT : + return new CKEDITOR.dom.text( domNode ); + } + + // Call the base constructor. + CKEDITOR.dom.domObject.call( this, domNode ); + } + + return this; +}; + +CKEDITOR.dom.node.prototype = new CKEDITOR.dom.domObject(); + +/** + * Element node type. + * @constant + * @example + */ +CKEDITOR.NODE_ELEMENT = 1; + +/** + * Text node type. + * @constant + * @example + */ +CKEDITOR.NODE_TEXT = 3; + +/** + * Comment node type. + * @constant + * @example + */ +CKEDITOR.NODE_COMMENT = 8; + +CKEDITOR.NODE_DOCUMENT_FRAGMENT = 11; + +CKEDITOR.POSITION_IDENTICAL = 0; +CKEDITOR.POSITION_DISCONNECTED = 1; +CKEDITOR.POSITION_FOLLOWING = 2; +CKEDITOR.POSITION_PRECEDING = 4; +CKEDITOR.POSITION_IS_CONTAINED = 8; +CKEDITOR.POSITION_CONTAINS = 16; + +CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype, + /** @lends CKEDITOR.dom.node.prototype */ + { + /** + * Makes this node child of another element. + * @param {CKEDITOR.dom.element} element The target element to which append + * this node. + * @returns {CKEDITOR.dom.element} The target element. + * @example + * var p = new CKEDITOR.dom.element( 'p' ); + * var strong = new CKEDITOR.dom.element( 'strong' ); + * strong.appendTo( p ); + * + * // result: "<p><strong></strong></p>" + */ + appendTo : function( element, toStart ) + { + element.append( this, toStart ); + return element; + }, + + clone : function( includeChildren, cloneId ) + { + var $clone = this.$.cloneNode( includeChildren ); + + if ( !cloneId ) + { + var removeIds = function( node ) + { + if ( node.nodeType != CKEDITOR.NODE_ELEMENT ) + return; + + node.removeAttribute( 'id', false ) ; + node.removeAttribute( '_cke_expando', false ) ; + + var childs = node.childNodes; + for ( var i=0 ; i < childs.length ; i++ ) + removeIds( childs[ i ] ); + }; + + // The "id" attribute should never be cloned to avoid duplication. + removeIds( $clone ); + } + + return new CKEDITOR.dom.node( $clone ); + }, + + hasPrevious : function() + { + return !!this.$.previousSibling; + }, + + hasNext : function() + { + return !!this.$.nextSibling; + }, + + /** + * Inserts this element after a node. + * @param {CKEDITOR.dom.node} node The that will preceed this element. + * @returns {CKEDITOR.dom.node} The node preceeding this one after + * insertion. + * @example + * var em = new CKEDITOR.dom.element( 'em' ); + * var strong = new CKEDITOR.dom.element( 'strong' ); + * strong.insertAfter( em ); + * + * // result: "<em></em><strong></strong>" + */ + insertAfter : function( node ) + { + node.$.parentNode.insertBefore( this.$, node.$.nextSibling ); + return node; + }, + + /** + * Inserts this element before a node. + * @param {CKEDITOR.dom.node} node The that will be after this element. + * @returns {CKEDITOR.dom.node} The node being inserted. + * @example + * var em = new CKEDITOR.dom.element( 'em' ); + * var strong = new CKEDITOR.dom.element( 'strong' ); + * strong.insertBefore( em ); + * + * // result: "<strong></strong><em></em>" + */ + insertBefore : function( node ) + { + node.$.parentNode.insertBefore( this.$, node.$ ); + return node; + }, + + insertBeforeMe : function( node ) + { + this.$.parentNode.insertBefore( node.$, this.$ ); + return node; + }, + + /** + * Retrieves a uniquely identifiable tree address for this node. + * The tree address returns is an array of integers, with each integer + * indicating a child index of a DOM node, starting from + * document.documentElement. + * + * For example, assuming is the second child from ( + * being the first), and we'd like to address the third child under the + * fourth child of body, the tree address returned would be: + * [1, 3, 2] + * + * The tree address cannot be used for finding back the DOM tree node once + * the DOM tree structure has been modified. + */ + getAddress : function( normalized ) + { + var address = []; + var $documentElement = this.getDocument().$.documentElement; + var node = this.$; + + while ( node && node != $documentElement ) + { + var parentNode = node.parentNode; + var currentIndex = -1; + + for ( var i = 0 ; i < parentNode.childNodes.length ; i++ ) + { + var candidate = parentNode.childNodes[i]; + + if ( normalized && + candidate.nodeType == 3 && + candidate.previousSibling && + candidate.previousSibling.nodeType == 3 ) + { + continue; + } + + currentIndex++; + + if ( candidate == node ) + break; + } + + address.unshift( currentIndex ); + + node = node.parentNode; + } + + return address; + }, + + /** + * Gets the document containing this element. + * @returns {CKEDITOR.dom.document} The document. + * @example + * var element = CKEDITOR.document.getById( 'example' ); + * alert( element.getDocument().equals( CKEDITOR.document ) ); // "true" + */ + getDocument : function() + { + var document = new CKEDITOR.dom.document( this.$.ownerDocument || this.$.parentNode.ownerDocument ); + + return ( + /** @ignore */ + this.getDocument = function() + { + return document; + })(); + }, + + getIndex : function() + { + var $ = this.$; + + var currentNode = $.parentNode && $.parentNode.firstChild; + var currentIndex = -1; + + while ( currentNode ) + { + currentIndex++; + + if ( currentNode == $ ) + return currentIndex; + + currentNode = currentNode.nextSibling; + } + + return -1; + }, + + getNextSourceNode : function( startFromSibling, nodeType, guard ) + { + // If "guard" is a node, transform it in a function. + if ( guard && !guard.call ) + { + var guardNode = guard; + guard = function( node ) + { + return !node.equals( guardNode ); + }; + } + + var node = ( !startFromSibling && this.getFirst && this.getFirst() ), + parent; + + // Guarding when we're skipping the current element( no children or 'startFromSibling' ). + // send the 'moving out' signal even we don't actually dive into. + if ( !node ) + { + if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false ) + return null; + node = this.getNext(); + } + + while ( !node && ( parent = ( parent || this ).getParent() ) ) + { + // The guard check sends the "true" paramenter to indicate that + // we are moving "out" of the element. + if ( guard && guard( parent, true ) === false ) + return null; + + node = parent.getNext(); + } + + if ( !node ) + return null; + + if ( guard && guard( node ) === false ) + return null; + + if ( nodeType && nodeType != node.type ) + return node.getNextSourceNode( false, nodeType, guard ); + + return node; + }, + + getPreviousSourceNode : function( startFromSibling, nodeType, guard ) + { + if ( guard && !guard.call ) + { + var guardNode = guard; + guard = function( node ) + { + return !node.equals( guardNode ); + }; + } + + var node = ( !startFromSibling && this.getLast && this.getLast() ), + parent; + + // Guarding when we're skipping the current element( no children or 'startFromSibling' ). + // send the 'moving out' signal even we don't actually dive into. + if ( !node ) + { + if ( this.type == CKEDITOR.NODE_ELEMENT && guard && guard( this, true ) === false ) + return null; + node = this.getPrevious(); + } + + while ( !node && ( parent = ( parent || this ).getParent() ) ) + { + // The guard check sends the "true" paramenter to indicate that + // we are moving "out" of the element. + if ( guard && guard( parent, true ) === false ) + return null; + + node = parent.getPrevious(); + } + + if ( !node ) + return null; + + if ( guard && guard( node ) === false ) + return null; + + if ( nodeType && node.type != nodeType ) + return node.getPreviousSourceNode( false, nodeType, guard ); + + return node; + }, + + getPrevious : function( evaluator ) + { + var previous = this.$, retval; + do + { + previous = previous.previousSibling; + retval = previous && new CKEDITOR.dom.node( previous ); + } + while ( retval && evaluator && !evaluator( retval ) ) + return retval; + }, + + /** + * Gets the node that follows this element in its parent's child list. + * @param {Function} evaluator Filtering the result node. + * @returns {CKEDITOR.dom.node} The next node or null if not available. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<div><b>Example</b> <i>next</i></div>' ); + * var first = element.getFirst().getNext(); + * alert( first.getName() ); // "i" + */ + getNext : function( evaluator ) + { + var next = this.$, retval; + do + { + next = next.nextSibling; + retval = next && new CKEDITOR.dom.node( next ); + } + while ( retval && evaluator && !evaluator( retval ) ) + return retval; + }, + + /** + * Gets the parent element for this node. + * @returns {CKEDITOR.dom.element} The parent element. + * @example + * var node = editor.document.getBody().getFirst(); + * var parent = node.getParent(); + * alert( node.getName() ); // "body" + */ + getParent : function() + { + var parent = this.$.parentNode; + return ( parent && parent.nodeType == 1 ) ? new CKEDITOR.dom.node( parent ) : null; + }, + + getParents : function( closerFirst ) + { + var node = this; + var parents = []; + + do + { + parents[ closerFirst ? 'push' : 'unshift' ]( node ); + } + while ( ( node = node.getParent() ) ) + + return parents; + }, + + getCommonAncestor : function( node ) + { + if ( node.equals( this ) ) + return this; + + if ( node.contains && node.contains( this ) ) + return node; + + var start = this.contains ? this : this.getParent(); + + do + { + if ( start.contains( node ) ) + return start; + } + while ( ( start = start.getParent() ) ); + + return null; + }, + + getPosition : function( otherNode ) + { + var $ = this.$; + var $other = otherNode.$; + + if ( $.compareDocumentPosition ) + return $.compareDocumentPosition( $other ); + + // IE and Safari have no support for compareDocumentPosition. + + if ( $ == $other ) + return CKEDITOR.POSITION_IDENTICAL; + + // Only element nodes support contains and sourceIndex. + if ( this.type == CKEDITOR.NODE_ELEMENT && otherNode.type == CKEDITOR.NODE_ELEMENT ) + { + if ( $.contains ) + { + if ( $.contains( $other ) ) + return CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING; + + if ( $other.contains( $ ) ) + return CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING; + } + + if ( 'sourceIndex' in $ ) + { + return ( $.sourceIndex < 0 || $other.sourceIndex < 0 ) ? CKEDITOR.POSITION_DISCONNECTED : + ( $.sourceIndex < $other.sourceIndex ) ? CKEDITOR.POSITION_PRECEDING : + CKEDITOR.POSITION_FOLLOWING; + } + } + + // For nodes that don't support compareDocumentPosition, contains + // or sourceIndex, their "address" is compared. + + var addressOfThis = this.getAddress(), + addressOfOther = otherNode.getAddress(), + minLevel = Math.min( addressOfThis.length, addressOfOther.length ); + + // Determinate preceed/follow relationship. + for ( var i = 0 ; i <= minLevel - 1 ; i++ ) + { + if ( addressOfThis[ i ] != addressOfOther[ i ] ) + { + if ( i < minLevel ) + { + return addressOfThis[ i ] < addressOfOther[ i ] ? + CKEDITOR.POSITION_PRECEDING : CKEDITOR.POSITION_FOLLOWING; + } + break; + } + } + + // Determinate contains/contained relationship. + return ( addressOfThis.length < addressOfOther.length ) ? + CKEDITOR.POSITION_CONTAINS + CKEDITOR.POSITION_PRECEDING : + CKEDITOR.POSITION_IS_CONTAINED + CKEDITOR.POSITION_FOLLOWING; + }, + + /** + * Gets the closes ancestor node of a specified node name. + * @param {String} name Node name of ancestor node. + * @param {Boolean} includeSelf (Optional) Whether to include the current + * node in the calculation or not. + * @returns {CKEDITOR.dom.node} Ancestor node. + */ + getAscendant : function( name, includeSelf ) + { + var $ = this.$; + + if ( !includeSelf ) + $ = $.parentNode; + + while ( $ ) + { + if ( $.nodeName && $.nodeName.toLowerCase() == name ) + return new CKEDITOR.dom.node( $ ); + + $ = $.parentNode; + } + return null; + }, + + hasAscendant : function( name, includeSelf ) + { + var $ = this.$; + + if ( !includeSelf ) + $ = $.parentNode; + + while ( $ ) + { + if ( $.nodeName && $.nodeName.toLowerCase() == name ) + return true; + + $ = $.parentNode; + } + return false; + }, + + move : function( target, toStart ) + { + target.append( this.remove(), toStart ); + }, + + /** + * Removes this node from the document DOM. + * @param {Boolean} [preserveChildren] Indicates that the children + * elements must remain in the document, removing only the outer + * tags. + * @example + * var element = CKEDITOR.dom.element.getById( 'MyElement' ); + * element.remove(); + */ + remove : function( preserveChildren ) + { + var $ = this.$; + var parent = $.parentNode; + + if ( parent ) + { + if ( preserveChildren ) + { + // Move all children before the node. + for ( var child ; ( child = $.firstChild ) ; ) + { + parent.insertBefore( $.removeChild( child ), $ ); + } + } + + parent.removeChild( $ ); + } + + return this; + }, + + replace : function( nodeToReplace ) + { + this.insertBefore( nodeToReplace ); + nodeToReplace.remove(); + }, + + trim : function() + { + this.ltrim(); + this.rtrim(); + }, + + ltrim : function() + { + var child; + while ( this.getFirst && ( child = this.getFirst() ) ) + { + if ( child.type == CKEDITOR.NODE_TEXT ) + { + var trimmed = CKEDITOR.tools.ltrim( child.getText() ), + originalLength = child.getLength(); + + if ( !trimmed ) + { + child.remove(); + continue; + } + else if ( trimmed.length < originalLength ) + { + child.split( originalLength - trimmed.length ); + + // IE BUG: child.remove() may raise JavaScript errors here. (#81) + this.$.removeChild( this.$.firstChild ); + } + } + break; + } + }, + + rtrim : function() + { + var child; + while ( this.getLast && ( child = this.getLast() ) ) + { + if ( child.type == CKEDITOR.NODE_TEXT ) + { + var trimmed = CKEDITOR.tools.rtrim( child.getText() ), + originalLength = child.getLength(); + + if ( !trimmed ) + { + child.remove(); + continue; + } + else if ( trimmed.length < originalLength ) + { + child.split( trimmed.length ); + + // IE BUG: child.getNext().remove() may raise JavaScript errors here. + // (#81) + this.$.lastChild.parentNode.removeChild( this.$.lastChild ); + } + } + break; + } + + if ( !CKEDITOR.env.ie && !CKEDITOR.env.opera ) + { + child = this.$.lastChild; + + if ( child && child.type == 1 && child.nodeName.toLowerCase() == 'br' ) + { + // Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#324). + child.parentNode.removeChild( child ) ; + } + } + } + } +); diff --git a/edgware/static/ckeditor/_source/core/dom/nodelist.js b/edgware/static/ckeditor/_source/core/dom/nodelist.js new file mode 100755 index 0000000..7e82ba1 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/nodelist.js @@ -0,0 +1,23 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dom.nodeList = function( nativeList ) +{ + this.$ = nativeList; +}; + +CKEDITOR.dom.nodeList.prototype = +{ + count : function() + { + return this.$.length; + }, + + getItem : function( index ) + { + var $node = this.$[ index ]; + return $node ? new CKEDITOR.dom.node( $node ) : null; + } +}; diff --git a/edgware/static/ckeditor/_source/core/dom/range.js b/edgware/static/ckeditor/_source/core/dom/range.js new file mode 100755 index 0000000..264ee4e --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/range.js @@ -0,0 +1,1729 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dom.range = function( document ) +{ + this.startContainer = null; + this.startOffset = null; + this.endContainer = null; + this.endOffset = null; + this.collapsed = true; + + this.document = document; +}; + +(function() +{ + // Updates the "collapsed" property for the given range object. + var updateCollapsed = function( range ) + { + range.collapsed = ( + range.startContainer && + range.endContainer && + range.startContainer.equals( range.endContainer ) && + range.startOffset == range.endOffset ); + }; + + // This is a shared function used to delete, extract and clone the range + // contents. + // V2 + var execContentsAction = function( range, action, docFrag ) + { + range.optimizeBookmark(); + + var startNode = range.startContainer; + var endNode = range.endContainer; + + var startOffset = range.startOffset; + var endOffset = range.endOffset; + + var removeStartNode; + var removeEndNode; + + // For text containers, we must simply split the node and point to the + // second part. The removal will be handled by the rest of the code . + if ( endNode.type == CKEDITOR.NODE_TEXT ) + endNode = endNode.split( endOffset ); + else + { + // If the end container has children and the offset is pointing + // to a child, then we should start from it. + if ( endNode.getChildCount() > 0 ) + { + // If the offset points after the last node. + if ( endOffset >= endNode.getChildCount() ) + { + // Let's create a temporary node and mark it for removal. + endNode = endNode.append( range.document.createText( '' ) ); + removeEndNode = true; + } + else + endNode = endNode.getChild( endOffset ); + } + } + + // For text containers, we must simply split the node. The removal will + // be handled by the rest of the code . + if ( startNode.type == CKEDITOR.NODE_TEXT ) + { + startNode.split( startOffset ); + + // In cases the end node is the same as the start node, the above + // splitting will also split the end, so me must move the end to + // the second part of the split. + if ( startNode.equals( endNode ) ) + endNode = startNode.getNext(); + } + else + { + // If the start container has children and the offset is pointing + // to a child, then we should start from its previous sibling. + + // If the offset points to the first node, we don't have a + // sibling, so let's use the first one, but mark it for removal. + if ( !startOffset ) + { + // Let's create a temporary node and mark it for removal. + startNode = startNode.getFirst().insertBeforeMe( range.document.createText( '' ) ); + removeStartNode = true; + } + else if ( startOffset >= startNode.getChildCount() ) + { + // Let's create a temporary node and mark it for removal. + startNode = startNode.append( range.document.createText( '' ) ); + removeStartNode = true; + } + else + startNode = startNode.getChild( startOffset ).getPrevious(); + } + + // Get the parent nodes tree for the start and end boundaries. + var startParents = startNode.getParents(); + var endParents = endNode.getParents(); + + // Compare them, to find the top most siblings. + var i, topStart, topEnd; + + for ( i = 0 ; i < startParents.length ; i++ ) + { + topStart = startParents[ i ]; + topEnd = endParents[ i ]; + + // The compared nodes will match until we find the top most + // siblings (different nodes that have the same parent). + // "i" will hold the index in the parents array for the top + // most element. + if ( !topStart.equals( topEnd ) ) + break; + } + + var clone = docFrag, levelStartNode, levelClone, currentNode, currentSibling; + + // Remove all successive sibling nodes for every node in the + // startParents tree. + for ( var j = i ; j < startParents.length ; j++ ) + { + levelStartNode = startParents[j]; + + // For Extract and Clone, we must clone this level. + if ( clone && !levelStartNode.equals( startNode ) ) // action = 0 = Delete + levelClone = clone.append( levelStartNode.clone() ); + + currentNode = levelStartNode.getNext(); + + while( currentNode ) + { + // Stop processing when the current node matches a node in the + // endParents tree or if it is the endNode. + if ( currentNode.equals( endParents[ j ] ) || currentNode.equals( endNode ) ) + break; + + // Cache the next sibling. + currentSibling = currentNode.getNext(); + + // If cloning, just clone it. + if ( action == 2 ) // 2 = Clone + clone.append( currentNode.clone( true ) ); + else + { + // Both Delete and Extract will remove the node. + currentNode.remove(); + + // When Extracting, move the removed node to the docFrag. + if ( action == 1 ) // 1 = Extract + clone.append( currentNode ); + } + + currentNode = currentSibling; + } + + if ( clone ) + clone = levelClone; + } + + clone = docFrag; + + // Remove all previous sibling nodes for every node in the + // endParents tree. + for ( var k = i ; k < endParents.length ; k++ ) + { + levelStartNode = endParents[ k ]; + + // For Extract and Clone, we must clone this level. + if ( action > 0 && !levelStartNode.equals( endNode ) ) // action = 0 = Delete + levelClone = clone.append( levelStartNode.clone() ); + + // The processing of siblings may have already been done by the parent. + if ( !startParents[ k ] || levelStartNode.$.parentNode != startParents[ k ].$.parentNode ) + { + currentNode = levelStartNode.getPrevious(); + + while( currentNode ) + { + // Stop processing when the current node matches a node in the + // startParents tree or if it is the startNode. + if ( currentNode.equals( startParents[ k ] ) || currentNode.equals( startNode ) ) + break; + + // Cache the next sibling. + currentSibling = currentNode.getPrevious(); + + // If cloning, just clone it. + if ( action == 2 ) // 2 = Clone + clone.$.insertBefore( currentNode.$.cloneNode( true ), clone.$.firstChild ) ; + else + { + // Both Delete and Extract will remove the node. + currentNode.remove(); + + // When Extracting, mode the removed node to the docFrag. + if ( action == 1 ) // 1 = Extract + clone.$.insertBefore( currentNode.$, clone.$.firstChild ); + } + + currentNode = currentSibling; + } + } + + if ( clone ) + clone = levelClone; + } + + if ( action == 2 ) // 2 = Clone. + { + // No changes in the DOM should be done, so fix the split text (if any). + + var startTextNode = range.startContainer; + if ( startTextNode.type == CKEDITOR.NODE_TEXT ) + { + startTextNode.$.data += startTextNode.$.nextSibling.data; + startTextNode.$.parentNode.removeChild( startTextNode.$.nextSibling ); + } + + var endTextNode = range.endContainer; + if ( endTextNode.type == CKEDITOR.NODE_TEXT && endTextNode.$.nextSibling ) + { + endTextNode.$.data += endTextNode.$.nextSibling.data; + endTextNode.$.parentNode.removeChild( endTextNode.$.nextSibling ); + } + } + else + { + // Collapse the range. + + // If a node has been partially selected, collapse the range between + // topStart and topEnd. Otherwise, simply collapse it to the start. (W3C specs). + if ( topStart && topEnd && ( startNode.$.parentNode != topStart.$.parentNode || endNode.$.parentNode != topEnd.$.parentNode ) ) + { + var endIndex = topEnd.getIndex(); + + // If the start node is to be removed, we must correct the + // index to reflect the removal. + if ( removeStartNode && topEnd.$.parentNode == startNode.$.parentNode ) + endIndex--; + + range.setStart( topEnd.getParent(), endIndex ); + } + + // Collapse it to the start. + range.collapse( true ); + } + + // Cleanup any marked node. + if( removeStartNode ) + startNode.remove(); + + if( removeEndNode && endNode.$.parentNode ) + endNode.remove(); + }; + + var inlineChildReqElements = { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 }; + + // Creates the appropriate node evaluator for the dom walker used inside + // check(Start|End)OfBlock. + function getCheckStartEndBlockEvalFunction( isStart ) + { + var hadBr = false, bookmarkEvaluator = CKEDITOR.dom.walker.bookmark( true ); + return function( node ) + { + // First ignore bookmark nodes. + if ( bookmarkEvaluator( node ) ) + return true; + + if ( node.type == CKEDITOR.NODE_TEXT ) + { + // If there's any visible text, then we're not at the start. + if ( CKEDITOR.tools.trim( node.getText() ).length ) + return false; + } + else if( node.type == CKEDITOR.NODE_ELEMENT ) + { + // If there are non-empty inline elements (e.g. ), then we're not + // at the start. + if ( !inlineChildReqElements[ node.getName() ] ) + { + // If we're working at the end-of-block, forgive the first
in non-IE + // browsers. + if ( !isStart && !CKEDITOR.env.ie && node.getName() == 'br' && !hadBr ) + hadBr = true; + else + return false; + } + } + return true; + }; + } + + // Evaluator for CKEDITOR.dom.element::checkBoundaryOfElement, reject any + // text node and non-empty elements unless it's being bookmark text. + function elementBoundaryEval( node ) + { + // Reject any text node unless it's being bookmark + // OR it's spaces. (#3883) + return node.type != CKEDITOR.NODE_TEXT + && node.getName() in CKEDITOR.dtd.$removeEmpty + || !CKEDITOR.tools.trim( node.getText() ) + || node.getParent().hasAttribute( '_fck_bookmark' ); + } + + var whitespaceEval = new CKEDITOR.dom.walker.whitespaces(), + bookmarkEval = new CKEDITOR.dom.walker.bookmark(); + + function nonWhitespaceOrBookmarkEval( node ) + { + // Whitespaces and bookmark nodes are to be ignored. + return !whitespaceEval( node ) && !bookmarkEval( node ); + } + + CKEDITOR.dom.range.prototype = + { + clone : function() + { + var clone = new CKEDITOR.dom.range( this.document ); + + clone.startContainer = this.startContainer; + clone.startOffset = this.startOffset; + clone.endContainer = this.endContainer; + clone.endOffset = this.endOffset; + clone.collapsed = this.collapsed; + + return clone; + }, + + collapse : function( toStart ) + { + if ( toStart ) + { + this.endContainer = this.startContainer; + this.endOffset = this.startOffset; + } + else + { + this.startContainer = this.endContainer; + this.startOffset = this.endOffset; + } + + this.collapsed = true; + }, + + // The selection may be lost when cloning (due to the splitText() call). + cloneContents : function() + { + var docFrag = new CKEDITOR.dom.documentFragment( this.document ); + + if ( !this.collapsed ) + execContentsAction( this, 2, docFrag ); + + return docFrag; + }, + + deleteContents : function() + { + if ( this.collapsed ) + return; + + execContentsAction( this, 0 ); + }, + + extractContents : function() + { + var docFrag = new CKEDITOR.dom.documentFragment( this.document ); + + if ( !this.collapsed ) + execContentsAction( this, 1, docFrag ); + + return docFrag; + }, + + /** + * Creates a bookmark object, which can be later used to restore the + * range by using the moveToBookmark function. + * This is an "intrusive" way to create a bookmark. It includes tags + * in the range boundaries. The advantage of it is that it is possible to + * handle DOM mutations when moving back to the bookmark. + * Attention: the inclusion of nodes in the DOM is a design choice and + * should not be changed as there are other points in the code that may be + * using those nodes to perform operations. See GetBookmarkNode. + * @param {Boolean} [serializable] Indicates that the bookmark nodes + * must contain ids, which can be used to restore the range even + * when these nodes suffer mutations (like a clonation or innerHTML + * change). + * @returns {Object} And object representing a bookmark. + */ + createBookmark : function( serializable ) + { + var startNode, endNode; + var baseId; + var clone; + + startNode = this.document.createElement( 'span' ); + startNode.setAttribute( '_fck_bookmark', 1 ); + startNode.setStyle( 'display', 'none' ); + + // For IE, it must have something inside, otherwise it may be + // removed during DOM operations. + startNode.setHtml( ' ' ); + + if ( serializable ) + { + baseId = 'cke_bm_' + CKEDITOR.tools.getNextNumber(); + startNode.setAttribute( 'id', baseId + 'S' ); + } + + // If collapsed, the endNode will not be created. + if ( !this.collapsed ) + { + endNode = startNode.clone(); + endNode.setHtml( ' ' ); + + if ( serializable ) + endNode.setAttribute( 'id', baseId + 'E' ); + + clone = this.clone(); + clone.collapse(); + clone.insertNode( endNode ); + } + + clone = this.clone(); + clone.collapse( true ); + clone.insertNode( startNode ); + + // Update the range position. + if ( endNode ) + { + this.setStartAfter( startNode ); + this.setEndBefore( endNode ); + } + else + this.moveToPosition( startNode, CKEDITOR.POSITION_AFTER_END ); + + return { + startNode : serializable ? baseId + 'S' : startNode, + endNode : serializable ? baseId + 'E' : endNode, + serializable : serializable + }; + }, + + /** + * Creates a "non intrusive" and "mutation sensible" bookmark. This + * kind of bookmark should be used only when the DOM is supposed to + * remain stable after its creation. + * @param {Boolean} [normalized] Indicates that the bookmark must + * normalized. When normalized, the successive text nodes are + * considered a single node. To sucessful load a normalized + * bookmark, the DOM tree must be also normalized before calling + * moveToBookmark. + * @returns {Object} An object representing the bookmark. + */ + createBookmark2 : function( normalized ) + { + var startContainer = this.startContainer, + endContainer = this.endContainer; + + var startOffset = this.startOffset, + endOffset = this.endOffset; + + var child, previous; + + // If there is no range then get out of here. + // It happens on initial load in Safari #962 and if the editor it's + // hidden also in Firefox + if ( !startContainer || !endContainer ) + return { start : 0, end : 0 }; + + if ( normalized ) + { + // Find out if the start is pointing to a text node that will + // be normalized. + if ( startContainer.type == CKEDITOR.NODE_ELEMENT ) + { + child = startContainer.getChild( startOffset ); + + // In this case, move the start information to that text + // node. + if ( child && child.type == CKEDITOR.NODE_TEXT + && startOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT ) + { + startContainer = child; + startOffset = 0; + } + } + + // Normalize the start. + while ( startContainer.type == CKEDITOR.NODE_TEXT + && ( previous = startContainer.getPrevious() ) + && previous.type == CKEDITOR.NODE_TEXT ) + { + startContainer = previous; + startOffset += previous.getLength(); + } + + // Process the end only if not normalized. + if ( !this.isCollapsed ) + { + // Find out if the start is pointing to a text node that + // will be normalized. + if ( endContainer.type == CKEDITOR.NODE_ELEMENT ) + { + child = endContainer.getChild( endOffset ); + + // In this case, move the start information to that + // text node. + if ( child && child.type == CKEDITOR.NODE_TEXT + && endOffset > 0 && child.getPrevious().type == CKEDITOR.NODE_TEXT ) + { + endContainer = child; + endOffset = 0; + } + } + + // Normalize the end. + while ( endContainer.type == CKEDITOR.NODE_TEXT + && ( previous = endContainer.getPrevious() ) + && previous.type == CKEDITOR.NODE_TEXT ) + { + endContainer = previous; + endOffset += previous.getLength(); + } + } + } + + return { + start : startContainer.getAddress( normalized ), + end : this.isCollapsed ? null : endContainer.getAddress( normalized ), + startOffset : startOffset, + endOffset : endOffset, + normalized : normalized, + is2 : true // It's a createBookmark2 bookmark. + }; + }, + + moveToBookmark : function( bookmark ) + { + if ( bookmark.is2 ) // Created with createBookmark2(). + { + // Get the start information. + var startContainer = this.document.getByAddress( bookmark.start, bookmark.normalized ), + startOffset = bookmark.startOffset; + + // Get the end information. + var endContainer = bookmark.end && this.document.getByAddress( bookmark.end, bookmark.normalized ), + endOffset = bookmark.endOffset; + + // Set the start boundary. + this.setStart( startContainer, startOffset ); + + // Set the end boundary. If not available, collapse it. + if ( endContainer ) + this.setEnd( endContainer, endOffset ); + else + this.collapse( true ); + } + else // Created with createBookmark(). + { + var serializable = bookmark.serializable, + startNode = serializable ? this.document.getById( bookmark.startNode ) : bookmark.startNode, + endNode = serializable ? this.document.getById( bookmark.endNode ) : bookmark.endNode; + + // Set the range start at the bookmark start node position. + this.setStartBefore( startNode ); + + // Remove it, because it may interfere in the setEndBefore call. + startNode.remove(); + + // Set the range end at the bookmark end node position, or simply + // collapse it if it is not available. + if ( endNode ) + { + this.setEndBefore( endNode ); + endNode.remove(); + } + else + this.collapse( true ); + } + }, + + getBoundaryNodes : function() + { + var startNode = this.startContainer, + endNode = this.endContainer, + startOffset = this.startOffset, + endOffset = this.endOffset, + childCount; + + if ( startNode.type == CKEDITOR.NODE_ELEMENT ) + { + childCount = startNode.getChildCount(); + if ( childCount > startOffset ) + startNode = startNode.getChild( startOffset ); + else if ( childCount < 1 ) + startNode = startNode.getPreviousSourceNode(); + else // startOffset > childCount but childCount is not 0 + { + // Try to take the node just after the current position. + startNode = startNode.$; + while ( startNode.lastChild ) + startNode = startNode.lastChild; + startNode = new CKEDITOR.dom.node( startNode ); + + // Normally we should take the next node in DFS order. But it + // is also possible that we've already reached the end of + // document. + startNode = startNode.getNextSourceNode() || startNode; + } + } + if ( endNode.type == CKEDITOR.NODE_ELEMENT ) + { + childCount = endNode.getChildCount(); + if ( childCount > endOffset ) + endNode = endNode.getChild( endOffset ).getPreviousSourceNode( true ); + else if ( childCount < 1 ) + endNode = endNode.getPreviousSourceNode(); + else // endOffset > childCount but childCount is not 0 + { + // Try to take the node just before the current position. + endNode = endNode.$; + while ( endNode.lastChild ) + endNode = endNode.lastChild; + endNode = new CKEDITOR.dom.node( endNode ); + } + } + + // Sometimes the endNode will come right before startNode for collapsed + // ranges. Fix it. (#3780) + if ( startNode.getPosition( endNode ) & CKEDITOR.POSITION_FOLLOWING ) + startNode = endNode; + + return { startNode : startNode, endNode : endNode }; + }, + + /** + * Find the node which fully contains the range. + * @param includeSelf + * @param {Boolean} ignoreTextNode Whether ignore CKEDITOR.NODE_TEXT type. + */ + getCommonAncestor : function( includeSelf , ignoreTextNode ) + { + var start = this.startContainer, + end = this.endContainer, + ancestor; + + if ( start.equals( end ) ) + { + if ( includeSelf + && start.type == CKEDITOR.NODE_ELEMENT + && this.startOffset == this.endOffset - 1 ) + ancestor = start.getChild( this.startOffset ); + else + ancestor = start; + } + else + ancestor = start.getCommonAncestor( end ); + + return ignoreTextNode && !ancestor.is ? ancestor.getParent() : ancestor; + }, + + /** + * Transforms the startContainer and endContainer properties from text + * nodes to element nodes, whenever possible. This is actually possible + * if either of the boundary containers point to a text node, and its + * offset is set to zero, or after the last char in the node. + */ + optimize : function() + { + var container = this.startContainer; + var offset = this.startOffset; + + if ( container.type != CKEDITOR.NODE_ELEMENT ) + { + if ( !offset ) + this.setStartBefore( container ); + else if ( offset >= container.getLength() ) + this.setStartAfter( container ); + } + + container = this.endContainer; + offset = this.endOffset; + + if ( container.type != CKEDITOR.NODE_ELEMENT ) + { + if ( !offset ) + this.setEndBefore( container ); + else if ( offset >= container.getLength() ) + this.setEndAfter( container ); + } + }, + + /** + * Move the range out of bookmark nodes if they're been the container. + */ + optimizeBookmark: function() + { + var startNode = this.startContainer, + endNode = this.endContainer; + + if ( startNode.is && startNode.is( 'span' ) + && startNode.hasAttribute( '_fck_bookmark' ) ) + this.setStartAt( startNode, CKEDITOR.POSITION_BEFORE_START ); + if ( endNode && endNode.is && endNode.is( 'span' ) + && endNode.hasAttribute( '_fck_bookmark' ) ) + this.setEndAt( endNode, CKEDITOR.POSITION_AFTER_END ); + }, + + trim : function( ignoreStart, ignoreEnd ) + { + var startContainer = this.startContainer, + startOffset = this.startOffset, + collapsed = this.collapsed; + if ( ( !ignoreStart || collapsed ) + && startContainer && startContainer.type == CKEDITOR.NODE_TEXT ) + { + // If the offset is zero, we just insert the new node before + // the start. + if ( !startOffset ) + { + startOffset = startContainer.getIndex(); + startContainer = startContainer.getParent(); + } + // If the offset is at the end, we'll insert it after the text + // node. + else if ( startOffset >= startContainer.getLength() ) + { + startOffset = startContainer.getIndex() + 1; + startContainer = startContainer.getParent(); + } + // In other case, we split the text node and insert the new + // node at the split point. + else + { + var nextText = startContainer.split( startOffset ); + + startOffset = startContainer.getIndex() + 1; + startContainer = startContainer.getParent(); + // Check if it is necessary to update the end boundary. + if ( !collapsed && this.startContainer.equals( this.endContainer ) ) + this.setEnd( nextText, this.endOffset - this.startOffset ); + } + + this.setStart( startContainer, startOffset ); + + if ( collapsed ) + this.collapse( true ); + } + + var endContainer = this.endContainer; + var endOffset = this.endOffset; + + if ( !( ignoreEnd || collapsed ) + && endContainer && endContainer.type == CKEDITOR.NODE_TEXT ) + { + // If the offset is zero, we just insert the new node before + // the start. + if ( !endOffset ) + { + endOffset = endContainer.getIndex(); + endContainer = endContainer.getParent(); + } + // If the offset is at the end, we'll insert it after the text + // node. + else if ( endOffset >= endContainer.getLength() ) + { + endOffset = endContainer.getIndex() + 1; + endContainer = endContainer.getParent(); + } + // In other case, we split the text node and insert the new + // node at the split point. + else + { + endContainer.split( endOffset ); + + endOffset = endContainer.getIndex() + 1; + endContainer = endContainer.getParent(); + } + + this.setEnd( endContainer, endOffset ); + } + }, + + enlarge : function( unit ) + { + switch ( unit ) + { + case CKEDITOR.ENLARGE_ELEMENT : + + if ( this.collapsed ) + return; + + // Get the common ancestor. + var commonAncestor = this.getCommonAncestor(); + + var body = this.document.getBody(); + + // For each boundary + // a. Depending on its position, find out the first node to be checked (a sibling) or, if not available, to be enlarge. + // b. Go ahead checking siblings and enlarging the boundary as much as possible until the common ancestor is not reached. After reaching the common ancestor, just save the enlargeable node to be used later. + + var startTop, endTop; + + var enlargeable, sibling, commonReached; + + // Indicates that the node can be added only if whitespace + // is available before it. + var needsWhiteSpace = false; + var isWhiteSpace; + var siblingText; + + // Process the start boundary. + + var container = this.startContainer; + var offset = this.startOffset; + + if ( container.type == CKEDITOR.NODE_TEXT ) + { + if ( offset ) + { + // Check if there is any non-space text before the + // offset. Otherwise, container is null. + container = !CKEDITOR.tools.trim( container.substring( 0, offset ) ).length && container; + + // If we found only whitespace in the node, it + // means that we'll need more whitespace to be able + // to expand. For example, can be expanded in + // "A [B]", but not in "A [B]". + needsWhiteSpace = !!container; + } + + if ( container ) + { + if ( !( sibling = container.getPrevious() ) ) + enlargeable = container.getParent(); + } + } + else + { + // If we have offset, get the node preceeding it as the + // first sibling to be checked. + if ( offset ) + sibling = container.getChild( offset - 1 ) || container.getLast(); + + // If there is no sibling, mark the container to be + // enlarged. + if ( !sibling ) + enlargeable = container; + } + + while ( enlargeable || sibling ) + { + if ( enlargeable && !sibling ) + { + // If we reached the common ancestor, mark the flag + // for it. + if ( !commonReached && enlargeable.equals( commonAncestor ) ) + commonReached = true; + + if ( !body.contains( enlargeable ) ) + break; + + // If we don't need space or this element breaks + // the line, then enlarge it. + if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' ) + { + needsWhiteSpace = false; + + // If the common ancestor has been reached, + // we'll not enlarge it immediately, but just + // mark it to be enlarged later if the end + // boundary also enlarges it. + if ( commonReached ) + startTop = enlargeable; + else + this.setStartBefore( enlargeable ); + } + + sibling = enlargeable.getPrevious(); + } + + // Check all sibling nodes preceeding the enlargeable + // node. The node wil lbe enlarged only if none of them + // blocks it. + while ( sibling ) + { + // This flag indicates that this node has + // whitespaces at the end. + isWhiteSpace = false; + + if ( sibling.type == CKEDITOR.NODE_TEXT ) + { + siblingText = sibling.getText(); + + if ( /[^\s\ufeff]/.test( siblingText ) ) + sibling = null; + + isWhiteSpace = /[\s\ufeff]$/.test( siblingText ); + } + else + { + // If this is a visible element. + // We need to check for the bookmark attribute because IE insists on + // rendering the display:none nodes we use for bookmarks. (#3363) + if ( sibling.$.offsetWidth > 0 && !sibling.getAttribute( '_fck_bookmark' ) ) + { + // We'll accept it only if we need + // whitespace, and this is an inline + // element with whitespace only. + if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] ) + { + // It must contains spaces and inline elements only. + + siblingText = sibling.getText(); + + if ( !(/[^\s\ufeff]/).test( siblingText ) ) // Spaces + Zero Width No-Break Space (U+FEFF) + sibling = null; + else + { + var allChildren = sibling.$.all || sibling.$.getElementsByTagName( '*' ); + for ( var i = 0, child ; child = allChildren[ i++ ] ; ) + { + if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] ) + { + sibling = null; + break; + } + } + } + + if ( sibling ) + isWhiteSpace = !!siblingText.length; + } + else + sibling = null; + } + } + + // A node with whitespaces has been found. + if ( isWhiteSpace ) + { + // Enlarge the last enlargeable node, if we + // were waiting for spaces. + if ( needsWhiteSpace ) + { + if ( commonReached ) + startTop = enlargeable; + else if ( enlargeable ) + this.setStartBefore( enlargeable ); + } + else + needsWhiteSpace = true; + } + + if ( sibling ) + { + var next = sibling.getPrevious(); + + if ( !enlargeable && !next ) + { + // Set the sibling as enlargeable, so it's + // parent will be get later outside this while. + enlargeable = sibling; + sibling = null; + break; + } + + sibling = next; + } + else + { + // If sibling has been set to null, then we + // need to stop enlarging. + enlargeable = null; + } + } + + if ( enlargeable ) + enlargeable = enlargeable.getParent(); + } + + // Process the end boundary. This is basically the same + // code used for the start boundary, with small changes to + // make it work in the oposite side (to the right). This + // makes it difficult to reuse the code here. So, fixes to + // the above code are likely to be replicated here. + + container = this.endContainer; + offset = this.endOffset; + + // Reset the common variables. + enlargeable = sibling = null; + commonReached = needsWhiteSpace = false; + + if ( container.type == CKEDITOR.NODE_TEXT ) + { + // Check if there is any non-space text after the + // offset. Otherwise, container is null. + container = !CKEDITOR.tools.trim( container.substring( offset ) ).length && container; + + // If we found only whitespace in the node, it + // means that we'll need more whitespace to be able + // to expand. For example, can be expanded in + // "A [B]", but not in "A [B]". + needsWhiteSpace = !( container && container.getLength() ); + + if ( container ) + { + if ( !( sibling = container.getNext() ) ) + enlargeable = container.getParent(); + } + } + else + { + // Get the node right after the boudary to be checked + // first. + sibling = container.getChild( offset ); + + if ( !sibling ) + enlargeable = container; + } + + while ( enlargeable || sibling ) + { + if ( enlargeable && !sibling ) + { + if ( !commonReached && enlargeable.equals( commonAncestor ) ) + commonReached = true; + + if ( !body.contains( enlargeable ) ) + break; + + if ( !needsWhiteSpace || enlargeable.getComputedStyle( 'display' ) != 'inline' ) + { + needsWhiteSpace = false; + + if ( commonReached ) + endTop = enlargeable; + else if ( enlargeable ) + this.setEndAfter( enlargeable ); + } + + sibling = enlargeable.getNext(); + } + + while ( sibling ) + { + isWhiteSpace = false; + + if ( sibling.type == CKEDITOR.NODE_TEXT ) + { + siblingText = sibling.getText(); + + if ( /[^\s\ufeff]/.test( siblingText ) ) + sibling = null; + + isWhiteSpace = /^[\s\ufeff]/.test( siblingText ); + } + else + { + // If this is a visible element. + // We need to check for the bookmark attribute because IE insists on + // rendering the display:none nodes we use for bookmarks. (#3363) + if ( sibling.$.offsetWidth > 0 && !sibling.getAttribute( '_fck_bookmark' ) ) + { + // We'll accept it only if we need + // whitespace, and this is an inline + // element with whitespace only. + if ( needsWhiteSpace && CKEDITOR.dtd.$removeEmpty[ sibling.getName() ] ) + { + // It must contains spaces and inline elements only. + + siblingText = sibling.getText(); + + if ( !(/[^\s\ufeff]/).test( siblingText ) ) + sibling = null; + else + { + allChildren = sibling.$.all || sibling.$.getElementsByTagName( '*' ); + for ( i = 0 ; child = allChildren[ i++ ] ; ) + { + if ( !CKEDITOR.dtd.$removeEmpty[ child.nodeName.toLowerCase() ] ) + { + sibling = null; + break; + } + } + } + + if ( sibling ) + isWhiteSpace = !!siblingText.length; + } + else + sibling = null; + } + } + + if ( isWhiteSpace ) + { + if ( needsWhiteSpace ) + { + if ( commonReached ) + endTop = enlargeable; + else + this.setEndAfter( enlargeable ); + } + } + + if ( sibling ) + { + next = sibling.getNext(); + + if ( !enlargeable && !next ) + { + enlargeable = sibling; + sibling = null; + break; + } + + sibling = next; + } + else + { + // If sibling has been set to null, then we + // need to stop enlarging. + enlargeable = null; + } + } + + if ( enlargeable ) + enlargeable = enlargeable.getParent(); + } + + // If the common ancestor can be enlarged by both boundaries, then include it also. + if ( startTop && endTop ) + { + commonAncestor = startTop.contains( endTop ) ? endTop : startTop; + + this.setStartBefore( commonAncestor ); + this.setEndAfter( commonAncestor ); + } + break; + + case CKEDITOR.ENLARGE_BLOCK_CONTENTS: + case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS: + + // Enlarging the start boundary. + var walkerRange = new CKEDITOR.dom.range( this.document ); + + body = this.document.getBody(); + + walkerRange.setStartAt( body, CKEDITOR.POSITION_AFTER_START ); + walkerRange.setEnd( this.startContainer, this.startOffset ); + + var walker = new CKEDITOR.dom.walker( walkerRange ), + blockBoundary, // The node on which the enlarging should stop. + tailBr, // + defaultGuard = CKEDITOR.dom.walker.blockBoundary( + ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ? { br : 1 } : null ), + // Record the encountered 'blockBoundary' for later use. + boundaryGuard = function( node ) + { + var retval = defaultGuard( node ); + if ( !retval ) + blockBoundary = node; + return retval; + }, + // Record the encounted 'tailBr' for later use. + tailBrGuard = function( node ) + { + var retval = boundaryGuard( node ); + if ( !retval && node.is && node.is( 'br' ) ) + tailBr = node; + return retval; + }; + + walker.guard = boundaryGuard; + + enlargeable = walker.lastBackward(); + + // It's the body which stop the enlarging if no block boundary found. + blockBoundary = blockBoundary || body; + + // Start the range at different position by comparing + // the document position of it with 'enlargeable' node. + this.setStartAt( + blockBoundary, + !blockBoundary.is( 'br' ) && + ( !enlargeable && this.checkStartOfBlock() + || enlargeable && blockBoundary.contains( enlargeable ) ) ? + CKEDITOR.POSITION_AFTER_START : + CKEDITOR.POSITION_AFTER_END ); + + // Enlarging the end boundary. + walkerRange = this.clone(); + walkerRange.collapse(); + walkerRange.setEndAt( body, CKEDITOR.POSITION_BEFORE_END ); + walker = new CKEDITOR.dom.walker( walkerRange ); + + // tailBrGuard only used for on range end. + walker.guard = ( unit == CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS ) ? + tailBrGuard : boundaryGuard; + blockBoundary = null; + // End the range right before the block boundary node. + + enlargeable = walker.lastForward(); + + // It's the body which stop the enlarging if no block boundary found. + blockBoundary = blockBoundary || body; + + // Start the range at different position by comparing + // the document position of it with 'enlargeable' node. + this.setEndAt( + blockBoundary, + ( !enlargeable && this.checkEndOfBlock() + || enlargeable && blockBoundary.contains( enlargeable ) ) ? + CKEDITOR.POSITION_BEFORE_END : + CKEDITOR.POSITION_BEFORE_START ); + // We must include the
at the end of range if there's + // one and we're expanding list item contents + if ( tailBr ) + this.setEndAfter( tailBr ); + } + }, + + /** + * Inserts a node at the start of the range. The range will be expanded + * the contain the node. + */ + insertNode : function( node ) + { + this.optimizeBookmark(); + this.trim( false, true ); + + var startContainer = this.startContainer; + var startOffset = this.startOffset; + + var nextNode = startContainer.getChild( startOffset ); + + if ( nextNode ) + node.insertBefore( nextNode ); + else + startContainer.append( node ); + + // Check if we need to update the end boundary. + if ( node.getParent().equals( this.endContainer ) ) + this.endOffset++; + + // Expand the range to embrace the new node. + this.setStartBefore( node ); + }, + + moveToPosition : function( node, position ) + { + this.setStartAt( node, position ); + this.collapse( true ); + }, + + selectNodeContents : function( node ) + { + this.setStart( node, 0 ); + this.setEnd( node, node.type == CKEDITOR.NODE_TEXT ? node.getLength() : node.getChildCount() ); + }, + + /** + * Sets the start position of a Range. + * @param {CKEDITOR.dom.node} startNode The node to start the range. + * @param {Number} startOffset An integer greater than or equal to zero + * representing the offset for the start of the range from the start + * of startNode. + */ + setStart : function( startNode, startOffset ) + { + // W3C requires a check for the new position. If it is after the end + // boundary, the range should be collapsed to the new start. It seams + // we will not need this check for our use of this class so we can + // ignore it for now. + + this.startContainer = startNode; + this.startOffset = startOffset; + + if ( !this.endContainer ) + { + this.endContainer = startNode; + this.endOffset = startOffset; + } + + updateCollapsed( this ); + }, + + /** + * Sets the end position of a Range. + * @param {CKEDITOR.dom.node} endNode The node to end the range. + * @param {Number} endOffset An integer greater than or equal to zero + * representing the offset for the end of the range from the start + * of endNode. + */ + setEnd : function( endNode, endOffset ) + { + // W3C requires a check for the new position. If it is before the start + // boundary, the range should be collapsed to the new end. It seams we + // will not need this check for our use of this class so we can ignore + // it for now. + + this.endContainer = endNode; + this.endOffset = endOffset; + + if ( !this.startContainer ) + { + this.startContainer = endNode; + this.startOffset = endOffset; + } + + updateCollapsed( this ); + }, + + setStartAfter : function( node ) + { + this.setStart( node.getParent(), node.getIndex() + 1 ); + }, + + setStartBefore : function( node ) + { + this.setStart( node.getParent(), node.getIndex() ); + }, + + setEndAfter : function( node ) + { + this.setEnd( node.getParent(), node.getIndex() + 1 ); + }, + + setEndBefore : function( node ) + { + this.setEnd( node.getParent(), node.getIndex() ); + }, + + setStartAt : function( node, position ) + { + switch( position ) + { + case CKEDITOR.POSITION_AFTER_START : + this.setStart( node, 0 ); + break; + + case CKEDITOR.POSITION_BEFORE_END : + if ( node.type == CKEDITOR.NODE_TEXT ) + this.setStart( node, node.getLength() ); + else + this.setStart( node, node.getChildCount() ); + break; + + case CKEDITOR.POSITION_BEFORE_START : + this.setStartBefore( node ); + break; + + case CKEDITOR.POSITION_AFTER_END : + this.setStartAfter( node ); + } + + updateCollapsed( this ); + }, + + setEndAt : function( node, position ) + { + switch( position ) + { + case CKEDITOR.POSITION_AFTER_START : + this.setEnd( node, 0 ); + break; + + case CKEDITOR.POSITION_BEFORE_END : + if ( node.type == CKEDITOR.NODE_TEXT ) + this.setEnd( node, node.getLength() ); + else + this.setEnd( node, node.getChildCount() ); + break; + + case CKEDITOR.POSITION_BEFORE_START : + this.setEndBefore( node ); + break; + + case CKEDITOR.POSITION_AFTER_END : + this.setEndAfter( node ); + } + + updateCollapsed( this ); + }, + + fixBlock : function( isStart, blockTag ) + { + var bookmark = this.createBookmark(), + fixedBlock = this.document.createElement( blockTag ); + + this.collapse( isStart ); + + this.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS ); + + this.extractContents().appendTo( fixedBlock ); + fixedBlock.trim(); + + if ( !CKEDITOR.env.ie ) + fixedBlock.appendBogus(); + + this.insertNode( fixedBlock ); + + this.moveToBookmark( bookmark ); + + return fixedBlock; + }, + + splitBlock : function( blockTag ) + { + var startPath = new CKEDITOR.dom.elementPath( this.startContainer ), + endPath = new CKEDITOR.dom.elementPath( this.endContainer ); + + var startBlockLimit = startPath.blockLimit, + endBlockLimit = endPath.blockLimit; + + var startBlock = startPath.block, + endBlock = endPath.block; + + var elementPath = null; + // Do nothing if the boundaries are in different block limits. + if ( !startBlockLimit.equals( endBlockLimit ) ) + return null; + + // Get or fix current blocks. + if ( blockTag != 'br' ) + { + if ( !startBlock ) + { + startBlock = this.fixBlock( true, blockTag ); + endBlock = new CKEDITOR.dom.elementPath( this.endContainer ).block; + } + + if ( !endBlock ) + endBlock = this.fixBlock( false, blockTag ); + } + + // Get the range position. + var isStartOfBlock = startBlock && this.checkStartOfBlock(), + isEndOfBlock = endBlock && this.checkEndOfBlock(); + + // Delete the current contents. + // TODO: Why is 2.x doing CheckIsEmpty()? + this.deleteContents(); + + if ( startBlock && startBlock.equals( endBlock ) ) + { + if ( isEndOfBlock ) + { + elementPath = new CKEDITOR.dom.elementPath( this.startContainer ); + this.moveToPosition( endBlock, CKEDITOR.POSITION_AFTER_END ); + endBlock = null; + } + else if ( isStartOfBlock ) + { + elementPath = new CKEDITOR.dom.elementPath( this.startContainer ); + this.moveToPosition( startBlock, CKEDITOR.POSITION_BEFORE_START ); + startBlock = null; + } + else + { + endBlock = this.splitElement( startBlock ); + + // In Gecko, the last child node must be a bogus
. + // Note: bogus
added under
    or
      would cause + // lists to be incorrectly rendered. + if ( !CKEDITOR.env.ie && !startBlock.is( 'ul', 'ol') ) + startBlock.appendBogus() ; + } + } + + return { + previousBlock : startBlock, + nextBlock : endBlock, + wasStartOfBlock : isStartOfBlock, + wasEndOfBlock : isEndOfBlock, + elementPath : elementPath + }; + }, + + /** + * Branch the specified element from the collapsed range position and + * place the caret between the two result branches. + * Note: The range must be collapsed and been enclosed by this element. + * @param {CKEDITOR.dom.element} element + * @return {CKEDITOR.dom.element} Root element of the new branch after the split. + */ + splitElement : function( toSplit ) + { + if ( !this.collapsed ) + return null; + + // Extract the contents of the block from the selection point to the end + // of its contents. + this.setEndAt( toSplit, CKEDITOR.POSITION_BEFORE_END ); + var documentFragment = this.extractContents(); + + // Duplicate the element after it. + var clone = toSplit.clone( false ); + + // Place the extracted contents into the duplicated element. + documentFragment.appendTo( clone ); + clone.insertAfter( toSplit ); + this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END ); + return clone; + }, + + /** + * Check whether current range is on the inner edge of the specified element. + * @param {Number} checkType ( CKEDITOR.START | CKEDITOR.END ) The checking side. + * @param {CKEDITOR.dom.element} element The target element to check. + */ + checkBoundaryOfElement : function( element, checkType ) + { + var walkerRange = this.clone(); + // Expand the range to element boundary. + walkerRange[ checkType == CKEDITOR.START ? + 'setStartAt' : 'setEndAt' ] + ( element, checkType == CKEDITOR.START ? + CKEDITOR.POSITION_AFTER_START + : CKEDITOR.POSITION_BEFORE_END ); + + var walker = new CKEDITOR.dom.walker( walkerRange ), + retval = false; + walker.evaluator = elementBoundaryEval; + return walker[ checkType == CKEDITOR.START ? + 'checkBackward' : 'checkForward' ](); + }, + // Calls to this function may produce changes to the DOM. The range may + // be updated to reflect such changes. + checkStartOfBlock : function() + { + var startContainer = this.startContainer, + startOffset = this.startOffset; + + // If the starting node is a text node, and non-empty before the offset, + // then we're surely not at the start of block. + if ( startOffset && startContainer.type == CKEDITOR.NODE_TEXT ) + { + var textBefore = CKEDITOR.tools.ltrim( startContainer.substring( 0, startOffset ) ); + if ( textBefore.length ) + return false; + } + + // Antecipate the trim() call here, so the walker will not make + // changes to the DOM, which would not get reflected into this + // range otherwise. + this.trim(); + + // We need to grab the block element holding the start boundary, so + // let's use an element path for it. + var path = new CKEDITOR.dom.elementPath( this.startContainer ); + + // Creates a range starting at the block start until the range start. + var walkerRange = this.clone(); + walkerRange.collapse( true ); + walkerRange.setStartAt( path.block || path.blockLimit, CKEDITOR.POSITION_AFTER_START ); + + var walker = new CKEDITOR.dom.walker( walkerRange ); + walker.evaluator = getCheckStartEndBlockEvalFunction( true ); + + return walker.checkBackward(); + }, + + checkEndOfBlock : function() + { + var endContainer = this.endContainer, + endOffset = this.endOffset; + + // If the ending node is a text node, and non-empty after the offset, + // then we're surely not at the end of block. + if ( endContainer.type == CKEDITOR.NODE_TEXT ) + { + var textAfter = CKEDITOR.tools.rtrim( endContainer.substring( endOffset ) ); + if ( textAfter.length ) + return false; + } + + // Antecipate the trim() call here, so the walker will not make + // changes to the DOM, which would not get reflected into this + // range otherwise. + this.trim(); + + // We need to grab the block element holding the start boundary, so + // let's use an element path for it. + var path = new CKEDITOR.dom.elementPath( this.endContainer ); + + // Creates a range starting at the block start until the range start. + var walkerRange = this.clone(); + walkerRange.collapse( false ); + walkerRange.setEndAt( path.block || path.blockLimit, CKEDITOR.POSITION_BEFORE_END ); + + var walker = new CKEDITOR.dom.walker( walkerRange ); + walker.evaluator = getCheckStartEndBlockEvalFunction( false ); + + return walker.checkForward(); + }, + + /** + * Moves the range boundaries to the first/end editing point inside an + * element. For example, in an element tree like + * "<p><b><i></i></b> Text</p>", the start editing point is + * "<p><b><i>^</i></b> Text</p>" (inside <i>). + * @param {CKEDITOR.dom.element} el The element into which look for the + * editing spot. + * @param {Boolean} isMoveToEnd Whether move to the end editable position. + */ + moveToElementEditablePosition : function( el, isMoveToEnd ) + { + var isEditable; + + while ( el && el.type == CKEDITOR.NODE_ELEMENT ) + { + isEditable = el.isEditable(); + + // If an editable element is found, move inside it. + if ( isEditable ) + this.moveToPosition( el, isMoveToEnd ? + CKEDITOR.POSITION_BEFORE_END : + CKEDITOR.POSITION_AFTER_START ); + // Stop immediately if we've found a non editable inline element (e.g ). + else if ( CKEDITOR.dtd.$inline[ el.getName() ] ) + { + this.moveToPosition( el, isMoveToEnd ? + CKEDITOR.POSITION_AFTER_END : + CKEDITOR.POSITION_BEFORE_START ); + return true; + } + + // Non-editable non-inline elements are to be bypassed, getting the next one. + if ( CKEDITOR.dtd.$empty[ el.getName() ] ) + el = el[ isMoveToEnd ? 'getPrevious' : 'getNext' ]( nonWhitespaceOrBookmarkEval ); + else + el = el[ isMoveToEnd ? 'getLast' : 'getFirst' ]( nonWhitespaceOrBookmarkEval ); + + // Stop immediately if we've found a text node. + if ( el && el.type == CKEDITOR.NODE_TEXT ) + { + this.moveToPosition( el, isMoveToEnd ? + CKEDITOR.POSITION_AFTER_END : + CKEDITOR.POSITION_BEFORE_START ); + return true; + } + } + + return isEditable; + }, + + /** + *@see {CKEDITOR.dom.range.moveToElementEditablePosition} + */ + moveToElementEditStart : function( target ) + { + return this.moveToElementEditablePosition( target ); + }, + + /** + *@see {CKEDITOR.dom.range.moveToElementEditablePosition} + */ + moveToElementEditEnd : function( target ) + { + return this.moveToElementEditablePosition( target, true ); + }, + + /** + * Get the single node enclosed within the range if there's one. + */ + getEnclosedNode : function() + { + var walkerRange = this.clone(), + walker = new CKEDITOR.dom.walker( walkerRange ), + isNotBookmarks = CKEDITOR.dom.walker.bookmark( true ), + isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), + evaluator = function( node ) + { + return isNotWhitespaces( node ) && isNotBookmarks( node ); + }; + walkerRange.evaluator = evaluator; + var node = walker.next(); + walker.reset(); + return node && node.equals( walker.previous() ) ? node : null; + }, + + getTouchedStartNode : function() + { + var container = this.startContainer ; + + if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT ) + return container ; + + return container.getChild( this.startOffset ) || container ; + }, + + getTouchedEndNode : function() + { + var container = this.endContainer ; + + if ( this.collapsed || container.type != CKEDITOR.NODE_ELEMENT ) + return container ; + + return container.getChild( this.endOffset - 1 ) || container ; + } + }; +})(); + +CKEDITOR.POSITION_AFTER_START = 1; // ^contents "^text" +CKEDITOR.POSITION_BEFORE_END = 2; // contents^ "text^" +CKEDITOR.POSITION_BEFORE_START = 3; // ^contents ^"text" +CKEDITOR.POSITION_AFTER_END = 4; // contents^ "text" + +CKEDITOR.ENLARGE_ELEMENT = 1; +CKEDITOR.ENLARGE_BLOCK_CONTENTS = 2; +CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS = 3; + +/** + * Check boundary types. + * @see CKEDITOR.dom.range::checkBoundaryOfElement + */ +CKEDITOR.START = 1; +CKEDITOR.END = 2; +CKEDITOR.STARTEND = 3; diff --git a/edgware/static/ckeditor/_source/core/dom/text.js b/edgware/static/ckeditor/_source/core/dom/text.js new file mode 100755 index 0000000..a1eb690 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/text.js @@ -0,0 +1,123 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents + * a DOM text node. + */ + +/** + * Represents a DOM text node. + * @constructor + * @augments CKEDITOR.dom.node + * @param {Object|String} text A native DOM text node or a string containing + * the text to use to create a new text node. + * @param {CKEDITOR.dom.document} [ownerDocument] The document that will contain + * the node in case of new node creation. Defaults to the current document. + * @example + * var nativeNode = document.createTextNode( 'Example' ); + * var text = CKEDITOR.dom.text( nativeNode ); + * @example + * var text = CKEDITOR.dom.text( 'Example' ); + */ +CKEDITOR.dom.text = function( text, ownerDocument ) +{ + if ( typeof text == 'string' ) + text = ( ownerDocument ? ownerDocument.$ : document ).createTextNode( text ); + + // Theoretically, we should call the base constructor here + // (not CKEDITOR.dom.node though). But, IE doesn't support expando + // properties on text node, so the features provided by domObject will not + // work for text nodes (which is not a big issue for us). + // + // CKEDITOR.dom.domObject.call( this, element ); + + /** + * The native DOM text node represented by this class instance. + * @type Object + * @example + * var element = new CKEDITOR.dom.text( 'Example' ); + * alert( element.$.nodeType ); // "3" + */ + this.$ = text; +}; + +CKEDITOR.dom.text.prototype = new CKEDITOR.dom.node(); + +CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype, + /** @lends CKEDITOR.dom.text.prototype */ + { + /** + * The node type. This is a constant value set to + * {@link CKEDITOR.NODE_TEXT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_TEXT, + + getLength : function() + { + return this.$.nodeValue.length; + }, + + getText : function() + { + return this.$.nodeValue; + }, + + /** + * Breaks this text node into two nodes at the specified offset, + * keeping both in the tree as siblings. This node then only contains + * all the content up to the offset point. A new text node, which is + * inserted as the next sibling of this node, contains all the content + * at and after the offset point. When the offset is equal to the + * length of this node, the new node has no data. + * @param {Number} The position at which to split, starting from zero. + * @returns {CKEDITOR.dom.text} The new text node. + */ + split : function( offset ) + { + // If the offset is after the last char, IE creates the text node + // on split, but don't include it into the DOM. So, we have to do + // that manually here. + if ( CKEDITOR.env.ie && offset == this.getLength() ) + { + var next = this.getDocument().createText( '' ); + next.insertAfter( this ); + return next; + } + + var doc = this.getDocument(); + var retval = new CKEDITOR.dom.text( this.$.splitText( offset ), doc ); + + // IE BUG: IE8 does not update the childNodes array in DOM after splitText(), + // we need to make some DOM changes to make it update. (#3436) + if ( CKEDITOR.env.ie8 ) + { + var workaround = new CKEDITOR.dom.text( '', doc ); + workaround.insertAfter( retval ); + workaround.remove(); + } + + return retval; + }, + + /** + * Extracts characters from indexA up to but not including indexB. + * @param {Number} indexA An integer between 0 and one less than the + * length of the text. + * @param {Number} [indexB] An integer between 0 and the length of the + * string. If omitted, extracts characters to the end of the text. + */ + substring : function( indexA, indexB ) + { + // We need the following check due to a Firefox bug + // https://bugzilla.mozilla.org/show_bug.cgi?id=458886 + if ( typeof indexB != 'number' ) + return this.$.nodeValue.substr( indexA ); + else + return this.$.nodeValue.substring( indexA, indexB ); + } + }); diff --git a/edgware/static/ckeditor/_source/core/dom/walker.js b/edgware/static/ckeditor/_source/core/dom/walker.js new file mode 100755 index 0000000..04ff21e --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/walker.js @@ -0,0 +1,451 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + // This function is to be called under a "walker" instance scope. + function iterate( rtl, breakOnFalse ) + { + // Return null if we have reached the end. + if ( this._.end ) + return null; + + var node, + range = this.range, + guard, + userGuard = this.guard, + type = this.type, + getSourceNodeFn = ( rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' ); + + // This is the first call. Initialize it. + if ( !this._.start ) + { + this._.start = 1; + + // Trim text nodes and optmize the range boundaries. DOM changes + // may happen at this point. + range.trim(); + + // A collapsed range must return null at first call. + if ( range.collapsed ) + { + this.end(); + return null; + } + } + + // Create the LTR guard function, if necessary. + if ( !rtl && !this._.guardLTR ) + { + // Gets the node that stops the walker when going LTR. + var limitLTR = range.endContainer, + blockerLTR = limitLTR.getChild( range.endOffset ); + + this._.guardLTR = function( node, movingOut ) + { + return ( ( !movingOut || !limitLTR.equals( node ) ) + && ( !blockerLTR || !node.equals( blockerLTR ) ) + && ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) ); + }; + } + + // Create the RTL guard function, if necessary. + if ( rtl && !this._.guardRTL ) + { + // Gets the node that stops the walker when going LTR. + var limitRTL = range.startContainer, + blockerRTL = ( range.startOffset > 0 ) && limitRTL.getChild( range.startOffset - 1 ); + + this._.guardRTL = function( node, movingOut ) + { + return ( ( !movingOut || !limitRTL.equals( node ) ) + && ( !blockerRTL || !node.equals( blockerRTL ) ) + && ( node.type != CKEDITOR.NODE_ELEMENT || !movingOut || node.getName() != 'body' ) ); + }; + } + + // Define which guard function to use. + var stopGuard = rtl ? this._.guardRTL : this._.guardLTR; + + // Make the user defined guard function participate in the process, + // otherwise simply use the boundary guard. + if ( userGuard ) + { + guard = function( node, movingOut ) + { + if ( stopGuard( node, movingOut ) === false ) + return false; + + return userGuard( node, movingOut ); + }; + } + else + guard = stopGuard; + + if ( this.current ) + node = this.current[ getSourceNodeFn ]( false, type, guard ); + else + { + // Get the first node to be returned. + + if ( rtl ) + { + node = range.endContainer; + + if ( range.endOffset > 0 ) + { + node = node.getChild( range.endOffset - 1 ); + if ( guard( node ) === false ) + node = null; + } + else + node = ( guard ( node ) === false ) ? + null : node.getPreviousSourceNode( true, type, guard ); + } + else + { + node = range.startContainer; + node = node.getChild( range.startOffset ); + + if ( node ) + { + if ( guard( node ) === false ) + node = null; + } + else + node = ( guard ( range.startContainer ) === false ) ? + null : range.startContainer.getNextSourceNode( true, type, guard ) ; + } + } + + while ( node && !this._.end ) + { + this.current = node; + + if ( !this.evaluator || this.evaluator( node ) !== false ) + { + if ( !breakOnFalse ) + return node; + } + else if ( breakOnFalse && this.evaluator ) + return false; + + node = node[ getSourceNodeFn ]( false, type, guard ); + } + + this.end(); + return this.current = null; + } + + function iterateToLast( rtl ) + { + var node, last = null; + + while ( ( node = iterate.call( this, rtl ) ) ) + last = node; + + return last; + } + + CKEDITOR.dom.walker = CKEDITOR.tools.createClass( + { + /** + * Utility class to "walk" the DOM inside a range boundaries. If + * necessary, partially included nodes (text nodes) are broken to + * reflect the boundaries limits, so DOM and range changes may happen. + * Outside changes to the range may break the walker. + * + * The walker may return nodes that are not totaly included into the + * range boundaires. Let's take the following range representation, + * where the square brackets indicate the boundaries: + * + * [<p>Some <b>sample] text</b> + * + * While walking forward into the above range, the following nodes are + * returned: <p>, "Some ", <b> and "sample". Going + * backwards instead we have: "sample" and "Some ". So note that the + * walker always returns nodes when "entering" them, but not when + * "leaving" them. The guard function is instead called both when + * entering and leaving nodes. + * + * @constructor + * @param {CKEDITOR.dom.range} range The range within which walk. + */ + $ : function( range ) + { + this.range = range; + + /** + * A function executed for every matched node, to check whether + * it's to be considered into the walk or not. If not provided, all + * matched nodes are considered good. + * If the function returns "false" the node is ignored. + * @name CKEDITOR.dom.walker.prototype.evaluator + * @property + * @type Function + */ + // this.evaluator = null; + + /** + * A function executed for every node the walk pass by to check + * whether the walk is to be finished. It's called when both + * entering and exiting nodes, as well as for the matched nodes. + * If this function returns "false", the walking ends and no more + * nodes are evaluated. + * @name CKEDITOR.dom.walker.prototype.guard + * @property + * @type Function + */ + // this.guard = null; + + /** @private */ + this._ = {}; + }, + +// statics : +// { +// /* Creates a CKEDITOR.dom.walker instance to walk inside DOM boundaries set by nodes. +// * @param {CKEDITOR.dom.node} startNode The node from wich the walk +// * will start. +// * @param {CKEDITOR.dom.node} [endNode] The last node to be considered +// * in the walk. No more nodes are retrieved after touching or +// * passing it. If not provided, the walker stops at the +// * <body> closing boundary. +// * @returns {CKEDITOR.dom.walker} A DOM walker for the nodes between the +// * provided nodes. +// */ +// createOnNodes : function( startNode, endNode, startInclusive, endInclusive ) +// { +// var range = new CKEDITOR.dom.range(); +// if ( startNode ) +// range.setStartAt( startNode, startInclusive ? CKEDITOR.POSITION_BEFORE_START : CKEDITOR.POSITION_AFTER_END ) ; +// else +// range.setStartAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_AFTER_START ) ; +// +// if ( endNode ) +// range.setEndAt( endNode, endInclusive ? CKEDITOR.POSITION_AFTER_END : CKEDITOR.POSITION_BEFORE_START ) ; +// else +// range.setEndAt( startNode.getDocument().getBody(), CKEDITOR.POSITION_BEFORE_END ) ; +// +// return new CKEDITOR.dom.walker( range ); +// } +// }, +// + proto : + { + /** + * Stop walking. No more nodes are retrieved if this function gets + * called. + */ + end : function() + { + this._.end = 1; + }, + + /** + * Retrieves the next node (at right). + * @returns {CKEDITOR.dom.node} The next node or null if no more + * nodes are available. + */ + next : function() + { + return iterate.call( this ); + }, + + /** + * Retrieves the previous node (at left). + * @returns {CKEDITOR.dom.node} The previous node or null if no more + * nodes are available. + */ + previous : function() + { + return iterate.call( this, true ); + }, + + /** + * Check all nodes at right, executing the evaluation fuction. + * @returns {Boolean} "false" if the evaluator function returned + * "false" for any of the matched nodes. Otherwise "true". + */ + checkForward : function() + { + return iterate.call( this, false, true ) !== false; + }, + + /** + * Check all nodes at left, executing the evaluation fuction. + * @returns {Boolean} "false" if the evaluator function returned + * "false" for any of the matched nodes. Otherwise "true". + */ + checkBackward : function() + { + return iterate.call( this, true, true ) !== false; + }, + + /** + * Executes a full walk forward (to the right), until no more nodes + * are available, returning the last valid node. + * @returns {CKEDITOR.dom.node} The last node at the right or null + * if no valid nodes are available. + */ + lastForward : function() + { + return iterateToLast.call( this ); + }, + + /** + * Executes a full walk backwards (to the left), until no more nodes + * are available, returning the last valid node. + * @returns {CKEDITOR.dom.node} The last node at the left or null + * if no valid nodes are available. + */ + lastBackward : function() + { + return iterateToLast.call( this, true ); + }, + + reset : function() + { + delete this.current; + this._ = {}; + } + + } + }); + + /* + * Anything whose display computed style is block, list-item, table, + * table-row-group, table-header-group, table-footer-group, table-row, + * table-column-group, table-column, table-cell, table-caption, or whose node + * name is hr, br (when enterMode is br only) is a block boundary. + */ + var blockBoundaryDisplayMatch = + { + block : 1, + 'list-item' : 1, + table : 1, + 'table-row-group' : 1, + 'table-header-group' : 1, + 'table-footer-group' : 1, + 'table-row' : 1, + 'table-column-group' : 1, + 'table-column' : 1, + 'table-cell' : 1, + 'table-caption' : 1 + }, + blockBoundaryNodeNameMatch = { hr : 1 }; + + CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames ) + { + var nodeNameMatches = CKEDITOR.tools.extend( {}, + blockBoundaryNodeNameMatch, customNodeNames || {} ); + + return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] || + nodeNameMatches[ this.getName() ]; + }; + + CKEDITOR.dom.walker.blockBoundary = function( customNodeNames ) + { + return function( node , type ) + { + return ! ( node.type == CKEDITOR.NODE_ELEMENT + && node.isBlockBoundary( customNodeNames ) ); + }; + }; + + CKEDITOR.dom.walker.listItemBoundary = function() + { + return this.blockBoundary( { br : 1 } ); + }; + /** + * Whether the node is a bookmark node's inner text node. + */ + CKEDITOR.dom.walker.bookmarkContents = function( node ) + { + }, + + /** + * Whether the to-be-evaluated node is a bookmark node OR bookmark node + * inner contents. + * @param {Boolean} contentOnly Whether only test againt the text content of + * bookmark node instead of the element itself(default). + * @param {Boolean} isReject Whether should return 'false' for the bookmark + * node instead of 'true'(default). + */ + CKEDITOR.dom.walker.bookmark = function( contentOnly, isReject ) + { + function isBookmarkNode( node ) + { + return ( node && node.getName + && node.getName() == 'span' + && node.hasAttribute('_fck_bookmark') ); + } + + return function( node ) + { + var isBookmark, parent; + // Is bookmark inner text node? + isBookmark = ( node && !node.getName && ( parent = node.getParent() ) + && isBookmarkNode( parent ) ); + // Is bookmark node? + isBookmark = contentOnly ? isBookmark : isBookmark || isBookmarkNode( node ); + return isReject ^ isBookmark; + }; + }; + + /** + * Whether the node is a text node containing only whitespaces characters. + * @param isReject + */ + CKEDITOR.dom.walker.whitespaces = function( isReject ) + { + return function( node ) + { + var isWhitespace = node && ( node.type == CKEDITOR.NODE_TEXT ) + && !CKEDITOR.tools.trim( node.getText() ); + return isReject ^ isWhitespace; + }; + }; + + /** + * Whether the node is invisible in wysiwyg mode. + * @param isReject + */ + CKEDITOR.dom.walker.invisible = function( isReject ) + { + var whitespace = CKEDITOR.dom.walker.whitespaces(); + return function( node ) + { + // Nodes that take no spaces in wysiwyg: + // 1. White-spaces but not including NBSP; + // 2. Empty inline elements, e.g. we're checking here + // 'offsetHeight' instead of 'offsetWidth' for properly excluding + // all sorts of empty paragraph, e.g.
      . + var isInvisible = whitespace( node ) || node.is && !node.$.offsetHeight; + return isReject ^ isInvisible; + }; + }; + + var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/, + isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), + isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true ), + fillerEvaluator = function( element ) + { + return isNotBookmark( element ) && isNotWhitespaces( element ); + }; + + // Check if there's a filler node at the end of an element, and return it. + CKEDITOR.dom.element.prototype.getBogus = function () + { + var tail = this.getLast( fillerEvaluator ); + if ( tail && ( !CKEDITOR.env.ie ? tail.is && tail.is( 'br' ) + : tail.getText && tailNbspRegex.test( tail.getText() ) ) ) + { + return tail; + } + return false; + }; + +})(); diff --git a/edgware/static/ckeditor/_source/core/dom/window.js b/edgware/static/ckeditor/_source/core/dom/window.js new file mode 100755 index 0000000..1a4050d --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dom/window.js @@ -0,0 +1,96 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which + * represents a DOM document. + */ + +/** + * Represents a DOM window. + * @constructor + * @augments CKEDITOR.dom.domObject + * @param {Object} domWindow A native DOM window. + * @example + * var document = new CKEDITOR.dom.window( window ); + */ +CKEDITOR.dom.window = function( domWindow ) +{ + CKEDITOR.dom.domObject.call( this, domWindow ); +}; + +CKEDITOR.dom.window.prototype = new CKEDITOR.dom.domObject(); + +CKEDITOR.tools.extend( CKEDITOR.dom.window.prototype, + /** @lends CKEDITOR.dom.window.prototype */ + { + /** + * Moves the selection focus to this window. + * @function + * @example + * var win = new CKEDITOR.dom.window( window ); + * win.focus(); + */ + focus : function() + { + // Webkit is sometimes failed to focus iframe, blur it first(#3835). + if( CKEDITOR.env.webkit && this.$.parent ) + this.$.parent.focus(); + this.$.focus(); + }, + + /** + * Gets the width and height of this window's viewable area. + * @function + * @returns {Object} An object with the "width" and "height" + * properties containing the size. + * @example + * var win = new CKEDITOR.dom.window( window ); + * var size = win.getViewPaneSize(); + * alert( size.width ); + * alert( size.height ); + */ + getViewPaneSize : function() + { + var doc = this.$.document, + stdMode = doc.compatMode == 'CSS1Compat'; + return { + width : ( stdMode ? doc.documentElement.clientWidth : doc.body.clientWidth ) || 0, + height : ( stdMode ? doc.documentElement.clientHeight : doc.body.clientHeight ) || 0 + }; + }, + + /** + * Gets the current position of the window's scroll. + * @function + * @returns {Object} An object with the "x" and "y" properties + * containing the scroll position. + * @example + * var win = new CKEDITOR.dom.window( window ); + * var pos = win.getScrollPosition(); + * alert( pos.x ); + * alert( pos.y ); + */ + getScrollPosition : function() + { + var $ = this.$; + + if ( 'pageXOffset' in $ ) + { + return { + x : $.pageXOffset || 0, + y : $.pageYOffset || 0 + }; + } + else + { + var doc = $.document; + return { + x : doc.documentElement.scrollLeft || doc.body.scrollLeft || 0, + y : doc.documentElement.scrollTop || doc.body.scrollTop || 0 + }; + } + } + }); diff --git a/edgware/static/ckeditor/_source/core/dtd.js b/edgware/static/ckeditor/_source/core/dtd.js new file mode 100755 index 0000000..f569ed0 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/dtd.js @@ -0,0 +1,233 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.dtd} object, which holds the DTD + * mapping for XHTML 1.0 Transitional. This file was automatically + * generated from the file: xhtml1-transitional.dtd. + */ + +/** + * Holds and object representation of the HTML DTD to be used by the editor in + * its internal operations. + * + * Each element in the DTD is represented by a + * property in this object. Each property contains the list of elements that + * can be contained by the element. Text is represented by the "#" property. + * + * Several special grouping properties are also available. Their names start + * with the "$" character. + * @namespace + * @example + * // Check if "div" can be contained in a "p" element. + * alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] ); "false" + * @example + * // Check if "p" can be contained in a "div" element. + * alert( !!CKEDITOR.dtd[ 'div' ][ 'p' ] ); "true" + * @example + * // Check if "p" is a block element. + * alert( !!CKEDITOR.dtd.$block[ 'p' ] ); "true" + */ +CKEDITOR.dtd = (function() +{ + var X = CKEDITOR.tools.extend, + + A = {isindex:1,fieldset:1}, + B = {input:1,button:1,select:1,textarea:1,label:1}, + C = X({a:1},B), + D = X({iframe:1},C), + E = {hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1}, + F = {ins:1,del:1,script:1}, + G = X({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},F), + H = X({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},G), + I = X({p:1},H), + J = X({iframe:1},H,B), + K = {img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1}, + + L = X({a:1},J), + M = {tr:1}, + N = {'#':1}, + O = X({param:1},K), + P = X({form:1},A,D,E,I), + Q = {li:1}, + R = {style:1,script:1}, + S = {base:1,link:1,meta:1,title:1}, + T = X(S,R), + U = {head:1,body:1}, + V = {html:1}; + + var block = {address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1}; + + return /** @lends CKEDITOR.dtd */ { + + // The "$" items have been added manually. + + // List of elements living outside body. + $nonBodyContent: X(V,U,S), + + /** + * List of block elements, like "p" or "div". + * @type Object + * @example + */ + $block : block, + + /** + * List of block limit elements. + * @type Object + * @example + */ + $blockLimit : { body:1,div:1,td:1,th:1,caption:1,form:1 }, + + $inline : L, // Just like span. + + $body : X({script:1,style:1}, block), + + $cdata : {script:1,style:1}, + + /** + * List of empty (self-closing) elements, like "br" or "img". + * @type Object + * @example + */ + $empty : {area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1}, + + /** + * List of list item elements, like "li" or "dd". + * @type Object + * @example + */ + $listItem : {dd:1,dt:1,li:1}, + + /** + * List of list root elements. + * @type Object + * @example + */ + $list: { ul:1,ol:1,dl:1}, + + /** + * Elements that accept text nodes, but are not possible to edit into + * the browser. + * @type Object + * @example + */ + $nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1}, + + /** + * List of elements that can be ignored if empty, like "b" or "span". + * @type Object + * @example + */ + $removeEmpty : {abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1}, + + /** + * List of elements that have tabindex set to zero by default. + * @type Object + * @example + */ + $tabIndex : {a:1,area:1,button:1,input:1,object:1,select:1,textarea:1}, + + /** + * List of elements used inside the "table" element, like "tbody" or "td". + * @type Object + * @example + */ + $tableContent : {caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}, + + html: U, + head: T, + style: N, + script: N, + body: P, + base: {}, + link: {}, + meta: {}, + title: N, + col : {}, + tr : {td:1,th:1}, + img : {}, + colgroup : {col:1}, + noscript : P, + td : P, + br : {}, + th : P, + center : P, + kbd : L, + button : X(I,E), + basefont : {}, + h5 : L, + h4 : L, + samp : L, + h6 : L, + ol : Q, + h1 : L, + h3 : L, + option : N, + h2 : L, + form : X(A,D,E,I), + select : {optgroup:1,option:1}, + font : L, + ins : L, + menu : Q, + abbr : L, + label : L, + table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1}, + code : L, + script : N, + tfoot : M, + cite : L, + li : P, + input : {}, + iframe : P, + strong : L, + textarea : N, + noframes : P, + big : L, + small : L, + span : L, + hr : {}, + dt : L, + sub : L, + optgroup : {option:1}, + param : {}, + bdo : L, + 'var' : L, + div : P, + object : O, + sup : L, + dd : P, + strike : L, + area : {}, + dir : Q, + map : X({area:1,form:1,p:1},A,F,E), + applet : O, + dl : {dt:1,dd:1}, + del : L, + isindex : {}, + fieldset : X({legend:1},K), + thead : M, + ul : Q, + acronym : L, + b : L, + a : J, + blockquote : P, + caption : L, + i : L, + u : L, + tbody : M, + s : L, + address : X(D,I), + tt : L, + legend : L, + q : L, + pre : X(G,C), + p : L, + em : L, + dfn : L + }; +})(); + +// PACKAGER_RENAME( CKEDITOR.dtd ) diff --git a/edgware/static/ckeditor/_source/core/editor.js b/edgware/static/ckeditor/_source/core/editor.js new file mode 100755 index 0000000..591fc9e --- /dev/null +++ b/edgware/static/ckeditor/_source/core/editor.js @@ -0,0 +1,690 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.editor} class, which represents an + * editor instance. + */ + +(function() +{ + // The counter for automatic instance names. + var nameCounter = 0; + + var getNewName = function() + { + var name = 'editor' + ( ++nameCounter ); + return ( CKEDITOR.instances && CKEDITOR.instances[ name ] ) ? getNewName() : name; + }; + + // ##### START: Config Privates + + // These function loads custom configuration files and cache the + // CKEDITOR.editorConfig functions defined on them, so there is no need to + // download them more than once for several instances. + var loadConfigLoaded = {}; + var loadConfig = function( editor ) + { + var customConfig = CKEDITOR.getUrl( editor.config.customConfig ); + + // Check if there is a custom config to load. + if ( !customConfig ) + return false; + + var loadedConfig = loadConfigLoaded[ customConfig ] || ( loadConfigLoaded[ customConfig ] = {} ); + + // If the custom config has already been downloaded, reuse it. + if ( loadedConfig.fn ) + { + // Call the cached CKEDITOR.editorConfig defined in the custom + // config file for the editor instance depending on it. + loadedConfig.fn.call( editor, editor.config ); + + // If there is no other customConfig in the chain, fire the + // "configLoaded" event. + if ( CKEDITOR.getUrl( editor.config.customConfig ) == customConfig || !loadConfig( editor ) ) + editor.fireOnce( 'customConfigLoaded' ); + } + else + { + // Load the custom configuration file. + CKEDITOR.scriptLoader.load( customConfig, function() + { + // If the CKEDITOR.editorConfig function has been properly + // defined in the custom configuration file, cache it. + if ( CKEDITOR.editorConfig ) + loadedConfig.fn = CKEDITOR.editorConfig; + else + loadedConfig.fn = function(){}; + + // Call the load config again. This time the custom + // config is already cached and so it will get loaded. + loadConfig( editor ); + }); + } + + return true; + }; + + var initConfig = function( editor, instanceConfig ) + { + // Setup the lister for the "customConfigLoaded" event. + editor.on( 'customConfigLoaded', function() + { + if ( instanceConfig ) + { + // Register the events that may have been set at the instance + // configuration object. + if ( instanceConfig.on ) + { + for ( var eventName in instanceConfig.on ) + { + editor.on( eventName, instanceConfig.on[ eventName ] ); + } + } + + // Overwrite the settings from the in-page config. + CKEDITOR.tools.extend( editor.config, instanceConfig, true ); + + delete editor.config.on; + } + + onConfigLoaded( editor ); + }); + + // The instance config may override the customConfig setting to avoid + // loading the default ~/config.js file. + if ( instanceConfig && instanceConfig.customConfig != undefined ) + editor.config.customConfig = instanceConfig.customConfig; + + // Load configs from the custom configuration files. + if ( !loadConfig( editor ) ) + editor.fireOnce( 'customConfigLoaded' ); + }; + + // ##### END: Config Privates + + var onConfigLoaded = function( editor ) + { + // Set config related properties. + + var skin = editor.config.skin.split( ',' ), + skinName = skin[ 0 ], + skinPath = CKEDITOR.getUrl( skin[ 1 ] || ( + '_source/' + // @Packager.RemoveLine + 'skins/' + skinName + '/' ) ); + + editor.skinName = skinName; + editor.skinPath = skinPath; + editor.skinClass = 'cke_skin_' + skinName; + + // Fire the "configLoaded" event. + editor.fireOnce( 'configLoaded' ); + + // Load language file. + loadSkin( editor ); + }; + + var loadLang = function( editor ) + { + CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang ) + { + editor.langCode = languageCode; + + // As we'll be adding plugin specific entries that could come + // from different language code files, we need a copy of lang, + // not a direct reference to it. + editor.lang = CKEDITOR.tools.prototypedCopy( lang ); + + // We're not able to support RTL in Firefox 2 at this time. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 && editor.lang.dir == 'rtl' ) + editor.lang.dir = 'ltr'; + + loadPlugins( editor ); + }); + }; + + var loadPlugins = function( editor ) + { + var config = editor.config, + plugins = config.plugins, + extraPlugins = config.extraPlugins, + removePlugins = config.removePlugins; + + if ( extraPlugins ) + { + // Remove them first to avoid duplications. + var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' ); + plugins = plugins.replace( removeRegex, '' ); + + plugins += ',' + extraPlugins; + } + + if ( removePlugins ) + { + removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)' , 'g' ); + plugins = plugins.replace( removeRegex, '' ); + } + + // Load all plugins defined in the "plugins" setting. + CKEDITOR.plugins.load( plugins.split( ',' ), function( plugins ) + { + // The list of plugins. + var pluginsArray = []; + + // The language code to get loaded for each plugin. Null + // entries will be appended for plugins with no language files. + var languageCodes = []; + + // The list of URLs to language files. + var languageFiles = []; + + // Cache the loaded plugin names. + editor.plugins = plugins; + + // Loop through all plugins, to build the list of language + // files to get loaded. + for ( var pluginName in plugins ) + { + var plugin = plugins[ pluginName ], + pluginLangs = plugin.lang, + pluginPath = CKEDITOR.plugins.getPath( pluginName ), + lang = null; + + // Set the plugin path in the plugin. + plugin.path = pluginPath; + + // If the plugin has "lang". + if ( pluginLangs ) + { + // Resolve the plugin language. If the current language + // is not available, get the first one (default one). + lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] ); + + if ( !plugin.lang[ lang ] ) + { + // Put the language file URL into the list of files to + // get downloaded. + languageFiles.push( CKEDITOR.getUrl( pluginPath + 'lang/' + lang + '.js' ) ); + } + else + { + CKEDITOR.tools.extend( editor.lang, plugin.lang[ lang ] ); + lang = null; + } + } + + // Save the language code, so we know later which + // language has been resolved to this plugin. + languageCodes.push( lang ); + + pluginsArray.push( plugin ); + } + + // Load all plugin specific language files in a row. + CKEDITOR.scriptLoader.load( languageFiles, function() + { + // Initialize all plugins that have the "beforeInit" and "init" methods defined. + var methods = [ 'beforeInit', 'init', 'afterInit' ]; + for ( var m = 0 ; m < methods.length ; m++ ) + { + for ( var i = 0 ; i < pluginsArray.length ; i++ ) + { + var plugin = pluginsArray[ i ]; + + // Uses the first loop to update the language entries also. + if ( m === 0 && languageCodes[ i ] && plugin.lang ) + CKEDITOR.tools.extend( editor.lang, plugin.lang[ languageCodes[ i ] ] ); + + // Call the plugin method (beforeInit and init). + if ( plugin[ methods[ m ] ] ) + plugin[ methods[ m ] ]( editor ); + } + } + + // Load the editor skin. + editor.fire( 'pluginsLoaded' ); + loadTheme( editor ); + }); + }); + }; + + var loadSkin = function( editor ) + { + CKEDITOR.skins.load( editor, 'editor', function() + { + loadLang( editor ); + }); + }; + + var loadTheme = function( editor ) + { + var theme = editor.config.theme; + CKEDITOR.themes.load( theme, function() + { + var editorTheme = editor.theme = CKEDITOR.themes.get( theme ); + editorTheme.path = CKEDITOR.themes.getPath( theme ); + editorTheme.build( editor ); + + if ( editor.config.autoUpdateElement ) + attachToForm( editor ); + }); + }; + + var attachToForm = function( editor ) + { + var element = editor.element; + + // If are replacing a textarea, we must + if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE && element.is( 'textarea' ) ) + { + var form = element.$.form && new CKEDITOR.dom.element( element.$.form ); + if ( form ) + { + function onSubmit() + { + editor.updateElement(); + } + form.on( 'submit',onSubmit ); + + // Setup the submit function because it doesn't fire the + // "submit" event. + if ( !form.$.submit.nodeName ) + { + form.$.submit = CKEDITOR.tools.override( form.$.submit, function( originalSubmit ) + { + return function() + { + editor.updateElement(); + + // For IE, the DOM submit function is not a + // function, so we need thid check. + if ( originalSubmit.apply ) + originalSubmit.apply( this, arguments ); + else + originalSubmit(); + }; + }); + } + + // Remove 'submit' events registered on form element before destroying.(#3988) + editor.on( 'destroy', function() + { + form.removeListener( 'submit', onSubmit ); + } ); + } + } + }; + + function updateCommandsMode() + { + var command, + commands = this._.commands, + mode = this.mode; + + for ( var name in commands ) + { + command = commands[ name ]; + command[ command.modes[ mode ] ? 'enable' : 'disable' ](); + } + } + + /** + * Initializes the editor instance. This function is called by the editor + * contructor (editor_basic.js). + * @private + */ + CKEDITOR.editor.prototype._init = function() + { + // Get the properties that have been saved in the editor_base + // implementation. + var element = CKEDITOR.dom.element.get( this._.element ), + instanceConfig = this._.instanceConfig; + delete this._.element; + delete this._.instanceConfig; + + this._.commands = {}; + this._.styles = []; + + /** + * The DOM element that has been replaced by this editor instance. This + * element holds the editor data on load and post. + * @name CKEDITOR.editor.prototype.element + * @type CKEDITOR.dom.element + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( editor.element.getName() ); "textarea" + */ + this.element = element; + + /** + * The editor instance name. It hay be the replaced element id, name or + * a default name using a progressive counter (editor1, editor2, ...). + * @name CKEDITOR.editor.prototype.name + * @type String + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( editor.name ); "editor1" + */ + this.name = ( element && ( this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + && ( element.getId() || element.getNameAtt() ) ) + || getNewName(); + + if ( this.name in CKEDITOR.instances ) + throw '[CKEDITOR.editor] The instance "' + this.name + '" already exists.'; + + /** + * The configurations for this editor instance. It inherits all + * settings defined in (@link CKEDITOR.config}, combined with settings + * loaded from custom configuration files and those defined inline in + * the page when creating the editor. + * @name CKEDITOR.editor.prototype.config + * @type Object + * @example + * var editor = CKEDITOR.instances.editor1; + * alert( editor.config.theme ); "default" e.g. + */ + this.config = CKEDITOR.tools.prototypedCopy( CKEDITOR.config ); + + /** + * Namespace containing UI features related to this editor instance. + * @name CKEDITOR.editor.prototype.ui + * @type CKEDITOR.ui + * @example + */ + this.ui = new CKEDITOR.ui( this ); + + /** + * Controls the focus state of this editor instance. This property + * is rarely used for normal API operations. It is mainly + * destinated to developer adding UI elements to the editor interface. + * @name CKEDITOR.editor.prototype.focusManager + * @type CKEDITOR.focusManager + * @example + */ + this.focusManager = new CKEDITOR.focusManager( this ); + + CKEDITOR.fire( 'instanceCreated', null, this ); + + this.on( 'mode', updateCommandsMode, null, null, 1 ); + + initConfig( this, instanceConfig ); + }; +})(); + +CKEDITOR.tools.extend( CKEDITOR.editor.prototype, + /** @lends CKEDITOR.editor.prototype */ + { + /** + * Adds a command definition to the editor instance. Commands added with + * this function can be later executed with {@link #execCommand}. + * @param {String} commandName The indentifier name of the command. + * @param {CKEDITOR.commandDefinition} commandDefinition The command definition. + * @example + * editorInstance.addCommand( 'sample', + * { + * exec : function( editor ) + * { + * alert( 'Executing a command for the editor name "' + editor.name + '"!' ); + * } + * }); + */ + addCommand : function( commandName, commandDefinition ) + { + return this._.commands[ commandName ] = new CKEDITOR.command( this, commandDefinition ); + }, + + /** + * Add a trunk of css text to the editor which will be applied to the wysiwyg editing document. + * Note: This function should be called before editor is loaded to take effect. + * @param css {String} CSS text. + * @example + * editorInstance.addCss( 'body { background-color: grey; }' ); + */ + addCss : function( css ) + { + this._.styles.push( css ); + }, + + /** + * Destroys the editor instance, releasing all resources used by it. + * If the editor replaced an element, the element will be recovered. + * @param {Boolean} [noUpdate] If the instance is replacing a DOM + * element, this parameter indicates whether or not to update the + * element with the instance contents. + * @example + * alert( CKEDITOR.instances.editor1 ); e.g "object" + * CKEDITOR.instances.editor1.destroy(); + * alert( CKEDITOR.instances.editor1 ); "undefined" + */ + destroy : function( noUpdate ) + { + if ( !noUpdate ) + this.updateElement(); + + this.theme.destroy( this ); + this.fire( 'destroy' ); + CKEDITOR.remove( this ); + CKEDITOR.fire( 'instanceDestroyed', null, this ); + }, + + /** + * Executes a command. + * @param {String} commandName The indentifier name of the command. + * @param {Object} [data] Data to be passed to the command + * @returns {Boolean} "true" if the command has been successfuly + * executed, otherwise "false". + * @example + * editorInstance.execCommand( 'Bold' ); + */ + execCommand : function( commandName, data ) + { + var command = this.getCommand( commandName ); + + var eventData = + { + name: commandName, + commandData: data, + command: command + }; + + if ( command && command.state != CKEDITOR.TRISTATE_DISABLED ) + { + if ( this.fire( 'beforeCommandExec', eventData ) !== true ) + { + eventData.returnValue = command.exec( eventData.commandData ); + + // Fire the 'afterCommandExec' immediately if command is synchronous. + if ( !command.async && this.fire( 'afterCommandExec', eventData ) !== true ) + return eventData.returnValue; + } + } + + // throw 'Unknown command name "' + commandName + '"'; + return false; + }, + + /** + * Gets one of the registered commands. Note that, after registering a + * command definition with addCommand, it is transformed internally + * into an instance of {@link CKEDITOR.command}, which will be then + * returned by this function. + * @param {String} commandName The name of the command to be returned. + * This is the same used to register the command with addCommand. + * @returns {CKEDITOR.command} The command object identified by the + * provided name. + */ + getCommand : function( commandName ) + { + return this._.commands[ commandName ]; + }, + + /** + * Gets the editor data. The data will be in raw format. It is the same + * data that is posted by the editor. + * @type String + * @returns (String) The editor data. + * @example + * if ( CKEDITOR.instances.editor1.getData() == '' ) + * alert( 'There is no data available' ); + */ + getData : function() + { + this.fire( 'beforeGetData' ); + + var eventData = this._.data; + + if ( typeof eventData != 'string' ) + { + var element = this.element; + if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + eventData = element.is( 'textarea' ) ? element.getValue() : element.getHtml(); + else + eventData = ''; + } + + eventData = { dataValue : eventData }; + + // Fire "getData" so data manipulation may happen. + this.fire( 'getData', eventData ); + + return eventData.dataValue; + }, + + getSnapshot : function() + { + var data = this.fire( 'getSnapshot' ); + + if ( typeof data != 'string' ) + { + var element = this.element; + if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + data = element.is( 'textarea' ) ? element.getValue() : element.getHtml(); + } + + return data; + }, + + loadSnapshot : function( snapshot ) + { + this.fire( 'loadSnapshot', snapshot ); + }, + + /** + * Sets the editor data. The data must be provided in raw format (HTML). + * Note: This's an asynchronous method, the {@param callback} + * function should be relied on if you want to interact with the editor + * after data is fully loaded. + * + * @param {String} data HTML code to replace the curent content in the editor. + * @param {Function} callback Function to be called after the setData is completed. + * @example + * CKEDITOR.instances.editor1.setData( '<p>This is the editor data.</p>' ); + * CKEDITOR.instances.editor1.setData( '<p>Some other editor data.</p>', function() + * { + * CKEDITOR.instances.editor1.checkDirty(); // true + * } ); + */ + setData : function( data , callback ) + { + if( callback ) + { + this.on( 'dataReady', function( evt ) + { + evt.removeListener(); + callback.call( evt.editor ); + } ); + } + // Fire "setData" so data manipulation may happen. + var eventData = { dataValue : data }; + this.fire( 'setData', eventData ); + + this._.data = eventData.dataValue; + + this.fire( 'afterSetData', eventData ); + }, + + /** + * Inserts HTML into the currently selected position in the editor. + * @param {String} data HTML code to be inserted into the editor. + * @example + * CKEDITOR.instances.editor1.insertHtml( '<p>This is a new paragraph.</p>' ); + */ + insertHtml : function( data ) + { + this.fire( 'insertHtml', data ); + }, + + /** + * Inserts an element into the currently selected position in the + * editor. + * @param {CKEDITOR.dom.element} element The element to be inserted + * into the editor. + * @example + * var element = CKEDITOR.dom.element.createFromHtml( '<img src="hello.png" border="0" title="Hello" />' ); + * CKEDITOR.instances.editor1.insertElement( element ); + */ + insertElement : function( element ) + { + this.fire( 'insertElement', element ); + }, + + checkDirty : function() + { + return ( this.mayBeDirty && this._.previousValue !== this.getSnapshot() ); + }, + + resetDirty : function() + { + if ( this.mayBeDirty ) + this._.previousValue = this.getSnapshot(); + }, + + /** + * Updates the <textarea> element that has been replaced by the editor with + * the current data available in the editor. + * @example + * CKEDITOR.instances.editor1.updateElement(); + * alert( document.getElementById( 'editor1' ).value ); // The current editor data. + */ + updateElement : function() + { + var element = this.element; + if ( element && this.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE ) + { + var data = this.getData(); + + if( this.config.htmlEncodeOutput ) + data = CKEDITOR.tools.htmlEncode( data ); + + if ( element.is( 'textarea' ) ) + element.setValue( data ); + else + element.setHtml( data ); + } + } + }); + +CKEDITOR.on( 'loaded', function() + { + // Run the full initialization for pending editors. + var pending = CKEDITOR.editor._pending; + if ( pending ) + { + delete CKEDITOR.editor._pending; + + for ( var i = 0 ; i < pending.length ; i++ ) + pending[ i ]._init(); + } + }); + +/** + * Whether escape HTML when editor update original input element. + * @name CKEDITOR.config.htmlEncodeOutput + * @type {Boolean} + * @default false + * @example + * config.htmlEncodeOutput = true; + */ diff --git a/edgware/static/ckeditor/_source/core/editor_basic.js b/edgware/static/ckeditor/_source/core/editor_basic.js new file mode 100755 index 0000000..116e680 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/editor_basic.js @@ -0,0 +1,179 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +if ( !CKEDITOR.editor ) +{ + /** + * No element is linked to the editor instance. + * @constant + * @example + */ + CKEDITOR.ELEMENT_MODE_NONE = 0; + + /** + * The element is to be replaced by the editor instance. + * @constant + * @example + */ + CKEDITOR.ELEMENT_MODE_REPLACE = 1; + + /** + * The editor is to be created inside the element. + * @constant + * @example + */ + CKEDITOR.ELEMENT_MODE_APPENDTO = 2; + + /** + * Represents an editor instance. This constructor should be rarely used, + * being the {@link CKEDITOR} methods preferible. + * @constructor + * @param {Object} instanceConfig Configuration values for this specific + * instance. + * @param {CKEDITOR.dom.element} [element] The element linked to this + * instance. + * @param {Number} [mode] The mode in which the element is linked to this + * instance. + * @augments CKEDITOR.event + * @example + */ + CKEDITOR.editor = function( instanceConfig, element, mode ) + { + this._ = + { + // Save the config to be processed later by the full core code. + instanceConfig : instanceConfig, + element : element + }; + + /** + * The mode in which the {@link #element} is linked to this editor + * instance. It can be any of the following values: + *
        + *
      • CKEDITOR.ELEMENT_MODE_NONE: No element is linked to the + * editor instance.
      • + *
      • CKEDITOR.ELEMENT_MODE_REPLACE: The element is to be + * replaced by the editor instance.
      • + *
      • CKEDITOR.ELEMENT_MODE_APPENDTO: The editor is to be + * created inside the element.
      • + *
      + * @name CKEDITOR.editor.prototype.elementMode + * @type Number + * @example + * var editor = CKEDITOR.replace( 'editor1' ); + * alert( editor.elementMode ); "1" + */ + this.elementMode = mode || CKEDITOR.ELEMENT_MODE_NONE; + + // Call the CKEDITOR.event constructor to initialize this instance. + CKEDITOR.event.call( this ); + + this._init(); + }; + + /** + * Replaces a <textarea> or a DOM element (DIV) with a CKEditor + * instance. For textareas, the initial value in the editor will be the + * textarea value. For DOM elements, their innerHTML will be used + * instead. We recommend using TEXTAREA and DIV elements only. Do not use + * this function directly. Use {@link CKEDITOR.replace} instead. + * @param {Object|String} elementOrIdOrName The DOM element (textarea), its + * ID or name. + * @param {Object} [config] The specific configurations to apply to this + * editor instance. Configurations set here will override global CKEditor + * settings. + * @returns {CKEDITOR.editor} The editor instance created. + * @example + */ + CKEDITOR.editor.replace = function( elementOrIdOrName, config ) + { + var element = elementOrIdOrName; + + if ( typeof element != 'object' ) + { + // Look for the element by id. We accept any kind of element here. + element = document.getElementById( elementOrIdOrName ); + + // If not found, look for elements by name. In this case we accept only + // textareas. + if ( !element ) + { + var i = 0, + textareasByName = document.getElementsByName( elementOrIdOrName ); + + while ( ( element = textareasByName[ i++ ] ) && element.tagName.toLowerCase() != 'textarea' ) + { /*jsl:pass*/ } + } + + if ( !element ) + throw '[CKEDITOR.editor.replace] The element with id or name "' + elementOrIdOrName + '" was not found.'; + } + + // Do not replace the textarea right now, just hide it. The effective + // replacement will be done by the _init function. + element.style.visibility = 'hidden'; + + // Create the editor instance. + return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_REPLACE ); + }; + + /** + * Creates a new editor instance inside a specific DOM element. Do not use + * this function directly. Use {@link CKEDITOR.appendTo} instead. + * @param {Object|String} elementOrId The DOM element or its ID. + * @param {Object} [config] The specific configurations to apply to this + * editor instance. Configurations set here will override global CKEditor + * settings. + * @returns {CKEDITOR.editor} The editor instance created. + * @example + */ + CKEDITOR.editor.appendTo = function( elementOrId, config ) + { + var element = elementOrId; + if ( typeof element != 'object' ) + { + element = document.getElementById( elementOrId ); + + if( !element ) + throw '[CKEDITOR.editor.appendTo] The element with id "' + elementOrId + '" was not found.'; + } + + // Create the editor instance. + return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO ); + }; + + CKEDITOR.editor.prototype = + { + /** + * Initializes the editor instance. This function will be overriden by the + * full CKEDITOR.editor implementation (editor.js). + * @private + */ + _init : function() + { + var pending = CKEDITOR.editor._pending || ( CKEDITOR.editor._pending = [] ); + pending.push( this ); + }, + + // Both fire and fireOnce will always pass this editor instance as the + // "editor" param in CKEDITOR.event.fire. So, we override it to do that + // automaticaly. + + /** @ignore */ + fire : function( eventName, data ) + { + return CKEDITOR.event.prototype.fire.call( this, eventName, data, this ); + }, + + /** @ignore */ + fireOnce : function( eventName, data ) + { + return CKEDITOR.event.prototype.fireOnce.call( this, eventName, data, this ); + } + }; + + // "Inherit" (copy actually) from CKEDITOR.event. + CKEDITOR.event.implementOn( CKEDITOR.editor.prototype, true ); +} diff --git a/edgware/static/ckeditor/_source/core/env.js b/edgware/static/ckeditor/_source/core/env.js new file mode 100755 index 0000000..2e6a0ff --- /dev/null +++ b/edgware/static/ckeditor/_source/core/env.js @@ -0,0 +1,219 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.env} object, which constains + * environment and browser information. + */ + +if ( !CKEDITOR.env ) +{ + /** + * Environment and browser information. + * @namespace + * @example + */ + CKEDITOR.env = (function() + { + var agent = navigator.userAgent.toLowerCase(); + var opera = window.opera; + + var env = + /** @lends CKEDITOR.env */ + { + /** + * Indicates that CKEditor is running on Internet Explorer. + * @type Boolean + * @example + * if ( CKEDITOR.env.ie ) + * alert( "I'm on IE!" ); + */ + ie : /*@cc_on!@*/false, + + /** + * Indicates that CKEditor is running on Opera. + * @type Boolean + * @example + * if ( CKEDITOR.env.opera ) + * alert( "I'm on Opera!" ); + */ + opera : ( !!opera && opera.version ), + + /** + * Indicates that CKEditor is running on a WebKit based browser, like + * Safari. + * @type Boolean + * @example + * if ( CKEDITOR.env.webkit ) + * alert( "I'm on WebKit!" ); + */ + webkit : ( agent.indexOf( ' applewebkit/' ) > -1 ), + + /** + * Indicates that CKEditor is running on Adobe AIR. + * @type Boolean + * @example + * if ( CKEDITOR.env.air ) + * alert( "I'm on AIR!" ); + */ + air : ( agent.indexOf( ' adobeair/' ) > -1 ), + + /** + * Indicates that CKEditor is running on Macintosh. + * @type Boolean + * @example + * if ( CKEDITOR.env.mac ) + * alert( "I love apples!" ); + */ + mac : ( agent.indexOf( 'macintosh' ) > -1 ), + + quirks : ( document.compatMode == 'BackCompat' ), + + isCustomDomain : function() + { + return this.ie && document.domain != window.location.hostname; + } + }; + + /** + * Indicates that CKEditor is running on a Gecko based browser, like + * Firefox. + * @name CKEDITOR.env.gecko + * @type Boolean + * @example + * if ( CKEDITOR.env.gecko ) + * alert( "I'm riding a gecko!" ); + */ + env.gecko = ( navigator.product == 'Gecko' && !env.webkit && !env.opera ); + + var version = 0; + + // Internet Explorer 6.0+ + if ( env.ie ) + { + version = parseFloat( agent.match( /msie (\d+)/ )[1] ); + + /** + * Indicate IE8 browser. + */ + env.ie8 = !!document.documentMode; + + /** + * Indicte IE8 document mode. + */ + env.ie8Compat = document.documentMode == 8; + + /** + * Indicates that CKEditor is running on an IE7-like environment, which + * includes IE7 itself and IE8's IE7 document mode. + * @type Boolean + */ + env.ie7Compat = ( ( version == 7 && !document.documentMode ) + || document.documentMode == 7 ); + + /** + * Indicates that CKEditor is running on an IE6-like environment, which + * includes IE6 itself and IE7 and IE8 quirks mode. + * @type Boolean + * @example + * if ( CKEDITOR.env.ie6Compat ) + * alert( "I'm on IE6 or quirks mode!" ); + */ + env.ie6Compat = ( version < 7 || env.quirks ); + + } + + // Gecko. + if ( env.gecko ) + { + var geckoRelease = agent.match( /rv:([\d\.]+)/ ); + if ( geckoRelease ) + { + geckoRelease = geckoRelease[1].split( '.' ); + version = geckoRelease[0] * 10000 + ( geckoRelease[1] || 0 ) * 100 + ( geckoRelease[2] || 0 ) * 1; + } + } + + // Opera 9.50+ + if ( env.opera ) + version = parseFloat( opera.version() ); + + // Adobe AIR 1.0+ + // Checked before Safari because AIR have the WebKit rich text editor + // features from Safari 3.0.4, but the version reported is 420. + if ( env.air ) + version = parseFloat( agent.match( / adobeair\/(\d+)/ )[1] ); + + // WebKit 522+ (Safari 3+) + if ( env.webkit ) + version = parseFloat( agent.match( / applewebkit\/(\d+)/ )[1] ); + + /** + * Contains the browser version. + * + * For gecko based browsers (like Firefox) it contains the revision + * number with first three parts concatenated with a padding zero + * (e.g. for revision 1.9.0.2 we have 10900). + * + * For webkit based browser (like Safari and Chrome) it contains the + * WebKit build version (e.g. 522). + * @name CKEDITOR.env.version + * @type Boolean + * @example + * if ( CKEDITOR.env.ie && CKEDITOR.env.version <= 6 ) + * alert( "Ouch!" ); + */ + env.version = version; + + /** + * Indicates that CKEditor is running on a compatible browser. + * @name CKEDITOR.env.isCompatible + * @type Boolean + * @example + * if ( CKEDITOR.env.isCompatible ) + * alert( "Your browser is pretty cool!" ); + */ + env.isCompatible = + ( env.ie && version >= 6 ) || + ( env.gecko && version >= 10801 ) || + ( env.opera && version >= 9.5 ) || + ( env.air && version >= 1 ) || + ( env.webkit && version >= 522 ) || + false; + + // The CSS class to be appended on the main UI containers, making it + // easy to apply browser specific styles to it. + env.cssClass = + 'cke_browser_' + ( + env.ie ? 'ie' : + env.gecko ? 'gecko' : + env.opera ? 'opera' : + env.air ? 'air' : + env.webkit ? 'webkit' : + 'unknown' ); + + if ( env.quirks ) + env.cssClass += ' cke_browser_quirks'; + + if ( env.ie ) + { + env.cssClass += ' cke_browser_ie' + ( + env.version < 7 ? '6' : + env.version >= 8 ? '8' : + '7' ); + + if ( env.quirks ) + env.cssClass += ' cke_browser_iequirks'; + } + + if ( env.gecko && version < 10900 ) + env.cssClass += ' cke_browser_gecko18'; + + return env; + })(); +} + +// PACKAGER_RENAME( CKEDITOR.env ) +// PACKAGER_RENAME( CKEDITOR.env.ie ) diff --git a/edgware/static/ckeditor/_source/core/event.js b/edgware/static/ckeditor/_source/core/event.js new file mode 100755 index 0000000..306e8fc --- /dev/null +++ b/edgware/static/ckeditor/_source/core/event.js @@ -0,0 +1,335 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.event} class, which serves as the + * base for classes and objects that require event handling features. + */ + +if ( !CKEDITOR.event ) +{ + /** + * This is a base class for classes and objects that require event handling + * features. + * @constructor + * @example + */ + CKEDITOR.event = function() + {}; + + /** + * Implements the {@link CKEDITOR.event} features in an object. + * @param {Object} targetObject The object in which implement the features. + * @example + * var myObject = { message : 'Example' }; + * CKEDITOR.event.implementOn( myObject }; + * myObject.on( 'testEvent', function() + * { + * alert( this.message ); // "Example" + * }); + * myObject.fire( 'testEvent' ); + */ + CKEDITOR.event.implementOn = function( targetObject, isTargetPrototype ) + { + var eventProto = CKEDITOR.event.prototype; + + for ( var prop in eventProto ) + { + if ( targetObject[ prop ] == undefined ) + targetObject[ prop ] = eventProto[ prop ]; + } + }; + + CKEDITOR.event.prototype = (function() + { + // Returns the private events object for a given object. + var getPrivate = function( obj ) + { + var _ = ( obj.getPrivate && obj.getPrivate() ) || obj._ || ( obj._ = {} ); + return _.events || ( _.events = {} ); + }; + + var eventEntry = function( eventName ) + { + this.name = eventName; + this.listeners = []; + }; + + eventEntry.prototype = + { + // Get the listener index for a specified function. + // Returns -1 if not found. + getListenerIndex : function( listenerFunction ) + { + for ( var i = 0, listeners = this.listeners ; i < listeners.length ; i++ ) + { + if ( listeners[i].fn == listenerFunction ) + return i; + } + return -1; + } + }; + + return /** @lends CKEDITOR.event.prototype */ { + /** + * Registers a listener to a specific event in the current object. + * @param {String} eventName The event name to which listen. + * @param {Function} listenerFunction The function listening to the + * event. + * @param {Object} [scopeObj] The object used to scope the listener + * call (the this object. If omitted, the current object is used. + * @param {Object} [listenerData] Data to be sent as the + * {@link CKEDITOR.eventInfo#listenerData} when calling the + * listener. + * @param {Number} [priority] The listener priority. Lower priority + * listeners are called first. Listeners with the same priority + * value are called in registration order. Defaults to 10. + * @example + * someObject.on( 'someEvent', function() + * { + * alert( this == someObject ); // "true" + * }); + * @example + * someObject.on( 'someEvent', function() + * { + * alert( this == anotherObject ); // "true" + * } + * , anotherObject ); + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.listenerData ); // "Example" + * } + * , null, 'Example' ); + * @example + * someObject.on( 'someEvent', function() { ... } ); // 2nd called + * someObject.on( 'someEvent', function() { ... }, null, null, 100 ); // 3rd called + * someObject.on( 'someEvent', function() { ... }, null, null, 1 ); // 1st called + */ + on : function( eventName, listenerFunction, scopeObj, listenerData, priority ) + { + // Get the event entry (create it if needed). + var events = getPrivate( this ), + event = events[ eventName ] || ( events[ eventName ] = new eventEntry( eventName ) ); + + if ( event.getListenerIndex( listenerFunction ) < 0 ) + { + // Get the listeners. + var listeners = event.listeners; + + // Fill the scope. + if ( !scopeObj ) + scopeObj = this; + + // Default the priority, if needed. + if ( isNaN( priority ) ) + priority = 10; + + var me = this; + + // Create the function to be fired for this listener. + var listenerFirer = function( editor, publisherData, stopFn, cancelFn ) + { + var ev = + { + name : eventName, + sender : this, + editor : editor, + data : publisherData, + listenerData : listenerData, + stop : stopFn, + cancel : cancelFn, + removeListener : function() + { + me.removeListener( eventName, listenerFunction ); + } + }; + + listenerFunction.call( scopeObj, ev ); + + return ev.data; + }; + listenerFirer.fn = listenerFunction; + listenerFirer.priority = priority; + + // Search for the right position for this new listener, based on its + // priority. + for ( var i = listeners.length - 1 ; i >= 0 ; i-- ) + { + // Find the item which should be before the new one. + if ( listeners[ i ].priority <= priority ) + { + // Insert the listener in the array. + listeners.splice( i + 1, 0, listenerFirer ); + return; + } + } + + // If no position has been found (or zero length), put it in + // the front of list. + listeners.unshift( listenerFirer ); + } + }, + + /** + * Fires an specific event in the object. All registered listeners are + * called at this point. + * @function + * @param {String} eventName The event name to fire. + * @param {Object} [data] Data to be sent as the + * {@link CKEDITOR.eventInfo#data} when calling the + * listeners. + * @param {CKEDITOR.editor} [editor] The editor instance to send as the + * {@link CKEDITOR.eventInfo#editor} when calling the + * listener. + * @returns {Boolean|Object} A booloan indicating that the event is to be + * canceled, or data returned by one of the listeners. + * @example + * someObject.on( 'someEvent', function() { ... } ); + * someObject.on( 'someEvent', function() { ... } ); + * someObject.fire( 'someEvent' ); // both listeners are called + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.data ); // "Example" + * }); + * someObject.fire( 'someEvent', 'Example' ); + */ + fire : (function() + { + // Create the function that marks the event as stopped. + var stopped = false; + var stopEvent = function() + { + stopped = true; + }; + + // Create the function that marks the event as canceled. + var canceled = false; + var cancelEvent = function() + { + canceled = true; + }; + + return function( eventName, data, editor ) + { + // Get the event entry. + var event = getPrivate( this )[ eventName ]; + + // Save the previous stopped and cancelled states. We may + // be nesting fire() calls. + var previousStopped = stopped, + previousCancelled = canceled; + + // Reset the stopped and canceled flags. + stopped = canceled = false; + + if ( event ) + { + var listeners = event.listeners; + + if ( listeners.length ) + { + // As some listeners may remove themselves from the + // event, the original array length is dinamic. So, + // let's make a copy of all listeners, so we are + // sure we'll call all of them. + listeners = listeners.slice( 0 ); + + // Loop through all listeners. + for ( var i = 0 ; i < listeners.length ; i++ ) + { + // Call the listener, passing the event data. + var retData = listeners[i].call( this, editor, data, stopEvent, cancelEvent ); + + if ( typeof retData != 'undefined' ) + data = retData; + + // No further calls is stopped or canceled. + if ( stopped || canceled ) + break; + } + } + } + + var ret = canceled || ( typeof data == 'undefined' ? false : data ); + + // Restore the previous stopped and canceled states. + stopped = previousStopped; + canceled = previousCancelled; + + return ret; + }; + })(), + + /** + * Fires an specific event in the object, releasing all listeners + * registered to that event. The same listeners are not called again on + * successive calls of it or of {@link #fire}. + * @param {String} eventName The event name to fire. + * @param {Object} [data] Data to be sent as the + * {@link CKEDITOR.eventInfo#data} when calling the + * listeners. + * @param {CKEDITOR.editor} [editor] The editor instance to send as the + * {@link CKEDITOR.eventInfo#editor} when calling the + * listener. + * @returns {Boolean|Object} A booloan indicating that the event is to be + * canceled, or data returned by one of the listeners. + * @example + * someObject.on( 'someEvent', function() { ... } ); + * someObject.fire( 'someEvent' ); // above listener called + * someObject.fireOnce( 'someEvent' ); // above listener called + * someObject.fire( 'someEvent' ); // no listeners called + */ + fireOnce : function( eventName, data, editor ) + { + var ret = this.fire( eventName, data, editor ); + delete getPrivate( this )[ eventName ]; + return ret; + }, + + /** + * Unregisters a listener function from being called at the specified + * event. No errors are thrown if the listener has not been + * registered previously. + * @param {String} eventName The event name. + * @param {Function} listenerFunction The listener function to unregister. + * @example + * var myListener = function() { ... }; + * someObject.on( 'someEvent', myListener ); + * someObject.fire( 'someEvent' ); // myListener called + * someObject.removeListener( 'someEvent', myListener ); + * someObject.fire( 'someEvent' ); // myListener not called + */ + removeListener : function( eventName, listenerFunction ) + { + // Get the event entry. + var event = getPrivate( this )[ eventName ]; + + if ( event ) + { + var index = event.getListenerIndex( listenerFunction ); + if ( index >= 0 ) + event.listeners.splice( index, 1 ); + } + }, + + /** + * Checks if there is any listener registered to a given event. + * @param {String} eventName The event name. + * @example + * var myListener = function() { ... }; + * someObject.on( 'someEvent', myListener ); + * alert( someObject.hasListeners( 'someEvent' ) ); // "true" + * alert( someObject.hasListeners( 'noEvent' ) ); // "false" + */ + hasListeners : function( eventName ) + { + var event = getPrivate( this )[ eventName ]; + return ( event && event.listeners.length > 0 ) ; + } + }; + })(); +} diff --git a/edgware/static/ckeditor/_source/core/eventInfo.js b/edgware/static/ckeditor/_source/core/eventInfo.js new file mode 100755 index 0000000..dbeca5c --- /dev/null +++ b/edgware/static/ckeditor/_source/core/eventInfo.js @@ -0,0 +1,120 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" {@link CKEDITOR.eventInfo} class, which + * contains the defintions of the event object passed to event listeners. + * This file is for documentation purposes only. + */ + +/** + * This class is not really part of the API. It just illustrates the features + * of the event object passed to event listeners by a {@link CKEDITOR.event} + * based object. + * @name CKEDITOR.eventInfo + * @constructor + * @example + * // Do not do this. + * var myEvent = new CKEDITOR.eventInfo(); // Error: CKEDITOR.eventInfo is undefined + */ + +/** + * The event name. + * @name CKEDITOR.eventInfo.prototype.name + * @field + * @type String + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.name ); // "someEvent" + * }); + * someObject.fire( 'someEvent' ); + */ + +/** + * The object that publishes (sends) the event. + * @name CKEDITOR.eventInfo.prototype.sender + * @field + * @type Object + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.sender == someObject ); // "true" + * }); + * someObject.fire( 'someEvent' ); + */ + +/** + * The editor instance that holds the sender. May be the same as sender. May be + * null if the sender is not part of an editor instance, like a component + * running in standalone mode. + * @name CKEDITOR.eventInfo.prototype.editor + * @field + * @type CKEDITOR.editor + * @example + * myButton.on( 'someEvent', function( event ) + * { + * alert( event.editor == myEditor ); // "true" + * }); + * myButton.fire( 'someEvent', null, myEditor ); + */ + +/** + * Any kind of additional data. Its format and usage is event dependent. + * @name CKEDITOR.eventInfo.prototype.data + * @field + * @type Object + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.data ); // "Example" + * }); + * someObject.fire( 'someEvent', 'Example' ); + */ + +/** + * Any extra data appended during the listener registration. + * @name CKEDITOR.eventInfo.prototype.listenerData + * @field + * @type Object + * @example + * someObject.on( 'someEvent', function( event ) + * { + * alert( event.listenerData ); // "Example" + * } + * , null, 'Example' ); + */ + +/** + * Indicates that no further listeners are to be called. + * @name CKEDITOR.eventInfo.prototype.stop + * @function + * @example + * someObject.on( 'someEvent', function( event ) + * { + * event.stop(); + * }); + * someObject.on( 'someEvent', function( event ) + * { + * // This one will not be called. + * }); + * alert( someObject.fire( 'someEvent' ) ); // "false" + */ + +/** + * Indicates that the event is to be cancelled (if cancelable). + * @name CKEDITOR.eventInfo.prototype.cancel + * @function + * @example + * someObject.on( 'someEvent', function( event ) + * { + * event.cancel(); + * }); + * someObject.on( 'someEvent', function( event ) + * { + * // This one will not be called. + * }); + * alert( someObject.fire( 'someEvent' ) ); // "true" + */ diff --git a/edgware/static/ckeditor/_source/core/focusmanager.js b/edgware/static/ckeditor/_source/core/focusmanager.js new file mode 100755 index 0000000..cf4e50f --- /dev/null +++ b/edgware/static/ckeditor/_source/core/focusmanager.js @@ -0,0 +1,123 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the {@link CKEDITOR.focusManager} class, which is used + * to handle the focus on editor instances.. + */ + +/** + * Manages the focus activity in an editor instance. This class is to be used + * mainly by UI elements coders when adding interface elements to CKEditor. + * @constructor + * @param {CKEDITOR.editor} editor The editor instance. + * @example + */ +CKEDITOR.focusManager = function( editor ) +{ + if ( editor.focusManager ) + return editor.focusManager; + + /** + * Indicates that the editor instance has focus. + * @type Boolean + * @example + * alert( CKEDITOR.instances.editor1.focusManager.hasFocus ); // e.g "true" + */ + this.hasFocus = false; + + /** + * Object used to hold private stuff. + * @private + */ + this._ = + { + editor : editor + }; + + return this; +}; + +CKEDITOR.focusManager.prototype = +{ + /** + * Indicates that the editor instance has the focus. + * + * This function is not used to set the focus in the editor. Use + * {@link CKEDITOR.editor#focus} for it instead. + * @example + * var editor = CKEDITOR.instances.editor1; + * editor.focusManager.focus(); + */ + focus : function() + { + if ( this._.timer ) + clearTimeout( this._.timer ); + + if ( !this.hasFocus ) + { + // If another editor has the current focus, we first "blur" it. In + // this way the events happen in a more logical sequence, like: + // "focus 1" > "blur 1" > "focus 2" + // ... instead of: + // "focus 1" > "focus 2" > "blur 1" + if ( CKEDITOR.currentInstance ) + CKEDITOR.currentInstance.focusManager.forceBlur(); + + var editor = this._.editor; + + editor.container.getFirst().addClass( 'cke_focus' ); + + this.hasFocus = true; + editor.fire( 'focus' ); + } + }, + + /** + * Indicates that the editor instance has lost the focus. Note that this + * functions acts asynchronously with a delay of 100ms to avoid subsequent + * blur/focus effects. If you want the "blur" to happen immediately, use + * the {@link #forceBlur} function instead. + * @example + * var editor = CKEDITOR.instances.editor1; + * editor.focusManager.blur(); + */ + blur : function() + { + var focusManager = this; + + if ( focusManager._.timer ) + clearTimeout( focusManager._.timer ); + + focusManager._.timer = setTimeout( + function() + { + delete focusManager._.timer; + focusManager.forceBlur(); + } + , 100 ); + }, + + /** + * Indicates that the editor instance has lost the focus. Unlike + * {@link #blur}, this function is synchronous, marking the instance as + * "blured" immediately. + * @example + * var editor = CKEDITOR.instances.editor1; + * editor.focusManager.forceBlur(); + */ + forceBlur : function() + { + if ( this.hasFocus ) + { + var editor = this._.editor; + + editor.container.getFirst().removeClass( 'cke_focus' ); + + this.hasFocus = false; + editor.fire( 'blur' ); + } + } +}; diff --git a/edgware/static/ckeditor/_source/core/htmlparser.js b/edgware/static/ckeditor/_source/core/htmlparser.js new file mode 100755 index 0000000..a225792 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser.js @@ -0,0 +1,212 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * HTML text parser. + * @constructor + * @example + */ +CKEDITOR.htmlParser = function() +{ + this._ = + { + htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^"\'>]+)|(?:"[^"]*")|(?:\'[^\']*\'))*)\\/?>))', 'g' ) + }; +}; + +(function() +{ + var attribsRegex = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g, + emptyAttribs = {checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1}; + + CKEDITOR.htmlParser.prototype = + { + /** + * Function to be fired when a tag opener is found. This function + * should be overriden when using this class. + * @param {String} tagName The tag name. The name is guarantted to be + * lowercased. + * @param {Object} attributes An object containing all tag attributes. Each + * property in this object represent and attribute name and its + * value is the attribute value. + * @param {Boolean} selfClosing true if the tag closes itself, false if the + * tag doesn't. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onTagOpen = function( tagName, attributes, selfClosing ) + * { + * alert( tagName ); // e.g. "b" + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onTagOpen : function() {}, + + /** + * Function to be fired when a tag closer is found. This function + * should be overriden when using this class. + * @param {String} tagName The tag name. The name is guarantted to be + * lowercased. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onTagClose = function( tagName ) + * { + * alert( tagName ); // e.g. "b" + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onTagClose : function() {}, + + /** + * Function to be fired when text is found. This function + * should be overriden when using this class. + * @param {String} text The text found. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onText = function( text ) + * { + * alert( text ); // e.g. "Hello" + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onText : function() {}, + + /** + * Function to be fired when CDATA section is found. This function + * should be overriden when using this class. + * @param {String} cdata The CDATA been found. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onCDATA = function( cdata ) + * { + * alert( cdata ); // e.g. "var hello;" + * }); + * parser.parse( "<script>var hello;</script>" ); + */ + onCDATA : function() {}, + + /** + * Function to be fired when a commend is found. This function + * should be overriden when using this class. + * @param {String} comment The comment text. + * @example + * var parser = new CKEDITOR.htmlParser(); + * parser.onText = function( comment ) + * { + * alert( comment ); // e.g. " Example " + * }); + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + onComment : function() {}, + + /** + * Parses text, looking for HTML tokens, like tag openers or closers, + * or comments. This function fires the onTagOpen, onTagClose, onText + * and onComment function during its execution. + * @param {String} html The HTML to be parsed. + * @example + * var parser = new CKEDITOR.htmlParser(); + * // The onTagOpen, onTagClose, onText and onComment should be overriden + * // at this point. + * parser.parse( "<!-- Example --><b>Hello</b>" ); + */ + parse : function( html ) + { + var parts, + tagName, + nextIndex = 0, + cdata; // The collected data inside a CDATA section. + + while ( ( parts = this._.htmlPartsRegex.exec( html ) ) ) + { + var tagIndex = parts.index; + if ( tagIndex > nextIndex ) + { + var text = html.substring( nextIndex, tagIndex ); + + if ( cdata ) + cdata.push( text ); + else + this.onText( text ); + } + + nextIndex = this._.htmlPartsRegex.lastIndex; + + /* + "parts" is an array with the following items: + 0 : The entire match for opening/closing tags and comments. + 1 : Group filled with the tag name for closing tags. + 2 : Group filled with the comment text. + 3 : Group filled with the tag name for opening tags. + 4 : Group filled with the attributes part of opening tags. + */ + + // Closing tag + if ( ( tagName = parts[ 1 ] ) ) + { + tagName = tagName.toLowerCase(); + + if ( cdata && CKEDITOR.dtd.$cdata[ tagName ] ) + { + // Send the CDATA data. + this.onCDATA( cdata.join('') ); + cdata = null; + } + + if ( !cdata ) + { + this.onTagClose( tagName ); + continue; + } + } + + // If CDATA is enabled, just save the raw match. + if ( cdata ) + { + cdata.push( parts[ 0 ] ); + continue; + } + + // Opening tag + if ( ( tagName = parts[ 3 ] ) ) + { + tagName = tagName.toLowerCase(); + var attribs = {}, + attribMatch, + attribsPart = parts[ 4 ], + selfClosing = !!( attribsPart && attribsPart.charAt( attribsPart.length - 1 ) == '/' ); + + if ( attribsPart ) + { + while ( ( attribMatch = attribsRegex.exec( attribsPart ) ) ) + { + var attName = attribMatch[1].toLowerCase(), + attValue = attribMatch[2] || attribMatch[3] || attribMatch[4] || ''; + + if ( !attValue && emptyAttribs[ attName ] ) + attribs[ attName ] = attName; + else + attribs[ attName ] = attValue; + } + } + + this.onTagOpen( tagName, attribs, selfClosing ); + + // Open CDATA mode when finding the appropriate tags. + if ( !cdata && CKEDITOR.dtd.$cdata[ tagName ] ) + cdata = []; + + continue; + } + + // Comment + if( ( tagName = parts[ 2 ] ) ) + this.onComment( tagName ); + } + + if ( html.length > nextIndex ) + this.onText( html.substring( nextIndex, html.length ) ); + } + }; +})(); diff --git a/edgware/static/ckeditor/_source/core/htmlparser/basicwriter.js b/edgware/static/ckeditor/_source/core/htmlparser/basicwriter.js new file mode 100755 index 0000000..c2468ec --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser/basicwriter.js @@ -0,0 +1,141 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass( +{ + $ : function() + { + this._ = + { + output : [] + }; + }, + + proto : + { + /** + * Writes the tag opening part for a opener tag. + * @param {String} tagName The element name for this tag. + * @param {Object} attributes The attributes defined for this tag. The + * attributes could be used to inspect the tag. + * @example + * // Writes "<p". + * writer.openTag( 'p', { class : 'MyClass', id : 'MyId' } ); + */ + openTag : function( tagName, attributes ) + { + this._.output.push( '<', tagName ); + }, + + /** + * Writes the tag closing part for a opener tag. + * @param {String} tagName The element name for this tag. + * @param {Boolean} isSelfClose Indicates that this is a self-closing tag, + * like "br" or "img". + * @example + * // Writes ">". + * writer.openTagClose( 'p', false ); + * @example + * // Writes " />". + * writer.openTagClose( 'br', true ); + */ + openTagClose : function( tagName, isSelfClose ) + { + if ( isSelfClose ) + this._.output.push( ' />' ); + else + this._.output.push( '>' ); + }, + + /** + * Writes an attribute. This function should be called after opening the + * tag with {@link #openTagClose}. + * @param {String} attName The attribute name. + * @param {String} attValue The attribute value. + * @example + * // Writes ' class="MyClass"'. + * writer.attribute( 'class', 'MyClass' ); + */ + attribute : function( attName, attValue ) + { + this._.output.push( ' ', attName, '="', attValue, '"' ); + }, + + /** + * Writes a closer tag. + * @param {String} tagName The element name for this tag. + * @example + * // Writes "</p>". + * writer.closeTag( 'p' ); + */ + closeTag : function( tagName ) + { + this._.output.push( '' ); + }, + + /** + * Writes text. + * @param {String} text The text value + * @example + * // Writes "Hello Word". + * writer.text( 'Hello Word' ); + */ + text : function( text ) + { + this._.output.push( text ); + }, + + /** + * Writes a comment. + * @param {String} comment The comment text. + * @example + * // Writes "<!-- My comment -->". + * writer.comment( ' My comment ' ); + */ + comment : function( comment ) + { + this._.output.push( '' ); + }, + + /** + * Writes any kind of data to the ouput. + * @example + * writer.write( 'This is an <b>example</b>.' ); + */ + write : function( data ) + { + this._.output.push( data ); + }, + + /** + * Empties the current output buffer. + * @example + * writer.reset(); + */ + reset : function() + { + this._.output = []; + this._.indent = false; + }, + + /** + * Empties the current output buffer. + * @param {Boolean} reset Indicates that the {@link reset} function is to + * be automatically called after retrieving the HTML. + * @returns {String} The HTML written to the writer so far. + * @example + * var html = writer.getHtml(); + */ + getHtml : function( reset ) + { + var html = this._.output.join( '' ); + + if ( reset ) + this.reset(); + + return html; + } + } +}); diff --git a/edgware/static/ckeditor/_source/core/htmlparser/cdata.js b/edgware/static/ckeditor/_source/core/htmlparser/cdata.js new file mode 100755 index 0000000..ff2f227 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser/cdata.js @@ -0,0 +1,43 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + + /** + * A lightweight representation of HTML text. + * @constructor + * @example + */ + CKEDITOR.htmlParser.cdata = function( value ) + { + /** + * The CDATA value. + * @type String + * @example + */ + this.value = value; + }; + + CKEDITOR.htmlParser.cdata.prototype = + { + /** + * CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is + * a constant value set to {@link CKEDITOR.NODE_TEXT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_TEXT, + + /** + * Writes write the CDATA with no special manipulations. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + */ + writeHtml : function( writer ) + { + writer.write( this.value ); + } + }; +})(); diff --git a/edgware/static/ckeditor/_source/core/htmlparser/comment.js b/edgware/static/ckeditor/_source/core/htmlparser/comment.js new file mode 100755 index 0000000..67830d9 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser/comment.js @@ -0,0 +1,60 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * A lightweight representation of an HTML comment. + * @constructor + * @example + */ +CKEDITOR.htmlParser.comment = function( value ) +{ + /** + * The comment text. + * @type String + * @example + */ + this.value = value; + + /** @private */ + this._ = + { + isBlockLike : false + }; +}; + +CKEDITOR.htmlParser.comment.prototype = +{ + /** + * The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_COMMENT, + + /** + * Writes the HTML representation of this comment to a CKEDITOR.htmlWriter. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + * @example + */ + writeHtml : function( writer, filter ) + { + var comment = this.value; + + if ( filter ) + { + if ( !( comment = filter.onComment( comment, this ) ) ) + return; + + if ( typeof comment != 'string' ) + { + comment.parent = this.parent; + comment.writeHtml( writer, filter ); + return; + } + } + + writer.comment( comment ); + } +}; diff --git a/edgware/static/ckeditor/_source/core/htmlparser/element.js b/edgware/static/ckeditor/_source/core/htmlparser/element.js new file mode 100755 index 0000000..2e9a9c3 --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser/element.js @@ -0,0 +1,240 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * A lightweight representation of an HTML element. + * @param {String} name The element name. + * @param {Object} attributes And object holding all attributes defined for + * this element. + * @constructor + * @example + */ +CKEDITOR.htmlParser.element = function( name, attributes ) +{ + /** + * The element name. + * @type String + * @example + */ + this.name = name; + + /** + * Holds the attributes defined for this element. + * @type Object + * @example + */ + this.attributes = attributes || ( attributes = {} ); + + /** + * The nodes that are direct children of this element. + * @type Array + * @example + */ + this.children = []; + + var tagName = attributes._cke_real_element_type || name; + + var dtd = CKEDITOR.dtd, + isBlockLike = !!( dtd.$nonBodyContent[ tagName ] || dtd.$block[ tagName ] || dtd.$listItem[ tagName ] || dtd.$tableContent[ tagName ] || dtd.$nonEditable[ tagName ] || tagName == 'br' ), + isEmpty = !!dtd.$empty[ name ]; + + this.isEmpty = isEmpty; + this.isUnknown = !dtd[ name ]; + + /** @private */ + this._ = + { + isBlockLike : isBlockLike, + hasInlineStarted : isEmpty || !isBlockLike + }; +}; + +(function() +{ + // Used to sort attribute entries in an array, where the first element of + // each object is the attribute name. + var sortAttribs = function( a, b ) + { + a = a[0]; + b = b[0]; + return a < b ? -1 : a > b ? 1 : 0; + }; + + CKEDITOR.htmlParser.element.prototype = + { + /** + * The node type. This is a constant value set to {@link CKEDITOR.NODE_ELEMENT}. + * @type Number + * @example + */ + type : CKEDITOR.NODE_ELEMENT, + + /** + * Adds a node to the element children list. + * @param {Object} node The node to be added. It can be any of of the + * following types: {@link CKEDITOR.htmlParser.element}, + * {@link CKEDITOR.htmlParser.text} and + * {@link CKEDITOR.htmlParser.comment}. + * @function + * @example + */ + add : CKEDITOR.htmlParser.fragment.prototype.add, + + /** + * Clone this element. + * @returns {CKEDITOR.htmlParser.element} The element clone. + * @example + */ + clone : function() + { + return new CKEDITOR.htmlParser.element( this.name, this.attributes ); + }, + + /** + * Writes the element HTML to a CKEDITOR.htmlWriter. + * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. + * @example + */ + writeHtml : function( writer, filter ) + { + var attributes = this.attributes; + + // Ignore cke: prefixes when writing HTML. + var element = this, + writeName = element.name, + a, newAttrName, value; + + var isChildrenFiltered; + + /** + * Providing an option for bottom-up filtering order ( element + * children to be pre-filtered before the element itself ). + */ + element.filterChildren = function() + { + if( !isChildrenFiltered ) + { + var writer = new CKEDITOR.htmlParser.basicWriter(); + CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.call( element, writer, filter ); + element.children = new CKEDITOR.htmlParser.fragment.fromHtml( writer.getHtml() ).children; + isChildrenFiltered = 1; + } + }; + + if ( filter ) + { + while ( true ) + { + if ( !( writeName = filter.onElementName( writeName ) ) ) + return; + + element.name = writeName; + + if ( !( element = filter.onElement( element ) ) ) + return; + + element.parent = this.parent; + + if ( element.name == writeName ) + break; + + // If the element has been replaced with something of a + // different type, then make the replacement write itself. + if ( element.type != CKEDITOR.NODE_ELEMENT ) + { + element.writeHtml( writer, filter ); + return; + } + + writeName = element.name; + + // This indicate that the element has been dropped by + // filter but not the children. + if ( !writeName ) + { + this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter ); + return; + } + } + + // The element may have been changed, so update the local + // references. + attributes = element.attributes; + } + + // Open element tag. + writer.openTag( writeName, attributes ); + + // Copy all attributes to an array. + var attribsArray = []; + // Iterate over the attributes twice since filters may alter + // other attributes. + for( var i = 0 ; i < 2; i++ ) + { + for ( a in attributes ) + { + newAttrName = a; + value = attributes[ a ]; + if( i == 1 ) + attribsArray.push( [ a, value ] ); + else if ( filter ) + { + while ( true ) + { + if ( !( newAttrName = filter.onAttributeName( a ) ) ) + { + delete attributes[ a ]; + break; + } + else if( newAttrName != a ) + { + delete attributes[ a ]; + a = newAttrName; + continue; + } + else + break; + } + if( newAttrName ) + { + if( ( value = filter.onAttribute( element, newAttrName, value ) ) === false ) + delete attributes[ newAttrName ]; + else + attributes [ newAttrName ] = value; + } + } + } + } + // Sort the attributes by name. + if ( writer.sortAttributes ) + attribsArray.sort( sortAttribs ); + + // Send the attributes. + var len = attribsArray.length; + for ( i = 0 ; i < len ; i++ ) + { + var attrib = attribsArray[ i ]; + writer.attribute( attrib[0], attrib[1] ); + } + + // Close the tag. + writer.openTagClose( writeName, element.isEmpty ); + + if ( !element.isEmpty ) + { + this.writeChildrenHtml.call( element, writer, isChildrenFiltered ? null : filter ); + // Close the element. + writer.closeTag( writeName ); + } + }, + + writeChildrenHtml : function( writer, filter ) + { + // Send children. + CKEDITOR.htmlParser.fragment.prototype.writeChildrenHtml.apply( this, arguments ); + + } + }; +})(); diff --git a/edgware/static/ckeditor/_source/core/htmlparser/filter.js b/edgware/static/ckeditor/_source/core/htmlparser/filter.js new file mode 100755 index 0000000..cbe4bed --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser/filter.js @@ -0,0 +1,262 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +(function() +{ + CKEDITOR.htmlParser.filter = CKEDITOR.tools.createClass( + { + $ : function( rules ) + { + this._ = + { + elementNames : [], + attributeNames : [], + elements : { $length : 0 }, + attributes : { $length : 0 } + }; + + if ( rules ) + this.addRules( rules, 10 ); + }, + + proto : + { + addRules : function( rules, priority ) + { + if ( typeof priority != 'number' ) + priority = 10; + + // Add the elementNames. + addItemsToList( this._.elementNames, rules.elementNames, priority ); + + // Add the attributeNames. + addItemsToList( this._.attributeNames, rules.attributeNames, priority ); + + // Add the elements. + addNamedItems( this._.elements, rules.elements, priority ); + + // Add the attributes. + addNamedItems( this._.attributes, rules.attributes, priority ); + + // Add the text. + this._.text = transformNamedItem( this._.text, rules.text, priority ) || this._.text; + + // Add the comment. + this._.comment = transformNamedItem( this._.comment, rules.comment, priority ) || this._.comment; + + // Add root fragment. + this._.root = transformNamedItem( this._.root, rules.root, priority ) || this._.root; + }, + + onElementName : function( name ) + { + return filterName( name, this._.elementNames ); + }, + + onAttributeName : function( name ) + { + return filterName( name, this._.attributeNames ); + }, + + onText : function( text ) + { + var textFilter = this._.text; + return textFilter ? textFilter.filter( text ) : text; + }, + + onComment : function( commentText, comment ) + { + var textFilter = this._.comment; + return textFilter ? textFilter.filter( commentText, comment ) : commentText; + }, + + onFragment : function( element ) + { + var rootFilter = this._.root; + return rootFilter ? rootFilter.filter( element ) : element; + }, + + onElement : function( element ) + { + // We must apply filters set to the specific element name as + // well as those set to the generic $ name. So, add both to an + // array and process them in a small loop. + var filters = [ this._.elements[ '^' ], this._.elements[ element.name ], this._.elements.$ ], + filter, ret; + + for ( var i = 0 ; i < 3 ; i++ ) + { + filter = filters[ i ]; + if ( filter ) + { + ret = filter.filter( element, this ); + + if ( ret === false ) + return null; + + if ( ret && ret != element ) + return this.onNode( ret ); + + // The non-root element has been dismissed by one of the filters. + if ( element.parent && !element.name ) + break; + } + } + + return element; + }, + + onNode : function( node ) + { + var type = node.type; + + return type == CKEDITOR.NODE_ELEMENT ? this.onElement( node ) : + type == CKEDITOR.NODE_TEXT ? new CKEDITOR.htmlParser.text( this.onText( node.value ) ) : + type == CKEDITOR.NODE_COMMENT ? new CKEDITOR.htmlParser.comment( this.onComment( node.value ) ): + null; + }, + + onAttribute : function( element, name, value ) + { + var filter = this._.attributes[ name ]; + + if ( filter ) + { + var ret = filter.filter( value, element, this ); + + if ( ret === false ) + return false; + + if ( typeof ret != 'undefined' ) + return ret; + } + + return value; + } + } + }); + + function filterName( name, filters ) + { + for ( var i = 0 ; name && i < filters.length ; i++ ) + { + var filter = filters[ i ]; + name = name.replace( filter[ 0 ], filter[ 1 ] ); + } + return name; + } + + function addItemsToList( list, items, priority ) + { + if( typeof items == 'function' ) + items = [ items ]; + + var i, j, + listLength = list.length, + itemsLength = items && items.length; + + if ( itemsLength ) + { + // Find the index to insert the items at. + for ( i = 0 ; i < listLength && list[ i ].pri < priority ; i++ ) + { /*jsl:pass*/ } + + // Add all new items to the list at the specific index. + for ( j = itemsLength - 1 ; j >= 0 ; j-- ) + { + var item = items[ j ]; + if ( item ) + { + item.pri = priority; + list.splice( i, 0, item ); + } + } + } + } + + function addNamedItems( hashTable, items, priority ) + { + if ( items ) + { + for ( var name in items ) + { + var current = hashTable[ name ]; + + hashTable[ name ] = + transformNamedItem( + current, + items[ name ], + priority ); + + if ( !current ) + hashTable.$length++; + } + } + } + + function transformNamedItem( current, item, priority ) + { + if ( item ) + { + item.pri = priority; + + if ( current ) + { + // If the current item is not an Array, transform it. + if ( !current.splice ) + { + if ( current.pri > priority ) + current = [ item, current ]; + else + current = [ current, item ]; + + current.filter = callItems; + } + else + addItemsToList( current, item, priority ); + + return current; + } + else + { + item.filter = item; + return item; + } + } + } + + function callItems( currentEntry ) + { + var isObject = ( typeof currentEntry == 'object' ); + + for ( var i = 0 ; i < this.length ; i++ ) + { + var item = this[ i ], + ret = item.apply( window, arguments ); + + if ( typeof ret != 'undefined' ) + { + if ( ret === false ) + return false; + + if ( isObject && ret != currentEntry ) + return ret; + } + } + + return null; + } +})(); + +// "entities" plugin +/* +{ + text : function( text ) + { + // TODO : Process entities. + return text.toUpperCase(); + } +}; +*/ diff --git a/edgware/static/ckeditor/_source/core/htmlparser/fragment.js b/edgware/static/ckeditor/_source/core/htmlparser/fragment.js new file mode 100755 index 0000000..6c7686c --- /dev/null +++ b/edgware/static/ckeditor/_source/core/htmlparser/fragment.js @@ -0,0 +1,468 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * A lightweight representation of an HTML DOM structure. + * @constructor + * @example + */ +CKEDITOR.htmlParser.fragment = function() +{ + /** + * The nodes contained in the root of this fragment. + * @type Array + * @example + * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( 'Sample Text' ); + * alert( fragment.children.length ); "2" + */ + this.children = []; + + /** + * Get the fragment parent. Should always be null. + * @type Object + * @default null + * @example + */ + this.parent = null; + + /** @private */ + this._ = + { + isBlockLike : true, + hasInlineStarted : false + }; +}; + +(function() +{ + // Elements which the end tag is marked as optional in the HTML 4.01 DTD + // (expect empty elements). + var optionalClose = {colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1}; + + // Block-level elements whose internal structure should be respected during + // parser fixing. + var nonBreakingBlocks = CKEDITOR.tools.extend( + {table:1,ul:1,ol:1,dl:1}, + CKEDITOR.dtd.table, CKEDITOR.dtd.ul, CKEDITOR.dtd.ol, CKEDITOR.dtd.dl ), + listBlocks = CKEDITOR.dtd.$list, listItems = CKEDITOR.dtd.$listItem; + + /** + * Creates a {@link CKEDITOR.htmlParser.fragment} from an HTML string. + * @param {String} fragmentHtml The HTML to be parsed, filling the fragment. + * @param {Number} [fixForBody=false] Wrap body with specified element if needed. + * @returns CKEDITOR.htmlParser.fragment The fragment created. + * @example + * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( 'Sample Text' ); + * alert( fragment.children[0].name ); "b" + * alert( fragment.children[1].value ); " Text" + */ + CKEDITOR.htmlParser.fragment.fromHtml = function( fragmentHtml, fixForBody ) + { + var parser = new CKEDITOR.htmlParser(), + html = [], + fragment = new CKEDITOR.htmlParser.fragment(), + pendingInline = [], + currentNode = fragment, + // Indicate we're inside a
       element, spaces should be touched differently.
      +			inPre = false,
      +			returnPoint;
      +
      +		function checkPending( newTagName )
      +		{
      +			if ( pendingInline.length > 0 )
      +			{
      +				for ( var i = 0 ; i < pendingInline.length ; i++ )
      +				{
      +					var pendingElement = pendingInline[ i ],
      +						pendingName = pendingElement.name,
      +						pendingDtd = CKEDITOR.dtd[ pendingName ],
      +						currentDtd = currentNode.name && CKEDITOR.dtd[ currentNode.name ];
      +
      +					if ( ( !currentDtd || currentDtd[ pendingName ] ) && ( !newTagName || !pendingDtd || pendingDtd[ newTagName ] || !CKEDITOR.dtd[ newTagName ] ) )
      +					{
      +						// Get a clone for the pending element.
      +						pendingElement = pendingElement.clone();
      +
      +						// Add it to the current node and make it the current,
      +						// so the new element will be added inside of it.
      +						pendingElement.parent = currentNode;
      +						currentNode = pendingElement;
      +
      +						// Remove the pending element (back the index by one
      +						// to properly process the next entry).
      +						pendingInline.splice( i, 1 );
      +						i--;
      +					}
      +				}
      +			}
      +		}
      +
      +		function addElement( element, target, enforceCurrent )
      +		{
      +			target = target || currentNode || fragment;
      +
      +			// If the target is the fragment and this element can't go inside
      +			// body (if fixForBody).
      +			if ( fixForBody && !target.type )
      +			{
      +				var elementName, realElementName;
      +				if ( element.attributes
      +					 && ( realElementName =
      +						  element.attributes[ '_cke_real_element_type' ] ) )
      +					elementName = realElementName;
      +				else
      +					elementName =  element.name;
      +				if ( elementName
      +						&& !( elementName in CKEDITOR.dtd.$body )
      +						&& !( elementName in CKEDITOR.dtd.$nonBodyContent )  )
      +				{
      +					var savedCurrent = currentNode;
      +
      +					// Create a 

      in the fragment. + currentNode = target; + parser.onTagOpen( fixForBody, {} ); + + // The new target now is the

      . + target = currentNode; + + if ( enforceCurrent ) + currentNode = savedCurrent; + } + } + + // Rtrim empty spaces on block end boundary. (#3585) + if ( element._.isBlockLike + && element.name != 'pre' ) + { + + var length = element.children.length, + lastChild = element.children[ length - 1 ], + text; + if ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT ) + { + if ( !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) ) + element.children.length = length -1; + else + lastChild.value = text; + } + } + + target.add( element ); + + if ( element.returnPoint ) + { + currentNode = element.returnPoint; + delete element.returnPoint; + } + } + + parser.onTagOpen = function( tagName, attributes, selfClosing ) + { + var element = new CKEDITOR.htmlParser.element( tagName, attributes ); + + // "isEmpty" will be always "false" for unknown elements, so we + // must force it if the parser has identified it as a selfClosing tag. + if ( element.isUnknown && selfClosing ) + element.isEmpty = true; + + // This is a tag to be removed if empty, so do not add it immediately. + if ( CKEDITOR.dtd.$removeEmpty[ tagName ] ) + { + pendingInline.push( element ); + return; + } + else if ( tagName == 'pre' ) + inPre = true; + else if ( tagName == 'br' && inPre ) + { + currentNode.add( new CKEDITOR.htmlParser.text( '\n' ) ); + return; + } + + var currentName = currentNode.name; + + var currentDtd = currentName + && ( CKEDITOR.dtd[ currentName ] + || ( currentNode._.isBlockLike ? CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ); + + // If the element cannot be child of the current element. + if ( currentDtd // Fragment could receive any elements. + && !element.isUnknown && !currentNode.isUnknown && !currentDtd[ tagName ] ) + { + + var reApply = false, + addPoint; // New position to start adding nodes. + + // Fixing malformed nested lists by moving it into a previous list item. (#3828) + if( tagName in listBlocks + && currentName in listBlocks ) + { + var children = currentNode.children, + lastChild = children[ children.length - 1 ]; + + // Establish the list item if it's not existed. + if ( !( lastChild && lastChild.name in listItems ) ) + addElement( ( lastChild = new CKEDITOR.htmlParser.element( 'li' ) ), currentNode ); + + returnPoint = currentNode, addPoint = lastChild; + } + // If the element name is the same as the current element name, + // then just close the current one and append the new one to the + // parent. This situation usually happens with

      ,

    1. ,
      and + //
      , specially in IE. Do not enter in this if block in this case. + else if ( tagName == currentName ) + { + addElement( currentNode, currentNode.parent ); + } + else + { + if ( nonBreakingBlocks[ currentName ] ) + { + if ( !returnPoint ) + returnPoint = currentNode; + } + else + { + addElement( currentNode, currentNode.parent, true ); + + if ( !optionalClose[ currentName ] ) + { + // The current element is an inline element, which + // cannot hold the new one. Put it in the pending list, + // and try adding the new one after it. + pendingInline.unshift( currentNode ); + } + } + + reApply = true; + } + + if( addPoint ) + currentNode = addPoint; + // Try adding it to the return point, or the parent element. + else + currentNode = currentNode.returnPoint || currentNode.parent; + + if ( reApply ) + { + parser.onTagOpen.apply( this, arguments ); + return; + } + } + + checkPending( tagName ); + + element.parent = currentNode; + element.returnPoint = returnPoint; + returnPoint = 0; + + if ( element.isEmpty ) + addElement( element ); + else + currentNode = element; + }; + + parser.onTagClose = function( tagName ) + { + // Check if there is any pending tag to be closed. + for ( var i = pendingInline.length - 1 ; i >= 0 ; i-- ) + { + // If found, just remove it from the list. + if ( tagName == pendingInline[ i ].name ) + { + pendingInline.splice( i, 1 ); + return; + } + } + + var pendingAdd = [], + newPendingInline = [], + candidate = currentNode; + + while ( candidate.type && candidate.name != tagName ) + { + // If this is an inline element, add it to the pending list, if we're + // really closing one of the parents element later, they will continue + // after it. + if ( !candidate._.isBlockLike ) + newPendingInline.unshift( candidate ); + + // This node should be added to it's parent at this point. But, + // it should happen only if the closing tag is really closing + // one of the nodes. So, for now, we just cache it. + pendingAdd.push( candidate ); + + candidate = candidate.parent; + } + + if ( candidate.type ) + { + // Add all elements that have been found in the above loop. + for ( i = 0 ; i < pendingAdd.length ; i++ ) + { + var node = pendingAdd[ i ]; + addElement( node, node.parent ); + } + + currentNode = candidate; + + if( currentNode.name == 'pre' ) + inPre = false; + + addElement( candidate, candidate.parent ); + + // The parent should start receiving new nodes now, except if + // addElement changed the currentNode. + if ( candidate == currentNode ) + currentNode = currentNode.parent; + + pendingInline = pendingInline.concat( newPendingInline ); + } + + if( tagName == 'body' ) + fixForBody = false; + }; + + parser.onText = function( text ) + { + // Trim empty spaces at beginning of element contents except
      .
      +			if ( !currentNode._.hasInlineStarted && !inPre )
      +			{
      +				text = CKEDITOR.tools.ltrim( text );
      +
      +				if ( text.length === 0 )
      +					return;
      +			}
      +
      +			checkPending();
      +
      +			if ( fixForBody
      +				 && ( !currentNode.type || currentNode.name == 'body' )
      +				 && CKEDITOR.tools.trim( text ) )
      +			{
      +				this.onTagOpen( fixForBody, {} );
      +			}
      +
      +			// Shrinking consequential spaces into one single for all elements
      +			// text contents.
      +			if ( !inPre )
      +				text = text.replace( /[\t\r\n ]{2,}|[\t\r\n]/g, ' ' );
      +
      +			currentNode.add( new CKEDITOR.htmlParser.text( text ) );
      +		};
      +
      +		parser.onCDATA = function( cdata )
      +		{
      +			currentNode.add( new CKEDITOR.htmlParser.cdata( cdata ) );
      +		};
      +
      +		parser.onComment = function( comment )
      +		{
      +			currentNode.add( new CKEDITOR.htmlParser.comment( comment ) );
      +		};
      +
      +		// Parse it.
      +		parser.parse( fragmentHtml );
      +
      +		// Close all pending nodes.
      +		while ( currentNode.type )
      +		{
      +			var parent = currentNode.parent,
      +				node = currentNode;
      +
      +			if ( fixForBody
      +				 && ( !parent.type || parent.name == 'body' )
      +				 && !CKEDITOR.dtd.$body[ node.name ] )
      +			{
      +				currentNode = parent;
      +				parser.onTagOpen( fixForBody, {} );
      +				parent = currentNode;
      +			}
      +
      +			parent.add( node );
      +			currentNode = parent;
      +		}
      +
      +		return fragment;
      +	};
      +
      +	CKEDITOR.htmlParser.fragment.prototype =
      +	{
      +		/**
      +		 * Adds a node to this fragment.
      +		 * @param {Object} node The node to be added. It can be any of of the
      +		 *		following types: {@link CKEDITOR.htmlParser.element},
      +		 *		{@link CKEDITOR.htmlParser.text} and
      +		 *		{@link CKEDITOR.htmlParser.comment}.
      +		 * @example
      +		 */
      +		add : function( node )
      +		{
      +			var len = this.children.length,
      +				previous = len > 0 && this.children[ len - 1 ] || null;
      +
      +			if ( previous )
      +			{
      +				// If the block to be appended is following text, trim spaces at
      +				// the right of it.
      +				if ( node._.isBlockLike && previous.type == CKEDITOR.NODE_TEXT )
      +				{
      +					previous.value = CKEDITOR.tools.rtrim( previous.value );
      +
      +					// If we have completely cleared the previous node.
      +					if ( previous.value.length === 0 )
      +					{
      +						// Remove it from the list and add the node again.
      +						this.children.pop();
      +						this.add( node );
      +						return;
      +					}
      +				}
      +
      +				previous.next = node;
      +			}
      +
      +			node.previous = previous;
      +			node.parent = this;
      +
      +			this.children.push( node );
      +
      +			this._.hasInlineStarted = node.type == CKEDITOR.NODE_TEXT || ( node.type == CKEDITOR.NODE_ELEMENT && !node._.isBlockLike );
      +		},
      +
      +		/**
      +		 * Writes the fragment HTML to a CKEDITOR.htmlWriter.
      +		 * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
      +		 * @example
      +		 * var writer = new CKEDITOR.htmlWriter();
      +		 * var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<P><B>Example' );
      +		 * fragment.writeHtml( writer )
      +		 * alert( writer.getHtml() );  "<p><b>Example</b></p>"
      +		 */
      +		writeHtml : function( writer, filter )
      +		{
      +			var isChildrenFiltered;
      +			this.filterChildren = function()
      +			{
      +				var writer = new CKEDITOR.htmlParser.basicWriter();
      +				this.writeChildrenHtml.call( this, writer, filter, true );
      +				var html = writer.getHtml();
      +				this.children = new CKEDITOR.htmlParser.fragment.fromHtml( html ).children;
      +				isChildrenFiltered = 1;
      +			};
      +
      +			// Filtering the root fragment before anything else.
      +			!this.name && filter && filter.onFragment( this );
      +
      +			this.writeChildrenHtml( writer, isChildrenFiltered ? null : filter );
      +		},
      +
      +		writeChildrenHtml : function( writer, filter )
      +		{
      +			for ( var i = 0 ; i < this.children.length ; i++ )
      +				this.children[i].writeHtml( writer, filter );
      +		}
      +	};
      +})();
      diff --git a/edgware/static/ckeditor/_source/core/htmlparser/text.js b/edgware/static/ckeditor/_source/core/htmlparser/text.js
      new file mode 100755
      index 0000000..0d63ac9
      --- /dev/null
      +++ b/edgware/static/ckeditor/_source/core/htmlparser/text.js
      @@ -0,0 +1,55 @@
      +/*
      +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
      +For licensing, see LICENSE.html or http://ckeditor.com/license
      +*/
      +
      +(function()
      +{
      +	var spacesRegex = /[\t\r\n ]{2,}|[\t\r\n]/g;
      +
      +	/**
      +	 * A lightweight representation of HTML text.
      +	 * @constructor
      +	 * @example
      +	 */
      + 	CKEDITOR.htmlParser.text = function( value )
      +	{
      +		/**
      +		 * The text value.
      +		 * @type String
      +		 * @example
      +		 */
      +		this.value = value;
      +
      +		/** @private */
      +		this._ =
      +		{
      +			isBlockLike : false
      +		};
      +	};
      +
      +	CKEDITOR.htmlParser.text.prototype =
      +	{
      +		/**
      +		 * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
      +		 * @type Number
      +		 * @example
      +		 */
      +		type : CKEDITOR.NODE_TEXT,
      +
      +		/**
      +		 * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
      +		 * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
      +		 * @example
      +		 */
      +		writeHtml : function( writer, filter )
      +		{
      +			var text = this.value;
      +
      +			if ( filter && !( text = filter.onText( text, this ) ) )
      +				return;
      +
      +			writer.text( text );
      +		}
      +	};
      +})();
      diff --git a/edgware/static/ckeditor/_source/core/imagecacher.js b/edgware/static/ckeditor/_source/core/imagecacher.js
      new file mode 100755
      index 0000000..3a635bb
      --- /dev/null
      +++ b/edgware/static/ckeditor/_source/core/imagecacher.js
      @@ -0,0 +1,58 @@
      +/*
      +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
      +For licensing, see LICENSE.html or http://ckeditor.com/license
      +*/
      +
      +(function()
      +{
      +	var loaded = {};
      +
      +	var loadImage = function( image, callback )
      +	{
      +		var doCallback = function()
      +			{
      +				loaded[ image ] = 1;
      +				callback();
      +			};
      +
      +		var img = new CKEDITOR.dom.element( 'img' );
      +		img.on( 'load', doCallback );
      +		img.on( 'error', doCallback );
      +		img.setAttribute( 'src', image );
      +	};
      +
      +	/**
      +	 * Load images into the browser cache.
      +	 * @namespace
      +	 * @example
      +	 */
      + 	CKEDITOR.imageCacher =
      +	{
      +		/**
      +		 * Loads one or more images.
      +		 * @param {Array} images The URLs for the images to be loaded.
      +		 * @param {Function} callback The function to be called once all images
      +		 *		are loaded.
      +		 */
      +		load : function( images, callback )
      +		{
      +			var pendingCount = images.length;
      +
      +			var checkPending = function()
      +			{
      +				if ( --pendingCount === 0 )
      +					callback();
      +			};
      +
      +			for ( var i = 0 ; i < images.length ; i++ )
      +			{
      +				var image = images[ i ];
      +
      +				if ( loaded[ image ] )
      +					checkPending();
      +				else
      +					loadImage( image, checkPending );
      +			}
      +		}
      +	};
      +})();
      diff --git a/edgware/static/ckeditor/_source/core/lang.js b/edgware/static/ckeditor/_source/core/lang.js
      new file mode 100755
      index 0000000..d24fa1a
      --- /dev/null
      +++ b/edgware/static/ckeditor/_source/core/lang.js
      @@ -0,0 +1,151 @@
      +/*
      +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
      +For licensing, see LICENSE.html or http://ckeditor.com/license
      +*/
      +
      +(function()
      +{
      +	var loadedLangs = {};
      +
      +	CKEDITOR.lang =
      +	{
      +		/**
      +		 * The list of languages available in the editor core.
      +		 * @type Object
      +		 * @example
      +		 * alert( CKEDITOR.lang.en );  // "true"
      +		 */
      +		languages :
      +		{
      +			'af'	: 1,
      +			'ar'	: 1,
      +			'bg'	: 1,
      +			'bn'	: 1,
      +			'bs'	: 1,
      +			'ca'	: 1,
      +			'cs'	: 1,
      +			'da'	: 1,
      +			'de'	: 1,
      +			'el'	: 1,
      +			'en-au'	: 1,
      +			'en-ca'	: 1,
      +			'en-uk'	: 1,
      +			'en'	: 1,
      +			'eo'	: 1,
      +			'es'	: 1,
      +			'et'	: 1,
      +			'eu'	: 1,
      +			'fa'	: 1,
      +			'fi'	: 1,
      +			'fo'	: 1,
      +			'fr-ca'	: 1,
      +			'fr'	: 1,
      +			'gl'	: 1,
      +			'gu'	: 1,
      +			'he'	: 1,
      +			'hi'	: 1,
      +			'hr'	: 1,
      +			'hu'	: 1,
      +			'is'	: 1,
      +			'it'	: 1,
      +			'ja'	: 1,
      +			'km'	: 1,
      +			'ko'	: 1,
      +			'lt'	: 1,
      +			'lv'	: 1,
      +			'mn'	: 1,
      +			'ms'	: 1,
      +			'nb'	: 1,
      +			'nl'	: 1,
      +			'no'	: 1,
      +			'pl'	: 1,
      +			'pt-br'	: 1,
      +			'pt'	: 1,
      +			'ro'	: 1,
      +			'ru'	: 1,
      +			'sk'	: 1,
      +			'sl'	: 1,
      +			'sr-latn'	: 1,
      +			'sr'	: 1,
      +			'sv'	: 1,
      +			'th'	: 1,
      +			'tr'	: 1,
      +			'uk'	: 1,
      +			'vi'	: 1,
      +			'zh-cn'	: 1,
      +			'zh'	: 1
      +		},
      +
      +		/**
      +		 * Loads a specific language file, or auto detect it. A callback is
      +		 * then called when the file gets loaded.
      +		 * @param {String} languageCode The code of the language file to be
      +		 *		loaded. If "autoDetect" is set to true, this language will be
      +		 *		used as the default one, if the detect language is not
      +		 *		available in the core.
      +		 * @param {Boolean} autoDetect Indicates that the function must try to
      +		 *		detect the user language and load it instead.
      +		 * @param {Function} callback The function to be called once the
      +		 *		language file is loaded. Two parameters are passed to this
      +		 *		function: the language code and the loaded language entries.
      +		 * @example
      +		 */
      +		load : function( languageCode, defaultLanguage, callback )
      +		{
      +			// If no languageCode - fallback to browser or default.
      +			// If languageCode - fallback to no-localized version or default.
      +			if ( !languageCode || !CKEDITOR.lang.languages[ languageCode ] )
      +				languageCode = this.detect( defaultLanguage, languageCode );
      +
      +			if ( !this[ languageCode ] )
      +			{
      +				CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
      +					'_source/' +	// @Packager.RemoveLine
      +					'lang/' + languageCode + '.js' ),
      +					function()
      +						{
      +							callback( languageCode, this[ languageCode ] );
      +						}
      +						, this );
      +			}
      +			else
      +				callback( languageCode, this[ languageCode ] );
      +		},
      +
      +		/**
      +		 * Returns the language that best fit the user language. For example,
      +		 * suppose that the user language is "pt-br". If this language is
      +		 * supported by the editor, it is returned. Otherwise, if only "pt" is
      +		 * supported, it is returned instead. If none of the previous are
      +		 * supported, a default language is then returned.
      +		 * @param {String} defaultLanguage The default language to be returned
      +		 *		if the user language is not supported.
      +		 * @returns {String} The detected language code.
      +		 * @example
      +		 * alert( CKEDITOR.lang.detect( 'en' ) );  // e.g., in a German browser: "de"
      +		 */
      +		detect : function( defaultLanguage, probeLanguage )
      +		{
      +			var languages = this.languages;
      +			probeLanguage = probeLanguage || navigator.userLanguage || navigator.language;
      +
      +			var parts = probeLanguage
      +					.toLowerCase()
      +					.match( /([a-z]+)(?:-([a-z]+))?/ ),
      +				lang = parts[1],
      +				locale = parts[2];
      +
      +			if ( languages[ lang + '-' + locale ] )
      +				lang = lang + '-' + locale;
      +			else if ( !languages[ lang ] )
      +				lang = null;
      +
      +			CKEDITOR.lang.detect = lang ?
      +				function() { return lang; } :
      +				function( defaultLanguage ) { return defaultLanguage; };
      +
      +			return lang || defaultLanguage;
      +		}
      +	};
      +
      +})();
      diff --git a/edgware/static/ckeditor/_source/core/loader.js b/edgware/static/ckeditor/_source/core/loader.js
      new file mode 100755
      index 0000000..62c4280
      --- /dev/null
      +++ b/edgware/static/ckeditor/_source/core/loader.js
      @@ -0,0 +1,239 @@
      +/*
      +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
      +For licensing, see LICENSE.html or http://ckeditor.com/license
      +*/
      +
      +/**
      + * @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to
      + *		load core scripts and their dependencies from _source.
      + */
      +
      +if ( typeof CKEDITOR == 'undefined' )
      +	CKEDITOR = {};
      +
      +if ( !CKEDITOR.loader )
      +{
      +	/**
      +	 * Load core scripts and their dependencies from _source.
      +	 * @namespace
      +	 * @example
      +	 */
      +	CKEDITOR.loader = (function()
      +	{
      +		// Table of script names and their dependencies.
      +		var scripts =
      +		{
      +			'core/_bootstrap'		: [ 'core/config', 'core/ckeditor', 'core/plugins', 'core/scriptloader', 'core/tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'core/dom/comment', 'core/dom/elementpath', 'core/dom/text', 'core/dom/range' ],
      +			'core/ajax'				: [ 'core/xml' ],
      +			'core/ckeditor'			: [ 'core/ckeditor_basic', 'core/dom', 'core/dtd', 'core/dom/document', 'core/dom/element', 'core/editor', 'core/event', 'core/htmlparser', 'core/htmlparser/element', 'core/htmlparser/fragment', 'core/htmlparser/filter', 'core/htmlparser/basicwriter', 'core/tools' ],
      +			'core/ckeditor_base'	: [],
      +			'core/ckeditor_basic'	: [ 'core/editor_basic', 'core/env', 'core/event' ],
      +			'core/command'			: [],
      +			'core/config'			: [ 'core/ckeditor_base' ],
      +			'core/dom'				: [],
      +			'core/dom/comment'		: [ 'core/dom/node' ],
      +			'core/dom/document'		: [ 'core/dom', 'core/dom/domobject', 'core/dom/window' ],
      +			'core/dom/documentfragment'	: [ 'core/dom/element' ],
      +			'core/dom/element'		: [ 'core/dom', 'core/dom/document', 'core/dom/domobject', 'core/dom/node', 'core/dom/nodelist', 'core/tools' ],
      +			'core/dom/elementpath'	: [ 'core/dom/element' ],
      +			'core/dom/event'		: [],
      +			'core/dom/node'			: [ 'core/dom/domobject', 'core/tools' ],
      +			'core/dom/nodelist'		: [ 'core/dom/node' ],
      +			'core/dom/domobject'	: [ 'core/dom/event' ],
      +			'core/dom/range'		: [ 'core/dom/document', 'core/dom/documentfragment', 'core/dom/element', 'core/dom/walker' ],
      +			'core/dom/text'			: [ 'core/dom/node', 'core/dom/domobject' ],
      +			'core/dom/walker'		: [ 'core/dom/node' ],
      +			'core/dom/window'		: [ 'core/dom/domobject' ],
      +			'core/dtd'				: [ 'core/tools' ],
      +			'core/editor'			: [ 'core/command', 'core/config', 'core/editor_basic', 'core/focusmanager', 'core/lang', 'core/plugins', 'core/skins', 'core/themes', 'core/tools', 'core/ui' ],
      +			'core/editor_basic'		: [ 'core/event' ],
      +			'core/env'				: [],
      +			'core/event'			: [],
      +			'core/focusmanager'		: [],
      +			'core/htmlparser'		: [],
      +			'core/htmlparser/comment'	: [ 'core/htmlparser' ],
      +			'core/htmlparser/element'	: [ 'core/htmlparser', 'core/htmlparser/fragment' ],
      +			'core/htmlparser/fragment'	: [ 'core/htmlparser', 'core/htmlparser/comment', 'core/htmlparser/text', 'core/htmlparser/cdata' ],
      +			'core/htmlparser/text'		: [ 'core/htmlparser' ],
      +			'core/htmlparser/cdata'		: [ 'core/htmlparser' ],
      +			'core/htmlparser/filter'	: [ 'core/htmlparser' ],
      +			'core/htmlparser/basicwriter': [ 'core/htmlparser' ],
      +			'core/imagecacher'		: [ 'core/dom/element' ],
      +			'core/lang'				: [],
      +			'core/plugins'			: [ 'core/resourcemanager' ],
      +			'core/resourcemanager'	: [ 'core/scriptloader', 'core/tools' ],
      +			'core/scriptloader'		: [ 'core/dom/element', 'core/env' ],
      +			'core/skins'			: [ 'core/imagecacher', 'core/scriptloader' ],
      +			'core/themes'			: [ 'core/resourcemanager' ],
      +			'core/tools'			: [ 'core/env' ],
      +			'core/ui'				: [],
      +			'core/xml'				: [ 'core/env' ]
      +		};
      +
      +		var basePath = (function()
      +		{
      +			// This is a copy of CKEDITOR.basePath, but requires the script having
      +			// "_source/core/loader.js".
      +			if ( CKEDITOR && CKEDITOR.basePath )
      +				return CKEDITOR.basePath;
      +
      +			// Find out the editor directory path, based on its ',
      +
      +		onShow : function()
      +		{
      +			if ( CKEDITOR.env.ie )
      +				this.getParentEditor().document.getBody().$.contentEditable = 'false';
      +
      +			// FIREFOX BUG: Force the browser to render the dialog to make the to-be-
      +			// inserted iframe editable. (#3366)
      +			this.parts.dialog.$.offsetHeight;
      +
      +			var container = this.getContentElement( 'general', 'editing_area' ).getElement(),
      +				iframe = CKEDITOR.dom.element.createFromHtml( '' );
      +
      +			var lang = this.getParentEditor().lang;
      +
      +			iframe.setStyles(
      +				{
      +					width : '346px',
      +					height : '130px',
      +					'background-color' : 'white',
      +					border : '1px solid black'
      +				} );
      +			iframe.setCustomData( 'dialog', this );
      +
      +			var accTitle = lang.editorTitle.replace( '%1', lang.clipboard.title );
      +
      +			if ( CKEDITOR.env.ie )
      +				container.setHtml( ''
      +						+ CKEDITOR.tools.htmlEncode( accTitle )
      +						+ '' );
      +			else
      +			{
      +				container.setHtml( '' );
      +				container.setAttributes(
      +					{
      +						role : 'region',
      +						title : accTitle
      +					} );
      +				iframe.setAttributes(
      +					{
      +						role : 'region',
      +						title : ' '
      +					} );
      +			}
      +			container.append( iframe );
      +			if ( CKEDITOR.env.ie )
      +				container.setStyle( 'height', ( iframe.$.offsetHeight + 2 ) + 'px' );
      +
      +			if ( isCustomDomain )
      +			{
      +				CKEDITOR._cke_htmlToLoad = this.definition.htmlToLoad;
      +				iframe.setAttribute( 'src',
      +					'javascript:void( (function(){' +
      +						   'document.open();' +
      +						   'document.domain="' + document.domain + '";' +
      +						   'document.write( window.parent.CKEDITOR._cke_htmlToLoad );' +
      +						   'delete window.parent.CKEDITOR._cke_htmlToLoad;' +
      +						   'document.close();' +
      +					'})() )' );
      +			}
      +			else
      +			{
      +				var doc = iframe.$.contentWindow.document;
      +				doc.open();
      +				doc.write( this.definition.htmlToLoad );
      +				doc.close();
      +			}
      +		},
      +
      +		onHide : function()
      +		{
      +			if ( CKEDITOR.env.ie )
      +				this.getParentEditor().document.getBody().$.contentEditable = 'true';
      +		},
      +
      +		onLoad : function()
      +		{
      +			if ( ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) && editor.lang.dir == 'rtl' )
      +				this.parts.contents.setStyle( 'overflow', 'hidden' );
      +		},
      +
      +		onOk : function()
      +		{
      +			var container = this.getContentElement( 'general', 'editing_area' ).getElement(),
      +				iframe = container.getElementsByTag( 'iframe' ).getItem( 0 ),
      +				editor = this.getParentEditor(),
      +				html = iframe.$.contentWindow.document.body.innerHTML;
      +
      +			setTimeout( function(){
      +				editor.fire( 'paste', { 'html' : html } );
      +			}, 0 );
      +
      +		},
      +
      +		contents : [
      +			{
      +				id : 'general',
      +				label : editor.lang.common.generalTab,
      +				elements : [
      +					{
      +						type : 'html',
      +						id : 'securityMsg',
      +						html : '
      ' + editor.lang.clipboard.securityMsg + '
      ' + }, + { + type : 'html', + id : 'pasteMsg', + html : '
      '+editor.lang.clipboard.pasteMsg +'
      ' + }, + { + type : 'html', + id : 'editing_area', + style : 'width: 100%; height: 100%;', + html : '
      ', + focus : function() + { + var div = this.getElement(); + var iframe = div.getElementsByTag( 'iframe' ); + if ( iframe.count() < 1 ) + return; + iframe = iframe.getItem( 0 ); + + // #3291 : JAWS needs the 500ms delay to detect that the editor iframe + // iframe is no longer editable. So that it will put the focus into the + // Paste from Word dialog's editable area instead. + setTimeout( function() + { + iframe.$.contentWindow.focus(); + }, 500 ); + } + } + ] + } + ] + }; +}); diff --git a/edgware/static/ckeditor/_source/plugins/clipboard/plugin.js b/edgware/static/ckeditor/_source/plugins/clipboard/plugin.js new file mode 100755 index 0000000..d215221 --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/clipboard/plugin.js @@ -0,0 +1,358 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Clipboard support + */ + +(function() +{ + // Tries to execute any of the paste, cut or copy commands in IE. Returns a + // boolean indicating that the operation succeeded. + var execIECommand = function( editor, command ) + { + var doc = editor.document, + body = doc.getBody(); + + var enabled = false; + var onExec = function() + { + enabled = true; + }; + + // The following seems to be the only reliable way to detect that + // clipboard commands are enabled in IE. It will fire the + // onpaste/oncut/oncopy events only if the security settings allowed + // the command to execute. + body.on( command, onExec ); + + doc.$.execCommand( command ); + + body.removeListener( command, onExec ); + + return enabled; + }; + + // Attempts to execute the Cut and Copy operations. + var tryToCutCopy = + CKEDITOR.env.ie ? + function( editor, type ) + { + return execIECommand( editor, type ); + } + : // !IE. + function( editor, type ) + { + try + { + // Other browsers throw an error if the command is disabled. + return editor.document.$.execCommand( type ); + } + catch( e ) + { + return false; + } + }; + + // A class that represents one of the cut or copy commands. + var cutCopyCmd = function( type ) + { + this.type = type; + this.canUndo = ( this.type == 'cut' ); // We can't undo copy to clipboard. + }; + + cutCopyCmd.prototype = + { + exec : function( editor, data ) + { + var success = tryToCutCopy( editor, this.type ); + + if ( !success ) + alert( editor.lang.clipboard[ this.type + 'Error' ] ); // Show cutError or copyError. + + return success; + } + }; + + // Paste command. + var pasteCmd = + { + canUndo : false, + + exec : + CKEDITOR.env.ie ? + function( editor ) + { + // Prevent IE from pasting at the begining of the document. + editor.focus(); + + if ( !editor.document.getBody().fire( 'beforepaste' ) + && !execIECommand( editor, 'paste' ) ) + { + editor.fire( 'pasteDialog' ); + return false; + } + } + : + function( editor ) + { + try + { + if ( !editor.document.getBody().fire( 'beforepaste' ) + && !editor.document.$.execCommand( 'Paste', false, null ) ) + { + throw 0; + } + } + catch ( e ) + { + setTimeout( function() + { + editor.fire( 'pasteDialog' ); + }, 0 ); + return false; + } + } + }; + + // Listens for some clipboard related keystrokes, so they get customized. + var onKey = function( event ) + { + if ( this.mode != 'wysiwyg' ) + return; + + switch ( event.data.keyCode ) + { + // Paste + case CKEDITOR.CTRL + 86 : // CTRL+V + case CKEDITOR.SHIFT + 45 : // SHIFT+INS + + var body = this.document.getBody(); + + // Simulate 'beforepaste' event for all none-IEs. + if ( !CKEDITOR.env.ie && body.fire( 'beforepaste' ) ) + event.cancel(); + // Simulate 'paste' event for Opera/Firefox2. + else if ( CKEDITOR.env.opera + || CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) + body.fire( 'paste' ); + return; + + // Cut + case CKEDITOR.CTRL + 88 : // CTRL+X + case CKEDITOR.SHIFT + 46 : // SHIFT+DEL + + // Save Undo snapshot. + var editor = this; + this.fire( 'saveSnapshot' ); // Save before paste + setTimeout( function() + { + editor.fire( 'saveSnapshot' ); // Save after paste + }, 0 ); + } + }; + + // Allow to peek clipboard content by redirecting the + // pasting content into a temporary bin and grab the content of it. + function getClipboardData( evt, mode, callback ) + { + var doc = this.document; + + // Avoid recursions on 'paste' event for IE. + if ( CKEDITOR.env.ie && doc.getById( 'cke_pastebin' ) ) + return; + + var sel = this.getSelection(), + range = new CKEDITOR.dom.range( doc ); + + // Create container to paste into + var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : 'div', doc ); + pastebin.setAttribute( 'id', 'cke_pastebin' ); + // Safari requires a filler node inside the div to have the content pasted into it. (#4882) + CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) ); + doc.getBody().append( pastebin ); + + // It's definitely a better user experience if we make the paste-bin pretty unnoticed + // by pulling it off the screen, while this hack will make the paste-bin a control type element + // and that become a selection plain later. + if ( !CKEDITOR.env.ie && mode != 'html' ) + { + pastebin.setStyles( + { + position : 'absolute', + left : '-1000px', + // Position the bin exactly at the position of the selected element + // to avoid any subsequent document scroll. + top : sel.getStartElement().getDocumentPosition().y + 'px', + width : '1px', + height : '1px', + overflow : 'hidden' + }); + } + + var bms = sel.createBookmarks(); + + // Turn off design mode temporarily before give focus to the paste bin. + if ( mode == 'text' ) + { + if ( CKEDITOR.env.ie ) + { + var ieRange = doc.getBody().$.createTextRange(); + ieRange.moveToElementText( pastebin.$ ); + ieRange.execCommand( 'Paste' ); + evt.data.preventDefault(); + } + else + { + doc.$.designMode = 'off'; + pastebin.$.focus(); + } + } + else + { + range.setStartAt( pastebin, CKEDITOR.POSITION_AFTER_START ); + range.setEndAt( pastebin, CKEDITOR.POSITION_BEFORE_END ); + range.select( true ); + } + + // Wait a while and grab the pasted contents + window.setTimeout( function() + { + mode == 'text' && !CKEDITOR.env.ie && ( doc.$.designMode = 'on' ); + pastebin.remove(); + + // Grab the HTML contents. + // We need to look for a apple style wrapper on webkit it also adds + // a div wrapper if you copy/paste the body of the editor. + // Remove hidden div and restore selection. + var bogusSpan; + pastebin = ( CKEDITOR.env.webkit + && ( bogusSpan = pastebin.getFirst() ) + && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ? + bogusSpan : pastebin ); + + sel.selectBookmarks( bms ); + callback( pastebin[ 'get' + ( mode == 'text' ? 'Value' : 'Html' ) ]() ); + }, 0 ); + } + + // Register the plugin. + CKEDITOR.plugins.add( 'clipboard', + { + requires : [ 'htmldataprocessor' ], + init : function( editor ) + { + // Inserts processed data into the editor at the end of the + // events chain. + editor.on( 'paste', function( evt ) + { + var data = evt.data; + if ( data[ 'html' ] ) + editor.insertHtml( data[ 'html' ] ); + else if ( data[ 'text' ] ) + editor.insertText( data[ 'text' ] ); + + }, null, null, 1000 ); + + editor.on( 'pasteDialog', function( evt ) + { + setTimeout( function() + { + // Open default paste dialog. + editor.openDialog( 'paste' ); + }, 0 ); + }); + + function addButtonCommand( buttonName, commandName, command, ctxMenuOrder ) + { + var lang = editor.lang[ commandName ]; + + editor.addCommand( commandName, command ); + editor.ui.addButton( buttonName, + { + label : lang, + command : commandName + }); + + // If the "menu" plugin is loaded, register the menu item. + if ( editor.addMenuItems ) + { + editor.addMenuItem( commandName, + { + label : lang, + command : commandName, + group : 'clipboard', + order : ctxMenuOrder + }); + } + } + + addButtonCommand( 'Cut', 'cut', new cutCopyCmd( 'cut' ), 1 ); + addButtonCommand( 'Copy', 'copy', new cutCopyCmd( 'copy' ), 4 ); + addButtonCommand( 'Paste', 'paste', pasteCmd, 8 ); + + CKEDITOR.dialog.add( 'paste', CKEDITOR.getUrl( this.path + 'dialogs/paste.js' ) ); + + editor.on( 'key', onKey, editor ); + + var mode = editor.config.forcePasteAsPlainText ? 'text' : 'html'; + + // We'll be catching all pasted content in one line, regardless of whether the + // it's introduced by a document command execution (e.g. toolbar buttons) or + // user paste behaviors. (e.g. Ctrl-V) + editor.on( 'contentDom', function() + { + var body = editor.document.getBody(); + body.on( ( mode == 'text' && CKEDITOR.env.ie ) ? 'paste' : 'beforepaste', + function( evt ) + { + if( depressBeforePasteEvent ) + return; + + getClipboardData.call( editor, evt, mode, function ( data ) + { + // The very last guard to make sure the + // paste has successfully happened. + if ( !data ) + return; + + var dataTransfer = {}; + dataTransfer[ mode ] = data; + editor.fire( 'paste', dataTransfer ); + } ); + }); + + }); + + // If the "contextmenu" plugin is loaded, register the listeners. + if ( editor.contextMenu ) + { + var depressBeforePasteEvent; + function stateFromNamedCommand( command ) + { + // IE Bug: queryCommandEnabled('paste') fires also 'beforepaste', + // guard to distinguish from the ordinary sources( either + // keyboard paste or execCommand ) (#4874). + CKEDITOR.env.ie && command == 'Paste'&& ( depressBeforePasteEvent = 1 ); + + var retval = editor.document.$.queryCommandEnabled( command ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + depressBeforePasteEvent = 0; + return retval; + } + + editor.contextMenu.addListener( function() + { + return { + cut : stateFromNamedCommand( 'Cut' ), + + // Browser bug: 'Cut' has the correct states for both Copy and Cut. + copy : stateFromNamedCommand( 'Cut' ), + paste : CKEDITOR.env.webkit ? CKEDITOR.TRISTATE_OFF : stateFromNamedCommand( 'Paste' ) + }; + }); + } + } + }); +})(); diff --git a/edgware/static/ckeditor/_source/plugins/colorbutton/plugin.js b/edgware/static/ckeditor/_source/plugins/colorbutton/plugin.js new file mode 100755 index 0000000..b49e5f8 --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/colorbutton/plugin.js @@ -0,0 +1,215 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'colorbutton', +{ + requires : [ 'panelbutton', 'floatpanel', 'styles' ], + + init : function( editor ) + { + var config = editor.config, + lang = editor.lang.colorButton; + + var clickFn; + + if ( !CKEDITOR.env.hc ) + { + addButton( 'TextColor', 'fore', lang.textColorTitle ); + addButton( 'BGColor', 'back', lang.bgColorTitle ); + } + + function addButton( name, type, title ) + { + editor.ui.add( name, CKEDITOR.UI_PANELBUTTON, + { + label : title, + title : title, + className : 'cke_button_' + name.toLowerCase(), + modes : { wysiwyg : 1 }, + + panel : + { + css : editor.skin.editor.css + }, + + onBlock : function( panel, blockName ) + { + var block = panel.addBlock( blockName ); + block.autoSize = true; + block.element.addClass( 'cke_colorblock' ); + block.element.setHtml( renderColors( panel, type ) ); + + var keys = block.keys; + keys[ 39 ] = 'next'; // ARROW-RIGHT + keys[ 9 ] = 'next'; // TAB + keys[ 37 ] = 'prev'; // ARROW-LEFT + keys[ CKEDITOR.SHIFT + 9 ] = 'prev'; // SHIFT + TAB + keys[ 32 ] = 'click'; // SPACE + } + }); + } + + + function renderColors( panel, type ) + { + var output = [], + colors = config.colorButton_colors.split( ',' ); + + var clickFn = CKEDITOR.tools.addFunction( function( color, type ) + { + if ( color == '?' ) + { + var applyColorStyle = arguments.callee; + function onColorDialogClose( evt ) + { + this.removeListener( 'ok', onColorDialogClose ); + this.removeListener( 'cancel', onColorDialogClose ); + + evt.name == 'ok' && applyColorStyle( this.getContentElement( 'picker', 'selectedColor' ).getValue(), type ); + } + + editor.openDialog( 'colordialog', function() + { + this.on( 'ok', onColorDialogClose ); + this.on( 'cancel', onColorDialogClose ); + } ); + + return; + } + + editor.focus(); + + panel.hide(); + + var style = new CKEDITOR.style( config['colorButton_' + type + 'Style'], color && { color : color } ); + + editor.fire( 'saveSnapshot' ); + if ( color ) + style.apply( editor.document ); + else + style.remove( editor.document ); + editor.fire( 'saveSnapshot' ); + }); + + // Render the "Automatic" button. + output.push( + '' + + '' + + '' + + '' + + '' + + '' + + '
      ' + + '' + + '', + lang.auto, + '
      ' + + '
      ' + + '' ); + + // Render the color boxes. + for ( var i = 0 ; i < colors.length ; i++ ) + { + if ( ( i % 8 ) === 0 ) + output.push( '' ); + + var colorCode = colors[ i ]; + var colorLabel = editor.lang.colors[ colorCode ] || colorCode; + output.push( + '' ); + } + + // Render the "More Colors" button. + if ( config.colorButton_enableMore ) + { + output.push( + '' + + '' + + '' ); // It is later in the code. + } + + output.push( '
      ' + + '' + + '' + + '' + + '
      ' + + '', + lang.more, + '' + + '
      ' ); + + return output.join( '' ); + } + } +}); + +/** + * Whether to enable the "More Colors..." button in the color selectors. + * @default false + * @type Boolean + * @example + * config.colorButton_enableMore = false; + */ +CKEDITOR.config.colorButton_enableMore = true; + +/** + * Defines the colors to be displayed in the color selectors. It's a string + * containing the hexadecimal notation for HTML colors, without the "#" prefix. + * @type String + * @default '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF' + * @example + * // Brazil colors only. + * config.colorButton_colors = '00923E,F8C100,28166F'; + */ +CKEDITOR.config.colorButton_colors = + '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,' + + 'B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,' + + 'F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,' + + 'FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,' + + 'FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'; + +/** + * Holds the style definition to be used to apply the text foreground color. + * @type Object + * @example + * // This is basically the default setting value. + * config.colorButton_foreStyle = + * { + * element : 'span', + * styles : { 'color' : '#(color)' } + * }; + */ +CKEDITOR.config.colorButton_foreStyle = + { + element : 'span', + styles : { 'color' : '#(color)' }, + overrides : [ { element : 'font', attributes : { 'color' : null } } ] + }; + +/** + * Holds the style definition to be used to apply the text background color. + * @type Object + * @example + * // This is basically the default setting value. + * config.colorButton_backStyle = + * { + * element : 'span', + * styles : { 'background-color' : '#(color)' } + * }; + */ +CKEDITOR.config.colorButton_backStyle = + { + element : 'span', + styles : { 'background-color' : '#(color)' } + }; diff --git a/edgware/static/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js b/edgware/static/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js new file mode 100755 index 0000000..d99d033 --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/colordialog/dialogs/colordialog.js @@ -0,0 +1,191 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.dialog.add( 'colordialog', function( editor ) + { + // Define some shorthands. + var $el = CKEDITOR.dom.element, + $doc = CKEDITOR.document, + $tools = CKEDITOR.tools, + lang = editor.lang.colordialog; + + // Reference the dialog. + var dialog; + + function spacer() + { + return { + type : 'html', + html : ' ' + }; + } + + var table = new $el( 'table' ); + createColorTable(); + + var cellMouseover = function( event ) + { + var color = new $el( event.data.getTarget() ).getAttribute( 'title' ); + $doc.getById( 'hicolor' ).setStyle( 'background-color', color ); + $doc.getById( 'hicolortext' ).setHtml( color ); + }; + + var cellClick = function( event ) + { + var color = new $el( event.data.getTarget() ).getAttribute( 'title' ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); + }; + + function createColorTable() + { + // 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 row = table.$.insertRow(-1); + + for ( var j = rangeB ; j < rangeB + 3 ; j++ ) + { + for ( var n = 0 ; n < 6 ; n++ ) + { + appendColorCell( row, '#' + aColors[j] + aColors[n] + aColors[i] ); + } + } + } + } + + // This function create a single color cell in the color table. + function appendColorCell( targetRow, color ) + { + var cell = new $el( targetRow.insertCell( -1 ) ); + cell.setAttribute( 'class', 'ColorCell' ); + cell.setStyle( 'background-color', color ); + + cell.setStyle( 'width', '15px' ); + cell.setStyle( 'height', '15px' ); + + // Pass unparsed color value in some markup-degradable form. + cell.setAttribute( 'title', color ); + } + + appendColorRow( 0, 0 ); + appendColorRow( 3, 0 ); + appendColorRow( 0, 3 ); + appendColorRow( 3, 3 ); + + // Create the last row. + var oRow = table.$.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() + { + $doc.getById( 'selhicolor' ).removeStyle( 'background-color' ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); + } + + var clearActual = $tools.addFunction( function() + { + $doc.getById( 'hicolor' ).removeStyle( 'background-color' ); + $doc.getById( 'hicolortext' ).setHtml( ' ' ); + } ); + + return { + title : lang.title, + minWidth : 360, + minHeight : 220, + onLoad : function() + { + // Update reference. + dialog = this; + }, + contents : [ + { + id : 'picker', + label : lang.title, + accessKey : 'I', + elements : + [ + { + type : 'hbox', + padding : 0, + widths : [ '70%', '10%', '30%' ], + children : + [ + { + type : 'html', + html : '' + table.getHtml() + '
      ', + onLoad : function() + { + var table = CKEDITOR.document.getById( this.domId ); + table.on( 'mouseover', cellMouseover ); + table.on( 'click', cellClick ); + } + }, + spacer(), + { + type : 'vbox', + padding : 0, + widths : [ '70%', '5%', '25%' ], + children : + [ + { + type : 'html', + html : '' + lang.highlight +'\ +
      \ +
       
      \ + ' + lang.selected +'\ +
      ' + }, + { + type : 'text', + id : 'selectedColor', + style : 'width: 74px', + onChange : function() + { + // Try to update color preview with new value. If fails, then set it no none. + try + { + $doc.getById( 'selhicolor' ).setStyle( 'background-color', this.getValue() ); + } + catch ( e ) + { + clear(); + } + } + }, + spacer(), + { + type : 'button', + id : 'clear', + style : 'margin-top: 5px', + label : lang.clear, + onClick : clear + } + ] + } + ] + } + ] + } + ] + }; + } + ); diff --git a/edgware/static/ckeditor/_source/plugins/colordialog/plugin.js b/edgware/static/ckeditor/_source/plugins/colordialog/plugin.js new file mode 100755 index 0000000..7006d68 --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/colordialog/plugin.js @@ -0,0 +1,13 @@ +( function() +{ + CKEDITOR.plugins.colordialog = + { + init : function( editor ) + { + editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) ); + CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); + } + }; + + CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); +} )(); diff --git a/edgware/static/ckeditor/_source/plugins/contextmenu/plugin.js b/edgware/static/ckeditor/_source/plugins/contextmenu/plugin.js new file mode 100755 index 0000000..3f25a94 --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/contextmenu/plugin.js @@ -0,0 +1,253 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add( 'contextmenu', +{ + requires : [ 'menu' ], + + beforeInit : function( editor ) + { + editor.contextMenu = new CKEDITOR.plugins.contextMenu( editor ); + + editor.addCommand( 'contextMenu', + { + exec : function() + { + editor.contextMenu.show( editor.document.getBody() ); + } + }); + } +}); + +CKEDITOR.plugins.contextMenu = CKEDITOR.tools.createClass( +{ + $ : function( editor ) + { + this.id = 'cke_' + CKEDITOR.tools.getNextNumber(); + this.editor = editor; + this._.listeners = []; + this._.functionId = CKEDITOR.tools.addFunction( function( commandName ) + { + this._.panel.hide(); + editor.focus(); + editor.execCommand( commandName ); + }, + this); + }, + + _ : + { + onMenu : function( offsetParent, corner, offsetX, offsetY ) + { + var menu = this._.menu, + editor = this.editor; + + if ( menu ) + { + menu.hide(); + menu.removeAll(); + } + else + { + menu = this._.menu = new CKEDITOR.menu( editor ); + menu.onClick = CKEDITOR.tools.bind( function( item ) + { + var noUnlock = true; + menu.hide(); + + if ( CKEDITOR.env.ie ) + menu.onEscape(); + + if ( item.onClick ) + item.onClick(); + else if ( item.command ) + editor.execCommand( item.command ); + + noUnlock = false; + }, this ); + + menu.onEscape = function() + { + editor.focus(); + + if ( CKEDITOR.env.ie ) + editor.getSelection().unlock( true ); + }; + } + + var listeners = this._.listeners, + includedItems = []; + + var selection = this.editor.getSelection(), + element = selection && selection.getStartElement(); + + menu.onHide = CKEDITOR.tools.bind( function() + { + menu.onHide = null; + + if ( CKEDITOR.env.ie ) + { + var selection = editor.getSelection(); + selection && selection.unlock(); + } + + this.onHide && this.onHide(); + }, + this ); + + // Call all listeners, filling the list of items to be displayed. + for ( var i = 0 ; i < listeners.length ; i++ ) + { + var listenerItems = listeners[ i ]( element, selection ); + + if ( listenerItems ) + { + for ( var itemName in listenerItems ) + { + var item = this.editor.getMenuItem( itemName ); + + if ( item ) + { + item.state = listenerItems[ itemName ]; + menu.add( item ); + } + } + } + } + + // Don't show context menu with zero items. + menu.items.length && menu.show( offsetParent, corner || ( editor.lang.dir == 'rtl' ? 2 : 1 ), offsetX, offsetY ); + } + }, + + proto : + { + addTarget : function( element, nativeContextMenuOnCtrl ) + { + // Opera doesn't support 'contextmenu' event, we have duo approaches employed here: + // 1. Inherit the 'button override' hack we introduced in v2 (#4530), while this require the Opera browser + // option 'Allow script to detect context menu/right click events' to be always turned on. + // 2. Considering the fact that ctrl/meta key is not been occupied + // for multiple range selecting (like Gecko), we use this key + // combination as a fallback for triggering context-menu. (#4530) + if ( CKEDITOR.env.opera ) + { + var contextMenuOverrideButton; + element.on( 'mousedown', function( evt ) + { + evt = evt.data; + if( evt.$.button != 2 ) + { + if ( evt.getKeystroke() == CKEDITOR.CTRL + 1 ) + element.fire( 'contextmenu', evt ); + return; + } + + if ( nativeContextMenuOnCtrl + && ( evt.$.ctrlKey || evt.$.metaKey ) ) + return; + + var target = evt.getTarget(); + + if( !contextMenuOverrideButton ) + { + var ownerDoc = target.getDocument(); + contextMenuOverrideButton = ownerDoc.createElement( 'input' ) ; + contextMenuOverrideButton.$.type = 'button' ; + ownerDoc.getBody().append( contextMenuOverrideButton ) ; + } + + contextMenuOverrideButton.setAttribute( 'style', 'position:absolute;top:' + ( evt.$.clientY - 2 ) + + 'px;left:' + ( evt.$.clientX - 2 ) + + 'px;width:5px;height:5px;opacity:0.01' ); + + } ); + + element.on( 'mouseup', function ( evt ) + { + if ( contextMenuOverrideButton ) + { + contextMenuOverrideButton.remove(); + contextMenuOverrideButton = undefined; + // Simulate 'contextmenu' event. + element.fire( 'contextmenu', evt.data ); + } + } ); + } + + element.on( 'contextmenu', function( event ) + { + var domEvent = event.data; + + if ( nativeContextMenuOnCtrl && + // Safari on Windows always show 'ctrlKey' as true in 'contextmenu' event, + // which make this property unreliable. (#4826) + ( CKEDITOR.env.webkit ? holdCtrlKey : domEvent.$.ctrlKey || domEvent.$.metaKey ) ) + return; + + // Selection will be unavailable after context menu shows up + // in IE, lock it now. + if ( CKEDITOR.env.ie ) + { + var selection = this.editor.getSelection(); + selection && selection.lock(); + } + + // Cancel the browser context menu. + domEvent.preventDefault(); + + var offsetParent = domEvent.getTarget().getDocument().getDocumentElement(), + offsetX = domEvent.$.clientX, + offsetY = domEvent.$.clientY; + + CKEDITOR.tools.setTimeout( function() + { + this._.onMenu( offsetParent, null, offsetX, offsetY ); + }, + 0, this ); + }, + this ); + + if( CKEDITOR.env.webkit ) + { + var holdCtrlKey, + onKeyDown = function( event ) + { + holdCtrlKey = event.data.$.ctrlKey || event.data.$.metaKey; + }, + resetOnKeyUp = function() + { + holdCtrlKey = 0; + }; + + element.on( 'keydown', onKeyDown ); + element.on( 'keyup', resetOnKeyUp ); + element.on( 'contextmenu', resetOnKeyUp ); + } + }, + + addListener : function( listenerFn ) + { + this._.listeners.push( listenerFn ); + }, + + show : function( offsetParent, corner, offsetX, offsetY ) + { + this.editor.focus(); + this._.onMenu( offsetParent || CKEDITOR.document.getDocumentElement(), corner, offsetX || 0, offsetY || 0 ); + } + } +}); + +/** + * Whether to show the browser native context menu when the CTRL or the + * META (Mac) key is pressed while opening the context menu. + * @name CKEDITOR.config.browserContextMenuOnCtrl + * @since 3.0.2 + * @type Boolean + * @default true + * @example + * config.browserContextMenuOnCtrl = false; + */ diff --git a/edgware/static/ckeditor/_source/plugins/dialog/dialogDefinition.js b/edgware/static/ckeditor/_source/plugins/dialog/dialogDefinition.js new file mode 100755 index 0000000..a3094f6 --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/dialog/dialogDefinition.js @@ -0,0 +1,315 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview Defines the "virtual" dialog, dialog content and dialog button + * definition classes. + */ + +/** + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialogs. + * @name CKEDITOR.dialog.dialogDefinition + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + * + * CKEDITOR.dialog.add( 'testOnly', function( editor ) + * { + * return { + * title : 'Test Dialog', + * resizable : CKEDITOR.DIALOG_RESIZE_BOTH, + * minWidth : 500, + * minHeight : 400, + * contents : [ + * { + * id : 'tab1', + * label : 'First Tab', + * title : 'First Tab Title', + * accessKey : 'Q', + * elements : [ + * { + * type : 'text', + * label : 'Test Text 1', + * id : 'testText1', + * 'default' : 'hello world!' + * } + * ] + * } + * ] + * }; + * }); + */ + +/** + * The dialog title, displayed in the dialog's header. Required. + * @name CKEDITOR.dialog.dialogDefinition.prototype.title + * @field + * @type String + * @example + */ + +/** + * How the dialog can be resized, must be one of the four contents defined below. + *

      + * CKEDITOR.DIALOG_RESIZE_NONE
      + * CKEDITOR.DIALOG_RESIZE_WIDTH
      + * CKEDITOR.DIALOG_RESIZE_HEIGHT
      + * CKEDITOR.DIALOG_RESIZE_BOTH
      + * @name CKEDITOR.dialog.dialogDefinition.prototype.resizable + * @field + * @type Number + * @default CKEDITOR.DIALOG_RESIZE_NONE + * @example + */ + +/** + * The minimum width of the dialog, in pixels. + * @name CKEDITOR.dialog.dialogDefinition.prototype.minWidth + * @field + * @type Number + * @default 600 + * @example + */ + +/** + * The minimum height of the dialog, in pixels. + * @name CKEDITOR.dialog.dialogDefinition.prototype.minHeight + * @field + * @type Number + * @default 400 + * @example + */ + +/** + * The buttons in the dialog, defined as an array of + * {@link CKEDITOR.dialog.buttonDefinition} objects. + * @name CKEDITOR.dialog.dialogDefinition.prototype.buttons + * @field + * @type Array + * @default [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ] + * @example + */ + +/** + * The contents in the dialog, defined as an array of + * {@link CKEDITOR.dialog.contentDefinition} objects. Required. + * @name CKEDITOR.dialog.dialogDefinition.prototype.contents + * @field + * @type Array + * @example + */ + +/** + * The function to execute when OK is pressed. + * @name CKEDITOR.dialog.dialogDefinition.prototype.onOk + * @field + * @type Function + * @example + */ + +/** + * The function to execute when Cancel is pressed. + * @name CKEDITOR.dialog.dialogDefinition.prototype.onCancel + * @field + * @type Function + * @example + */ + +/** + * The function to execute when the dialog is displayed for the first time. + * @name CKEDITOR.dialog.dialogDefinition.prototype.onLoad + * @field + * @type Function + * @example + */ + +/** + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog content pages. + * @name CKEDITOR.dialog.contentDefinition + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + */ + +/** + * The id of the content page. + * @name CKEDITOR.dialog.contentDefinition.prototype.id + * @field + * @type String + * @example + */ + +/** + * The tab label of the content page. + * @name CKEDITOR.dialog.contentDefinition.prototype.label + * @field + * @type String + * @example + */ + +/** + * The popup message of the tab label. + * @name CKEDITOR.dialog.contentDefinition.prototype.title + * @field + * @type String + * @example + */ + +/** + * The CTRL hotkey for switching to the tab. + * @name CKEDITOR.dialog.contentDefinition.prototype.accessKey + * @field + * @type String + * @example + * contentDefinition.accessKey = 'Q'; // Switch to this page when CTRL-Q is pressed. + */ + +/** + * The UI elements contained in this content page, defined as an array of + * {@link CKEDITOR.dialog.uiElementDefinition} objects. + * @name CKEDITOR.dialog.contentDefinition.prototype.elements + * @field + * @type Array + * @example + */ + +/** + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog buttons. + * @name CKEDITOR.dialog.buttonDefinition + * @constructor + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + */ + +/** + * The id of the dialog button. Required. + * @name CKEDITOR.dialog.buttonDefinition.prototype.id + * @type String + * @field + * @example + */ + +/** + * The label of the dialog button. Required. + * @name CKEDITOR.dialog.buttonDefinition.prototype.label + * @type String + * @field + * @example + */ + +/** + * The popup message of the dialog button. + * @name CKEDITOR.dialog.buttonDefinition.prototype.title + * @type String + * @field + * @example + */ + +/** + * The CTRL hotkey for the button. + * @name CKEDITOR.dialog.buttonDefinition.prototype.accessKey + * @type String + * @field + * @example + * exitButton.accessKey = 'X'; // Button will be pressed when user presses CTRL-X + */ + +/** + * Whether the button is disabled. + * @name CKEDITOR.dialog.buttonDefinition.prototype.disabled + * @type Boolean + * @field + * @default false + * @example + */ + +/** + * The function to execute when the button is clicked. + * @name CKEDITOR.dialog.buttonDefinition.prototype.onClick + * @type Function + * @field + * @example + */ + +/** + * This class is not really part of the API. It just illustrates the properties + * that developers can use to define and create dialog UI elements. + * @name CKEDITOR.dialog.uiElementDefinition + * @constructor + * @see CKEDITOR.ui.dialog.uiElement + * @example + * // There is no constructor for this class, the user just has to define an + * // object with the appropriate properties. + */ + +/** + * The id of the UI element. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.id + * @field + * @type String + * @example + */ + +/** + * The type of the UI element. Required. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.type + * @field + * @type String + * @example + */ + +/** + * The popup label of the UI element. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.title + * @field + * @type String + * @example + */ + +/** + * CSS class names to append to the UI element. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.className + * @field + * @type String + * @example + */ + +/** + * Inline CSS classes to append to the UI element. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.style + * @field + * @type String + * @example + */ + +/** + * Function to execute the first time the UI element is displayed. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.onLoad + * @field + * @type Function + * @example + */ + +/** + * Function to execute whenever the UI element's parent dialog is displayed. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.onShow + * @field + * @type Function + * @example + */ + +/** + * Function to execute whenever the UI element's parent dialog is closed. + * @name CKEDITOR.dialog.uiElementDefinition.prototype.onHide + * @field + * @type Function + * @example + */ diff --git a/edgware/static/ckeditor/_source/plugins/dialog/plugin.js b/edgware/static/ckeditor/_source/plugins/dialog/plugin.js new file mode 100755 index 0000000..706c92b --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/dialog/plugin.js @@ -0,0 +1,2779 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @fileOverview The floating dialog plugin. + */ + +/** + * No resize for this dialog. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_NONE = 0; + +/** + * Only allow horizontal resizing for this dialog, disable vertical resizing. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_WIDTH = 1; + +/** + * Only allow vertical resizing for this dialog, disable horizontal resizing. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_HEIGHT = 2; + +/* + * Allow the dialog to be resized in both directions. + * @constant + */ +CKEDITOR.DIALOG_RESIZE_BOTH = 3; + +(function() +{ + function isTabVisible( tabId ) + { + return !!this._.tabs[ tabId ][ 0 ].$.offsetHeight; + } + + function getPreviousVisibleTab() + { + var tabId = this._.currentTabId, + length = this._.tabIdList.length, + tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ) + length; + + for ( var i = tabIndex - 1 ; i > tabIndex - length ; i-- ) + { + if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) ) + return this._.tabIdList[ i % length ]; + } + + return null; + } + + function getNextVisibleTab() + { + var tabId = this._.currentTabId, + length = this._.tabIdList.length, + tabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, tabId ); + + for ( var i = tabIndex + 1 ; i < tabIndex + length ; i++ ) + { + if ( isTabVisible.call( this, this._.tabIdList[ i % length ] ) ) + return this._.tabIdList[ i % length ]; + } + + return null; + } + + /** + * This is the base class for runtime dialog objects. An instance of this + * class represents a single named dialog for a single editor instance. + * @param {Object} editor The editor which created the dialog. + * @param {String} dialogName The dialog's registered name. + * @constructor + * @example + * var dialogObj = new CKEDITOR.dialog( editor, 'smiley' ); + */ + CKEDITOR.dialog = function( editor, dialogName ) + { + // Load the dialog definition. + var definition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ]; + + // Completes the definition with the default values. + definition = CKEDITOR.tools.extend( definition( editor ), defaultDialogDefinition ); + + // Clone a functionally independent copy for this dialog. + definition = CKEDITOR.tools.clone( definition ); + + // Create a complex definition object, extending it with the API + // functions. + definition = new definitionObject( this, definition ); + + // Fire the "dialogDefinition" event, making it possible to customize + // the dialog definition. + this.definition = definition = CKEDITOR.fire( 'dialogDefinition', + { + name : dialogName, + definition : definition + } + , editor ).definition; + + var doc = CKEDITOR.document; + + var themeBuilt = editor.theme.buildDialog( editor ); + + // Initialize some basic parameters. + this._ = + { + editor : editor, + element : themeBuilt.element, + name : dialogName, + contentSize : { width : 0, height : 0 }, + size : { width : 0, height : 0 }, + updateSize : false, + contents : {}, + buttons : {}, + accessKeyMap : {}, + + // Initialize the tab and page map. + tabs : {}, + tabIdList : [], + currentTabId : null, + currentTabIndex : null, + pageCount : 0, + lastTab : null, + tabBarMode : false, + + // Initialize the tab order array for input widgets. + focusList : [], + currentFocusIndex : 0, + hasFocus : false + }; + + this.parts = themeBuilt.parts; + + // Set the startup styles for the dialog, avoiding it enlarging the + // page size on the dialog creation. + this.parts.dialog.setStyles( + { + position : CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed', + top : 0, + left: 0, + visibility : 'hidden' + }); + + // Call the CKEDITOR.event constructor to initialize this instance. + CKEDITOR.event.call( this ); + + // Initialize load, show, hide, ok and cancel events. + if ( definition.onLoad ) + this.on( 'load', definition.onLoad ); + + if ( definition.onShow ) + this.on( 'show', definition.onShow ); + + if ( definition.onHide ) + this.on( 'hide', definition.onHide ); + + if ( definition.onOk ) + { + this.on( 'ok', function( evt ) + { + if ( definition.onOk.call( this, evt ) === false ) + evt.data.hide = false; + }); + } + + if ( definition.onCancel ) + { + this.on( 'cancel', function( evt ) + { + if ( definition.onCancel.call( this, evt ) === false ) + evt.data.hide = false; + }); + } + + var me = this; + + // Iterates over all items inside all content in the dialog, calling a + // function for each of them. + var iterContents = function( func ) + { + var contents = me._.contents, + stop = false; + + for ( var i in contents ) + { + for ( var j in contents[i] ) + { + stop = func.call( this, contents[i][j] ); + if ( stop ) + return; + } + } + }; + + this.on( 'ok', function( evt ) + { + iterContents( function( item ) + { + if ( item.validate ) + { + var isValid = item.validate( this ); + + if ( typeof isValid == 'string' ) + { + alert( isValid ); + isValid = false; + } + + if ( isValid === false ) + { + if ( item.select ) + item.select(); + else + item.focus(); + + evt.data.hide = false; + evt.stop(); + return true; + } + } + }); + }, this, null, 0 ); + + this.on( 'cancel', function( evt ) + { + iterContents( function( item ) + { + if ( item.isChanged() ) + { + if ( !confirm( editor.lang.common.confirmCancel ) ) + evt.data.hide = false; + return true; + } + }); + }, this, null, 0 ); + + this.parts.close.on( 'click', function( evt ) + { + if ( this.fire( 'cancel', { hide : true } ).hide !== false ) + this.hide(); + }, this ); + + function changeFocus( forward ) + { + var focusList = me._.focusList, + offset = forward ? 1 : -1; + if ( focusList.length < 1 ) + return; + + var startIndex = ( me._.currentFocusIndex + offset + focusList.length ) % focusList.length, + currentIndex = startIndex; + while ( !focusList[ currentIndex ].isFocusable() ) + { + currentIndex = ( currentIndex + offset + focusList.length ) % focusList.length; + if ( currentIndex == startIndex ) + break; + } + focusList[ currentIndex ].focus(); + + // Select whole field content. + if ( focusList[ currentIndex ].type == 'text' ) + focusList[ currentIndex ].select(); + } + + var processed; + + function focusKeydownHandler( evt ) + { + // If I'm not the top dialog, ignore. + if ( me != CKEDITOR.dialog._.currentTop ) + return; + + var keystroke = evt.data.getKeystroke(); + + processed = 0; + if ( keystroke == 9 || keystroke == CKEDITOR.SHIFT + 9 ) + { + var shiftPressed = ( keystroke == CKEDITOR.SHIFT + 9 ); + + // Handling Tab and Shift-Tab. + if ( me._.tabBarMode ) + { + // Change tabs. + var nextId = shiftPressed ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ); + me.selectPage( nextId ); + me._.tabs[ nextId ][ 0 ].focus(); + } + else + { + // Change the focus of inputs. + changeFocus( !shiftPressed ); + } + + processed = 1; + } + else if ( keystroke == CKEDITOR.ALT + 121 && !me._.tabBarMode ) + { + // Alt-F10 puts focus into the current tab item in the tab bar. + me._.tabBarMode = true; + me._.tabs[ me._.currentTabId ][ 0 ].focus(); + processed = 1; + } + else if ( ( keystroke == 37 || keystroke == 39 ) && me._.tabBarMode ) + { + // Arrow keys - used for changing tabs. + nextId = ( keystroke == 37 ? getPreviousVisibleTab.call( me ) : getNextVisibleTab.call( me ) ); + me.selectPage( nextId ); + me._.tabs[ nextId ][ 0 ].focus(); + processed = 1; + } + + if ( processed ) + { + evt.stop(); + evt.data.preventDefault(); + } + } + + function focusKeyPressHandler( evt ) + { + processed && evt.data.preventDefault(); + } + + // Add the dialog keyboard handlers. + this.on( 'show', function() + { + CKEDITOR.document.on( 'keydown', focusKeydownHandler, this, null, 0 ); + // Some browsers instead, don't cancel key events in the keydown, but in the + // keypress. So we must do a longer trip in those cases. (#4531) + if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ) + CKEDITOR.document.on( 'keypress', focusKeyPressHandler, this ); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = coverElement.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'keydown', focusKeydownHandler, this, null, 0 ); + } + } ); + this.on( 'hide', function() + { + CKEDITOR.document.removeListener( 'keydown', focusKeydownHandler ); + if ( CKEDITOR.env.opera || ( CKEDITOR.env.gecko && CKEDITOR.env.mac ) ) + CKEDITOR.document.removeListener( 'keypress', focusKeyPressHandler ); + } ); + this.on( 'iframeAdded', function( evt ) + { + var doc = new CKEDITOR.dom.document( evt.data.iframe.$.contentWindow.document ); + doc.on( 'keydown', focusKeydownHandler, this, null, 0 ); + } ); + + // Auto-focus logic in dialog. + this.on( 'show', function() + { + if ( !this._.hasFocus ) + { + this._.currentFocusIndex = -1; + changeFocus( true ); + + /* + * IE BUG: If the initial focus went into a non-text element (e.g. button), + * then IE would still leave the caret inside the editing area. + */ + if ( this._.editor.mode == 'wysiwyg' && CKEDITOR.env.ie ) + { + var $selection = editor.document.$.selection, + $range = $selection.createRange(); + + if ( $range ) + { + if ( $range.parentElement && $range.parentElement().ownerDocument == editor.document.$ + || $range.item && $range.item( 0 ).ownerDocument == editor.document.$ ) + { + var $myRange = document.body.createTextRange(); + $myRange.moveToElementText( this.getElement().getFirst().$ ); + $myRange.collapse( true ); + $myRange.select(); + } + } + } + } + }, this, null, 0xffffffff ); + + // IE6 BUG: Text fields and text areas are only half-rendered the first time the dialog appears in IE6 (#2661). + // This is still needed after [2708] and [2709] because text fields in hidden TR tags are still broken. + if ( CKEDITOR.env.ie6Compat ) + { + this.on( 'load', function( evt ) + { + var outer = this.getElement(), + inner = outer.getFirst(); + inner.remove(); + inner.appendTo( outer ); + }, this ); + } + + initDragAndDrop( this ); + initResizeHandles( this ); + + // Insert the title. + ( new CKEDITOR.dom.text( definition.title, CKEDITOR.document ) ).appendTo( this.parts.title ); + + // Insert the tabs and contents. + for ( var i = 0 ; i < definition.contents.length ; i++ ) + this.addPage( definition.contents[i] ); + + var tabRegex = /cke_dialog_tab(\s|$|_)/, + tabOuterRegex = /cke_dialog_tab(\s|$)/; + this.parts['tabs'].on( 'click', function( evt ) + { + var target = evt.data.getTarget(), firstNode = target, id, page; + + // If we aren't inside a tab, bail out. + if ( !( tabRegex.test( target.$.className ) || target.getName() == 'a' ) ) + return; + + // Find the outer container of the tab. + id = target.$.id.substr( 0, target.$.id.lastIndexOf( '_' ) ); + this.selectPage( id ); + + if ( this._.tabBarMode ) + { + this._.tabBarMode = false; + this._.currentFocusIndex = -1; + changeFocus( true ); + } + + evt.data.preventDefault(); + }, this ); + + // Insert buttons. + var buttonsHtml = [], + buttons = CKEDITOR.dialog._.uiElementBuilders.hbox.build( this, + { + type : 'hbox', + className : 'cke_dialog_footer_buttons', + widths : [], + children : definition.buttons + }, buttonsHtml ).getChild(); + this.parts.footer.setHtml( buttonsHtml.join( '' ) ); + + for ( i = 0 ; i < buttons.length ; i++ ) + this._.buttons[ buttons[i].id ] = buttons[i]; + + CKEDITOR.skins.load( editor, 'dialog' ); + }; + + // Focusable interface. Use it via dialog.addFocusable. + function Focusable( dialog, element, index ) + { + this.element = element; + this.focusIndex = index; + this.isFocusable = function() + { + return !element.getAttribute( 'disabled' ) && element.isVisible(); + }; + this.focus = function() + { + dialog._.currentFocusIndex = this.focusIndex; + this.element.focus(); + }; + // Bind events + element.on( 'keydown', function( e ) + { + if ( e.data.getKeystroke() in { 32:1, 13:1 } ) + this.fire( 'click' ); + } ); + element.on( 'focus', function() + { + this.fire( 'mouseover' ); + } ); + element.on( 'blur', function() + { + this.fire( 'mouseout' ); + } ); + } + + CKEDITOR.dialog.prototype = + { + /** + * Resizes the dialog. + * @param {Number} width The width of the dialog in pixels. + * @param {Number} height The height of the dialog in pixels. + * @function + * @example + * dialogObj.resize( 800, 640 ); + */ + resize : (function() + { + return function( width, height ) + { + if ( this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height ) + return; + + CKEDITOR.dialog.fire( 'resize', + { + dialog : this, + skin : this._.editor.skinName, + width : width, + height : height + }, this._.editor ); + + this._.contentSize = { width : width, height : height }; + this._.updateSize = true; + }; + })(), + + /** + * Gets the current size of the dialog in pixels. + * @returns {Object} An object with "width" and "height" properties. + * @example + * var width = dialogObj.getSize().width; + */ + getSize : function() + { + if ( !this._.updateSize ) + return this._.size; + var element = this._.element.getFirst(); + var size = this._.size = { width : element.$.offsetWidth || 0, height : element.$.offsetHeight || 0}; + + // If either the offsetWidth or offsetHeight is 0, the element isn't visible. + this._.updateSize = !size.width || !size.height; + + return size; + }, + + /** + * Moves the dialog to an (x, y) coordinate relative to the window. + * @function + * @param {Number} x The target x-coordinate. + * @param {Number} y The target y-coordinate. + * @example + * dialogObj.move( 10, 40 ); + */ + move : (function() + { + var isFixed; + return function( x, y ) + { + // The dialog may be fixed positioned or absolute positioned. Ask the + // browser what is the current situation first. + var element = this._.element.getFirst(); + if ( isFixed === undefined ) + isFixed = element.getComputedStyle( 'position' ) == 'fixed'; + + if ( isFixed && this._.position && this._.position.x == x && this._.position.y == y ) + return; + + // Save the current position. + this._.position = { x : x, y : y }; + + // If not fixed positioned, add scroll position to the coordinates. + if ( !isFixed ) + { + var scrollPosition = CKEDITOR.document.getWindow().getScrollPosition(); + x += scrollPosition.x; + y += scrollPosition.y; + } + + element.setStyles( + { + 'left' : ( x > 0 ? x : 0 ) + 'px', + 'top' : ( y > 0 ? y : 0 ) + 'px' + }); + }; + })(), + + /** + * Gets the dialog's position in the window. + * @returns {Object} An object with "x" and "y" properties. + * @example + * var dialogX = dialogObj.getPosition().x; + */ + getPosition : function(){ return CKEDITOR.tools.extend( {}, this._.position ); }, + + /** + * Shows the dialog box. + * @example + * dialogObj.show(); + */ + show : function() + { + var editor = this._.editor; + if ( editor.mode == 'wysiwyg' && CKEDITOR.env.ie ) + { + var selection = editor.getSelection(); + selection && selection.lock(); + } + + // Insert the dialog's element to the root document. + var element = this._.element; + var definition = this.definition; + if ( !( element.getParent() && element.getParent().equals( CKEDITOR.document.getBody() ) ) ) + element.appendTo( CKEDITOR.document.getBody() ); + else + return; + + // FIREFOX BUG: Fix vanishing caret for Firefox 2 or Gecko 1.8. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) + { + var dialogElement = this.parts.dialog; + dialogElement.setStyle( 'position', 'absolute' ); + setTimeout( function() + { + dialogElement.setStyle( 'position', 'fixed' ); + }, 0 ); + } + + + // First, set the dialog to an appropriate size. + this.resize( definition.minWidth, definition.minHeight ); + + // Select the first tab by default. + this.selectPage( this.definition.contents[0].id ); + + // Reset all inputs back to their default value. + this.reset(); + + // Set z-index. + if ( CKEDITOR.dialog._.currentZIndex === null ) + CKEDITOR.dialog._.currentZIndex = this._.editor.config.baseFloatZIndex; + this._.element.getFirst().setStyle( 'z-index', CKEDITOR.dialog._.currentZIndex += 10 ); + + // Maintain the dialog ordering and dialog cover. + // Also register key handlers if first dialog. + if ( CKEDITOR.dialog._.currentTop === null ) + { + CKEDITOR.dialog._.currentTop = this; + this._.parentDialog = null; + addCover( this._.editor ); + + element.on( 'keydown', accessKeyDownHandler ); + element.on( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler ); + + // Prevent some keys from bubbling up. (#4269) + for ( var event in { keyup :1, keydown :1, keypress :1 } ) + element.on( event, preventKeyBubbling ); + } + else + { + this._.parentDialog = CKEDITOR.dialog._.currentTop; + var parentElement = this._.parentDialog.getElement().getFirst(); + parentElement.$.style.zIndex -= Math.floor( this._.editor.config.baseFloatZIndex / 2 ); + CKEDITOR.dialog._.currentTop = this; + } + + // Register the Esc hotkeys. + registerAccessKey( this, this, '\x1b', null, function() + { + this.getButton( 'cancel' ) && this.getButton( 'cancel' ).click(); + } ); + + // Reset the hasFocus state. + this._.hasFocus = false; + + // Rearrange the dialog to the middle of the window. + CKEDITOR.tools.setTimeout( function() + { + var viewSize = CKEDITOR.document.getWindow().getViewPaneSize(); + var dialogSize = this.getSize(); + + // We're using definition size for initial position because of + // offten corrupted data in offsetWidth at this point. (#4084) + this.move( ( viewSize.width - definition.minWidth ) / 2, ( viewSize.height - dialogSize.height ) / 2 ); + + this.parts.dialog.setStyle( 'visibility', '' ); + + // Execute onLoad for the first show. + this.fireOnce( 'load', {} ); + this.fire( 'show', {} ); + this._.editor.fire( 'dialogShow', this ); + + // Save the initial values of the dialog. + this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } ); + + }, + 100, this ); + }, + + /** + * Executes a function for each UI element. + * @param {Function} fn Function to execute for each UI element. + * @returns {CKEDITOR.dialog} The current dialog object. + */ + foreach : function( fn ) + { + for ( var i in this._.contents ) + { + for ( var j in this._.contents[i] ) + fn( this._.contents[i][j]); + } + return this; + }, + + /** + * Resets all input values in the dialog. + * @example + * dialogObj.reset(); + * @returns {CKEDITOR.dialog} The current dialog object. + */ + reset : (function() + { + var fn = function( widget ){ if ( widget.reset ) widget.reset(); }; + return function(){ this.foreach( fn ); return this; }; + })(), + + setupContent : function() + { + var args = arguments; + this.foreach( function( widget ) + { + if ( widget.setup ) + widget.setup.apply( widget, args ); + }); + }, + + commitContent : function() + { + var args = arguments; + this.foreach( function( widget ) + { + if ( widget.commit ) + widget.commit.apply( widget, args ); + }); + }, + + /** + * Hides the dialog box. + * @example + * dialogObj.hide(); + */ + hide : function() + { + this.fire( 'hide', {} ); + this._.editor.fire( 'dialogHide', this ); + + // Remove the dialog's element from the root document. + var element = this._.element; + if ( !element.getParent() ) + return; + + element.remove(); + this.parts.dialog.setStyle( 'visibility', 'hidden' ); + + // Unregister all access keys associated with this dialog. + unregisterAccessKey( this ); + + // Maintain dialog ordering and remove cover if needed. + if ( !this._.parentDialog ) + removeCover(); + else + { + var parentElement = this._.parentDialog.getElement().getFirst(); + parentElement.setStyle( 'z-index', parseInt( parentElement.$.style.zIndex, 10 ) + Math.floor( this._.editor.config.baseFloatZIndex / 2 ) ); + } + CKEDITOR.dialog._.currentTop = this._.parentDialog; + + // Deduct or clear the z-index. + if ( !this._.parentDialog ) + { + CKEDITOR.dialog._.currentZIndex = null; + + // Remove access key handlers. + element.removeListener( 'keydown', accessKeyDownHandler ); + element.removeListener( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler ); + + // Remove bubbling-prevention handler. (#4269) + for ( var event in { keyup :1, keydown :1, keypress :1 } ) + element.removeListener( event, preventKeyBubbling ); + + var editor = this._.editor; + editor.focus(); + + if ( editor.mode == 'wysiwyg' && CKEDITOR.env.ie ) + { + var selection = editor.getSelection(); + selection && selection.unlock( true ); + } + } + else + CKEDITOR.dialog._.currentZIndex -= 10; + + + // Reset the initial values of the dialog. + this.foreach( function( contentObj ) { contentObj.resetInitValue && contentObj.resetInitValue(); } ); + }, + + /** + * Adds a tabbed page into the dialog. + * @param {Object} contents Content definition. + * @example + */ + addPage : function( contents ) + { + var pageHtml = [], + titleHtml = contents.label ? ' title="' + CKEDITOR.tools.htmlEncode( contents.label ) + '"' : '', + elements = contents.elements, + vbox = CKEDITOR.dialog._.uiElementBuilders.vbox.build( this, + { + type : 'vbox', + className : 'cke_dialog_page_contents', + children : contents.elements, + expand : !!contents.expand, + padding : contents.padding, + style : contents.style || 'width: 100%;' + }, pageHtml ); + + // Create the HTML for the tab and the content block. + var page = CKEDITOR.dom.element.createFromHtml( pageHtml.join( '' ) ); + var tab = CKEDITOR.dom.element.createFromHtml( [ + ' 0 ? ' cke_last' : 'cke_first' ), + titleHtml, + ( !!contents.hidden ? ' style="display:none"' : '' ), + ' id="', contents.id + '_', CKEDITOR.tools.getNextNumber(), '"' + + ' href="javascript:void(0)"', + ' hidefocus="true">', + contents.label, + '' + ].join( '' ) ); + + // If only a single page exist, a different style is used in the central pane. + if ( this._.pageCount === 0 ) + this.parts.dialog.addClass( 'cke_single_page' ); + else + this.parts.dialog.removeClass( 'cke_single_page' ); + + // Take records for the tabs and elements created. + this._.tabs[ contents.id ] = [ tab, page ]; + this._.tabIdList.push( contents.id ); + this._.pageCount++; + this._.lastTab = tab; + + var contentMap = this._.contents[ contents.id ] = {}, + cursor, + children = vbox.getChild(); + + while ( ( cursor = children.shift() ) ) + { + contentMap[ cursor.id ] = cursor; + if ( typeof( cursor.getChild ) == 'function' ) + children.push.apply( children, cursor.getChild() ); + } + + // Attach the DOM nodes. + + page.setAttribute( 'name', contents.id ); + page.appendTo( this.parts.contents ); + + tab.unselectable(); + this.parts.tabs.append( tab ); + + // Add access key handlers if access key is defined. + if ( contents.accessKey ) + { + registerAccessKey( this, this, 'CTRL+' + contents.accessKey, + tabAccessKeyDown, tabAccessKeyUp ); + this._.accessKeyMap[ 'CTRL+' + contents.accessKey ] = contents.id; + } + }, + + /** + * Activates a tab page in the dialog by its id. + * @param {String} id The id of the dialog tab to be activated. + * @example + * dialogObj.selectPage( 'tab_1' ); + */ + selectPage : function( id ) + { + // Hide the non-selected tabs and pages. + for ( var i in this._.tabs ) + { + var tab = this._.tabs[i][0], + page = this._.tabs[i][1]; + if ( i != id ) + { + tab.removeClass( 'cke_dialog_tab_selected' ); + page.hide(); + } + } + + var selected = this._.tabs[id]; + selected[0].addClass( 'cke_dialog_tab_selected' ); + selected[1].show(); + this._.currentTabId = id; + this._.currentTabIndex = CKEDITOR.tools.indexOf( this._.tabIdList, id ); + }, + + /** + * Hides a page's tab away from the dialog. + * @param {String} id The page's Id. + * @example + * dialog.hidePage( 'tab_3' ); + */ + hidePage : function( id ) + { + var tab = this._.tabs[id] && this._.tabs[id][0]; + if ( !tab ) + return; + tab.hide(); + }, + + /** + * Unhides a page's tab. + * @param {String} id The page's Id. + * @example + * dialog.showPage( 'tab_2' ); + */ + showPage : function( id ) + { + var tab = this._.tabs[id] && this._.tabs[id][0]; + if ( !tab ) + return; + tab.show(); + }, + + /** + * Gets the root DOM element of the dialog. + * @returns {CKEDITOR.dom.element} The <span> element containing this dialog. + * @example + * var dialogElement = dialogObj.getElement().getFirst(); + * dialogElement.setStyle( 'padding', '5px' ); + */ + getElement : function() + { + return this._.element; + }, + + /** + * Gets the name of the dialog. + * @returns {String} The name of this dialog. + * @example + * var dialogName = dialogObj.getName(); + */ + getName : function() + { + return this._.name; + }, + + /** + * Gets a dialog UI element object from a dialog page. + * @param {String} pageId id of dialog page. + * @param {String} elementId id of UI element. + * @example + * @returns {CKEDITOR.ui.dialog.uiElement} The dialog UI element. + */ + getContentElement : function( pageId, elementId ) + { + return this._.contents[pageId][elementId]; + }, + + /** + * Gets the value of a dialog UI element. + * @param {String} pageId id of dialog page. + * @param {String} elementId id of UI element. + * @example + * @returns {Object} The value of the UI element. + */ + getValueOf : function( pageId, elementId ) + { + return this.getContentElement( pageId, elementId ).getValue(); + }, + + /** + * Sets the value of a dialog UI element. + * @param {String} pageId id of the dialog page. + * @param {String} elementId id of the UI element. + * @param {Object} value The new value of the UI element. + * @example + */ + setValueOf : function( pageId, elementId, value ) + { + return this.getContentElement( pageId, elementId ).setValue( value ); + }, + + /** + * Gets the UI element of a button in the dialog's button row. + * @param {String} id The id of the button. + * @example + * @returns {CKEDITOR.ui.dialog.button} The button object. + */ + getButton : function( id ) + { + return this._.buttons[ id ]; + }, + + /** + * Simulates a click to a dialog button in the dialog's button row. + * @param {String} id The id of the button. + * @example + * @returns The return value of the dialog's "click" event. + */ + click : function( id ) + { + return this._.buttons[ id ].click(); + }, + + /** + * Disables a dialog button. + * @param {String} id The id of the button. + * @example + */ + disableButton : function( id ) + { + return this._.buttons[ id ].disable(); + }, + + /** + * Enables a dialog button. + * @param {String} id The id of the button. + * @example + */ + enableButton : function( id ) + { + return this._.buttons[ id ].enable(); + }, + + /** + * Gets the number of pages in the dialog. + * @returns {Number} Page count. + */ + getPageCount : function() + { + return this._.pageCount; + }, + + /** + * Gets the editor instance which opened this dialog. + * @returns {CKEDITOR.editor} Parent editor instances. + */ + getParentEditor : function() + { + return this._.editor; + }, + + /** + * Gets the element that was selected when opening the dialog, if any. + * @returns {CKEDITOR.dom.element} The element that was selected, or null. + */ + getSelectedElement : function() + { + return this.getParentEditor().getSelection().getSelectedElement(); + }, + + /** + * Adds element to dialog's focusable list. + * + * @param {CKEDITOR.dom.element} element + * @param {Number} [index] + */ + addFocusable: function( element, index ) { + if ( typeof index == 'undefined' ) + { + index = this._.focusList.length; + this._.focusList.push( new Focusable( this, element, index ) ); + } + else + { + this._.focusList.splice( index, 0, new Focusable( this, element, index ) ); + for ( var i = index + 1 ; i < this._.focusList.length ; i++ ) + this._.focusList[ i ].focusIndex++; + } + } + }; + + CKEDITOR.tools.extend( CKEDITOR.dialog, + /** + * @lends CKEDITOR.dialog + */ + { + /** + * Registers a dialog. + * @param {String} name The dialog's name. + * @param {Function|String} dialogDefinition + * A function returning the dialog's definition, or the URL to the .js file holding the function. + * The function should accept an argument "editor" which is the current editor instance, and + * return an object conforming to {@link CKEDITOR.dialog.dialogDefinition}. + * @example + * @see CKEDITOR.dialog.dialogDefinition + */ + add : function( name, dialogDefinition ) + { + // Avoid path registration from multiple instances override definition. + if ( !this._.dialogDefinitions[name] + || typeof dialogDefinition == 'function' ) + this._.dialogDefinitions[name] = dialogDefinition; + }, + + exists : function( name ) + { + return !!this._.dialogDefinitions[ name ]; + }, + + getCurrent : function() + { + return CKEDITOR.dialog._.currentTop; + }, + + /** + * The default OK button for dialogs. Fires the "ok" event and closes the dialog if the event succeeds. + * @static + * @field + * @example + * @type Function + */ + okButton : (function() + { + var retval = function( editor, override ) + { + override = override || {}; + return CKEDITOR.tools.extend( { + id : 'ok', + type : 'button', + label : editor.lang.common.ok, + 'class' : 'cke_dialog_ui_button_ok', + onClick : function( evt ) + { + var dialog = evt.data.dialog; + if ( dialog.fire( 'ok', { hide : true } ).hide !== false ) + dialog.hide(); + } + }, override, true ); + }; + retval.type = 'button'; + retval.override = function( override ) + { + return CKEDITOR.tools.extend( function( editor ){ return retval( editor, override ); }, + { type : 'button' }, true ); + }; + return retval; + })(), + + /** + * The default cancel button for dialogs. Fires the "cancel" event and closes the dialog if no UI element value changed. + * @static + * @field + * @example + * @type Function + */ + cancelButton : (function() + { + var retval = function( editor, override ) + { + override = override || {}; + return CKEDITOR.tools.extend( { + id : 'cancel', + type : 'button', + label : editor.lang.common.cancel, + 'class' : 'cke_dialog_ui_button_cancel', + onClick : function( evt ) + { + var dialog = evt.data.dialog; + if ( dialog.fire( 'cancel', { hide : true } ).hide !== false ) + dialog.hide(); + } + }, override, true ); + }; + retval.type = 'button'; + retval.override = function( override ) + { + return CKEDITOR.tools.extend( function( editor ){ return retval( editor, override ); }, + { type : 'button' }, true ); + }; + return retval; + })(), + + /** + * Registers a dialog UI element. + * @param {String} typeName The name of the UI element. + * @param {Function} builder The function to build the UI element. + * @example + */ + addUIElement : function( typeName, builder ) + { + this._.uiElementBuilders[ typeName ] = builder; + } + }); + + CKEDITOR.dialog._ = + { + uiElementBuilders : {}, + + dialogDefinitions : {}, + + currentTop : null, + + currentZIndex : null + }; + + // "Inherit" (copy actually) from CKEDITOR.event. + CKEDITOR.event.implementOn( CKEDITOR.dialog ); + CKEDITOR.event.implementOn( CKEDITOR.dialog.prototype, true ); + + var defaultDialogDefinition = + { + resizable : CKEDITOR.DIALOG_RESIZE_NONE, + minWidth : 600, + minHeight : 400, + buttons : [ CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton ] + }; + + // Tool function used to return an item from an array based on its id + // property. + var getById = function( array, id, recurse ) + { + for ( var i = 0, item ; ( item = array[ i ] ) ; i++ ) + { + if ( item.id == id ) + return item; + if ( recurse && item[ recurse ] ) + { + var retval = getById( item[ recurse ], id, recurse ) ; + if ( retval ) + return retval; + } + } + return null; + }; + + // Tool function used to add an item into an array. + var addById = function( array, newItem, nextSiblingId, recurse, nullIfNotFound ) + { + if ( nextSiblingId ) + { + for ( var i = 0, item ; ( item = array[ i ] ) ; i++ ) + { + if ( item.id == nextSiblingId ) + { + array.splice( i, 0, newItem ); + return newItem; + } + + if ( recurse && item[ recurse ] ) + { + var retval = addById( item[ recurse ], newItem, nextSiblingId, recurse, true ); + if ( retval ) + return retval; + } + } + + if ( nullIfNotFound ) + return null; + } + + array.push( newItem ); + return newItem; + }; + + // Tool function used to remove an item from an array based on its id. + var removeById = function( array, id, recurse ) + { + for ( var i = 0, item ; ( item = array[ i ] ) ; i++ ) + { + if ( item.id == id ) + return array.splice( i, 1 ); + if ( recurse && item[ recurse ] ) + { + var retval = removeById( item[ recurse ], id, recurse ); + if ( retval ) + return retval; + } + } + return null; + }; + + /** + * This class is not really part of the API. It is the "definition" property value + * passed to "dialogDefinition" event handlers. + * @constructor + * @name CKEDITOR.dialog.dialogDefinitionObject + * @extends CKEDITOR.dialog.dialogDefinition + * @example + * CKEDITOR.on( 'dialogDefinition', function( evt ) + * { + * var definition = evt.data.definition; + * var content = definition.getContents( 'page1' ); + * ... + * } ); + */ + var definitionObject = function( dialog, dialogDefinition ) + { + // TODO : Check if needed. + this.dialog = dialog; + + // Transform the contents entries in contentObjects. + var contents = dialogDefinition.contents; + for ( var i = 0, content ; ( content = contents[i] ) ; i++ ) + contents[ i ] = new contentObject( dialog, content ); + + CKEDITOR.tools.extend( this, dialogDefinition ); + }; + + definitionObject.prototype = + /** @lends CKEDITOR.dialog.dialogDefinitionObject.prototype */ + { + /** + * Gets a content definition. + * @param {String} id The id of the content definition. + * @returns {CKEDITOR.dialog.contentDefinition} The content definition + * matching id. + */ + getContents : function( id ) + { + return getById( this.contents, id ); + }, + + /** + * Gets a button definition. + * @param {String} id The id of the button definition. + * @returns {CKEDITOR.dialog.buttonDefinition} The button definition + * matching id. + */ + getButton : function( id ) + { + return getById( this.buttons, id ); + }, + + /** + * Adds a content definition object under this dialog definition. + * @param {CKEDITOR.dialog.contentDefinition} contentDefinition The + * content definition. + * @param {String} [nextSiblingId] The id of an existing content + * definition which the new content definition will be inserted + * before. Omit if the new content definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.contentDefinition} The inserted content + * definition. + */ + addContents : function( contentDefinition, nextSiblingId ) + { + return addById( this.contents, contentDefinition, nextSiblingId ); + }, + + /** + * Adds a button definition object under this dialog definition. + * @param {CKEDITOR.dialog.buttonDefinition} buttonDefinition The + * button definition. + * @param {String} [nextSiblingId] The id of an existing button + * definition which the new button definition will be inserted + * before. Omit if the new button definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.buttonDefinition} The inserted button + * definition. + */ + addButton : function( buttonDefinition, nextSiblingId ) + { + return addById( this.buttons, buttonDefinition, nextSiblingId ); + }, + + /** + * Removes a content definition from this dialog definition. + * @param {String} id The id of the content definition to be removed. + * @returns {CKEDITOR.dialog.contentDefinition} The removed content + * definition. + */ + removeContents : function( id ) + { + removeById( this.contents, id ); + }, + + /** + * Removes a button definition from the dialog definition. + * @param {String} id The id of the button definition to be removed. + * @returns {CKEDITOR.dialog.buttonDefinition} The removed button + * definition. + */ + removeButton : function( id ) + { + removeById( this.buttons, id ); + } + }; + + /** + * This class is not really part of the API. It is the template of the + * objects representing content pages inside the + * CKEDITOR.dialog.dialogDefinitionObject. + * @constructor + * @name CKEDITOR.dialog.contentDefinitionObject + * @example + * CKEDITOR.on( 'dialogDefinition', function( evt ) + * { + * var definition = evt.data.definition; + * var content = definition.getContents( 'page1' ); + * content.remove( 'textInput1' ); + * ... + * } ); + */ + function contentObject( dialog, contentDefinition ) + { + this._ = + { + dialog : dialog + }; + + CKEDITOR.tools.extend( this, contentDefinition ); + } + + contentObject.prototype = + /** @lends CKEDITOR.dialog.contentDefinitionObject.prototype */ + { + /** + * Gets a UI element definition under the content definition. + * @param {String} id The id of the UI element definition. + * @returns {CKEDITOR.dialog.uiElementDefinition} + */ + get : function( id ) + { + return getById( this.elements, id, 'children' ); + }, + + /** + * Adds a UI element definition to the content definition. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition The + * UI elemnet definition to be added. + * @param {String} nextSiblingId The id of an existing UI element + * definition which the new UI element definition will be inserted + * before. Omit if the new button definition is to be inserted as + * the last item. + * @returns {CKEDITOR.dialog.uiElementDefinition} The element + * definition inserted. + */ + add : function( elementDefinition, nextSiblingId ) + { + return addById( this.elements, elementDefinition, nextSiblingId, 'children' ); + }, + + /** + * Removes a UI element definition from the content definition. + * @param {String} id The id of the UI element definition to be + * removed. + * @returns {CKEDITOR.dialog.uiElementDefinition} The element + * definition removed. + * @example + */ + remove : function( id ) + { + removeById( this.elements, id, 'children' ); + } + }; + + function initDragAndDrop( dialog ) + { + var lastCoords = null, + abstractDialogCoords = null, + element = dialog.getElement().getFirst(), + editor = dialog.getParentEditor(), + magnetDistance = editor.config.dialog_magnetDistance, + margins = editor.skin.margins || [ 0, 0, 0, 0 ]; + + if ( typeof magnetDistance == 'undefined' ) + magnetDistance = 20; + + function mouseMoveHandler( evt ) + { + var dialogSize = dialog.getSize(), + viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(), + x = evt.data.$.screenX, + y = evt.data.$.screenY, + dx = x - lastCoords.x, + dy = y - lastCoords.y, + realX, realY; + + lastCoords = { x : x, y : y }; + abstractDialogCoords.x += dx; + abstractDialogCoords.y += dy; + + if ( abstractDialogCoords.x + margins[3] < magnetDistance ) + realX = - margins[3]; + else if ( abstractDialogCoords.x - margins[1] > viewPaneSize.width - dialogSize.width - magnetDistance ) + realX = viewPaneSize.width - dialogSize.width + margins[1]; + else + realX = abstractDialogCoords.x; + + if ( abstractDialogCoords.y + margins[0] < magnetDistance ) + realY = - margins[0]; + else if ( abstractDialogCoords.y - margins[2] > viewPaneSize.height - dialogSize.height - magnetDistance ) + realY = viewPaneSize.height - dialogSize.height + margins[2]; + else + realY = abstractDialogCoords.y; + + dialog.move( realX, realY ); + + evt.data.preventDefault(); + } + + function mouseUpHandler( evt ) + { + CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = coverElement.getChild( 0 ).getFrameDocument(); + coverDoc.removeListener( 'mousemove', mouseMoveHandler ); + coverDoc.removeListener( 'mouseup', mouseUpHandler ); + } + } + + dialog.parts.title.on( 'mousedown', function( evt ) + { + dialog._.updateSize = true; + + lastCoords = { x : evt.data.$.screenX, y : evt.data.$.screenY }; + + CKEDITOR.document.on( 'mousemove', mouseMoveHandler ); + CKEDITOR.document.on( 'mouseup', mouseUpHandler ); + abstractDialogCoords = dialog.getPosition(); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = coverElement.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'mousemove', mouseMoveHandler ); + coverDoc.on( 'mouseup', mouseUpHandler ); + } + + evt.data.preventDefault(); + }, dialog ); + } + + function initResizeHandles( dialog ) + { + var definition = dialog.definition, + minWidth = definition.minWidth || 0, + minHeight = definition.minHeight || 0, + resizable = definition.resizable, + margins = dialog.getParentEditor().skin.margins || [ 0, 0, 0, 0 ]; + + function topSizer( coords, dy ) + { + coords.y += dy; + } + + function rightSizer( coords, dx ) + { + coords.x2 += dx; + } + + function bottomSizer( coords, dy ) + { + coords.y2 += dy; + } + + function leftSizer( coords, dx ) + { + coords.x += dx; + } + + var lastCoords = null, + abstractDialogCoords = null, + magnetDistance = dialog._.editor.config.magnetDistance, + parts = [ 'tl', 't', 'tr', 'l', 'r', 'bl', 'b', 'br' ]; + + function mouseDownHandler( evt ) + { + var partName = evt.listenerData.part, size = dialog.getSize(); + abstractDialogCoords = dialog.getPosition(); + CKEDITOR.tools.extend( abstractDialogCoords, + { + x2 : abstractDialogCoords.x + size.width, + y2 : abstractDialogCoords.y + size.height + } ); + lastCoords = { x : evt.data.$.screenX, y : evt.data.$.screenY }; + + CKEDITOR.document.on( 'mousemove', mouseMoveHandler, dialog, { part : partName } ); + CKEDITOR.document.on( 'mouseup', mouseUpHandler, dialog, { part : partName } ); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = coverElement.getChild( 0 ).getFrameDocument(); + coverDoc.on( 'mousemove', mouseMoveHandler, dialog, { part : partName } ); + coverDoc.on( 'mouseup', mouseUpHandler, dialog, { part : partName } ); + } + + evt.data.preventDefault(); + } + + function mouseMoveHandler( evt ) + { + var x = evt.data.$.screenX, + y = evt.data.$.screenY, + dx = x - lastCoords.x, + dy = y - lastCoords.y, + viewPaneSize = CKEDITOR.document.getWindow().getViewPaneSize(), + partName = evt.listenerData.part; + + if ( partName.search( 't' ) != -1 ) + topSizer( abstractDialogCoords, dy ); + if ( partName.search( 'l' ) != -1 ) + leftSizer( abstractDialogCoords, dx ); + if ( partName.search( 'b' ) != -1 ) + bottomSizer( abstractDialogCoords, dy ); + if ( partName.search( 'r' ) != -1 ) + rightSizer( abstractDialogCoords, dx ); + + lastCoords = { x : x, y : y }; + + var realX, realY, realX2, realY2; + + if ( abstractDialogCoords.x + margins[3] < magnetDistance ) + realX = - margins[3]; + else if ( partName.search( 'l' ) != -1 && abstractDialogCoords.x2 - abstractDialogCoords.x < minWidth + magnetDistance ) + realX = abstractDialogCoords.x2 - minWidth; + else + realX = abstractDialogCoords.x; + + if ( abstractDialogCoords.y + margins[0] < magnetDistance ) + realY = - margins[0]; + else if ( partName.search( 't' ) != -1 && abstractDialogCoords.y2 - abstractDialogCoords.y < minHeight + magnetDistance ) + realY = abstractDialogCoords.y2 - minHeight; + else + realY = abstractDialogCoords.y; + + if ( abstractDialogCoords.x2 - margins[1] > viewPaneSize.width - magnetDistance ) + realX2 = viewPaneSize.width + margins[1] ; + else if ( partName.search( 'r' ) != -1 && abstractDialogCoords.x2 - abstractDialogCoords.x < minWidth + magnetDistance ) + realX2 = abstractDialogCoords.x + minWidth; + else + realX2 = abstractDialogCoords.x2; + + if ( abstractDialogCoords.y2 - margins[2] > viewPaneSize.height - magnetDistance ) + realY2= viewPaneSize.height + margins[2] ; + else if ( partName.search( 'b' ) != -1 && abstractDialogCoords.y2 - abstractDialogCoords.y < minHeight + magnetDistance ) + realY2 = abstractDialogCoords.y + minHeight; + else + realY2 = abstractDialogCoords.y2 ; + + dialog.move( realX, realY ); + dialog.resize( realX2 - realX, realY2 - realY ); + + evt.data.preventDefault(); + } + + function mouseUpHandler( evt ) + { + CKEDITOR.document.removeListener( 'mouseup', mouseUpHandler ); + CKEDITOR.document.removeListener( 'mousemove', mouseMoveHandler ); + + if ( CKEDITOR.env.ie6Compat ) + { + var coverDoc = coverElement.getChild( 0 ).getFrameDocument(); + coverDoc.removeListener( 'mouseup', mouseUpHandler ); + coverDoc.removeListener( 'mousemove', mouseMoveHandler ); + } + } + +// TODO : Simplify the resize logic, having just a single resize grip
      . +// var widthTest = /[lr]/, +// heightTest = /[tb]/; +// for ( var i = 0 ; i < parts.length ; i++ ) +// { +// var element = dialog.parts[ parts[i] + '_resize' ]; +// if ( resizable == CKEDITOR.DIALOG_RESIZE_NONE || +// resizable == CKEDITOR.DIALOG_RESIZE_HEIGHT && widthTest.test( parts[i] ) || +// resizable == CKEDITOR.DIALOG_RESIZE_WIDTH && heightTest.test( parts[i] ) ) +// { +// element.hide(); +// continue; +// } +// element.on( 'mousedown', mouseDownHandler, dialog, { part : parts[i] } ); +// } + } + + var resizeCover; + var coverElement; + + var addCover = function( editor ) + { + var win = CKEDITOR.document.getWindow(); + + if ( !coverElement ) + { + var backgroundColorStyle = editor.config.dialog_backgroundCoverColor || 'white'; + + var html = [ + '
      ' + ]; + + + if ( CKEDITOR.env.ie6Compat ) + { + // Support for custom document.domain in IE. + var isCustomDomain = CKEDITOR.env.isCustomDomain(), + iframeHtml = ''; + + html.push( + '' + + '' ); + } + + html.push( '
      ' ); + + coverElement = CKEDITOR.dom.element.createFromHtml( html.join( '' ) ); + } + + var element = coverElement; + + var resizeFunc = function() + { + var size = win.getViewPaneSize(); + element.setStyles( + { + width : size.width + 'px', + height : size.height + 'px' + } ); + }; + + var scrollFunc = function() + { + var pos = win.getScrollPosition(), + cursor = CKEDITOR.dialog._.currentTop; + element.setStyles( + { + left : pos.x + 'px', + top : pos.y + 'px' + }); + + do + { + var dialogPos = cursor.getPosition(); + cursor.move( dialogPos.x, dialogPos.y ); + } while( ( cursor = cursor._.parentDialog ) ); + }; + + resizeCover = resizeFunc; + win.on( 'resize', resizeFunc ); + resizeFunc(); + if ( CKEDITOR.env.ie6Compat ) + { + // IE BUG: win.$.onscroll assignment doesn't work.. it must be window.onscroll. + // So we need to invent a really funny way to make it work. + var myScrollHandler = function() + { + scrollFunc(); + arguments.callee.prevScrollHandler.apply( this, arguments ); + }; + win.$.setTimeout( function() + { + myScrollHandler.prevScrollHandler = window.onscroll || function(){}; + window.onscroll = myScrollHandler; + }, 0 ); + scrollFunc(); + } + + var opacity = editor.config.dialog_backgroundCoverOpacity; + element.setOpacity( typeof opacity != 'undefined' ? opacity : 0.5 ); + + element.appendTo( CKEDITOR.document.getBody() ); + }; + + var removeCover = function() + { + if ( !coverElement ) + return; + + var win = CKEDITOR.document.getWindow(); + coverElement.remove(); + win.removeListener( 'resize', resizeCover ); + + if ( CKEDITOR.env.ie6Compat ) + { + win.$.setTimeout( function() + { + var prevScrollHandler = window.onscroll && window.onscroll.prevScrollHandler; + window.onscroll = prevScrollHandler || null; + }, 0 ); + } + resizeCover = null; + }; + + var accessKeyProcessors = {}; + + var accessKeyDownHandler = function( evt ) + { + var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey, + alt = evt.data.$.altKey, + shift = evt.data.$.shiftKey, + key = String.fromCharCode( evt.data.$.keyCode ), + keyProcessor = accessKeyProcessors[( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '') + ( shift ? 'SHIFT+' : '' ) + key]; + + if ( !keyProcessor || !keyProcessor.length ) + return; + + keyProcessor = keyProcessor[keyProcessor.length - 1]; + keyProcessor.keydown && keyProcessor.keydown.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); + evt.data.preventDefault(); + }; + + var accessKeyUpHandler = function( evt ) + { + var ctrl = evt.data.$.ctrlKey || evt.data.$.metaKey, + alt = evt.data.$.altKey, + shift = evt.data.$.shiftKey, + key = String.fromCharCode( evt.data.$.keyCode ), + keyProcessor = accessKeyProcessors[( ctrl ? 'CTRL+' : '' ) + ( alt ? 'ALT+' : '') + ( shift ? 'SHIFT+' : '' ) + key]; + + if ( !keyProcessor || !keyProcessor.length ) + return; + + keyProcessor = keyProcessor[keyProcessor.length - 1]; + if ( keyProcessor.keyup ) + { + keyProcessor.keyup.call( keyProcessor.uiElement, keyProcessor.dialog, keyProcessor.key ); + evt.data.preventDefault(); + } + }; + + var registerAccessKey = function( uiElement, dialog, key, downFunc, upFunc ) + { + var procList = accessKeyProcessors[key] || ( accessKeyProcessors[key] = [] ); + procList.push( { + uiElement : uiElement, + dialog : dialog, + key : key, + keyup : upFunc || uiElement.accessKeyUp, + keydown : downFunc || uiElement.accessKeyDown + } ); + }; + + var unregisterAccessKey = function( obj ) + { + for ( var i in accessKeyProcessors ) + { + var list = accessKeyProcessors[i]; + for ( var j = list.length - 1 ; j >= 0 ; j-- ) + { + if ( list[j].dialog == obj || list[j].uiElement == obj ) + list.splice( j, 1 ); + } + if ( list.length === 0 ) + delete accessKeyProcessors[i]; + } + }; + + var tabAccessKeyUp = function( dialog, key ) + { + if ( dialog._.accessKeyMap[key] ) + dialog.selectPage( dialog._.accessKeyMap[key] ); + }; + + var tabAccessKeyDown = function( dialog, key ) + { + }; + + // ESC, ENTER + var preventKeyBubblingKeys = { 27 :1, 13 :1 }; + var preventKeyBubbling = function( e ) + { + if ( e.data.getKeystroke() in preventKeyBubblingKeys ) + e.data.stopPropagation(); + }; + + (function() + { + CKEDITOR.ui.dialog = + { + /** + * The base class of all dialog UI elements. + * @constructor + * @param {CKEDITOR.dialog} dialog Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition Element + * definition. Accepted fields: + *
        + *
      • id (Required) The id of the UI element. See {@link + * CKEDITOR.dialog#getContentElement}
      • + *
      • type (Required) The type of the UI element. The + * value to this field specifies which UI element class will be used to + * generate the final widget.
      • + *
      • title (Optional) The popup tooltip for the UI + * element.
      • + *
      • hidden (Optional) A flag that tells if the element + * should be initially visible.
      • + *
      • className (Optional) Additional CSS class names + * to add to the UI element. Separated by space.
      • + *
      • style (Optional) Additional CSS inline styles + * to add to the UI element. A semicolon (;) is required after the last + * style declaration.
      • + *
      • accessKey (Optional) The alphanumeric access key + * for this element. Access keys are automatically prefixed by CTRL.
      • + *
      • on* (Optional) Any UI element definition field that + * starts with on followed immediately by a capital letter and + * probably more letters is an event handler. Event handlers may be further + * divided into registered event handlers and DOM event handlers. Please + * refer to {@link CKEDITOR.ui.dialog.uiElement#registerEvents} and + * {@link CKEDITOR.ui.dialog.uiElement#eventProcessors} for more + * information.
      • + *
      + * @param {Array} htmlList + * List of HTML code to be added to the dialog's content area. + * @param {Function|String} nodeNameArg + * A function returning a string, or a simple string for the node name for + * the root DOM node. Default is 'div'. + * @param {Function|Object} stylesArg + * A function returning an object, or a simple object for CSS styles applied + * to the DOM node. Default is empty object. + * @param {Function|Object} attributesArg + * A fucntion returning an object, or a simple object for attributes applied + * to the DOM node. Default is empty object. + * @param {Function|String} contentsArg + * A function returning a string, or a simple string for the HTML code inside + * the root DOM node. Default is empty string. + * @example + */ + uiElement : function( dialog, elementDefinition, htmlList, nodeNameArg, stylesArg, attributesArg, contentsArg ) + { + if ( arguments.length < 4 ) + return; + + var nodeName = ( nodeNameArg.call ? nodeNameArg( elementDefinition ) : nodeNameArg ) || 'div', + html = [ '<', nodeName, ' ' ], + styles = ( stylesArg && stylesArg.call ? stylesArg( elementDefinition ) : stylesArg ) || {}, + attributes = ( attributesArg && attributesArg.call ? attributesArg( elementDefinition ) : attributesArg ) || {}, + innerHTML = ( contentsArg && contentsArg.call ? contentsArg( dialog, elementDefinition ) : contentsArg ) || '', + domId = this.domId = attributes.id || CKEDITOR.tools.getNextNumber() + '_uiElement', + id = this.id = elementDefinition.id, + i; + + // Set the id, a unique id is required for getElement() to work. + attributes.id = domId; + + // Set the type and definition CSS class names. + var classes = {}; + if ( elementDefinition.type ) + classes[ 'cke_dialog_ui_' + elementDefinition.type ] = 1; + if ( elementDefinition.className ) + classes[ elementDefinition.className ] = 1; + var attributeClasses = ( attributes['class'] && attributes['class'].split ) ? attributes['class'].split( ' ' ) : []; + for ( i = 0 ; i < attributeClasses.length ; i++ ) + { + if ( attributeClasses[i] ) + classes[ attributeClasses[i] ] = 1; + } + var finalClasses = []; + for ( i in classes ) + finalClasses.push( i ); + attributes['class'] = finalClasses.join( ' ' ); + + // Set the popup tooltop. + if ( elementDefinition.title ) + attributes.title = elementDefinition.title; + + // Write the inline CSS styles. + var styleStr = ( elementDefinition.style || '' ).split( ';' ); + for ( i in styles ) + styleStr.push( i + ':' + styles[i] ); + if ( elementDefinition.hidden ) + styleStr.push( 'display:none' ); + for ( i = styleStr.length - 1 ; i >= 0 ; i-- ) + { + if ( styleStr[i] === '' ) + styleStr.splice( i, 1 ); + } + if ( styleStr.length > 0 ) + attributes.style = ( attributes.style ? ( attributes.style + '; ' ) : '' ) + styleStr.join( '; ' ); + + // Write the attributes. + for ( i in attributes ) + html.push( i + '="' + CKEDITOR.tools.htmlEncode( attributes[i] ) + '" '); + + // Write the content HTML. + html.push( '>', innerHTML, '' ); + + // Add contents to the parent HTML array. + htmlList.push( html.join( '' ) ); + + ( this._ || ( this._ = {} ) ).dialog = dialog; + + // Override isChanged if it is defined in element definition. + if ( typeof( elementDefinition.isChanged ) == 'boolean' ) + this.isChanged = function(){ return elementDefinition.isChanged; }; + if ( typeof( elementDefinition.isChanged ) == 'function' ) + this.isChanged = elementDefinition.isChanged; + + // Add events. + CKEDITOR.event.implementOn( this ); + + this.registerEvents( elementDefinition ); + if ( this.accessKeyUp && this.accessKeyDown && elementDefinition.accessKey ) + registerAccessKey( this, dialog, 'CTRL+' + elementDefinition.accessKey ); + + var me = this; + dialog.on( 'load', function() + { + if ( me.getInputElement() ) + { + me.getInputElement().on( 'focus', function() + { + dialog._.tabBarMode = false; + dialog._.hasFocus = true; + me.fire( 'focus' ); + }, me ); + } + } ); + + // Register the object as a tab focus if it can be included. + if ( this.keyboardFocusable ) + { + this.focusIndex = dialog._.focusList.push( this ) - 1; + this.on( 'focus', function() + { + dialog._.currentFocusIndex = me.focusIndex; + } ); + } + + // Completes this object with everything we have in the + // definition. + CKEDITOR.tools.extend( this, elementDefinition ); + }, + + /** + * Horizontal layout box for dialog UI elements, auto-expends to available width of container. + * @constructor + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this + * container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList + * Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • widths (Optional) The widths of child cells.
      • + *
      • height (Optional) The height of the layout.
      • + *
      • padding (Optional) The padding width inside child + * cells.
      • + *
      • align (Optional) The alignment of the whole layout + *
      • + *
      + * @example + */ + hbox : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) + { + if ( arguments.length < 4 ) + return; + + this._ || ( this._ = {} ); + + var children = this._.children = childObjList, + widths = elementDefinition && elementDefinition.widths || null, + height = elementDefinition && elementDefinition.height || null, + styles = {}, + i; + /** @ignore */ + var innerHTML = function() + { + var html = [ '' ]; + for ( i = 0 ; i < childHtmlList.length ; i++ ) + { + var className = 'cke_dialog_ui_hbox_child', + styles = []; + if ( i === 0 ) + className = 'cke_dialog_ui_hbox_first'; + if ( i == childHtmlList.length - 1 ) + className = 'cke_dialog_ui_hbox_last'; + html.push( ' 0 ) + html.push( 'style="' + styles.join('; ') + '" ' ); + html.push( '>', childHtmlList[i], '' ); + } + html.push( '' ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.uiElement.call( + this, + dialog, + elementDefinition || { type : 'hbox' }, + htmlList, + 'table', + styles, + elementDefinition && elementDefinition.align && { align : elementDefinition.align } || null, + innerHTML ); + }, + + /** + * Vertical layout box for dialog UI elements. + * @constructor + * @extends CKEDITOR.ui.dialog.hbox + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this + * container. + * @param {Array} childHtmlList + * Array of HTML code that correspond to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList + * Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • width (Optional) The width of the layout.
      • + *
      • heights (Optional) The heights of individual cells. + *
      • + *
      • align (Optional) The alignment of the layout.
      • + *
      • padding (Optional) The padding width inside child + * cells.
      • + *
      • expand (Optional) Whether the layout should expand + * vertically to fill its container.
      • + *
      + * @example + */ + vbox : function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) + { + if (arguments.length < 3 ) + return; + + this._ || ( this._ = {} ); + + var children = this._.children = childObjList, + width = elementDefinition && elementDefinition.width || null, + heights = elementDefinition && elementDefinition.heights || null; + /** @ignore */ + var innerHTML = function() + { + var html = [ '' ); + for ( var i = 0 ; i < childHtmlList.length ; i++ ) + { + var styles = []; + html.push( '' ); + } + html.push( '
      0 ) + html.push( 'style="', styles.join( '; ' ), '" ' ); + html.push( ' class="cke_dialog_ui_vbox_child">', childHtmlList[i], '
      ' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition || { type : 'vbox' }, htmlList, 'div', null, null, innerHTML ); + } + }; + })(); + + CKEDITOR.ui.dialog.uiElement.prototype = + { + /** + * Gets the root DOM element of this dialog UI object. + * @returns {CKEDITOR.dom.element} Root DOM element of UI object. + * @example + * uiElement.getElement().hide(); + */ + getElement : function() + { + return CKEDITOR.document.getById( this.domId ); + }, + + /** + * Gets the DOM element that the user inputs values. + * This function is used by setValue(), getValue() and focus(). It should + * be overrided in child classes where the input element isn't the root + * element. + * @returns {CKEDITOR.dom.element} The element where the user input values. + * @example + * var rawValue = textInput.getInputElement().$.value; + */ + getInputElement : function() + { + return this.getElement(); + }, + + /** + * Gets the parent dialog object containing this UI element. + * @returns {CKEDITOR.dialog} Parent dialog object. + * @example + * var dialog = uiElement.getDialog(); + */ + getDialog : function() + { + return this._.dialog; + }, + + /** + * Sets the value of this dialog UI object. + * @param {Object} value The new value. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + * uiElement.setValue( 'Dingo' ); + */ + setValue : function( value ) + { + this.getInputElement().setValue( value ); + this.fire( 'change', { value : value } ); + return this; + }, + + /** + * Gets the current value of this dialog UI object. + * @returns {Object} The current value. + * @example + * var myValue = uiElement.getValue(); + */ + getValue : function() + { + return this.getInputElement().getValue(); + }, + + /** + * Tells whether the UI object's value has changed. + * @returns {Boolean} true if changed, false if not changed. + * @example + * if ( uiElement.isChanged() ) + *   confirm( 'Value changed! Continue?' ); + */ + isChanged : function() + { + // Override in input classes. + return false; + }, + + /** + * Selects the parent tab of this element. Usually called by focus() or overridden focus() methods. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + * focus : function() + * { + * this.selectParentTab(); + * // do something else. + * } + */ + selectParentTab : function() + { + var element = this.getInputElement(), + cursor = element, + tabId; + while ( ( cursor = cursor.getParent() ) && cursor.$.className.search( 'cke_dialog_page_contents' ) == -1 ) + { /*jsl:pass*/ } + + // Some widgets don't have parent tabs (e.g. OK and Cancel buttons). + if ( !cursor ) + return this; + + tabId = cursor.getAttribute( 'name' ); + // Avoid duplicate select. + if ( this._.dialog._.currentTabId != tabId ) + this._.dialog.selectPage( tabId ); + return this; + }, + + /** + * Puts the focus to the UI object. Switches tabs if the UI object isn't in the active tab page. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + * uiElement.focus(); + */ + focus : function() + { + this.selectParentTab().getInputElement().focus(); + return this; + }, + + /** + * Registers the on* event handlers defined in the element definition. + * The default behavior of this function is: + *
        + *
      1. + * If the on* event is defined in the class's eventProcesors list, + * then the registration is delegated to the corresponding function + * in the eventProcessors list. + *
      2. + *
      3. + * If the on* event is not defined in the eventProcessors list, then + * register the event handler under the corresponding DOM event of + * the UI element's input DOM element (as defined by the return value + * of {@link CKEDITOR.ui.dialog.uiElement#getInputElement}). + *
      4. + *
      + * This function is only called at UI element instantiation, but can + * be overridded in child classes if they require more flexibility. + * @param {CKEDITOR.dialog.uiElementDefinition} definition The UI element + * definition. + * @returns {CKEDITOR.dialog.uiElement} The current UI element. + * @example + */ + registerEvents : function( definition ) + { + var regex = /^on([A-Z]\w+)/, + match; + + var registerDomEvent = function( uiElement, dialog, eventName, func ) + { + dialog.on( 'load', function() + { + uiElement.getInputElement().on( eventName, func, uiElement ); + }); + }; + + for ( var i in definition ) + { + if ( !( match = i.match( regex ) ) ) + continue; + if ( this.eventProcessors[i] ) + this.eventProcessors[i].call( this, this._.dialog, definition[i] ); + else + registerDomEvent( this, this._.dialog, match[1].toLowerCase(), definition[i] ); + } + + return this; + }, + + /** + * The event processor list used by + * {@link CKEDITOR.ui.dialog.uiElement#getInputElement} at UI element + * instantiation. The default list defines three on* events: + *
        + *
      1. onLoad - Called when the element's parent dialog opens for the + * first time
      2. + *
      3. onShow - Called whenever the element's parent dialog opens.
      4. + *
      5. onHide - Called whenever the element's parent dialog closes.
      6. + *
      + * @field + * @type Object + * @example + * // This connects the 'click' event in CKEDITOR.ui.dialog.button to onClick + * // handlers in the UI element's definitions. + * CKEDITOR.ui.dialog.button.eventProcessors = CKEDITOR.tools.extend( {}, + *   CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, + *   { onClick : function( dialog, func ) { this.on( 'click', func ); } }, + *   true ); + */ + eventProcessors : + { + onLoad : function( dialog, func ) + { + dialog.on( 'load', func, this ); + }, + + onShow : function( dialog, func ) + { + dialog.on( 'show', func, this ); + }, + + onHide : function( dialog, func ) + { + dialog.on( 'hide', func, this ); + } + }, + + /** + * The default handler for a UI element's access key down event, which + * tries to put focus to the UI element.
      + * Can be overridded in child classes for more sophisticaed behavior. + * @param {CKEDITOR.dialog} dialog The parent dialog object. + * @param {String} key The key combination pressed. Since access keys + * are defined to always include the CTRL key, its value should always + * include a 'CTRL+' prefix. + * @example + */ + accessKeyDown : function( dialog, key ) + { + this.focus(); + }, + + /** + * The default handler for a UI element's access key up event, which + * does nothing.
      + * Can be overridded in child classes for more sophisticated behavior. + * @param {CKEDITOR.dialog} dialog The parent dialog object. + * @param {String} key The key combination pressed. Since access keys + * are defined to always include the CTRL key, its value should always + * include a 'CTRL+' prefix. + * @example + */ + accessKeyUp : function( dialog, key ) + { + }, + + /** + * Disables a UI element. + * @example + */ + disable : function() + { + var element = this.getInputElement(); + element.setAttribute( 'disabled', 'true' ); + element.addClass( 'cke_disabled' ); + }, + + /** + * Enables a UI element. + * @example + */ + enable : function() + { + var element = this.getInputElement(); + element.removeAttribute( 'disabled' ); + element.removeClass( 'cke_disabled' ); + }, + + /** + * Determines whether an UI element is enabled or not. + * @returns {Boolean} Whether the UI element is enabled. + * @example + */ + isEnabled : function() + { + return !this.getInputElement().getAttribute( 'disabled' ); + }, + + /** + * Determines whether an UI element is visible or not. + * @returns {Boolean} Whether the UI element is visible. + * @example + */ + isVisible : function() + { + return this.getInputElement().isVisible(); + }, + + /** + * Determines whether an UI element is focus-able or not. + * Focus-able is defined as being both visible and enabled. + * @returns {Boolean} Whether the UI element can be focused. + * @example + */ + isFocusable : function() + { + if ( !this.isEnabled() || !this.isVisible() ) + return false; + return true; + } + }; + + CKEDITOR.ui.dialog.hbox.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement, + /** + * @lends CKEDITOR.ui.dialog.hbox.prototype + */ + { + /** + * Gets a child UI element inside this container. + * @param {Array|Number} indices An array or a single number to indicate the child's + * position in the container's descendant tree. Omit to get all the children in an array. + * @returns {Array|CKEDITOR.ui.dialog.uiElement} Array of all UI elements in the container + * if no argument given, or the specified UI element if indices is given. + * @example + * var checkbox = hbox.getChild( [0,1] ); + * checkbox.setValue( true ); + */ + getChild : function( indices ) + { + // If no arguments, return a clone of the children array. + if ( arguments.length < 1 ) + return this._.children.concat(); + + // If indices isn't array, make it one. + if ( !indices.splice ) + indices = [ indices ]; + + // Retrieve the child element according to tree position. + if ( indices.length < 2 ) + return this._.children[ indices[0] ]; + else + return ( this._.children[ indices[0] ] && this._.children[ indices[0] ].getChild ) ? + this._.children[ indices[0] ].getChild( indices.slice( 1, indices.length ) ) : + null; + } + }, true ); + + CKEDITOR.ui.dialog.vbox.prototype = new CKEDITOR.ui.dialog.hbox(); + + + + (function() + { + var commonBuilder = { + build : function( dialog, elementDefinition, output ) + { + var children = elementDefinition.children, + child, + childHtmlList = [], + childObjList = []; + for ( var i = 0 ; ( i < children.length && ( child = children[i] ) ) ; i++ ) + { + var childHtml = []; + childHtmlList.push( childHtml ); + childObjList.push( CKEDITOR.dialog._.uiElementBuilders[ child.type ].build( dialog, child, childHtml ) ); + } + return new CKEDITOR.ui.dialog[elementDefinition.type]( dialog, childObjList, childHtmlList, output, elementDefinition ); + } + }; + + CKEDITOR.dialog.addUIElement( 'hbox', commonBuilder ); + CKEDITOR.dialog.addUIElement( 'vbox', commonBuilder ); + })(); + + /** + * Generic dialog command. It opens a specific dialog when executed. + * @constructor + * @augments CKEDITOR.commandDefinition + * @param {string} dialogName The name of the dialog to open when executing + * this command. + * @example + * // Register the "link" command, which opens the "link" dialog. + * editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ) ); + */ + CKEDITOR.dialogCommand = function( dialogName ) + { + this.dialogName = dialogName; + }; + + CKEDITOR.dialogCommand.prototype = + { + /** @ignore */ + exec : function( editor ) + { + editor.openDialog( this.dialogName ); + }, + // Dialog commands just open a dialog ui, thus require no undo logic, + // undo support should dedicate to specific dialog implementation. + canUndo: false + }; + + (function() + { + var notEmptyRegex = /^([a]|[^a])+$/, + integerRegex = /^\d*$/, + numberRegex = /^\d*(?:\.\d+)?$/; + + CKEDITOR.VALIDATE_OR = 1; + CKEDITOR.VALIDATE_AND = 2; + + CKEDITOR.dialog.validate = + { + functions : function() + { + return function() + { + /** + * It's important for validate functions to be able to accept the value + * as argument in addition to this.getValue(), so that it is possible to + * combine validate functions together to make more sophisticated + * validators. + */ + var value = this && this.getValue ? this.getValue() : arguments[0]; + + var msg = undefined, + relation = CKEDITOR.VALIDATE_AND, + functions = [], i; + + for ( i = 0 ; i < arguments.length ; i++ ) + { + if ( typeof( arguments[i] ) == 'function' ) + functions.push( arguments[i] ); + else + break; + } + + if ( i < arguments.length && typeof( arguments[i] ) == 'string' ) + { + msg = arguments[i]; + i++; + } + + if ( i < arguments.length && typeof( arguments[i]) == 'number' ) + relation = arguments[i]; + + var passed = ( relation == CKEDITOR.VALIDATE_AND ? true : false ); + for ( i = 0 ; i < functions.length ; i++ ) + { + if ( relation == CKEDITOR.VALIDATE_AND ) + passed = passed && functions[i]( value ); + else + passed = passed || functions[i]( value ); + } + + if ( !passed ) + { + if ( msg !== undefined ) + alert( msg ); + if ( this && ( this.select || this.focus ) ) + ( this.select || this.focus )(); + return false; + } + + return true; + }; + }, + + regex : function( regex, msg ) + { + /* + * Can be greatly shortened by deriving from functions validator if code size + * turns out to be more important than performance. + */ + return function() + { + var value = this && this.getValue ? this.getValue() : arguments[0]; + if ( !regex.test( value ) ) + { + if ( msg !== undefined ) + alert( msg ); + if ( this && ( this.select || this.focus ) ) + { + if ( this.select ) + this.select(); + else + this.focus(); + } + return false; + } + return true; + }; + }, + + notEmpty : function( msg ) + { + return this.regex( notEmptyRegex, msg ); + }, + + integer : function( msg ) + { + return this.regex( integerRegex, msg ); + }, + + 'number' : function( msg ) + { + return this.regex( numberRegex, msg ); + }, + + equals : function( value, msg ) + { + return this.functions( function( val ){ return val == value; }, msg ); + }, + + notEqual : function( value, msg ) + { + return this.functions( function( val ){ return val != value; }, msg ); + } + }; + })(); +})(); + +// Extend the CKEDITOR.editor class with dialog specific functions. +CKEDITOR.tools.extend( CKEDITOR.editor.prototype, + /** @lends CKEDITOR.editor.prototype */ + { + /** + * Loads and opens a registered dialog. + * @param {String} dialogName The registered name of the dialog. + * @param {Function} callback The function to be invoked after dialog instance created. + * @see CKEDITOR.dialog.add + * @example + * CKEDITOR.instances.editor1.openDialog( 'smiley' ); + * @returns {CKEDITOR.dialog} The dialog object corresponding to the dialog displayed. null if the dialog name is not registered. + */ + openDialog : function( dialogName, callback ) + { + var dialogDefinitions = CKEDITOR.dialog._.dialogDefinitions[ dialogName ]; + + // If the dialogDefinition is already loaded, open it immediately. + if ( typeof dialogDefinitions == 'function' ) + { + var storedDialogs = this._.storedDialogs || + ( this._.storedDialogs = {} ); + + var dialog = storedDialogs[ dialogName ] || + ( storedDialogs[ dialogName ] = new CKEDITOR.dialog( this, dialogName ) ); + + callback && callback.call( dialog, dialog ); + dialog.show(); + + return dialog; + } + else if ( dialogDefinitions == 'failed' ) + throw new Error( '[CKEDITOR.dialog.openDialog] Dialog "' + dialogName + '" failed when loading definition.' ); + + // Not loaded? Load the .js file first. + var body = CKEDITOR.document.getBody(), + cursor = body.$.style.cursor, + me = this; + + body.setStyle( 'cursor', 'wait' ); + CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( dialogDefinitions ), function() + { + // In case of plugin error, mark it as loading failed. + if ( typeof CKEDITOR.dialog._.dialogDefinitions[ dialogName ] != 'function' ) + CKEDITOR.dialog._.dialogDefinitions[ dialogName ] = 'failed'; + me.openDialog( dialogName, callback ); + body.setStyle( 'cursor', cursor ); + } ); + + return null; + } + }); + +CKEDITOR.plugins.add( 'dialog', + { + requires : [ 'dialogui' ] + }); + +// Dialog related configurations. + +/** + * The color of the dialog background cover. It should be a valid CSS color + * string. + * @name CKEDITOR.config.dialog_backgroundCoverColor + * @type String + * @default 'white' + * @example + * config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; + */ + +/** + * The opacity of the dialog background cover. It should be a number within the + * range [0.0, 1.0]. + * @name CKEDITOR.config.dialog_backgroundCoverOpacity + * @type Number + * @default 0.5 + * @example + * config.dialog_backgroundCoverOpacity = 0.7; + */ + +/** + * The distance of magnetic borders used in moving and resizing dialogs, + * measured in pixels. + * @name CKEDITOR.config.dialog_magnetDistance + * @type Number + * @default 20 + * @example + * config.dialog_magnetDistance = 30; + */ diff --git a/edgware/static/ckeditor/_source/plugins/dialogui/plugin.js b/edgware/static/ckeditor/_source/plugins/dialogui/plugin.js new file mode 100755 index 0000000..dbb9bbd --- /dev/null +++ b/edgware/static/ckeditor/_source/plugins/dialogui/plugin.js @@ -0,0 +1,1322 @@ +/* +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** @fileoverview The "dialogui" plugin. */ + +CKEDITOR.plugins.add( 'dialogui' ); + +(function() +{ + var initPrivateObject = function( elementDefinition ) + { + this._ || ( this._ = {} ); + this._['default'] = this._.initValue = elementDefinition['default'] || ''; + var args = [ this._ ]; + for ( var i = 1 ; i < arguments.length ; i++ ) + args.push( arguments[i] ); + args.push( true ); + CKEDITOR.tools.extend.apply( CKEDITOR.tools, args ); + return this._; + }, + textBuilder = + { + build : function( dialog, elementDefinition, output ) + { + return new CKEDITOR.ui.dialog.textInput( dialog, elementDefinition, output ); + } + }, + commonBuilder = + { + build : function( dialog, elementDefinition, output ) + { + return new CKEDITOR.ui.dialog[elementDefinition.type]( dialog, elementDefinition, output ); + } + }, + commonPrototype = + { + isChanged : function() + { + return this.getValue() != this.getInitValue(); + }, + + reset : function() + { + this.setValue( this.getInitValue() ); + }, + + setInitValue : function() + { + this._.initValue = this.getValue(); + }, + + resetInitValue : function() + { + this._.initValue = this._['default']; + }, + + getInitValue : function() + { + return this._.initValue; + } + }, + commonEventProcessors = CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, + { + onChange : function( dialog, func ) + { + if ( !this._.domOnChangeRegistered ) + { + dialog.on( 'load', function() + { + this.getInputElement().on( 'change', function(){ this.fire( 'change', { value : this.getValue() } ); }, this ); + }, this ); + this._.domOnChangeRegistered = true; + } + + this.on( 'change', func ); + } + }, true ), + eventRegex = /^on([A-Z]\w+)/, + cleanInnerDefinition = function( def ) + { + // An inner UI element should not have the parent's type, title or events. + for ( var i in def ) + { + if ( eventRegex.test( i ) || i == 'title' || i == 'type' ) + delete def[i]; + } + return def; + }; + + CKEDITOR.tools.extend( CKEDITOR.ui.dialog, + /** @lends CKEDITOR.ui.dialog */ + { + /** + * Base class for all dialog elements with a textual label on the left. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • label (Required) The label string.
      • + *
      • labelLayout (Optional) Put 'horizontal' here if the + * label element is to be layed out horizontally. Otherwise a vertical + * layout will be used.
      • + *
      • widths (Optional) This applies only for horizontal + * layouts - an 2-element array of lengths to specify the widths of the + * label and the content element.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + * @param {Function} contentHtml + * A function returning the HTML code string to be added inside the content + * cell. + */ + labeledElement : function( dialog, elementDefinition, htmlList, contentHtml ) + { + if ( arguments.length < 4 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + _.labelId = CKEDITOR.tools.getNextNumber() + '_label'; + var children = this._.children = []; + /** @ignore */ + var innerHTML = function() + { + var html = []; + if ( elementDefinition.labelLayout != 'horizontal' ) + html.push( '
      ', + elementDefinition.label, + '
      ', + '
      ', + contentHtml( dialog, elementDefinition ), + '
      ' ); + else + { + var hboxDefinition = { + type : 'hbox', + widths : elementDefinition.widths, + padding : 0, + children : + [ + { + type : 'html', + html : '' + CKEDITOR.tools.htmlEncode( elementDefinition.label ) + + '' + }, + { + type : 'html', + html : '' + + contentHtml( dialog, elementDefinition ) + + '' + } + ] + }; + CKEDITOR.dialog._.uiElementBuilders.hbox.build( dialog, hboxDefinition, html ); + } + return html.join( '' ); + }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'div', null, null, innerHTML ); + }, + + /** + * A text input with a label. This UI element class represents both the + * single-line text inputs and password inputs in dialog boxes. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.labeledElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • default (Optional) The default value.
      • + *
      • validate (Optional) The validation function.
      • + *
      • maxLength (Optional) The maximum length of text box + * contents.
      • + *
      • size (Optional) The size of the text box. This is + * usually overridden by the size defined by the skin, however.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + */ + textInput : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + var domId = this._.inputId = CKEDITOR.tools.getNextNumber() + '_textInput', + attributes = { 'class' : 'cke_dialog_ui_input_' + elementDefinition.type, id : domId, type : 'text' }, + i; + + // Set the validator, if any. + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + // Set the max length and size. + if ( elementDefinition.maxLength ) + attributes.maxlength = elementDefinition.maxLength; + if ( elementDefinition.size ) + attributes.size = elementDefinition.size; + + // If user presses Enter in a text box, it implies clicking OK for the dialog. + var me = this, keyPressedOnMe = false; + dialog.on( 'load', function() + { + me.getInputElement().on( 'keydown', function( evt ) + { + if ( evt.data.getKeystroke() == 13 ) + keyPressedOnMe = true; + } ); + + // Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749) + me.getInputElement().on( 'keyup', function( evt ) + { + if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) + { + dialog.getButton( 'ok' ) && setTimeout( function () + { + dialog.getButton( 'ok' ).click(); + }, 0 ); + keyPressedOnMe = false; + } + }, null, null, 1000 ); + } ); + + /** @ignore */ + var innerHTML = function() + { + // IE BUG: Text input fields in IE at 100% would exceed a or inline + // container's width, so need to wrap it inside a
      . + var html = [ '
      ' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A text area with a label on the top or left. + * @constructor + * @extends CKEDITOR.ui.dialog.labeledElement + * @example + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • rows (Optional) The number of rows displayed. + * Defaults to 5 if not defined.
      • + *
      • cols (Optional) The number of cols displayed. + * Defaults to 20 if not defined. Usually overridden by skins.
      • + *
      • default (Optional) The default value.
      • + *
      • validate (Optional) The validation function.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + */ + textarea : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + var me = this, + domId = this._.inputId = CKEDITOR.tools.getNextNumber() + '_textarea', + attributes = {}; + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + // Generates the essential attributes for the textarea tag. + attributes.rows = elementDefinition.rows || 5; + attributes.cols = elementDefinition.cols || 20; + + /** @ignore */ + var innerHTML = function() + { + var html = [ '
      ' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A single checkbox with a label on the right. + * @constructor + * @extends CKEDITOR.ui.dialog.uiElement + * @example + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • checked (Optional) Whether the checkbox is checked + * on instantiation. Defaults to false.
      • + *
      • validate (Optional) The validation function.
      • + *
      • label (Optional) The checkbox label.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + */ + checkbox : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition, { 'default' : !!elementDefinition[ 'default' ] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + /** @ignore */ + var innerHTML = function() + { + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition, + { + id : elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextNumber() + '_checkbox' + }, true ), + html = [], + attributes = { 'class' : 'cke_dialog_ui_checkbox_input', type : 'checkbox' }; + cleanInnerDefinition( myDefinition ); + if ( elementDefinition[ 'default' ] ) + attributes.checked = 'checked'; + _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); + html.push( ' ' ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML ); + }, + + /** + * A group of radio buttons. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.labeledElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • default (Required) The default value.
      • + *
      • validate (Optional) The validation function.
      • + *
      • items (Required) An array of options. Each option + * is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' + * is missing, then the value would be assumed to be the same as the + * description.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + */ + radio : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3) + return; + + initPrivateObject.call( this, elementDefinition ); + if ( !this._['default'] ) + this._['default'] = this._.initValue = elementDefinition.items[0][1]; + if ( elementDefinition.validate ) + this.validate = elementDefinition.valdiate; + var children = [], me = this; + + /** @ignore */ + var innerHTML = function() + { + var inputHtmlList = [], html = [], + commonAttributes = { 'class' : 'cke_dialog_ui_radio_item' }, + commonName = elementDefinition.id ? elementDefinition.id + '_radio' : CKEDITOR.tools.getNextNumber() + '_radio'; + for ( var i = 0 ; i < elementDefinition.items.length ; i++ ) + { + var item = elementDefinition.items[i], + title = item[2] !== undefined ? item[2] : item[0], + value = item[1] !== undefined ? item[1] : item[0], + inputDefinition = CKEDITOR.tools.extend( {}, elementDefinition, + { + id : CKEDITOR.tools.getNextNumber() + '_radio_input', + title : null, + type : null + }, true ), + labelDefinition = CKEDITOR.tools.extend( {}, inputDefinition, + { + id : null, + title : title + }, true ), + inputAttributes = + { + type : 'radio', + 'class' : 'cke_dialog_ui_radio_input', + name : commonName, + value : value + }, + inputHtml = []; + if ( me._['default'] == value ) + inputAttributes.checked = 'checked'; + cleanInnerDefinition( inputDefinition ); + cleanInnerDefinition( labelDefinition ); + children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); + inputHtml.push( ' ' ); + new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { 'for' : inputAttributes.id }, + item[0] ); + inputHtmlList.push( inputHtml.join( '' ) ); + } + new CKEDITOR.ui.dialog.hbox( dialog, [], inputHtmlList, html ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + this._.children = children; + }, + + /** + * A button with a label inside. + * @constructor + * @example + * @extends CKEDITOR.ui.dialog.uiElement + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • label (Required) The button label.
      • + *
      • disabled (Optional) Set to true if you want the + * button to appear in disabled state.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + */ + button : function( dialog, elementDefinition, htmlList ) + { + if ( !arguments.length ) + return; + + if ( typeof elementDefinition == 'function' ) + elementDefinition = elementDefinition( dialog.getParentEditor() ); + + initPrivateObject.call( this, elementDefinition, { disabled : elementDefinition.disabled || false } ); + + // Add OnClick event to this input. + CKEDITOR.event.implementOn( this ); + + var me = this; + + // Register an event handler for processing button clicks. + dialog.on( 'load', function( eventInfo ) + { + var element = this.getElement(); + + (function() + { + element.on( 'click', function( evt ) + { + me.fire( 'click', { dialog : me.getDialog() } ); + evt.data.preventDefault(); + } ); + })(); + + element.unselectable(); + }, this ); + + var outerDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + delete outerDefinition.style; + + CKEDITOR.ui.dialog.uiElement.call( + this, + dialog, + outerDefinition, + htmlList, + 'a', + null, + { + style : elementDefinition.style, + href : 'javascript:void(0)', + title : elementDefinition.label, + hidefocus : 'true', + 'class' : elementDefinition['class'] + }, + '' + + CKEDITOR.tools.htmlEncode( elementDefinition.label ) + + '' ); + }, + + /** + * A select box. + * @extends CKEDITOR.ui.dialog.uiElement + * @example + * @constructor + * @param {CKEDITOR.dialog} dialog + * Parent dialog object. + * @param {CKEDITOR.dialog.uiElementDefinition} elementDefinition + * The element definition. Accepted fields: + *
        + *
      • default (Required) The default value.
      • + *
      • validate (Optional) The validation function.
      • + *
      • items (Required) An array of options. Each option + * is a 1- or 2-item array of format [ 'Description', 'Value' ]. If 'Value' + * is missing, then the value would be assumed to be the same as the + * description.
      • + *
      • multiple (Optional) Set this to true if you'd like + * to have a multiple-choice select box.
      • + *
      • size (Optional) The number of items to display in + * the select box.
      • + *
      + * @param {Array} htmlList + * List of HTML code to output to. + */ + select : function( dialog, elementDefinition, htmlList ) + { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + /** @ignore */ + var innerHTML = function() + { + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition, + { + id : elementDefinition.id ? elementDefinition.id + '_select' : CKEDITOR.tools.getNextNumber() + '_select' + }, true ), + html = [], + innerHTML = [], + attributes = { 'class' : 'cke_dialog_ui_input_select' }; + + // Add multiple and size attributes from element definition. + if ( elementDefinition.size != undefined ) + attributes.size = elementDefinition.size; + if ( elementDefinition.multiple != undefined ) + attributes.multiple = elementDefinition.multiple; + + cleanInnerDefinition( myDefinition ); + for ( var i = 0, item ; i < elementDefinition.items.length && ( item = elementDefinition.items[i] ) ; i++ ) + { + innerHTML.push( '