From 7ca80e57f06922e464626c7a6a1d7965e716b53f Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 13 Jul 2018 21:53:49 +0800 Subject: update --- .whisper.py.un~ | Bin 0 -> 13233 bytes add.py | 63 + cgi-bin/.whisper.py.un~ | Bin 13233 -> 0 bytes cgi-bin/__pycache__/path.cpython-36.pyc | Bin 793 -> 951 bytes cgi-bin/add.py | 63 - cgi-bin/config.ini | 13 - cgi-bin/config.py | 10 - cgi-bin/connect.py | 13 - cgi-bin/delete.py | 36 - cgi-bin/edit.py | 46 - cgi-bin/html/ckeditor/config.js | 3 +- cgi-bin/html/imgs/1531471283.png | Bin 0 -> 442 bytes cgi-bin/html/imgs/1531471337.png | Bin 0 -> 442 bytes cgi-bin/html/imgs/1531471469.jpg | Bin 0 -> 876735 bytes cgi-bin/html/imgs/1531471899.jpg | Bin 0 -> 876735 bytes cgi-bin/html/imgs/1531471931.png | Bin 0 -> 442 bytes cgi-bin/html/style.css | 5 + cgi-bin/page.py | 75 -- cgi-bin/path.py | 20 - cgi-bin/template/.whisper.html.un~ | Bin 523 -> 0 bytes cgi-bin/template/edit.html | 20 - cgi-bin/template/page.html | 37 - cgi-bin/template/whisper.html | 10 - cgi-bin/whisper.py | 19 - conf/httpd.conf | 492 ------- config.ini | 14 + config.py | 10 + connect.py | 13 + delete.py | 36 + edit.py | 46 + httpd.conf | 492 ------- imguploader.py | 54 + page.py | 75 ++ path.py | 26 + static/ckeditor/CHANGES.md | 1414 +++++++++++++++++++ static/ckeditor/LICENSE.md | 1420 ++++++++++++++++++++ static/ckeditor/README.md | 39 + static/ckeditor/adapters/jquery.js | 10 + static/ckeditor/build-config.js | 165 +++ static/ckeditor/ckeditor.js | 1205 +++++++++++++++++ static/ckeditor/config.js | 41 + static/ckeditor/contents.css | 208 +++ static/ckeditor/lang/af.js | 5 + static/ckeditor/lang/ar.js | 5 + static/ckeditor/lang/az.js | 5 + static/ckeditor/lang/bg.js | 5 + static/ckeditor/lang/bn.js | 5 + static/ckeditor/lang/bs.js | 5 + static/ckeditor/lang/ca.js | 5 + static/ckeditor/lang/cs.js | 5 + static/ckeditor/lang/cy.js | 5 + static/ckeditor/lang/da.js | 5 + static/ckeditor/lang/de-ch.js | 5 + static/ckeditor/lang/de.js | 5 + static/ckeditor/lang/el.js | 5 + static/ckeditor/lang/en-au.js | 5 + static/ckeditor/lang/en-ca.js | 5 + static/ckeditor/lang/en-gb.js | 5 + static/ckeditor/lang/en.js | 5 + static/ckeditor/lang/eo.js | 5 + static/ckeditor/lang/es-mx.js | 5 + static/ckeditor/lang/es.js | 5 + static/ckeditor/lang/et.js | 5 + static/ckeditor/lang/eu.js | 5 + static/ckeditor/lang/fa.js | 5 + static/ckeditor/lang/fi.js | 5 + static/ckeditor/lang/fo.js | 5 + static/ckeditor/lang/fr-ca.js | 5 + static/ckeditor/lang/fr.js | 5 + static/ckeditor/lang/gl.js | 5 + static/ckeditor/lang/gu.js | 5 + static/ckeditor/lang/he.js | 5 + static/ckeditor/lang/hi.js | 5 + static/ckeditor/lang/hr.js | 5 + static/ckeditor/lang/hu.js | 5 + static/ckeditor/lang/id.js | 5 + static/ckeditor/lang/is.js | 5 + static/ckeditor/lang/it.js | 5 + static/ckeditor/lang/ja.js | 5 + static/ckeditor/lang/ka.js | 5 + static/ckeditor/lang/km.js | 5 + static/ckeditor/lang/ko.js | 5 + static/ckeditor/lang/ku.js | 5 + static/ckeditor/lang/lt.js | 5 + static/ckeditor/lang/lv.js | 5 + static/ckeditor/lang/mk.js | 5 + static/ckeditor/lang/mn.js | 5 + static/ckeditor/lang/ms.js | 5 + static/ckeditor/lang/nb.js | 5 + static/ckeditor/lang/nl.js | 5 + static/ckeditor/lang/no.js | 5 + static/ckeditor/lang/oc.js | 5 + static/ckeditor/lang/pl.js | 5 + static/ckeditor/lang/pt-br.js | 5 + static/ckeditor/lang/pt.js | 5 + static/ckeditor/lang/ro.js | 5 + static/ckeditor/lang/ru.js | 5 + static/ckeditor/lang/si.js | 5 + static/ckeditor/lang/sk.js | 5 + static/ckeditor/lang/sl.js | 5 + static/ckeditor/lang/sq.js | 5 + static/ckeditor/lang/sr-latn.js | 5 + static/ckeditor/lang/sr.js | 5 + static/ckeditor/lang/sv.js | 5 + static/ckeditor/lang/th.js | 5 + static/ckeditor/lang/tr.js | 5 + static/ckeditor/lang/tt.js | 5 + static/ckeditor/lang/ug.js | 5 + static/ckeditor/lang/uk.js | 5 + static/ckeditor/lang/vi.js | 5 + static/ckeditor/lang/zh-cn.js | 5 + static/ckeditor/lang/zh.js | 5 + .../ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js | 10 + .../a11yhelp/dialogs/lang/_translationstatus.txt | 25 + .../ckeditor/plugins/a11yhelp/dialogs/lang/af.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ar.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/az.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/bg.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ca.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/cs.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/cy.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/da.js | 11 + .../plugins/a11yhelp/dialogs/lang/de-ch.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/de.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/el.js | 13 + .../plugins/a11yhelp/dialogs/lang/en-au.js | 11 + .../plugins/a11yhelp/dialogs/lang/en-gb.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/en.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/eo.js | 12 + .../plugins/a11yhelp/dialogs/lang/es-mx.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/es.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/et.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/eu.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/fa.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/fi.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/fo.js | 11 + .../plugins/a11yhelp/dialogs/lang/fr-ca.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/fr.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/gl.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/gu.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/he.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/hi.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/hr.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/hu.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/id.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/it.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ja.js | 9 + .../ckeditor/plugins/a11yhelp/dialogs/lang/km.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ko.js | 10 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ku.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/lt.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/lv.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/mk.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/mn.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/nb.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/nl.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/no.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/oc.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/pl.js | 13 + .../plugins/a11yhelp/dialogs/lang/pt-br.js | 13 + .../ckeditor/plugins/a11yhelp/dialogs/lang/pt.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ro.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ru.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/si.js | 10 + .../ckeditor/plugins/a11yhelp/dialogs/lang/sk.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/sl.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/sq.js | 11 + .../plugins/a11yhelp/dialogs/lang/sr-latn.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/sr.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/sv.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/th.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/tr.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/tt.js | 11 + .../ckeditor/plugins/a11yhelp/dialogs/lang/ug.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/uk.js | 12 + .../ckeditor/plugins/a11yhelp/dialogs/lang/vi.js | 11 + .../plugins/a11yhelp/dialogs/lang/zh-cn.js | 9 + .../ckeditor/plugins/a11yhelp/dialogs/lang/zh.js | 9 + static/ckeditor/plugins/about/dialogs/about.js | 8 + .../plugins/about/dialogs/hidpi/logo_ckeditor.png | Bin 0 -> 12236 bytes .../plugins/about/dialogs/logo_ckeditor.png | Bin 0 -> 5650 bytes static/ckeditor/plugins/dialog/dialogDefinition.js | 4 + static/ckeditor/plugins/icons.png | Bin 0 -> 5881 bytes static/ckeditor/plugins/icons_hidpi.png | Bin 0 -> 20430 bytes static/ckeditor/plugins/image/dialogs/image.js | 44 + static/ckeditor/plugins/image/images/noimage.png | Bin 0 -> 1610 bytes static/ckeditor/plugins/link/dialogs/anchor.js | 8 + static/ckeditor/plugins/link/dialogs/link.js | 28 + static/ckeditor/plugins/link/images/anchor.png | Bin 0 -> 752 bytes .../ckeditor/plugins/link/images/hidpi/anchor.png | Bin 0 -> 1109 bytes .../plugins/magicline/images/hidpi/icon-rtl.png | Bin 0 -> 176 bytes .../plugins/magicline/images/hidpi/icon.png | Bin 0 -> 199 bytes .../ckeditor/plugins/magicline/images/icon-rtl.png | Bin 0 -> 138 bytes static/ckeditor/plugins/magicline/images/icon.png | Bin 0 -> 133 bytes .../plugins/pastefromword/filter/default.js | 55 + static/ckeditor/plugins/scayt/CHANGELOG.md | 20 + static/ckeditor/plugins/scayt/LICENSE.md | 28 + static/ckeditor/plugins/scayt/README.md | 25 + static/ckeditor/plugins/scayt/dialogs/dialog.css | 23 + static/ckeditor/plugins/scayt/dialogs/options.js | 33 + static/ckeditor/plugins/scayt/dialogs/toolbar.css | 71 + .../plugins/scayt/skins/moono-lisa/scayt.css | 25 + .../dialogs/lang/_translationstatus.txt | 20 + .../plugins/specialchar/dialogs/lang/af.js | 13 + .../plugins/specialchar/dialogs/lang/ar.js | 13 + .../plugins/specialchar/dialogs/lang/az.js | 10 + .../plugins/specialchar/dialogs/lang/bg.js | 13 + .../plugins/specialchar/dialogs/lang/ca.js | 14 + .../plugins/specialchar/dialogs/lang/cs.js | 13 + .../plugins/specialchar/dialogs/lang/cy.js | 14 + .../plugins/specialchar/dialogs/lang/da.js | 11 + .../plugins/specialchar/dialogs/lang/de-ch.js | 13 + .../plugins/specialchar/dialogs/lang/de.js | 13 + .../plugins/specialchar/dialogs/lang/el.js | 13 + .../plugins/specialchar/dialogs/lang/en-au.js | 13 + .../plugins/specialchar/dialogs/lang/en-ca.js | 13 + .../plugins/specialchar/dialogs/lang/en-gb.js | 13 + .../plugins/specialchar/dialogs/lang/en.js | 13 + .../plugins/specialchar/dialogs/lang/eo.js | 12 + .../plugins/specialchar/dialogs/lang/es-mx.js | 13 + .../plugins/specialchar/dialogs/lang/es.js | 13 + .../plugins/specialchar/dialogs/lang/et.js | 13 + .../plugins/specialchar/dialogs/lang/eu.js | 13 + .../plugins/specialchar/dialogs/lang/fa.js | 12 + .../plugins/specialchar/dialogs/lang/fi.js | 13 + .../plugins/specialchar/dialogs/lang/fr-ca.js | 10 + .../plugins/specialchar/dialogs/lang/fr.js | 12 + .../plugins/specialchar/dialogs/lang/gl.js | 13 + .../plugins/specialchar/dialogs/lang/he.js | 12 + .../plugins/specialchar/dialogs/lang/hr.js | 13 + .../plugins/specialchar/dialogs/lang/hu.js | 12 + .../plugins/specialchar/dialogs/lang/id.js | 13 + .../plugins/specialchar/dialogs/lang/it.js | 14 + .../plugins/specialchar/dialogs/lang/ja.js | 9 + .../plugins/specialchar/dialogs/lang/km.js | 13 + .../plugins/specialchar/dialogs/lang/ko.js | 10 + .../plugins/specialchar/dialogs/lang/ku.js | 13 + .../plugins/specialchar/dialogs/lang/lt.js | 13 + .../plugins/specialchar/dialogs/lang/lv.js | 13 + .../plugins/specialchar/dialogs/lang/nb.js | 11 + .../plugins/specialchar/dialogs/lang/nl.js | 13 + .../plugins/specialchar/dialogs/lang/no.js | 11 + .../plugins/specialchar/dialogs/lang/oc.js | 12 + .../plugins/specialchar/dialogs/lang/pl.js | 12 + .../plugins/specialchar/dialogs/lang/pt-br.js | 11 + .../plugins/specialchar/dialogs/lang/pt.js | 13 + .../plugins/specialchar/dialogs/lang/ro.js | 13 + .../plugins/specialchar/dialogs/lang/ru.js | 13 + .../plugins/specialchar/dialogs/lang/si.js | 13 + .../plugins/specialchar/dialogs/lang/sk.js | 13 + .../plugins/specialchar/dialogs/lang/sl.js | 12 + .../plugins/specialchar/dialogs/lang/sq.js | 13 + .../plugins/specialchar/dialogs/lang/sv.js | 11 + .../plugins/specialchar/dialogs/lang/th.js | 13 + .../plugins/specialchar/dialogs/lang/tr.js | 12 + .../plugins/specialchar/dialogs/lang/tt.js | 13 + .../plugins/specialchar/dialogs/lang/ug.js | 13 + .../plugins/specialchar/dialogs/lang/uk.js | 12 + .../plugins/specialchar/dialogs/lang/vi.js | 14 + .../plugins/specialchar/dialogs/lang/zh-cn.js | 9 + .../plugins/specialchar/dialogs/lang/zh.js | 9 + .../plugins/specialchar/dialogs/specialchar.js | 14 + static/ckeditor/plugins/table/dialogs/table.js | 21 + .../tableselection/styles/tableselection.css | 32 + .../plugins/tabletools/dialogs/tableCell.js | 18 + static/ckeditor/plugins/widget/images/handle.png | Bin 0 -> 220 bytes static/ckeditor/plugins/wsc/LICENSE.md | 28 + static/ckeditor/plugins/wsc/README.md | 25 + static/ckeditor/plugins/wsc/dialogs/ciframe.html | 66 + .../ckeditor/plugins/wsc/dialogs/tmpFrameset.html | 52 + static/ckeditor/plugins/wsc/dialogs/wsc.css | 82 ++ static/ckeditor/plugins/wsc/dialogs/wsc.js | 91 ++ static/ckeditor/plugins/wsc/dialogs/wsc_ie.js | 11 + .../ckeditor/plugins/wsc/skins/moono-lisa/wsc.css | 43 + static/ckeditor/skins/moono-lisa/dialog.css | 5 + static/ckeditor/skins/moono-lisa/dialog_ie.css | 5 + static/ckeditor/skins/moono-lisa/dialog_ie8.css | 5 + .../ckeditor/skins/moono-lisa/dialog_iequirks.css | 5 + static/ckeditor/skins/moono-lisa/editor.css | 5 + static/ckeditor/skins/moono-lisa/editor_gecko.css | 5 + static/ckeditor/skins/moono-lisa/editor_ie.css | 5 + static/ckeditor/skins/moono-lisa/editor_ie8.css | 5 + .../ckeditor/skins/moono-lisa/editor_iequirks.css | 5 + static/ckeditor/skins/moono-lisa/icons.png | Bin 0 -> 5881 bytes static/ckeditor/skins/moono-lisa/icons_hidpi.png | Bin 0 -> 20430 bytes static/ckeditor/skins/moono-lisa/images/arrow.png | Bin 0 -> 191 bytes static/ckeditor/skins/moono-lisa/images/close.png | Bin 0 -> 615 bytes .../skins/moono-lisa/images/hidpi/close.png | Bin 0 -> 1238 bytes .../skins/moono-lisa/images/hidpi/lock-open.png | Bin 0 -> 1071 bytes .../skins/moono-lisa/images/hidpi/lock.png | Bin 0 -> 1062 bytes .../skins/moono-lisa/images/hidpi/refresh.png | Bin 0 -> 1623 bytes .../ckeditor/skins/moono-lisa/images/lock-open.png | Bin 0 -> 511 bytes static/ckeditor/skins/moono-lisa/images/lock.png | Bin 0 -> 506 bytes .../ckeditor/skins/moono-lisa/images/refresh.png | Bin 0 -> 757 bytes .../ckeditor/skins/moono-lisa/images/spinner.gif | Bin 0 -> 2984 bytes static/ckeditor/skins/moono-lisa/readme.md | 46 + static/ckeditor/styles.js | 137 ++ static/imgs/1531471283.png | Bin 0 -> 442 bytes static/imgs/1531471337.png | Bin 0 -> 442 bytes static/imgs/1531471469.jpg | Bin 0 -> 876735 bytes static/imgs/1531471899.jpg | Bin 0 -> 876735 bytes static/imgs/1531471931.png | Bin 0 -> 442 bytes static/logo.png | Bin 0 -> 1719 bytes static/style.css | 85 ++ template/.whisper.html.un~ | Bin 0 -> 523 bytes template/edit.html | 20 + template/page.html | 37 + template/whisper.html | 10 + whisper.py | 19 + "\345\212\237\350\203\275.docx" | Bin 13301 -> 0 bytes 310 files changed, 7951 insertions(+), 1347 deletions(-) create mode 100644 .whisper.py.un~ create mode 100644 add.py delete mode 100644 cgi-bin/.whisper.py.un~ delete mode 100644 cgi-bin/add.py delete mode 100644 cgi-bin/config.ini delete mode 100644 cgi-bin/config.py delete mode 100644 cgi-bin/connect.py delete mode 100644 cgi-bin/delete.py delete mode 100644 cgi-bin/edit.py create mode 100644 cgi-bin/html/imgs/1531471283.png create mode 100644 cgi-bin/html/imgs/1531471337.png create mode 100644 cgi-bin/html/imgs/1531471469.jpg create mode 100644 cgi-bin/html/imgs/1531471899.jpg create mode 100644 cgi-bin/html/imgs/1531471931.png delete mode 100644 cgi-bin/page.py delete mode 100644 cgi-bin/path.py delete mode 100644 cgi-bin/template/.whisper.html.un~ delete mode 100644 cgi-bin/template/edit.html delete mode 100644 cgi-bin/template/page.html delete mode 100644 cgi-bin/template/whisper.html delete mode 100644 cgi-bin/whisper.py delete mode 100644 conf/httpd.conf create mode 100644 config.ini create mode 100644 config.py create mode 100644 connect.py create mode 100644 delete.py create mode 100644 edit.py delete mode 100644 httpd.conf create mode 100644 imguploader.py create mode 100644 page.py create mode 100644 path.py create mode 100644 static/ckeditor/CHANGES.md create mode 100644 static/ckeditor/LICENSE.md create mode 100644 static/ckeditor/README.md create mode 100644 static/ckeditor/adapters/jquery.js create mode 100644 static/ckeditor/build-config.js create mode 100644 static/ckeditor/ckeditor.js create mode 100644 static/ckeditor/config.js create mode 100644 static/ckeditor/contents.css create mode 100644 static/ckeditor/lang/af.js create mode 100644 static/ckeditor/lang/ar.js create mode 100644 static/ckeditor/lang/az.js create mode 100644 static/ckeditor/lang/bg.js create mode 100644 static/ckeditor/lang/bn.js create mode 100644 static/ckeditor/lang/bs.js create mode 100644 static/ckeditor/lang/ca.js create mode 100644 static/ckeditor/lang/cs.js create mode 100644 static/ckeditor/lang/cy.js create mode 100644 static/ckeditor/lang/da.js create mode 100644 static/ckeditor/lang/de-ch.js create mode 100644 static/ckeditor/lang/de.js create mode 100644 static/ckeditor/lang/el.js create mode 100644 static/ckeditor/lang/en-au.js create mode 100644 static/ckeditor/lang/en-ca.js create mode 100644 static/ckeditor/lang/en-gb.js create mode 100644 static/ckeditor/lang/en.js create mode 100644 static/ckeditor/lang/eo.js create mode 100644 static/ckeditor/lang/es-mx.js create mode 100644 static/ckeditor/lang/es.js create mode 100644 static/ckeditor/lang/et.js create mode 100644 static/ckeditor/lang/eu.js create mode 100644 static/ckeditor/lang/fa.js create mode 100644 static/ckeditor/lang/fi.js create mode 100644 static/ckeditor/lang/fo.js create mode 100644 static/ckeditor/lang/fr-ca.js create mode 100644 static/ckeditor/lang/fr.js create mode 100644 static/ckeditor/lang/gl.js create mode 100644 static/ckeditor/lang/gu.js create mode 100644 static/ckeditor/lang/he.js create mode 100644 static/ckeditor/lang/hi.js create mode 100644 static/ckeditor/lang/hr.js create mode 100644 static/ckeditor/lang/hu.js create mode 100644 static/ckeditor/lang/id.js create mode 100644 static/ckeditor/lang/is.js create mode 100644 static/ckeditor/lang/it.js create mode 100644 static/ckeditor/lang/ja.js create mode 100644 static/ckeditor/lang/ka.js create mode 100644 static/ckeditor/lang/km.js create mode 100644 static/ckeditor/lang/ko.js create mode 100644 static/ckeditor/lang/ku.js create mode 100644 static/ckeditor/lang/lt.js create mode 100644 static/ckeditor/lang/lv.js create mode 100644 static/ckeditor/lang/mk.js create mode 100644 static/ckeditor/lang/mn.js create mode 100644 static/ckeditor/lang/ms.js create mode 100644 static/ckeditor/lang/nb.js create mode 100644 static/ckeditor/lang/nl.js create mode 100644 static/ckeditor/lang/no.js create mode 100644 static/ckeditor/lang/oc.js create mode 100644 static/ckeditor/lang/pl.js create mode 100644 static/ckeditor/lang/pt-br.js create mode 100644 static/ckeditor/lang/pt.js create mode 100644 static/ckeditor/lang/ro.js create mode 100644 static/ckeditor/lang/ru.js create mode 100644 static/ckeditor/lang/si.js create mode 100644 static/ckeditor/lang/sk.js create mode 100644 static/ckeditor/lang/sl.js create mode 100644 static/ckeditor/lang/sq.js create mode 100644 static/ckeditor/lang/sr-latn.js create mode 100644 static/ckeditor/lang/sr.js create mode 100644 static/ckeditor/lang/sv.js create mode 100644 static/ckeditor/lang/th.js create mode 100644 static/ckeditor/lang/tr.js create mode 100644 static/ckeditor/lang/tt.js create mode 100644 static/ckeditor/lang/ug.js create mode 100644 static/ckeditor/lang/uk.js create mode 100644 static/ckeditor/lang/vi.js create mode 100644 static/ckeditor/lang/zh-cn.js create mode 100644 static/ckeditor/lang/zh.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/af.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/az.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/da.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/de.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/el.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/en.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/es.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/et.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/he.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/id.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/it.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/km.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/no.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/si.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/th.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js create mode 100644 static/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js create mode 100644 static/ckeditor/plugins/about/dialogs/about.js create mode 100644 static/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png create mode 100644 static/ckeditor/plugins/about/dialogs/logo_ckeditor.png create mode 100644 static/ckeditor/plugins/dialog/dialogDefinition.js create mode 100644 static/ckeditor/plugins/icons.png create mode 100644 static/ckeditor/plugins/icons_hidpi.png create mode 100644 static/ckeditor/plugins/image/dialogs/image.js create mode 100644 static/ckeditor/plugins/image/images/noimage.png create mode 100644 static/ckeditor/plugins/link/dialogs/anchor.js create mode 100644 static/ckeditor/plugins/link/dialogs/link.js create mode 100644 static/ckeditor/plugins/link/images/anchor.png create mode 100644 static/ckeditor/plugins/link/images/hidpi/anchor.png create mode 100644 static/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png create mode 100644 static/ckeditor/plugins/magicline/images/hidpi/icon.png create mode 100644 static/ckeditor/plugins/magicline/images/icon-rtl.png create mode 100644 static/ckeditor/plugins/magicline/images/icon.png create mode 100644 static/ckeditor/plugins/pastefromword/filter/default.js create mode 100644 static/ckeditor/plugins/scayt/CHANGELOG.md create mode 100644 static/ckeditor/plugins/scayt/LICENSE.md create mode 100644 static/ckeditor/plugins/scayt/README.md create mode 100644 static/ckeditor/plugins/scayt/dialogs/dialog.css create mode 100644 static/ckeditor/plugins/scayt/dialogs/options.js create mode 100644 static/ckeditor/plugins/scayt/dialogs/toolbar.css create mode 100644 static/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/af.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ar.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/az.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/bg.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ca.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/cs.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/cy.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/da.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/de.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/el.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/en-au.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/en.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/eo.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/es.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/et.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/eu.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/fa.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/fi.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/fr.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/gl.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/he.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/hr.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/hu.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/id.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/it.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ja.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/km.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ko.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ku.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/lt.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/lv.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/nb.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/nl.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/no.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/oc.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/pl.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/pt.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ro.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ru.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/si.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/sk.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/sl.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/sq.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/sv.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/th.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/tr.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/tt.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/ug.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/uk.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/vi.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/lang/zh.js create mode 100644 static/ckeditor/plugins/specialchar/dialogs/specialchar.js create mode 100644 static/ckeditor/plugins/table/dialogs/table.js create mode 100644 static/ckeditor/plugins/tableselection/styles/tableselection.css create mode 100644 static/ckeditor/plugins/tabletools/dialogs/tableCell.js create mode 100644 static/ckeditor/plugins/widget/images/handle.png create mode 100644 static/ckeditor/plugins/wsc/LICENSE.md create mode 100644 static/ckeditor/plugins/wsc/README.md create mode 100644 static/ckeditor/plugins/wsc/dialogs/ciframe.html create mode 100644 static/ckeditor/plugins/wsc/dialogs/tmpFrameset.html create mode 100644 static/ckeditor/plugins/wsc/dialogs/wsc.css create mode 100644 static/ckeditor/plugins/wsc/dialogs/wsc.js create mode 100644 static/ckeditor/plugins/wsc/dialogs/wsc_ie.js create mode 100644 static/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css create mode 100644 static/ckeditor/skins/moono-lisa/dialog.css create mode 100644 static/ckeditor/skins/moono-lisa/dialog_ie.css create mode 100644 static/ckeditor/skins/moono-lisa/dialog_ie8.css create mode 100644 static/ckeditor/skins/moono-lisa/dialog_iequirks.css create mode 100644 static/ckeditor/skins/moono-lisa/editor.css create mode 100644 static/ckeditor/skins/moono-lisa/editor_gecko.css create mode 100644 static/ckeditor/skins/moono-lisa/editor_ie.css create mode 100644 static/ckeditor/skins/moono-lisa/editor_ie8.css create mode 100644 static/ckeditor/skins/moono-lisa/editor_iequirks.css create mode 100644 static/ckeditor/skins/moono-lisa/icons.png create mode 100644 static/ckeditor/skins/moono-lisa/icons_hidpi.png create mode 100644 static/ckeditor/skins/moono-lisa/images/arrow.png create mode 100644 static/ckeditor/skins/moono-lisa/images/close.png create mode 100644 static/ckeditor/skins/moono-lisa/images/hidpi/close.png create mode 100644 static/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png create mode 100644 static/ckeditor/skins/moono-lisa/images/hidpi/lock.png create mode 100644 static/ckeditor/skins/moono-lisa/images/hidpi/refresh.png create mode 100644 static/ckeditor/skins/moono-lisa/images/lock-open.png create mode 100644 static/ckeditor/skins/moono-lisa/images/lock.png create mode 100644 static/ckeditor/skins/moono-lisa/images/refresh.png create mode 100644 static/ckeditor/skins/moono-lisa/images/spinner.gif create mode 100644 static/ckeditor/skins/moono-lisa/readme.md create mode 100644 static/ckeditor/styles.js create mode 100644 static/imgs/1531471283.png create mode 100644 static/imgs/1531471337.png create mode 100644 static/imgs/1531471469.jpg create mode 100644 static/imgs/1531471899.jpg create mode 100644 static/imgs/1531471931.png create mode 100644 static/logo.png create mode 100644 static/style.css create mode 100644 template/.whisper.html.un~ create mode 100644 template/edit.html create mode 100644 template/page.html create mode 100644 template/whisper.html create mode 100644 whisper.py delete mode 100644 "\345\212\237\350\203\275.docx" diff --git a/.whisper.py.un~ b/.whisper.py.un~ new file mode 100644 index 0000000..4f409c2 Binary files /dev/null and b/.whisper.py.un~ differ diff --git a/add.py b/add.py new file mode 100644 index 0000000..b85a9d4 --- /dev/null +++ b/add.py @@ -0,0 +1,63 @@ +#!D:/Programs/python3/python.exe +# -*- coding: utf-8 -*- +import cgi, cgitb +import pymysql +import sys, codecs +import configparser, codecs +import connect +from connect import Connect +import config +from config import Config +import path +from path import Path +import time + +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) +print("Content-type:text/html\n") + +form = cgi.FieldStorage() +action = form.getvalue('action') +if action == "modify": + whisper_content = form.getvalue('whisper_content') + if whisper_content == None: + whisper_content = "" + whisper_id = form.getvalue('whisper_id') + db = Connect.produce() + cursor = db.cursor() + query = "update whisper set content = '{0}' where id = {1}".format(pymysql.escape_string(whisper_content), whisper_id) + cursor.execute(query) + db.commit() + cursor.close() + db.close() + _url = Config.get("route", "url") + redirect = """ + + + + + + """.format(_url) + print(redirect) +elif action == "new": + whisper_content = form.getvalue('whisper_content') + if whisper_content == None: + whisper_content = "" + t = time.time() + db = Connect.produce() + cursor = db.cursor() + query = "insert into whisper (content, date) values ('{0}', '{1}')".format(pymysql.escape_string(whisper_content), t) + cursor.execute(query) + db.commit() + cursor.close() + db.close() + _url = Config.get("route", "url") + redirect = """ + + + + + + """.format(_url) + print(redirect) +else: + print("Invalid action") \ No newline at end of file diff --git a/cgi-bin/.whisper.py.un~ b/cgi-bin/.whisper.py.un~ deleted file mode 100644 index 4f409c2..0000000 Binary files a/cgi-bin/.whisper.py.un~ and /dev/null differ diff --git a/cgi-bin/__pycache__/path.cpython-36.pyc b/cgi-bin/__pycache__/path.cpython-36.pyc index c1e0d7b..11d1331 100644 Binary files a/cgi-bin/__pycache__/path.cpython-36.pyc and b/cgi-bin/__pycache__/path.cpython-36.pyc differ diff --git a/cgi-bin/add.py b/cgi-bin/add.py deleted file mode 100644 index e3a7d4e..0000000 --- a/cgi-bin/add.py +++ /dev/null @@ -1,63 +0,0 @@ -#!D:/Programs/Python3/python.exe -# -*- coding: utf-8 -*- -import cgi, cgitb -import pymysql -import sys, codecs -import configparser, codecs -import connect -from connect import Connect -import config -from config import Config -import path -from path import Path -import time - -sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) -print("Content-type:text/html\n") - -form = cgi.FieldStorage() -action = form.getvalue('action') -if action == "modify": - whisper_content = form.getvalue('whisper_content') - if whisper_content == None: - whisper_content = "" - whisper_id = form.getvalue('whisper_id') - db = Connect.produce() - cursor = db.cursor() - query = "update whisper set content = '{0}' where id = {1}".format(pymysql.escape_string(whisper_content), whisper_id) - cursor.execute(query) - db.commit() - cursor.close() - db.close() - _url = Config.get("route", "url") - redirect = """ - - - - - - """.format(_url) - print(redirect) -elif action == "new": - whisper_content = form.getvalue('whisper_content') - if whisper_content == None: - whisper_content = "" - t = time.time() - db = Connect.produce() - cursor = db.cursor() - query = "insert into whisper (content, date) values ('{0}', '{1}')".format(pymysql.escape_string(whisper_content), t) - cursor.execute(query) - db.commit() - cursor.close() - db.close() - _url = Config.get("route", "url") - redirect = """ - - - - - - """.format(_url) - print(redirect) -else: - print("Invalid action") \ No newline at end of file diff --git a/cgi-bin/config.ini b/cgi-bin/config.ini deleted file mode 100644 index 7dfc0e1..0000000 --- a/cgi-bin/config.ini +++ /dev/null @@ -1,13 +0,0 @@ -[route] -url=/cgi-bin -static=/html -images=/html/imgs -templates=./template -[database] -user=root -passwd=root -host=localhost -port=3306 -db=whisper -[config] -whisper_count=15 diff --git a/cgi-bin/config.py b/cgi-bin/config.py deleted file mode 100644 index 539ed6c..0000000 --- a/cgi-bin/config.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -import configparser, codecs, sys - -conf = configparser.ConfigParser() -conf.read("config.ini") - -class Config(object): - @classmethod - def get(cls, section, option): - return conf.get(section, option) diff --git a/cgi-bin/connect.py b/cgi-bin/connect.py deleted file mode 100644 index 09c1942..0000000 --- a/cgi-bin/connect.py +++ /dev/null @@ -1,13 +0,0 @@ -import pymysql -import config -from config import Config - -host = Config.get("database", "host") -port = Config.get("database", "port") -user = Config.get("database", "user") -passwd = Config.get("database", "passwd") -db = Config.get("database", "db") -class Connect(object): - def produce(): - return pymysql.connect(host, user, passwd, db) - diff --git a/cgi-bin/delete.py b/cgi-bin/delete.py deleted file mode 100644 index 7c728a4..0000000 --- a/cgi-bin/delete.py +++ /dev/null @@ -1,36 +0,0 @@ -#!D:/Programs/Python3/python.exe -# -*- coding: utf-8 -*- -import cgi, cgitb -import pymysql -import sys, codecs -import configparser, codecs -import connect -from connect import Connect -import config -from config import Config -import path -from path import Path - -sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) -print("Content-type:text/html\n") -form = cgi.FieldStorage() -w = form.getvalue('w') -if w == None: - print("Invalid whisper") -else: - db = Connect.produce() - cursor = db.cursor() - query = "delete from whisper where id={0}".format(int(w)) - cursor.execute(query) - db.commit() - cursor.close() - db.close() - _url = Config.get("route", "url") - redirect = """ - - - - - - """.format(_url) - print(redirect) \ No newline at end of file diff --git a/cgi-bin/edit.py b/cgi-bin/edit.py deleted file mode 100644 index b0a899d..0000000 --- a/cgi-bin/edit.py +++ /dev/null @@ -1,46 +0,0 @@ -#!D:/Programs/Python3/python.exe -# -*- coding: utf-8 -*- -import cgi, cgitb -import pymysql -import sys, codecs -import configparser, codecs -import connect -from connect import Connect -import config -from config import Config -import path -from path import Path - -sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) -print("Content-type:text/html\n") -form = cgi.FieldStorage() -w = form.getvalue('w') -if w == None: - print("Invalid whisper") -else: - db = Connect.produce() - cursor = db.cursor() - - query_whisper = "select * from whisper where id={0}".format(w) - cursor.execute(query_whisper) - whisper = cursor.fetchone() - - edit_file = open(Path.template("edit.html"), 'r', encoding="utf8") - edit_templ = edit_file.read() - edit_file.close() - - _url = Config.get("route", "url") - _static = Config.get("route", "static") - - edit_html = edit_templ.format( \ - url = _url, - static = _static, - whisper_id = w, - whisper_content = whisper[1] - ) - - print(edit_html) - - db.commit() - cursor.close() - db.close() diff --git a/cgi-bin/html/ckeditor/config.js b/cgi-bin/html/ckeditor/config.js index 048198a..39a6e85 100644 --- a/cgi-bin/html/ckeditor/config.js +++ b/cgi-bin/html/ckeditor/config.js @@ -35,6 +35,7 @@ CKEDITOR.editorConfig = function( config ) { // Simplify the dialog windows. config.removeDialogTabs = 'image:advanced;link:advanced'; - config.filebrowserImageUploadUrl = "/cgi-bin/"; + config.filebrowserImageUploadUrl = "/chai/whisper/imguploader.py"; config.height = 100; + config.image_prefillDimensions = false; }; diff --git a/cgi-bin/html/imgs/1531471283.png b/cgi-bin/html/imgs/1531471283.png new file mode 100644 index 0000000..0d11f85 Binary files /dev/null and b/cgi-bin/html/imgs/1531471283.png differ diff --git a/cgi-bin/html/imgs/1531471337.png b/cgi-bin/html/imgs/1531471337.png new file mode 100644 index 0000000..0d11f85 Binary files /dev/null and b/cgi-bin/html/imgs/1531471337.png differ diff --git a/cgi-bin/html/imgs/1531471469.jpg b/cgi-bin/html/imgs/1531471469.jpg new file mode 100644 index 0000000..5932b51 Binary files /dev/null and b/cgi-bin/html/imgs/1531471469.jpg differ diff --git a/cgi-bin/html/imgs/1531471899.jpg b/cgi-bin/html/imgs/1531471899.jpg new file mode 100644 index 0000000..5932b51 Binary files /dev/null and b/cgi-bin/html/imgs/1531471899.jpg differ diff --git a/cgi-bin/html/imgs/1531471931.png b/cgi-bin/html/imgs/1531471931.png new file mode 100644 index 0000000..0d11f85 Binary files /dev/null and b/cgi-bin/html/imgs/1531471931.png differ diff --git a/cgi-bin/html/style.css b/cgi-bin/html/style.css index d3b9e3f..f9525f0 100644 --- a/cgi-bin/html/style.css +++ b/cgi-bin/html/style.css @@ -56,6 +56,11 @@ color : #3ea17c; } +.whisper_content img +{ + max-width: 100%; +} + #pagejump_next { float:right; diff --git a/cgi-bin/page.py b/cgi-bin/page.py deleted file mode 100644 index b776d8e..0000000 --- a/cgi-bin/page.py +++ /dev/null @@ -1,75 +0,0 @@ -#!D:/Programs/Python3/python.exe -# -*- coding: utf-8 -*- -import cgi, cgitb -import pymysql -import sys, codecs -import configparser, codecs -import connect -from connect import Connect -import whisper -from whisper import Whisper -import config -from config import Config -import path -from path import Path - -sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) - -_url = Config.get("route", "url") -_static = Config.get("route", "static") -_whiperperpage = int(Config.get("config", "whisper_count")) - -page_file = open(Path.template("page.html"), 'r', encoding="utf8") -page_templ = page_file.read() -page_file.close() - -pagen = cgi.FieldStorage().getvalue('p') -if pagen == None: - pagen = 0 -else: - pagen = int(pagen) -pageprev = pagen - 1 -if pageprev < 0: - pageprev = 0 -pagenext = pagen + 1 - -# class PageBuilder(object): -# def build(pagen): -print("Content-type:text/html\n") - -db = Connect.produce() -cursor = db.cursor() - -query_count = "select COUNT(*) from whisper" -cursor.execute(query_count) -whispercount = cursor.fetchone() -whispercount = whispercount[0] - -query_allwhisper = "select * from whisper ORDER BY id DESC LIMIT {0}, {1}".format(pagen * _whiperperpage, _whiperperpage) -cursor.execute(query_allwhisper) - -_whispers = "" -whispersdata = cursor.fetchall() -odd = True -count = 0 -for whisper in whispersdata: - count = count + 1 - _whispers += Whisper.build(whisper[0], whisper[1], whisper[2], odd, _url) - odd = not odd - -if pagen * _whiperperpage + count >= whispercount: - pagenext = pagen - -page = page_templ.format(\ - url = _url, - static = _static, - whispers = _whispers, - page_prev = pageprev, - page_next = pagenext -) - -print(page) - -db.commit() -cursor.close() -db.close() diff --git a/cgi-bin/path.py b/cgi-bin/path.py deleted file mode 100644 index e4ad756..0000000 --- a/cgi-bin/path.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -import config -from config import Config - -root = Config.get("route", "url") -imgsDir = Config.get("route", "images") -templDir = Config.get("route", "templates") - -class Path(object): - # 拼接url - def url(path): - return root + '/' + path - - # 保存的图片路径 - def img(imgFile): - return root + imgsDir + '/' + imgFile - - # html模板路径 - def template(templ): - return templDir + '/' + templ diff --git a/cgi-bin/template/.whisper.html.un~ b/cgi-bin/template/.whisper.html.un~ deleted file mode 100644 index 70eaf48..0000000 Binary files a/cgi-bin/template/.whisper.html.un~ and /dev/null differ diff --git a/cgi-bin/template/edit.html b/cgi-bin/template/edit.html deleted file mode 100644 index bc8cea0..0000000 --- a/cgi-bin/template/edit.html +++ /dev/null @@ -1,20 +0,0 @@ - - -whisper - - - -
- -
-
- - - - 删除 -
-
- - \ No newline at end of file diff --git a/cgi-bin/template/page.html b/cgi-bin/template/page.html deleted file mode 100644 index 672be2c..0000000 --- a/cgi-bin/template/page.html +++ /dev/null @@ -1,37 +0,0 @@ - - -whisper - - - - -
- -
-
- - -
- - {whispers} - -
- <上一页 - 下一页> -
- - diff --git a/cgi-bin/template/whisper.html b/cgi-bin/template/whisper.html deleted file mode 100644 index ae7ede4..0000000 --- a/cgi-bin/template/whisper.html +++ /dev/null @@ -1,10 +0,0 @@ -
-
- {content} -
-
-
- [编辑] -
-
-
diff --git a/cgi-bin/whisper.py b/cgi-bin/whisper.py deleted file mode 100644 index aec20b6..0000000 --- a/cgi-bin/whisper.py +++ /dev/null @@ -1,19 +0,0 @@ -import path -from path import Path -import connect -from connect import Connect - -whisper_file = open(Path.template("whisper.html"), 'r', encoding="utf8") -whisper_templ = whisper_file.read() -whisper_file.close() - -class Whisper(object): - def build(_id, _content, _date, _odd, _url): - whisper = whisper_templ.format(\ - oddoreven=((_odd == True) and "odd" or "even"),\ - content=_content,\ - date=_date,\ - url=_url,\ - id=_id\ - ) - return whisper diff --git a/conf/httpd.conf b/conf/httpd.conf deleted file mode 100644 index a586979..0000000 --- a/conf/httpd.conf +++ /dev/null @@ -1,492 +0,0 @@ -# -# This is the main Apache HTTP server configuration file. It contains the -# configuration directives that give the server its instructions. -# See for detailed information. -# In particular, see -# -# for a discussion of each configuration directive. -# -# Do NOT simply read the instructions in here without understanding -# what they do. They're here only as hints or reminders. If you are unsure -# consult the online docs. You have been warned. -# -# Configuration and logfile names: If the filenames you specify for many -# of the server's control files begin with "/" (or "drive:/" for Win32), the -# server will use that explicit path. If the filenames do *not* begin -# with "/", the value of ServerRoot is prepended -- so "logs/foo.log" -# with ServerRoot set to "D:/Program Files (x86)/Apache Software Foundation/Apache2.2" will be interpreted by the -# server as "D:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/foo.log". -# -# NOTE: Where filenames are specified, you must use forward slashes -# instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). -# If a drive letter is omitted, the drive on which httpd.exe is located -# will be used by default. It is recommended that you always supply -# an explicit drive letter in absolute paths to avoid confusion. - -# -# ServerRoot: The top of the directory tree under which the server's -# configuration, error, and log files are kept. -# -# Do not add a slash at the end of the directory path. If you point -# ServerRoot at a non-local disk, be sure to point the LockFile directive -# at a local disk. If you wish to share the same ServerRoot for multiple -# httpd daemons, you will need to change at least LockFile and PidFile. -# -ServerRoot "D:/Program Files (x86)/Apache Software Foundation/Apache2.2" - -# -# Listen: Allows you to bind Apache to specific IP addresses and/or -# ports, instead of the default. See also the -# directive. -# -# Change this to Listen on specific IP addresses as shown below to -# prevent Apache from glomming onto all bound IP addresses. -# -#Listen 12.34.56.78:80 -Listen 80 - -# -# Dynamic Shared Object (DSO) Support -# -# To be able to use the functionality of a module which was built as a DSO you -# have to place corresponding `LoadModule' lines at this location so the -# directives contained in it are actually available _before_ they are used. -# Statically compiled modules (those listed by `httpd -l') do not need -# to be loaded here. -# -# Example: -# LoadModule foo_module modules/mod_foo.so -# -LoadModule actions_module modules/mod_actions.so -LoadModule alias_module modules/mod_alias.so -LoadModule asis_module modules/mod_asis.so -LoadModule auth_basic_module modules/mod_auth_basic.so -#LoadModule auth_digest_module modules/mod_auth_digest.so -#LoadModule authn_alias_module modules/mod_authn_alias.so -#LoadModule authn_anon_module modules/mod_authn_anon.so -#LoadModule authn_dbd_module modules/mod_authn_dbd.so -#LoadModule authn_dbm_module modules/mod_authn_dbm.so -LoadModule authn_default_module modules/mod_authn_default.so -LoadModule authn_file_module modules/mod_authn_file.so -#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so -#LoadModule authz_dbm_module modules/mod_authz_dbm.so -LoadModule authz_default_module modules/mod_authz_default.so -LoadModule authz_groupfile_module modules/mod_authz_groupfile.so -LoadModule authz_host_module modules/mod_authz_host.so -#LoadModule authz_owner_module modules/mod_authz_owner.so -LoadModule authz_user_module modules/mod_authz_user.so -LoadModule autoindex_module modules/mod_autoindex.so -#LoadModule cache_module modules/mod_cache.so -#LoadModule cern_meta_module modules/mod_cern_meta.so -LoadModule cgi_module modules/mod_cgi.so -#LoadModule charset_lite_module modules/mod_charset_lite.so -#LoadModule dav_module modules/mod_dav.so -#LoadModule dav_fs_module modules/mod_dav_fs.so -#LoadModule dav_lock_module modules/mod_dav_lock.so -#LoadModule dbd_module modules/mod_dbd.so -#LoadModule deflate_module modules/mod_deflate.so -LoadModule dir_module modules/mod_dir.so -#LoadModule disk_cache_module modules/mod_disk_cache.so -#LoadModule dumpio_module modules/mod_dumpio.so -LoadModule env_module modules/mod_env.so -#LoadModule expires_module modules/mod_expires.so -#LoadModule ext_filter_module modules/mod_ext_filter.so -#LoadModule file_cache_module modules/mod_file_cache.so -#LoadModule filter_module modules/mod_filter.so -#LoadModule headers_module modules/mod_headers.so -#LoadModule ident_module modules/mod_ident.so -#LoadModule imagemap_module modules/mod_imagemap.so -LoadModule include_module modules/mod_include.so -#LoadModule info_module modules/mod_info.so -LoadModule isapi_module modules/mod_isapi.so -#LoadModule ldap_module modules/mod_ldap.so -#LoadModule logio_module modules/mod_logio.so -LoadModule log_config_module modules/mod_log_config.so -#LoadModule log_forensic_module modules/mod_log_forensic.so -#LoadModule mem_cache_module modules/mod_mem_cache.so -LoadModule mime_module modules/mod_mime.so -#LoadModule mime_magic_module modules/mod_mime_magic.so -LoadModule negotiation_module modules/mod_negotiation.so -#LoadModule proxy_module modules/mod_proxy.so -#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so -#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so -#LoadModule proxy_connect_module modules/mod_proxy_connect.so -#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so -#LoadModule proxy_http_module modules/mod_proxy_http.so -#LoadModule reqtimeout_module modules/mod_reqtimeout.so -#LoadModule rewrite_module modules/mod_rewrite.so -LoadModule setenvif_module modules/mod_setenvif.so -#LoadModule speling_module modules/mod_speling.so -#LoadModule ssl_module modules/mod_ssl.so -#LoadModule status_module modules/mod_status.so -#LoadModule substitute_module modules/mod_substitute.so -#LoadModule unique_id_module modules/mod_unique_id.so -#LoadModule userdir_module modules/mod_userdir.so -#LoadModule usertrack_module modules/mod_usertrack.so -#LoadModule version_module modules/mod_version.so -#LoadModule vhost_alias_module modules/mod_vhost_alias.so - - - -# -# If you wish httpd to run as a different user or group, you must run -# httpd as root initially and it will switch. -# -# User/Group: The name (or #number) of the user/group to run httpd as. -# It is usually good practice to create a dedicated user and group for -# running httpd, as with most system services. -# -User daemon -Group daemon - - - - -# 'Main' server configuration -# -# The directives in this section set up the values used by the 'main' -# server, which responds to any requests that aren't handled by a -# definition. These values also provide defaults for -# any containers you may define later in the file. -# -# All of these directives may appear inside containers, -# in which case these default settings will be overridden for the -# virtual host being defined. -# - -# -# ServerAdmin: Your address, where problems with the server should be -# e-mailed. This address appears on some server-generated pages, such -# as error documents. e.g. admin@your-domain.com -# -ServerAdmin admin@SNDA.ROOT.CORP - -# -# ServerName gives the name and port that the server uses to identify itself. -# This can often be determined automatically, but we recommend you specify -# it explicitly to prevent problems during startup. -# -# If your host doesn't have a registered DNS name, enter its IP address here. -# -#ServerName SH-chaifx.SNDA.ROOT.CORP:80 - -# -# DocumentRoot: The directory out of which you will serve your -# documents. By default, all requests are taken from this directory, but -# symbolic links and aliases may be used to point to other locations. -# -DocumentRoot "D:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs" - -# -# Each directory to which Apache has access can be configured with respect -# to which services and features are allowed and/or disabled in that -# directory (and its subdirectories). -# -# First, we configure the "default" to be a very restrictive set of -# features. -# - - Options FollowSymLinks - AllowOverride None - Order deny,allow - Deny from all - - -# -# Note that from this point forward you must specifically allow -# particular features to be enabled - so if something's not working as -# you might expect, make sure that you have specifically enabled it -# below. -# - -# -# This should be changed to whatever you set DocumentRoot to. -# - - # - # Possible values for the Options directive are "None", "All", - # or any combination of: - # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews - # - # Note that "MultiViews" must be named *explicitly* --- "Options All" - # doesn't give it to you. - # - # The Options directive is both complicated and important. Please see - # http://httpd.apache.org/docs/2.2/mod/core.html#options - # for more information. - # - Options Indexes FollowSymLinks - - # - # AllowOverride controls what directives may be placed in .htaccess files. - # It can be "All", "None", or any combination of the keywords: - # Options FileInfo AuthConfig Limit - # - AllowOverride None - - # - # Controls who can get stuff from this server. - # - Order allow,deny - Allow from all - - - -# -# DirectoryIndex: sets the file that Apache will serve if a directory -# is requested. -# - - DirectoryIndex index.html - - -# -# The following lines prevent .htaccess and .htpasswd files from being -# viewed by Web clients. -# - - Order allow,deny - Deny from all - Satisfy All - - -# -# ErrorLog: The location of the error log file. -# If you do not specify an ErrorLog directive within a -# container, error messages relating to that virtual host will be -# logged here. If you *do* define an error logfile for a -# container, that host's errors will be logged there and not here. -# -ErrorLog "logs/error.log" - -# -# LogLevel: Control the number of messages logged to the error_log. -# Possible values include: debug, info, notice, warn, error, crit, -# alert, emerg. -# -LogLevel warn - - - # - # The following directives define some format nicknames for use with - # a CustomLog directive (see below). - # - LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined - LogFormat "%h %l %u %t \"%r\" %>s %b" common - - - # You need to enable mod_logio.c to use %I and %O - LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio - - - # - # The location and format of the access logfile (Common Logfile Format). - # If you do not define any access logfiles within a - # container, they will be logged here. Contrariwise, if you *do* - # define per- access logfiles, transactions will be - # logged therein and *not* in this file. - # - CustomLog "logs/access.log" common - - # - # If you prefer a logfile with access, agent, and referer information - # (Combined Logfile Format) you can use the following directive. - # - #CustomLog "logs/access.log" combined - - - - # - # Redirect: Allows you to tell clients about documents that used to - # exist in your server's namespace, but do not anymore. The client - # will make a new request for the document at its new location. - # Example: - # Redirect permanent /foo http://SH-chaifx.SNDA.ROOT.CORP/bar - - # - # Alias: Maps web paths into filesystem paths and is used to - # access content that does not live under the DocumentRoot. - # Example: - # Alias /webpath /full/filesystem/path - # - # If you include a trailing / on /webpath then the server will - # require it to be present in the URL. You will also likely - # need to provide a section to allow access to - # the filesystem path. - - # - # ScriptAlias: This controls which directories contain server scripts. - # ScriptAliases are essentially the same as Aliases, except that - # documents in the target directory are treated as applications and - # run by the server when requested rather than as documents sent to the - # client. The same rules about trailing "/" apply to ScriptAlias - # directives as to Alias. - # - #ScriptAlias /cgi-bin/ "D:/python/whisper/cgi-bin/" - Alias /cgi-bin/ "D:/python/whisper/cgi-bin/" - - - - # - # ScriptSock: On threaded servers, designate the path to the UNIX - # socket used to communicate with the CGI daemon of mod_cgid. - # - #Scriptsock logs/cgisock - - - - AllowOverride None - Options +ExecCGI - Order allow,deny - Allow from all - AddHandler cgi-script .py .cgi .pl -# Require all granted - - -# -# "D:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased -# CGI directory exists, if you have that configured. -# - - AllowOverride None - Options None - Order allow,deny - Allow from all - - -# -# DefaultType: the default MIME type the server will use for a document -# if it cannot otherwise determine one, such as from filename extensions. -# If your server contains mostly text or HTML documents, "text/plain" is -# a good value. If most of your content is binary, such as applications -# or images, you may want to use "application/octet-stream" instead to -# keep browsers from trying to display binary files as though they are -# text. -# -DefaultType text/plain - - - # - # TypesConfig points to the file containing the list of mappings from - # filename extension to MIME-type. - # - TypesConfig conf/mime.types - - # - # AddType allows you to add to or override the MIME configuration - # file specified in TypesConfig for specific file types. - # - #AddType application/x-gzip .tgz - # - # AddEncoding allows you to have certain browsers uncompress - # information on the fly. Note: Not all browsers support this. - # - #AddEncoding x-compress .Z - #AddEncoding x-gzip .gz .tgz - # - # If the AddEncoding directives above are commented-out, then you - # probably should define those extensions to indicate media types: - # - AddType application/x-compress .Z - AddType application/x-gzip .gz .tgz - - # - # AddHandler allows you to map certain file extensions to "handlers": - # actions unrelated to filetype. These can be either built into the server - # or added with the Action directive (see below) - # - # To use CGI scripts outside of ScriptAliased directories: - # (You will also need to add "ExecCGI" to the "Options" directive.) - # - AddHandler cgi-script .cgi .py - - # For type maps (negotiated resources): - #AddHandler type-map var - - # - # Filters allow you to process content before it is sent to the client. - # - # To parse .shtml files for server-side includes (SSI): - # (You will also need to add "Includes" to the "Options" directive.) - # - #AddType text/html .shtml - #AddOutputFilter INCLUDES .shtml - - -# -# The mod_mime_magic module allows the server to use various hints from the -# contents of the file itself to determine its type. The MIMEMagicFile -# directive tells the module where the hint definitions are located. -# -#MIMEMagicFile conf/magic - -# -# Customizable error responses come in three flavors: -# 1) plain text 2) local redirects 3) external redirects -# -# Some examples: -#ErrorDocument 500 "The server made a boo boo." -#ErrorDocument 404 /missing.html -#ErrorDocument 404 "/cgi-bin/missing_handler.pl" -#ErrorDocument 402 http://SH-chaifx.SNDA.ROOT.CORP/subscription_info.html -# - -# -# EnableMMAP and EnableSendfile: On systems that support it, -# memory-mapping or the sendfile syscall is used to deliver -# files. This usually improves server performance, but must -# be turned off when serving from networked-mounted -# filesystems or if support for these functions is otherwise -# broken on your system. -# -#EnableMMAP off -#EnableSendfile off - -# Supplemental configuration -# -# The configuration files in the conf/extra/ directory can be -# included to add extra features or to modify the default configuration of -# the server, or you may simply copy their contents here and change as -# necessary. - -# Server-pool management (MPM specific) -#Include conf/extra/httpd-mpm.conf - -# Multi-language error messages -#Include conf/extra/httpd-multilang-errordoc.conf - -# Fancy directory listings -#Include conf/extra/httpd-autoindex.conf - -# Language settings -#Include conf/extra/httpd-languages.conf - -# User home directories -#Include conf/extra/httpd-userdir.conf - -# Real-time info on requests and configuration -#Include conf/extra/httpd-info.conf - -# Virtual hosts -#Include conf/extra/httpd-vhosts.conf - -# Local access to the Apache HTTP Server Manual -#Include conf/extra/httpd-manual.conf - -# Distributed authoring and versioning (WebDAV) -#Include conf/extra/httpd-dav.conf - -# Various default settings -#Include conf/extra/httpd-default.conf - -# Secure (SSL/TLS) connections -#Include conf/extra/httpd-ssl.conf -# -# Note: The following must must be present to support -# starting without SSL on platforms with no /dev/random equivalent -# but a statically compiled-in mod_ssl. -# - -SSLRandomSeed startup builtin -SSLRandomSeed connect builtin - diff --git a/config.ini b/config.ini new file mode 100644 index 0000000..d38340b --- /dev/null +++ b/config.ini @@ -0,0 +1,14 @@ +[route] +url=/chai/whisper +static=/html +images=/html/imgs +templates=./template +disk=/var/www/html/chai/whisper/cgi-bin +[database] +user=root +passwd=root +host=localhost +port=3306 +db=whisper +[config] +whisper_count=15 diff --git a/config.py b/config.py new file mode 100644 index 0000000..539ed6c --- /dev/null +++ b/config.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +import configparser, codecs, sys + +conf = configparser.ConfigParser() +conf.read("config.ini") + +class Config(object): + @classmethod + def get(cls, section, option): + return conf.get(section, option) diff --git a/connect.py b/connect.py new file mode 100644 index 0000000..09c1942 --- /dev/null +++ b/connect.py @@ -0,0 +1,13 @@ +import pymysql +import config +from config import Config + +host = Config.get("database", "host") +port = Config.get("database", "port") +user = Config.get("database", "user") +passwd = Config.get("database", "passwd") +db = Config.get("database", "db") +class Connect(object): + def produce(): + return pymysql.connect(host, user, passwd, db) + diff --git a/delete.py b/delete.py new file mode 100644 index 0000000..7d80f34 --- /dev/null +++ b/delete.py @@ -0,0 +1,36 @@ +#!D:/Programs/python3/python.exe +# -*- coding: utf-8 -*- +import cgi, cgitb +import pymysql +import sys, codecs +import configparser, codecs +import connect +from connect import Connect +import config +from config import Config +import path +from path import Path + +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) +print("Content-type:text/html\n") +form = cgi.FieldStorage() +w = form.getvalue('w') +if w == None: + print("Invalid whisper") +else: + db = Connect.produce() + cursor = db.cursor() + query = "delete from whisper where id={0}".format(int(w)) + cursor.execute(query) + db.commit() + cursor.close() + db.close() + _url = Config.get("route", "url") + redirect = """ + + + + + + """.format(_url) + print(redirect) \ No newline at end of file diff --git a/edit.py b/edit.py new file mode 100644 index 0000000..5e85faa --- /dev/null +++ b/edit.py @@ -0,0 +1,46 @@ +#!D:/Programs/python3/python.exe +# -*- coding: utf-8 -*- +import cgi, cgitb +import pymysql +import sys, codecs +import configparser, codecs +import connect +from connect import Connect +import config +from config import Config +import path +from path import Path + +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) +print("Content-type:text/html\n") +form = cgi.FieldStorage() +w = form.getvalue('w') +if w == None: + print("Invalid whisper") +else: + db = Connect.produce() + cursor = db.cursor() + + query_whisper = "select * from whisper where id={0}".format(w) + cursor.execute(query_whisper) + whisper = cursor.fetchone() + + edit_file = open(Path.template("edit.html"), 'r', encoding="utf8") + edit_templ = edit_file.read() + edit_file.close() + + _url = Config.get("route", "url") + _static = Config.get("route", "static") + + edit_html = edit_templ.format( \ + url = _url, + static = _static, + whisper_id = w, + whisper_content = whisper[1] + ) + + print(edit_html) + + db.commit() + cursor.close() + db.close() diff --git a/httpd.conf b/httpd.conf deleted file mode 100644 index 335f324..0000000 --- a/httpd.conf +++ /dev/null @@ -1,492 +0,0 @@ -# -# This is the main Apache HTTP server configuration file. It contains the -# configuration directives that give the server its instructions. -# See for detailed information. -# In particular, see -# -# for a discussion of each configuration directive. -# -# Do NOT simply read the instructions in here without understanding -# what they do. They're here only as hints or reminders. If you are unsure -# consult the online docs. You have been warned. -# -# Configuration and logfile names: If the filenames you specify for many -# of the server's control files begin with "/" (or "drive:/" for Win32), the -# server will use that explicit path. If the filenames do *not* begin -# with "/", the value of ServerRoot is prepended -- so "logs/foo.log" -# with ServerRoot set to "D:/Program Files (x86)/Apache Software Foundation/Apache2.2" will be interpreted by the -# server as "D:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/foo.log". -# -# NOTE: Where filenames are specified, you must use forward slashes -# instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). -# If a drive letter is omitted, the drive on which httpd.exe is located -# will be used by default. It is recommended that you always supply -# an explicit drive letter in absolute paths to avoid confusion. - -# -# ServerRoot: The top of the directory tree under which the server's -# configuration, error, and log files are kept. -# -# Do not add a slash at the end of the directory path. If you point -# ServerRoot at a non-local disk, be sure to point the LockFile directive -# at a local disk. If you wish to share the same ServerRoot for multiple -# httpd daemons, you will need to change at least LockFile and PidFile. -# -ServerRoot "D:/Program Files (x86)/Apache Software Foundation/Apache2.2" - -# -# Listen: Allows you to bind Apache to specific IP addresses and/or -# ports, instead of the default. See also the -# directive. -# -# Change this to Listen on specific IP addresses as shown below to -# prevent Apache from glomming onto all bound IP addresses. -# -#Listen 12.34.56.78:80 -Listen 80 - -# -# Dynamic Shared Object (DSO) Support -# -# To be able to use the functionality of a module which was built as a DSO you -# have to place corresponding `LoadModule' lines at this location so the -# directives contained in it are actually available _before_ they are used. -# Statically compiled modules (those listed by `httpd -l') do not need -# to be loaded here. -# -# Example: -# LoadModule foo_module modules/mod_foo.so -# -LoadModule actions_module modules/mod_actions.so -LoadModule alias_module modules/mod_alias.so -LoadModule asis_module modules/mod_asis.so -LoadModule auth_basic_module modules/mod_auth_basic.so -#LoadModule auth_digest_module modules/mod_auth_digest.so -#LoadModule authn_alias_module modules/mod_authn_alias.so -#LoadModule authn_anon_module modules/mod_authn_anon.so -#LoadModule authn_dbd_module modules/mod_authn_dbd.so -#LoadModule authn_dbm_module modules/mod_authn_dbm.so -LoadModule authn_default_module modules/mod_authn_default.so -LoadModule authn_file_module modules/mod_authn_file.so -#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so -#LoadModule authz_dbm_module modules/mod_authz_dbm.so -LoadModule authz_default_module modules/mod_authz_default.so -LoadModule authz_groupfile_module modules/mod_authz_groupfile.so -LoadModule authz_host_module modules/mod_authz_host.so -#LoadModule authz_owner_module modules/mod_authz_owner.so -LoadModule authz_user_module modules/mod_authz_user.so -LoadModule autoindex_module modules/mod_autoindex.so -#LoadModule cache_module modules/mod_cache.so -#LoadModule cern_meta_module modules/mod_cern_meta.so -LoadModule cgi_module modules/mod_cgi.so -#LoadModule charset_lite_module modules/mod_charset_lite.so -#LoadModule dav_module modules/mod_dav.so -#LoadModule dav_fs_module modules/mod_dav_fs.so -#LoadModule dav_lock_module modules/mod_dav_lock.so -#LoadModule dbd_module modules/mod_dbd.so -#LoadModule deflate_module modules/mod_deflate.so -LoadModule dir_module modules/mod_dir.so -#LoadModule disk_cache_module modules/mod_disk_cache.so -#LoadModule dumpio_module modules/mod_dumpio.so -LoadModule env_module modules/mod_env.so -#LoadModule expires_module modules/mod_expires.so -#LoadModule ext_filter_module modules/mod_ext_filter.so -#LoadModule file_cache_module modules/mod_file_cache.so -#LoadModule filter_module modules/mod_filter.so -#LoadModule headers_module modules/mod_headers.so -#LoadModule ident_module modules/mod_ident.so -#LoadModule imagemap_module modules/mod_imagemap.so -LoadModule include_module modules/mod_include.so -#LoadModule info_module modules/mod_info.so -LoadModule isapi_module modules/mod_isapi.so -#LoadModule ldap_module modules/mod_ldap.so -#LoadModule logio_module modules/mod_logio.so -LoadModule log_config_module modules/mod_log_config.so -#LoadModule log_forensic_module modules/mod_log_forensic.so -#LoadModule mem_cache_module modules/mod_mem_cache.so -LoadModule mime_module modules/mod_mime.so -#LoadModule mime_magic_module modules/mod_mime_magic.so -LoadModule negotiation_module modules/mod_negotiation.so -#LoadModule proxy_module modules/mod_proxy.so -#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so -#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so -#LoadModule proxy_connect_module modules/mod_proxy_connect.so -#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so -#LoadModule proxy_http_module modules/mod_proxy_http.so -#LoadModule reqtimeout_module modules/mod_reqtimeout.so -#LoadModule rewrite_module modules/mod_rewrite.so -LoadModule setenvif_module modules/mod_setenvif.so -#LoadModule speling_module modules/mod_speling.so -#LoadModule ssl_module modules/mod_ssl.so -#LoadModule status_module modules/mod_status.so -#LoadModule substitute_module modules/mod_substitute.so -#LoadModule unique_id_module modules/mod_unique_id.so -#LoadModule userdir_module modules/mod_userdir.so -#LoadModule usertrack_module modules/mod_usertrack.so -#LoadModule version_module modules/mod_version.so -#LoadModule vhost_alias_module modules/mod_vhost_alias.so - - - -# -# If you wish httpd to run as a different user or group, you must run -# httpd as root initially and it will switch. -# -# User/Group: The name (or #number) of the user/group to run httpd as. -# It is usually good practice to create a dedicated user and group for -# running httpd, as with most system services. -# -User daemon -Group daemon - - - - -# 'Main' server configuration -# -# The directives in this section set up the values used by the 'main' -# server, which responds to any requests that aren't handled by a -# definition. These values also provide defaults for -# any containers you may define later in the file. -# -# All of these directives may appear inside containers, -# in which case these default settings will be overridden for the -# virtual host being defined. -# - -# -# ServerAdmin: Your address, where problems with the server should be -# e-mailed. This address appears on some server-generated pages, such -# as error documents. e.g. admin@your-domain.com -# -ServerAdmin chaifix@163.com - -# -# ServerName gives the name and port that the server uses to identify itself. -# This can often be determined automatically, but we recommend you specify -# it explicitly to prevent problems during startup. -# -# If your host doesn't have a registered DNS name, enter its IP address here. -# -#ServerName localhost:80 - -# -# DocumentRoot: The directory out of which you will serve your -# documents. By default, all requests are taken from this directory, but -# symbolic links and aliases may be used to point to other locations. -# -DocumentRoot "D:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs" - -# -# Each directory to which Apache has access can be configured with respect -# to which services and features are allowed and/or disabled in that -# directory (and its subdirectories). -# -# First, we configure the "default" to be a very restrictive set of -# features. -# - - Options FollowSymLinks - AllowOverride None - Order deny,allow - Deny from all - - -# -# Note that from this point forward you must specifically allow -# particular features to be enabled - so if something's not working as -# you might expect, make sure that you have specifically enabled it -# below. -# - -# -# This should be changed to whatever you set DocumentRoot to. -# - - # - # Possible values for the Options directive are "None", "All", - # or any combination of: - # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews - # - # Note that "MultiViews" must be named *explicitly* --- "Options All" - # doesn't give it to you. - # - # The Options directive is both complicated and important. Please see - # http://httpd.apache.org/docs/2.2/mod/core.html#options - # for more information. - # - Options Indexes FollowSymLinks - - # - # AllowOverride controls what directives may be placed in .htaccess files. - # It can be "All", "None", or any combination of the keywords: - # Options FileInfo AuthConfig Limit - # - AllowOverride None - - # - # Controls who can get stuff from this server. - # - Order allow,deny - Allow from all - - - -# -# DirectoryIndex: sets the file that Apache will serve if a directory -# is requested. -# - - DirectoryIndex index.html - - -# -# The following lines prevent .htaccess and .htpasswd files from being -# viewed by Web clients. -# - - Order allow,deny - Deny from all - Satisfy All - - -# -# ErrorLog: The location of the error log file. -# If you do not specify an ErrorLog directive within a -# container, error messages relating to that virtual host will be -# logged here. If you *do* define an error logfile for a -# container, that host's errors will be logged there and not here. -# -ErrorLog "logs/error.log" - -# -# LogLevel: Control the number of messages logged to the error_log. -# Possible values include: debug, info, notice, warn, error, crit, -# alert, emerg. -# -LogLevel warn - - - # - # The following directives define some format nicknames for use with - # a CustomLog directive (see below). - # - LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined - LogFormat "%h %l %u %t \"%r\" %>s %b" common - - - # You need to enable mod_logio.c to use %I and %O - LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio - - - # - # The location and format of the access logfile (Common Logfile Format). - # If you do not define any access logfiles within a - # container, they will be logged here. Contrariwise, if you *do* - # define per- access logfiles, transactions will be - # logged therein and *not* in this file. - # - CustomLog "logs/access.log" common - - # - # If you prefer a logfile with access, agent, and referer information - # (Combined Logfile Format) you can use the following directive. - # - #CustomLog "logs/access.log" combined - - - - # - # Redirect: Allows you to tell clients about documents that used to - # exist in your server's namespace, but do not anymore. The client - # will make a new request for the document at its new location. - # Example: - # Redirect permanent /foo http://localhost/bar - - # - # Alias: Maps web paths into filesystem paths and is used to - # access content that does not live under the DocumentRoot. - # Example: - # Alias /webpath /full/filesystem/path - # - # If you include a trailing / on /webpath then the server will - # require it to be present in the URL. You will also likely - # need to provide a section to allow access to - # the filesystem path. - - # - # ScriptAlias: This controls which directories contain server scripts. - # ScriptAliases are essentially the same as Aliases, except that - # documents in the target directory are treated as applications and - # run by the server when requested rather than as documents sent to the - # client. The same rules about trailing "/" apply to ScriptAlias - # directives as to Alias. - # - ScriptAlias /cgi-bin/ "D:/Documents/Python/Python3/whisper/cgi-bin/" - - - - - # - # ScriptSock: On threaded servers, designate the path to the UNIX - # socket used to communicate with the CGI daemon of mod_cgid. - # - #Scriptsock logs/cgisock - - - - AllowOverride None - Options +ExecCGI - Order allow,deny - Allow from all - AddHandler cgi-script .py .cgi .pl -# Require all granted - - -# -# "D:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased -# CGI directory exists, if you have that configured. -# - - AllowOverride None - Options None - Order allow,deny - Allow from all - - -# -# DefaultType: the default MIME type the server will use for a document -# if it cannot otherwise determine one, such as from filename extensions. -# If your server contains mostly text or HTML documents, "text/plain" is -# a good value. If most of your content is binary, such as applications -# or images, you may want to use "application/octet-stream" instead to -# keep browsers from trying to display binary files as though they are -# text. -# -DefaultType text/plain - - - # - # TypesConfig points to the file containing the list of mappings from - # filename extension to MIME-type. - # - TypesConfig conf/mime.types - - # - # AddType allows you to add to or override the MIME configuration - # file specified in TypesConfig for specific file types. - # - #AddType application/x-gzip .tgz - # - # AddEncoding allows you to have certain browsers uncompress - # information on the fly. Note: Not all browsers support this. - # - #AddEncoding x-compress .Z - #AddEncoding x-gzip .gz .tgz - # - # If the AddEncoding directives above are commented-out, then you - # probably should define those extensions to indicate media types: - # - AddType application/x-compress .Z - AddType application/x-gzip .gz .tgz - - # - # AddHandler allows you to map certain file extensions to "handlers": - # actions unrelated to filetype. These can be either built into the server - # or added with the Action directive (see below) - # - # To use CGI scripts outside of ScriptAliased directories: - # (You will also need to add "ExecCGI" to the "Options" directive.) - # - AddHandler cgi-script .cgi .py - - # For type maps (negotiated resources): - #AddHandler type-map var - - # - # Filters allow you to process content before it is sent to the client. - # - # To parse .shtml files for server-side includes (SSI): - # (You will also need to add "Includes" to the "Options" directive.) - # - #AddType text/html .shtml - #AddOutputFilter INCLUDES .shtml - - -# -# The mod_mime_magic module allows the server to use various hints from the -# contents of the file itself to determine its type. The MIMEMagicFile -# directive tells the module where the hint definitions are located. -# -#MIMEMagicFile conf/magic - -# -# Customizable error responses come in three flavors: -# 1) plain text 2) local redirects 3) external redirects -# -# Some examples: -#ErrorDocument 500 "The server made a boo boo." -#ErrorDocument 404 /missing.html -#ErrorDocument 404 "/cgi-bin/missing_handler.pl" -#ErrorDocument 402 http://localhost/subscription_info.html -# - -# -# EnableMMAP and EnableSendfile: On systems that support it, -# memory-mapping or the sendfile syscall is used to deliver -# files. This usually improves server performance, but must -# be turned off when serving from networked-mounted -# filesystems or if support for these functions is otherwise -# broken on your system. -# -#EnableMMAP off -#EnableSendfile off - -# Supplemental configuration -# -# The configuration files in the conf/extra/ directory can be -# included to add extra features or to modify the default configuration of -# the server, or you may simply copy their contents here and change as -# necessary. - -# Server-pool management (MPM specific) -#Include conf/extra/httpd-mpm.conf - -# Multi-language error messages -#Include conf/extra/httpd-multilang-errordoc.conf - -# Fancy directory listings -#Include conf/extra/httpd-autoindex.conf - -# Language settings -#Include conf/extra/httpd-languages.conf - -# User home directories -#Include conf/extra/httpd-userdir.conf - -# Real-time info on requests and configuration -#Include conf/extra/httpd-info.conf - -# Virtual hosts -#Include conf/extra/httpd-vhosts.conf - -# Local access to the Apache HTTP Server Manual -#Include conf/extra/httpd-manual.conf - -# Distributed authoring and versioning (WebDAV) -#Include conf/extra/httpd-dav.conf - -# Various default settings -#Include conf/extra/httpd-default.conf - -# Secure (SSL/TLS) connections -#Include conf/extra/httpd-ssl.conf -# -# Note: The following must must be present to support -# starting without SSL on platforms with no /dev/random equivalent -# but a statically compiled-in mod_ssl. -# - -SSLRandomSeed startup builtin -SSLRandomSeed connect builtin - diff --git a/imguploader.py b/imguploader.py new file mode 100644 index 0000000..1b59754 --- /dev/null +++ b/imguploader.py @@ -0,0 +1,54 @@ +#!D:/Programs/python3/python.exe +# -*- coding: utf-8 -*- +import cgi, cgitb +import pymysql +import sys, codecs +import configparser, codecs +import connect +from connect import Connect +import config +from config import Config +import path +from path import Path +import time +import os +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) + +form = cgi.FieldStorage() + +fileobj = form['upload'] +callback = form.getvalue("CKEditorFuncNum") +fname, fext = os.path.splitext(fileobj.filename) + +def randname(): + return int(time.time()); + +rnd_name = '%s%s' % (randname(), fext) +filepath = Path.imgpath(rnd_name) + +# 检查路径是否存在,不存在则创建 +dirname = os.path.dirname(filepath) +url = "" +error = "" +if not os.path.exists(dirname): + try: + os.makedirs(dirname) + except: + error = 'ERROR_CREATE_DIR' +elif not os.access(dirname, os.W_OK): + error = 'ERROR_DIR_NOT_WRITEABLE' +if not error: + open(filepath, 'wb').write(fileobj.file.read()) + #url = url_for('static', filename='%s/%s' % ('upload', rnd_name)) + url = Path.img(rnd_name) + +res = """ + + + +""" % (callback, url, error) + +print("Content-type:text/html\n") +print(res) diff --git a/page.py b/page.py new file mode 100644 index 0000000..1c7fe99 --- /dev/null +++ b/page.py @@ -0,0 +1,75 @@ +#!D:/Programs/python3/python.exe +# -*- coding: utf-8 -*- +import cgi, cgitb +import pymysql +import sys, codecs +import configparser, codecs +import connect +from connect import Connect +import whisper +from whisper import Whisper +import config +from config import Config +import path +from path import Path + +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) + +_url = Config.get("route", "url") +_static = Config.get("route", "static") +_whiperperpage = int(Config.get("config", "whisper_count")) + +page_file = open(Path.template("page.html"), 'r', encoding="utf8") +page_templ = page_file.read() +page_file.close() + +pagen = cgi.FieldStorage().getvalue('p') +if pagen == None: + pagen = 0 +else: + pagen = int(pagen) +pageprev = pagen - 1 +if pageprev < 0: + pageprev = 0 +pagenext = pagen + 1 + +# class PageBuilder(object): +# def build(pagen): +print("Content-type:text/html\n") + +db = Connect.produce() +cursor = db.cursor() + +query_count = "select COUNT(*) from whisper" +cursor.execute(query_count) +whispercount = cursor.fetchone() +whispercount = whispercount[0] + +query_allwhisper = "select * from whisper ORDER BY id DESC LIMIT {0}, {1}".format(pagen * _whiperperpage, _whiperperpage) +cursor.execute(query_allwhisper) + +_whispers = "" +whispersdata = cursor.fetchall() +odd = True +count = 0 +for whisper in whispersdata: + count = count + 1 + _whispers += Whisper.build(whisper[0], whisper[1], whisper[2], odd, _url) + odd = not odd + +if pagen * _whiperperpage + count >= whispercount: + pagenext = pagen + +page = page_templ.format(\ + url = _url, + static = _static, + whispers = _whispers, + page_prev = pageprev, + page_next = pagenext +) + +print(page) + +db.commit() +cursor.close() +db.close() diff --git a/path.py b/path.py new file mode 100644 index 0000000..e0a49b8 --- /dev/null +++ b/path.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +import config +from config import Config + +root = Config.get("route", "url") +imgsDir = Config.get("route", "images") +templDir = Config.get("route", "templates") +disk = Config.get("route", "disk") + +class Path(object): + # 拼接url + def url(path): + return root + '/' + path + + # 图片url + def img(imgFile): + return root + imgsDir + '/' + imgFile + + # 图片硬盘路径 + def imgpath(imgFile): + return disk + imgsDir + '/' + imgFile + + # html模板硬盘路径 + def template(templ): + return templDir + '/' + templ + diff --git a/static/ckeditor/CHANGES.md b/static/ckeditor/CHANGES.md new file mode 100644 index 0000000..ec90893 --- /dev/null +++ b/static/ckeditor/CHANGES.md @@ -0,0 +1,1414 @@ +CKEditor 4 Changelog +==================== + +## CKEditor 4.8 + +**Important Notes:** + +* [#1249](https://github.com/ckeditor/ckeditor-dev/issues/1249): Enabled the [Upload Image](https://ckeditor.com/cke4/addon/uploadimage) plugin by default in standard and full presets. Also, it will no longer log an error in case of missing [`config.imageUploadUrl`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-imageUploadUrl) property. + +New Features: + +* [#933](https://github.com/ckeditor/ckeditor-dev/issues/933): Introduced [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) plugin. +* [#662](https://github.com/ckeditor/ckeditor-dev/issues/662): Introduced image inlining for the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#468](https://github.com/ckeditor/ckeditor-dev/issues/468): [Edge] Introduced support for the Clipboard API. +* [#607](https://github.com/ckeditor/ckeditor-dev/issues/607): Manually inserted Hex color is prefixed with a hash character (`#`) if needed. It ensures a valid Hex color value is used when setting the table cell border or background color with the [Color Dialog](https://ckeditor.com/cke4/addon/colordialog) window. +* [#584](https://github.com/ckeditor/ckeditor-dev/issues/584): [Font size and Family](https://ckeditor.com/cke4/addon/font) and [Format](https://ckeditor.com/cke4/addon/format) drop-downs are not toggleable anymore. Default option to reset styles added. +* [#856](https://github.com/ckeditor/ckeditor-dev/issues/856): Introduced the [`CKEDITOR.tools.keystrokeToArray`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools-method-keystrokeToArray) method. It converts a keystroke into its string representation, returning every key name as a separate array element. +* [#1053](https://github.com/ckeditor/ckeditor-dev/issues/1053): Introduced the [`CKEDITOR.tools.object.merge`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.object-method-merge) method. It allows to merge two objects, returning the new object with all properties from both objects deeply cloned. +* [#1073](https://github.com/ckeditor/ckeditor-dev/issues/1073): Introduced the [`CKEDITOR.tools.array.every`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.array-method-every) method. It invokes a given test function on every array element and returns `true` if all elements pass the test. + +Fixed Issues: + +* [#796](https://github.com/ckeditor/ckeditor-dev/issues/796): Fixed: A list is pasted from OneNote in the reversed order. +* [#834](https://github.com/ckeditor/ckeditor-dev/issues/834): [IE9-11] Fixed: The editor does not save the selected state of radio buttons inserted by the [Form Elements](https://ckeditor.com/cke4/addon/forms) plugin. +* [#704](https://github.com/ckeditor/ckeditor-dev/issues/704): [Edge] Fixed: Using Ctrl/Cmd + Z breaks widget structure. +* [#591](https://github.com/ckeditor/ckeditor-dev/issues/591): Fixed: A column is inserted in a wrong order inside the table if any cell has a vertical split. +* [#787](https://github.com/ckeditor/ckeditor-dev/issues/787): Fixed: Using Cut inside a nested table does not cut the selected content. +* [#842](https://github.com/ckeditor/ckeditor-dev/issues/842): Fixed: List style not restored when toggling list indent level in the [Indent List](https://ckeditor.com/cke4/addon/indentlist) plugin. +* [#711](https://github.com/ckeditor/ckeditor-dev/issues/711): Fixed: Dragging widgets should only work with the left mouse button. +* [#862](https://github.com/ckeditor/ckeditor-dev/issues/862): Fixed: The "Object Styles" group in the [Styles Combo](https://ckeditor.com/cke4/addon/stylescombo) plugin is visible only if the whole element is selected. +* [#994](https://github.com/ckeditor/ckeditor-dev/pull/994): Fixed: Typo in the [`CKEDITOR.focusManager.focus`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.focusManager-method-focus) API documentation. Thanks to [benjy](https://github.com/benjy)! +* [#1014](https://github.com/ckeditor/ckeditor-dev/issues/1014): Fixed: The [Table Tools](https://ckeditor.com/cke4/addon/tabletools) Cell Properties dialog is now [Advanced Content Filter](https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_acf) aware — it is not possible to change the cell width or height if corresponding styles are disabled. +* [#877](https://github.com/ckeditor/ckeditor-dev/issues/877): Fixed: A list with custom bullets with exotic characters crashes the editor when [pasted from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#605](https://github.com/ckeditor/ckeditor-dev/issues/605): Fixed: Inline widgets do not preserve trailing spaces. +* [#1008](https://github.com/ckeditor/ckeditor-dev/issues/1008): Fixed: Shorthand Hex colors from the [`config.colorButton_colors`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-colorButton_colors) option are not correctly highlighted in the [Color Button](https://ckeditor.com/cke4/addon/colorbutton) Text Color or Background Color panel. +* [#1094](https://github.com/ckeditor/ckeditor-dev/issues/1094): Fixed: Widget definition [`upcast`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.widget.definition-property-upcasts) methods are called for every element. +* [#1057](https://github.com/ckeditor/ckeditor-dev/issues/1057): Fixed: The [Notification](https://ckeditor.com/addon/notification) plugin overwrites Web Notifications API due to leakage to the global scope. +* [#1068](https://github.com/ckeditor/ckeditor-dev/issues/1068): Fixed: Upload widget paste listener ignores changes to the [`uploadWidgetDefinition`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition). +* [#921](https://github.com/ckeditor/ckeditor-dev/issues/921): Fixed: [Edge] CKEditor erroneously perceives internal copy and paste as type "external". +* [#1213](https://github.com/ckeditor/ckeditor-dev/issues/1213): Fixed: Multiple images uploaded using [Upload Image](https://ckeditor.com/cke4/addon/uploadimage) plugin are randomly duplicated or mangled. +* [#532](https://github.com/ckeditor/ckeditor-dev/issues/532): Fixed: Removed an outdated user guide link from the [About](https://ckeditor.com/cke4/addon/about) dialog. +* [#1221](https://github.com/ckeditor/ckeditor-dev/issues/1221): Fixed: Invalid CSS loaded by [Balloon Panel](https://ckeditor.com/cke4/addon/balloonpanel) plugin when [`config.skin`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-skin) is loaded using a custom path. +* [#522](https://github.com/ckeditor/ckeditor-dev/issues/522): Fixed: Widget selection is not removed when widget is inside table cell with [Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin enabled. +* [#1027](https://github.com/ckeditor/ckeditor-dev/issues/1027): Fixed: Cannot add multiple images to the table with [Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin in certain situations. +* [#1069](https://github.com/ckeditor/ckeditor-dev/issues/1069): Fixed: Wrong shape processing by [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#995](https://github.com/ckeditor/ckeditor-dev/issues/995): Fixed: Hyperlinked image gets inserted twice by [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#1287](https://github.com/ckeditor/ckeditor-dev/issues/1287): Fixed: [Widget](https://ckeditor.com/cke4/addon/widget) plugin throws exception if included in editor build but not loaded into editor's instance. + +API Changes: + +* [#1097](https://github.com/ckeditor/ckeditor-dev/issues/1097): Widget [`upcast`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.widget.definition-property-upcast) methods are now called in the [widget definition's](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.widget-property-definition) context. +* [#1118](https://github.com/ckeditor/ckeditor-dev/issues/1118): Added the `show` option in the [`balloonPanel.attach`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.ui.balloonPanel-method-attach) method, allowing to attach a hidden [Balloon Panel](https://ckeditor.com/cke4/addon/balloonpanel) instance. +* [#1145](https://github.com/ckeditor/ckeditor-dev/issues/1145): Added the [`skipNotifications`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition-property-skipNotifications) option to the [`CKEDITOR.fileTools.uploadWidgetDefinition`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition), allowing to switch off default notifications displayed by upload widgets. + +Other Changes: + +* [#815](https://github.com/ckeditor/ckeditor-dev/issues/815): Removed Node.js dependency from the CKEditor build script. +* [#1041](https://github.com/ckeditor/ckeditor-dev/pull/1041), [#1131](https://github.com/ckeditor/ckeditor-dev/issues/1131): Updated URLs pointing to [CKSource](https://cksource.com/) and [CKEditor](https://ckeditor.com/) resources after the launch of new websites. + +## CKEditor 4.7.3 + +New Features: + +* [#568](https://github.com/ckeditor/ckeditor-dev/issues/568): Added possibility to adjust nested editables' filters using the [`CKEDITOR.filter.disallowedContent`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.filter-property-disallowedContent) property. + +Fixed Issues: + +* [#554](https://github.com/ckeditor/ckeditor-dev/issues/554): Fixed: [`change`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-event-change) event not fired when typing the first character after pasting into the editor. Thanks to [Daniel Miller](https://github.com/millerdev)! +* [#566](https://github.com/ckeditor/ckeditor-dev/issues/566): Fixed: The CSS `border` shorthand property with zero width (`border: 0px solid #000;`) causes the table to have the border attribute set to 1. +* [#779](https://github.com/ckeditor/ckeditor-dev/issues/779): Fixed: The [Remove Format](https://ckeditor.com/cke4/addon/removeformat) plugin removes elements with language definition inserted by the [Language](https://ckeditor.com/cke4/addon/language) plugin. +* [#423](https://github.com/ckeditor/ckeditor-dev/issues/423): Fixed: The [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin pastes paragraphs into the editor even if [`CKEDITOR.config.enterMode`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-enterMode) is set to `CKEDITOR.ENTER_BR`. +* [#719](https://github.com/ckeditor/ckeditor-dev/issues/719): Fixed: Image inserted using the [Enhanced Image](https://ckeditor.com/cke4/addon/image2) plugin can be resized when the editor is in [read-only mode](https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_readonly). +* [#577](https://github.com/ckeditor/ckeditor-dev/issues/577): Fixed: The "Delete Columns" command provided by the [Table Tools](https://ckeditor.com/cke4/addon/tabletools) plugin throws an error when trying to delete columns. +* [#867](https://github.com/ckeditor/ckeditor-dev/issues/867): Fixed: Typing into a selected table throws an error. +* [#817](https://github.com/ckeditor/ckeditor-dev/issues/817): Fixed: The [Save](https://ckeditor.com/cke4/addon/save) plugin does not work in [Source Mode](https://ckeditor.com/cke4/addon/sourcearea). + +Other Changes: + +* Updated the [WebSpellChecker](https://ckeditor.com/cke4/addon/wsc) plugin: + * [#40](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/40): Fixed: IE10 throws an error when spell checking is started. +* [#800](https://github.com/ckeditor/ckeditor-dev/issues/800): Added the [`CKEDITOR.dom.selection.isCollapsed`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.selection-method-isCollapsed) method which is a simpler way to check if the selection is collapsed. +* [#830](https://github.com/ckeditor/ckeditor-dev/issues/830): Added an option to define which dialog tab should be shown by default when creating [`CKEDITOR.dialogCommand`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dialogCommand). + +## CKEditor 4.7.2 + +New Features: + +* [#455](https://github.com/ckeditor/ckeditor-dev/issues/455): Added [Advanced Content Filter](https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_acf) integration with the [Justify](https://ckeditor.com/cke4/addon/justify) plugin. + +Fixed Issues: + +* [#663](https://github.com/ckeditor/ckeditor-dev/issues/663): [Chrome] Fixed: Clicking the scrollbar throws an `Uncaught TypeError: element.is is not a function` error. +* [#694](https://github.com/ckeditor/ckeditor-dev/pull/694): Refactoring in the [Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin: + * [#520](https://github.com/ckeditor/ckeditor-dev/issues/520): Fixed: Widgets cannot be properly pasted into a table cell. + * [#460](https://github.com/ckeditor/ckeditor-dev/issues/460): Fixed: Editor gone after pasting into an editor within a table. +* [#579](https://github.com/ckeditor/ckeditor-dev/issues/579): Fixed: Internal `cke_table-faked-selection-table` class is visible in the Stylesheet Classes field of the [Table Properties](https://ckeditor.com/cke4/addon/table) dialog. +* [#545](https://github.com/ckeditor/ckeditor-dev/issues/545): [Edge] Fixed: Error thrown when pressing the [Select All](https://ckeditor.com/cke4/addon/selectall) button in [Source Mode](https://ckeditor.com/cke4/addon/sourcearea). +* [#582](https://github.com/ckeditor/ckeditor-dev/issues/582): Fixed: Double slash in the path to stylesheet needed by the [Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin. Thanks to [Marius Dumitru Florea](https://github.com/mflorea)! +* [#491](https://github.com/ckeditor/ckeditor-dev/issues/491): Fixed: Unnecessary dependency on the [Editor Toolbar](https://ckeditor.com/cke4/addon/toolbar) plugin inside the [Notification](https://ckeditor.com/cke4/addon/notification) plugin. +* [#646](https://github.com/ckeditor/ckeditor-dev/issues/646): Fixed: Error thrown into the browser console after opening the [Styles Combo](https://ckeditor.com/cke4/addon/stylescombo) plugin menu in the editor without any selection. +* [#501](https://github.com/ckeditor/ckeditor-dev/issues/501): Fixed: Double click does not open the dialog for modifying anchors inserted via the [Link](https://ckeditor.com/cke4/addon/link) plugin. +* [#9780](https://dev.ckeditor.com/ticket/9780): [IE8-9] Fixed: Clicking inside an empty [read-only](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-property-readOnly) editor throws an error. +* [#16820](https://dev.ckeditor.com/ticket/16820): [IE10] Fixed: Clicking below a single horizontal rule throws an error. +* [#426](https://github.com/ckeditor/ckeditor-dev/issues/426): Fixed: The [`range.cloneContents`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-cloneContents) method selects the whole element when the selection starts at the beginning of that element. +* [#644](https://github.com/ckeditor/ckeditor-dev/issues/644): Fixed: The [`range.extractContents`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-extractContents) method returns an incorrect result when multiple nodes are selected. +* [#684](https://github.com/ckeditor/ckeditor-dev/issues/684): Fixed: The [`elementPath.contains`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.elementPath-method-contains) method incorrectly excludes the last element instead of root when the `fromTop` parameter is set to `true`. + +Other Changes: + +* Updated the [SCAYT](https://ckeditor.com/cke4/addon/scayt) (Spell Check As You Type) plugin: + * [#148](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/148): Fixed: SCAYT leaves underlined word after the CKEditor Replace dialog corrects it. +* [#751](https://github.com/ckeditor/ckeditor-dev/issues/751): Added the [`CKEDITOR.dom.nodeList.toArray`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.nodeList-method-toArray) method which returns an array representation of a [node list](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.nodeList). + +## CKEditor 4.7.1 + +New Features: + +* Added a new Mexican Spanish localization. Thanks to [David Alexandro Rodriguez](https://www.transifex.com/user/profile/darsco16/)! +* [#413](https://github.com/ckeditor/ckeditor-dev/issues/413): Added Paste as Plain Text keyboard shortcut to the [Accessibility Help](https://ckeditor.com/cke4/addon/a11yhelp) instructions. + +Fixed Issues: + +* [#515](https://github.com/ckeditor/ckeditor-dev/issues/515): [Chrome] Fixed: Mouse actions on CKEditor scrollbar throw an exception when the [Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin is loaded. +* [#493](https://github.com/ckeditor/ckeditor-dev/issues/493): Fixed: Selection started from a nested table causes an error in the browser while scrolling down. +* [#415](https://github.com/ckeditor/ckeditor-dev/issues/415): [Firefox] Fixed: Enter key breaks the table structure when pressed in a table selection. +* [#457](https://github.com/ckeditor/ckeditor-dev/issues/457): Fixed: Error thrown when deleting content from the editor with no selection. +* [#478](https://github.com/ckeditor/ckeditor-dev/issues/478): [Chrome] Fixed: Error thrown by the [Enter Key](https://ckeditor.com/cke4/addon/enterkey) plugin when pressing Enter with no selection. +* [#424](https://github.com/ckeditor/ckeditor-dev/issues/424): Fixed: Error thrown by [Tab Key Handling](https://ckeditor.com/cke4/addon/tab) and [Indent List](https://ckeditor.com/cke4/addon/indentlist) plugins when pressing Tab with no selection in inline editor. +* [#476](https://github.com/ckeditor/ckeditor-dev/issues/476): Fixed: Anchors inserted with the [Link](https://ckeditor.com/cke4/addon/link) plugin on collapsed selection cannot be edited. +* [#417](https://github.com/ckeditor/ckeditor-dev/issues/417): Fixed: The [Table Resize](https://ckeditor.com/cke4/addon/tableresize) plugin throws an error when used with a table with only header or footer rows. +* [#523](https://github.com/ckeditor/ckeditor-dev/issues/523): Fixed: The [`editor.getCommandKeystroke`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-method-getCommandKeystroke) method does not obtain the correct keystroke. +* [#534](https://github.com/ckeditor/ckeditor-dev/issues/534): [IE] Fixed: [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) does not work in Quirks Mode. +* [#450](https://github.com/ckeditor/ckeditor-dev/issues/450): Fixed: [`CKEDITOR.filter`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.filter) incorrectly transforms the `margin` CSS property. + +## CKEditor 4.7 + +**Important Notes:** + +* [#13793](https://dev.ckeditor.com/ticket/13793): The [`embed_provider`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-embed_provider) configuration option for the [Media Embed](https://ckeditor.com/cke4/addon/embed) and [Semantic Media Embed](https://ckeditor.com/cke4/addon/embedsemantic) plugins is no longer preset by default. +* The [UI Color](https://ckeditor.com/cke4/addon/uicolor) plugin now uses a custom color picker instead of the `YUI 2.7.0` library which has some known vulnerabilities (it's a security precaution, there was no security issue in CKEditor due to the way it was used). + +New Features: + +* [#16755](https://dev.ckeditor.com/ticket/16755): Added the [Table Selection](https://ckeditor.com/cke4/addon/tableselection) plugin that lets you select and manipulate an arbitrary rectangular table fragment (a few cells, a row or a column). +* [#16961](https://dev.ckeditor.com/ticket/16961): Added support for pasting from Microsoft Excel. +* [#13381](https://dev.ckeditor.com/ticket/13381): Dynamic code evaluation call in [`CKEDITOR.template`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.template) removed. CKEditor can now be used without the `unsafe-eval` Content Security Policy. Thanks to [Caridy Patiño](http://caridy.name)! +* [#16971](https://dev.ckeditor.com/ticket/16971): Added support for color in the `background` property containing also other styles for table cells in the [Table Tools](https://ckeditor.com/cke4/addon/tabletools) plugin. +* [#16847](https://dev.ckeditor.com/ticket/16847): Added support for parsing and inlining any formatting created using the Microsoft Word style system to the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#16818](https://dev.ckeditor.com/ticket/16818): Added table cell height parsing in the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#16850](https://dev.ckeditor.com/ticket/16850): Added a new [`config.enableContextMenu`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-enableContextMenu) configuration option for enabling and disabling the [context menu](https://ckeditor.com/cke4/addon/contextmenu). +* [#16937](https://dev.ckeditor.com/ticket/16937): The `command` parameter in [CKEDITOR.editor.getCommandKeystroke](http://docs.ckeditor.dev/#!/api/CKEDITOR.editor-method-getCommandKeystroke) now also accepts a command name as an argument. +* [#17010](https://dev.ckeditor.com/ticket/17010): The [`CKEDITOR.dom.range.shrink`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-shrink) method now allows for skipping bogus `
` elements. + +Fixed Issues: + +* [#16935](https://dev.ckeditor.com/ticket/16935): [Chrome] Fixed: Blurring the editor in [Source Mode](https://ckeditor.com/cke4/addon/sourcearea) throws an error. +* [#16825](https://dev.ckeditor.com/ticket/16825): [Chrome] Fixed: Error thrown when destroying a focused inline editor. +* [#16857](https://dev.ckeditor.com/ticket/16857): Fixed: Ctrl+Shift+V blocked by [Copy Formatting](https://ckeditor.com/cke4/addon/copyformatting). +* [#16845](https://dev.ckeditor.com/ticket/16845): [IE] Fixed: Cursor jumps to the top of the scrolled editor after focusing it when the [Copy Formatting](https://ckeditor.com/cke4/addon/copyformatting) plugin is enabled. +* [#16786](https://dev.ckeditor.com/ticket/16786): Fixed: Added missing translations for the [Copy Formatting](https://ckeditor.com/cke4/addon/copyformatting) plugin. +* [#14714](https://dev.ckeditor.com/ticket/14714): [WebKit/Blink] Fixed: Exception thrown on refocusing a blurred inline editor. +* [#16913](https://dev.ckeditor.com/ticket/16913): [Firefox, IE] Fixed: [Paste as Plain Text](https://ckeditor.com/cke4/addon/pastetext) keystroke does not work. +* [#16968](https://dev.ckeditor.com/ticket/16968): Fixed: [Safari] [Paste as Plain Text](https://ckeditor.com/cke4/addon/pastetext) is not handled by the editor. +* [#16912](https://dev.ckeditor.com/ticket/16912): Fixed: Exception thrown when a single image is pasted using [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#16821](https://dev.ckeditor.com/ticket/16821): Fixed: Extraneous `` elements with `height` style stacked when [pasting from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#16866](https://dev.ckeditor.com/ticket/16866): [IE, Edge] Fixed: Whitespaces not preserved when [pasting from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#16860](https://dev.ckeditor.com/ticket/16860): Fixed: Paragraphs which only look like lists incorrectly transformed into them when [pasting from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#16817](https://dev.ckeditor.com/ticket/16817): Fixed: When [pasting from Word](https://ckeditor.com/cke4/addon/pastefromword), paragraphs are transformed into lists with some corrupted data. +* [#16833](https://dev.ckeditor.com/ticket/16833): [IE11] Fixed: Malformed list with headers [pasted from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#16826](https://dev.ckeditor.com/ticket/16826): [IE] Fixed: Superfluous paragraphs within lists [pasted from Word](https://ckeditor.com/cke4/addon/pastefromword). +* [#12465](https://dev.ckeditor.com/ticket/12465): Fixed: Cannot change the state of checkboxes or radio buttons if the properties dialog was invoked with a double-click. +* [#13062](https://dev.ckeditor.com/ticket/13062): Fixed: Impossible to unlink when the caret is at the edge of the link. +* [#13585](https://dev.ckeditor.com/ticket/13585): Fixed: Error when wrapping two adjacent `
` elements with a `
`. +* [#16811](https://dev.ckeditor.com/ticket/16811): Fixed: Table alignment is not preserved by the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#16810](https://dev.ckeditor.com/ticket/16810): Fixed: Vertical align in tables is not supported by the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin. +* [#11956](https://dev.ckeditor.com/ticket/11956): [Blink, IE] Fixed: [Link](https://ckeditor.com/cke4/addon/link) dialog does not open on a double click on the second word of the link with a background color or other styles. +* [#10472](https://dev.ckeditor.com/ticket/10472): Fixed: Unable to use [Table Resize](https://ckeditor.com/cke4/addon/tableresize) on table header and footer. +* [#14762](https://dev.ckeditor.com/ticket/14762): Fixed: Hovering over an empty table (without rows or cells) throws an error when the [Table Resize](https://ckeditor.com/cke4/addon/tableresize) plugin is active. +* [#16777](https://dev.ckeditor.com/ticket/16777): [Edge] Fixed: The [Clipboard](https://ckeditor.com/cke4/addon/clipboard) plugin does not allow to drop widgets into the editor. +* [#14894](https://dev.ckeditor.com/ticket/14894): [Chrome] Fixed: The editor scrolls to the top after focusing or when a dialog is opened. +* [#14769](https://dev.ckeditor.com/ticket/14769): Fixed: URLs with '-' in host are not detected by the [Auto Link](https://ckeditor.com/cke4/addon/autolink) plugin. +* [#16804](https://dev.ckeditor.com/ticket/16804): Fixed: Focus is not on the first menu item when the user opens a context menu or a drop-down list from the editor toolbar. +* [#14407](https://dev.ckeditor.com/ticket/14407): [IE] Fixed: Non-editable widgets can be edited. +* [#16927](https://dev.ckeditor.com/ticket/16927): Fixed: An error thrown if a bundle containing the [Color Button](https://ckeditor.com/cke4/addon/colorbutton) plugin is run in ES5 strict mode. Thanks to [Igor Rubinovich](https://github.com/IgorRubinovich)! +* [#16920](https://dev.ckeditor.com/ticket/16920): Fixed: Several plugins not using the [Dialog](https://ckeditor.com/cke4/addon/dialog) plugin as a direct dependency. +* [PR#336](https://github.com/ckeditor/ckeditor-dev/pull/336): Fixed: Typo in [`CKEDITOR.getCss`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR-method-getCss) API documentation. Thanks to [knusperpixel](https://github.com/knusperpixel)! +* [#17027](https://dev.ckeditor.com/ticket/17027): Fixed: Command event data should be initialized as an empty object. +* Fixed the behavior of HTML parser when parsing `src`/`srcdoc` attributes of the `