├── .settings ├── org.eclipse.wst.jsdt.ui.superType.name ├── org.eclipse.wst.jsdt.ui.superType.container ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.jdt.core.prefs ├── .jsdtscope └── org.eclipse.wst.common.component ├── WebRoot ├── ueditor-min-1.4.3 │ ├── themes │ │ ├── iframe.css │ │ └── default │ │ │ ├── images │ │ │ ├── lock.gif │ │ │ ├── word.gif │ │ │ ├── anchor.gif │ │ │ ├── arrow.png │ │ │ ├── charts.png │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── scale.png │ │ │ ├── spacer.gif │ │ │ ├── upload.png │ │ │ ├── arrow_up.png │ │ │ ├── button-bg.gif │ │ │ ├── cursor_h.gif │ │ │ ├── cursor_h.png │ │ │ ├── cursor_v.gif │ │ │ ├── cursor_v.png │ │ │ ├── filescan.png │ │ │ ├── icons-all.gif │ │ │ ├── loaderror.png │ │ │ ├── loading.gif │ │ │ ├── pagebreak.gif │ │ │ ├── sortable.png │ │ │ ├── videologo.gif │ │ │ ├── wordpaste.png │ │ │ ├── arrow_down.png │ │ │ ├── highlighted.gif │ │ │ ├── sparator_v.png │ │ │ ├── toolbar_bg.png │ │ │ ├── cancelbutton.gif │ │ │ ├── unhighlighted.gif │ │ │ ├── dialog-title-bg.png │ │ │ ├── neweditor-tab-bg.png │ │ │ ├── table-cell-align.png │ │ │ └── tangram-colorpicker.png │ │ │ └── dialogbase.css │ ├── dialogs │ │ ├── table │ │ │ ├── dragicon.png │ │ │ ├── edittip.html │ │ │ ├── edittable.css │ │ │ ├── edittd.html │ │ │ ├── edittable.html │ │ │ └── edittable.js │ │ ├── video │ │ │ ├── images │ │ │ │ ├── bg.png │ │ │ │ ├── icons.gif │ │ │ │ ├── icons.png │ │ │ │ ├── image.png │ │ │ │ ├── success.gif │ │ │ │ ├── success.png │ │ │ │ ├── file-icons.gif │ │ │ │ ├── file-icons.png │ │ │ │ ├── left_focus.jpg │ │ │ │ ├── none_focus.jpg │ │ │ │ ├── progress.png │ │ │ │ ├── center_focus.jpg │ │ │ │ └── right_focus.jpg │ │ │ ├── video.html │ │ │ └── video.css │ │ ├── emotion │ │ │ ├── images │ │ │ │ ├── 0.gif │ │ │ │ ├── bface.gif │ │ │ │ ├── cface.gif │ │ │ │ ├── fface.gif │ │ │ │ ├── tface.gif │ │ │ │ ├── wface.gif │ │ │ │ ├── yface.gif │ │ │ │ ├── jxface2.gif │ │ │ │ └── neweditor-tab-bg.png │ │ │ ├── emotion.css │ │ │ ├── emotion.html │ │ │ └── emotion.js │ │ ├── attachment │ │ │ ├── images │ │ │ │ ├── bg.png │ │ │ │ ├── icons.gif │ │ │ │ ├── icons.png │ │ │ │ ├── image.png │ │ │ │ ├── success.gif │ │ │ │ ├── success.png │ │ │ │ ├── alignicon.gif │ │ │ │ ├── alignicon.png │ │ │ │ ├── file-icons.gif │ │ │ │ ├── file-icons.png │ │ │ │ └── progress.png │ │ │ ├── fileTypeImages │ │ │ │ ├── icon_mv.gif │ │ │ │ ├── icon_chm.gif │ │ │ │ ├── icon_doc.gif │ │ │ │ ├── icon_exe.gif │ │ │ │ ├── icon_jpg.gif │ │ │ │ ├── icon_mp3.gif │ │ │ │ ├── icon_pdf.gif │ │ │ │ ├── icon_ppt.gif │ │ │ │ ├── icon_psd.gif │ │ │ │ ├── icon_rar.gif │ │ │ │ ├── icon_txt.gif │ │ │ │ ├── icon_xls.gif │ │ │ │ └── icon_default.png │ │ │ ├── attachment.html │ │ │ └── attachment.css │ │ ├── spechars │ │ │ ├── spechars.html │ │ │ └── spechars.js │ │ ├── music │ │ │ ├── music.html │ │ │ ├── music.css │ │ │ └── music.js │ │ ├── preview │ │ │ └── preview.html │ │ ├── internal.js │ │ └── link │ │ │ └── link.html │ ├── lang │ │ └── zh-cn │ │ │ └── images │ │ │ ├── copy.png │ │ │ ├── music.png │ │ │ ├── upload.png │ │ │ └── localimage.png │ ├── third-party │ │ ├── video-js │ │ │ ├── font │ │ │ │ ├── vjs.eot │ │ │ │ ├── vjs.ttf │ │ │ │ ├── vjs.woff │ │ │ │ └── vjs.svg │ │ │ ├── video-js.swf │ │ │ └── video-js.min.css │ │ ├── webuploader │ │ │ ├── Uploader.swf │ │ │ └── webuploader.css │ │ ├── codemirror │ │ │ └── codemirror.css │ │ └── SyntaxHighlighter │ │ │ └── shCoreDefault.css │ ├── jsp │ │ ├── controller.jsp │ │ └── config.json │ ├── index.html │ ├── ueditor.config.bak.js │ ├── ueditor.config.js │ └── ueditor.parse.min.js ├── META-INF │ └── MANIFEST.MF ├── favicon.ico └── WEB-INF │ ├── lib │ ├── json.jar │ ├── gson-2.3.1.jar │ ├── commons-io-2.4.jar │ ├── jfinal-1.9-bin.jar │ ├── commons-codec-1.9.jar │ ├── freemarker-2.3.20.jar │ ├── okio-1.3.0-SNAPSHOT.jar │ ├── okhttp-2.3.0-SNAPSHOT.jar │ ├── qiniu-java-sdk-7.0.4.jar │ ├── commons-fileupload-1.3.1.jar │ └── ueditor-1.1.1-for-qiniu-new.jar │ ├── classes │ ├── com │ │ └── uikoo9 │ │ │ ├── MyConfig.class │ │ │ └── index │ │ │ └── IndexController.class │ └── config.properties │ ├── web.xml │ └── view │ └── index.html ├── src ├── config.properties └── com │ └── uikoo9 │ ├── index │ └── IndexController.java │ └── MyConfig.java ├── .mymetadata ├── .classpath ├── LICENSE ├── .project └── README.md /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/iframe.css: -------------------------------------------------------------------------------- 1 | /*可以在这里添加你自己的css*/ 2 | -------------------------------------------------------------------------------- /WebRoot/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /WebRoot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/favicon.ico -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/json.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/json.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/gson-2.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/gson-2.3.1.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-io-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/commons-io-2.4.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jfinal-1.9-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/jfinal-1.9-bin.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-codec-1.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/commons-codec-1.9.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/freemarker-2.3.20.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/freemarker-2.3.20.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/okio-1.3.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/okio-1.3.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/okhttp-2.3.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/okhttp-2.3.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/qiniu-java-sdk-7.0.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/qiniu-java-sdk-7.0.4.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-fileupload-1.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/commons-fileupload-1.3.1.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/com/uikoo9/MyConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/classes/com/uikoo9/MyConfig.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/ueditor-1.1.1-for-qiniu-new.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/lib/ueditor-1.1.1-for-qiniu-new.jar -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/table/dragicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/table/dragicon.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/bg.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/copy.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/music.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/0.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/icons.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/icons.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/image.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/upload.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/lock.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/word.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/bg.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/bface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/bface.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/cface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/cface.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/fface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/fface.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/tface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/tface.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/wface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/wface.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/yface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/yface.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/success.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/success.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/lang/zh-cn/images/localimage.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/anchor.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/arrow.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/charts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/charts.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/icons.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/icons.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/scale.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/spacer.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/upload.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/icons.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/icons.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/image.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/jxface2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/jxface2.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/file-icons.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/file-icons.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/left_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/left_focus.jpg -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/none_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/none_focus.jpg -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/progress.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/arrow_up.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/button-bg.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_h.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_h.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_v.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/cursor_v.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/filescan.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/icons-all.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/loaderror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/loaderror.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/loading.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/pagebreak.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/sortable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/sortable.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/videologo.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/wordpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/wordpaste.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.eot -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.ttf -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.woff -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/video-js/video-js.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/third-party/video-js/video-js.swf -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/com/uikoo9/index/IndexController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/WEB-INF/classes/com/uikoo9/index/IndexController.class -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/success.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/success.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/center_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/center_focus.jpg -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/images/right_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/video/images/right_focus.jpg -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/arrow_down.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/highlighted.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/sparator_v.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/toolbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/toolbar_bg.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/webuploader/Uploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/third-party/webuploader/Uploader.swf -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/alignicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/alignicon.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/alignicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/alignicon.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/file-icons.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/file-icons.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/images/progress.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/cancelbutton.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/unhighlighted.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/dialog-title-bg.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/table-cell-align.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/table-cell-align.png -------------------------------------------------------------------------------- /src/config.properties: -------------------------------------------------------------------------------- 1 | # ueditor upload to qiniu for qiniu,local for local 2 | jfinal.ueditor.upload_to=qiniu 3 | 4 | # qiniu properties 5 | qiniu.ak=ak 6 | qiniu.sk=sk 7 | qiniu.bucket=name -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_mv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_mv.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/emotion/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/images/tangram-colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/themes/default/images/tangram-colorpicker.png -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_chm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_chm.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_doc.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_exe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_exe.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_jpg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_jpg.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_mp3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_mp3.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_pdf.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_ppt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_ppt.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_psd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_psd.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_rar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_rar.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_txt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_txt.gif -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_xls.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_xls.gif -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/config.properties: -------------------------------------------------------------------------------- 1 | # ueditor upload to qiniu for qiniu,local for local 2 | jfinal.ueditor.upload_to=qiniu 3 | 4 | # qiniu properties 5 | qiniu.ak=ak 6 | qiniu.sk=sk 7 | qiniu.bucket=name -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uikoo9/ueditor-java-qiniu/HEAD/WebRoot/ueditor-min-1.4.3/dialogs/attachment/fileTypeImages/icon_default.png -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.mymetadata: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.compliance=1.6 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.6 8 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/jsp/controller.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | import="com.baidu.ueditor.ActionEnter" 3 | pageEncoding="UTF-8"%> 4 | <%@ page trimDirectiveWhitespaces="true" %> 5 | <% 6 | 7 | request.setCharacterEncoding( "utf-8" ); 8 | response.setHeader("Content-Type" , "text/html"); 9 | 10 | String rootPath = application.getRealPath( "/" ); 11 | 12 | out.write( new ActionEnter( request, rootPath ).exec() ); 13 | 14 | %> -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/com/uikoo9/index/IndexController.java: -------------------------------------------------------------------------------- 1 | package com.uikoo9.index; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | 5 | import com.jfinal.core.Controller; 6 | 7 | public class IndexController extends Controller { 8 | public void index() { 9 | setAttr("base", getHttpPath(getRequest())); 10 | render("/WEB-INF/view/index.html"); 11 | } 12 | 13 | private String getHttpPath(HttpServletRequest request){ 14 | StringBuilder path = new StringBuilder(); 15 | 16 | path.append(request.getScheme() + "://"); 17 | path.append(request.getServerName() + ":"); 18 | path.append(request.getServerPort()); 19 | path.append(request.getContextPath()); 20 | 21 | return path.toString(); 22 | } 23 | } -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/webuploader/webuploader.css: -------------------------------------------------------------------------------- 1 | .webuploader-container { 2 | position: relative; 3 | } 4 | .webuploader-element-invisible { 5 | position: absolute !important; 6 | clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 7 | clip: rect(1px,1px,1px,1px); 8 | } 9 | .webuploader-pick { 10 | position: relative; 11 | display: inline-block; 12 | cursor: pointer; 13 | background: #00b7ee; 14 | padding: 10px 15px; 15 | color: #fff; 16 | text-align: center; 17 | border-radius: 3px; 18 | overflow: hidden; 19 | } 20 | .webuploader-pick-hover { 21 | background: #00a2d4; 22 | } 23 | 24 | .webuploader-pick-disable { 25 | opacity: 0.6; 26 | pointer-events:none; 27 | } 28 | 29 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | jfinal 8 | com.jfinal.core.JFinalFilter 9 | 10 | configClass 11 | com.uikoo9.MyConfig 12 | 13 | 14 | 15 | 16 | jfinal 17 | /* 18 | 19 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/spechars/spechars.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 |
17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /src/com/uikoo9/MyConfig.java: -------------------------------------------------------------------------------- 1 | package com.uikoo9; 2 | 3 | import com.baidu.ueditor.util.QQiNiuUtil; 4 | import com.jfinal.config.Constants; 5 | import com.jfinal.config.Handlers; 6 | import com.jfinal.config.Interceptors; 7 | import com.jfinal.config.JFinalConfig; 8 | import com.jfinal.config.Plugins; 9 | import com.jfinal.config.Routes; 10 | import com.uikoo9.index.IndexController; 11 | 12 | /** 13 | * API引导式配置 14 | */ 15 | public class MyConfig extends JFinalConfig { 16 | 17 | /** 18 | * 配置常量 19 | */ 20 | public void configConstant(Constants me) { 21 | me.setDevMode(true); 22 | } 23 | 24 | /** 25 | * 配置路由 26 | */ 27 | public void configRoute(Routes me) { 28 | me.add("/", IndexController.class); 29 | } 30 | 31 | public void configPlugin(Plugins me) {} 32 | public void configInterceptor(Interceptors me) {} 33 | public void configHandler(Handlers me) {} 34 | 35 | @Override 36 | public void afterJFinalStart() { 37 | QQiNiuUtil.genUptoken(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/table/edittip.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 表格删除提示 5 | 6 | 17 | 18 | 19 |
20 |
21 | 22 |
23 |
24 | 25 |
26 |
27 | 32 | 33 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/music/music.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 插入音乐 6 | 7 | 8 | 9 | 10 |
11 | 15 |
16 | 17 |
18 |
19 |
20 |
21 | 22 | 31 | 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/preview/preview.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 40 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/table/edittable.css: -------------------------------------------------------------------------------- 1 | body{ 2 | overflow: hidden; 3 | width: 540px; 4 | } 5 | .wrapper { 6 | margin: 10px auto 0; 7 | font-size: 12px; 8 | overflow: hidden; 9 | width: 520px; 10 | height: 315px; 11 | } 12 | 13 | .clear { 14 | clear: both; 15 | } 16 | 17 | .wrapper .left { 18 | float: left; 19 | margin-left: 10px;; 20 | } 21 | 22 | .wrapper .right { 23 | float: right; 24 | border-left: 2px dotted #EDEDED; 25 | padding-left: 15px; 26 | } 27 | 28 | .section { 29 | margin-bottom: 15px; 30 | width: 240px; 31 | overflow: hidden; 32 | } 33 | 34 | .section h3 { 35 | font-weight: bold; 36 | padding: 5px 0; 37 | margin-bottom: 10px; 38 | border-bottom: 1px solid #EDEDED; 39 | font-size: 12px; 40 | } 41 | 42 | .section ul { 43 | list-style: none; 44 | overflow: hidden; 45 | clear: both; 46 | 47 | } 48 | 49 | .section li { 50 | float: left; 51 | width: 120px;; 52 | } 53 | 54 | .section .tone { 55 | width: 80px;; 56 | } 57 | 58 | .section .preview { 59 | width: 220px; 60 | } 61 | 62 | .section .preview table { 63 | text-align: center; 64 | vertical-align: middle; 65 | color: #666; 66 | } 67 | 68 | .section .preview caption { 69 | font-weight: bold; 70 | } 71 | 72 | .section .preview td { 73 | border-width: 1px; 74 | border-style: solid; 75 | height: 22px; 76 | } 77 | 78 | .section .preview th { 79 | border-style: solid; 80 | border-color: #DDD; 81 | border-width: 2px 1px 1px 1px; 82 | height: 22px; 83 | background-color: #F7F7F7; 84 | } -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ueditor-java-qiniu 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.jsdt.core.javascriptValidator 15 | 16 | 17 | 18 | 19 | com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.jdt.core.javabuilder 25 | 26 | 27 | 28 | 29 | com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator 30 | 31 | 32 | 33 | 34 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator 35 | 36 | 37 | 38 | 39 | org.eclipse.wst.validation.validationbuilder 40 | 41 | 42 | 43 | 44 | 45 | org.eclipse.jem.workbench.JavaEMFNature 46 | com.genuitec.eclipse.j2eedt.core.webnature 47 | org.eclipse.jdt.core.javanature 48 | org.eclipse.wst.jsdt.core.jsNature 49 | org.eclipse.wst.common.project.facet.core.nature 50 | org.eclipse.wst.common.modulecore.ModuleCoreNature 51 | 52 | 53 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/music/music.css: -------------------------------------------------------------------------------- 1 | .wrapper{margin: 5px 10px;} 2 | 3 | .searchBar{height:30px;padding:7px 0 3px;text-align:center;} 4 | .searchBtn{font-size:13px;height:24px;} 5 | 6 | .resultBar{width:460px;margin:5px auto;border: 1px solid #CCC;border-radius: 5px;box-shadow: 2px 2px 5px #D3D6DA;overflow: hidden;} 7 | 8 | .listPanel{overflow: hidden;} 9 | .panelon{display:block;} 10 | .paneloff{display:none} 11 | 12 | .page{width:220px;margin:20px auto;overflow: hidden;} 13 | .pageon{float:right;width:24px;line-height:24px;height:24px;margin-right: 5px;background: none;border: none;color: #000;font-weight: bold;text-align:center} 14 | .pageoff{float:right;width:24px;line-height:24px;height:24px;cursor:pointer;background-color: #fff; 15 | border: 1px solid #E7ECF0;color: #2D64B3;margin-right: 5px;text-decoration: none;text-align:center;} 16 | 17 | .m-box{width:460px;} 18 | .m-m{float: left;line-height: 20px;height: 20px;} 19 | .m-h{height:24px;line-height:24px;padding-left: 46px;background-color:#FAFAFA;border-bottom: 1px solid #DAD8D8;font-weight: bold;font-size: 12px;color: #333;} 20 | .m-l{float:left;width:40px; } 21 | .m-t{float:left;width:140px;} 22 | .m-s{float:left;width:110px;} 23 | .m-z{float:left;width:100px;} 24 | .m-try-t{float: left;width: 60px;;} 25 | 26 | .m-try{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/try_music.gif') no-repeat ;} 27 | .m-trying{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/stop_music.gif') no-repeat ;} 28 | 29 | .loading{width:95px;height:7px;font-size:7px;margin:60px auto;background:url(http://static.tieba.baidu.com/tb/editor/images/loading.gif) no-repeat} 30 | .empty{width:300px;height:40px;padding:2px;margin:50px auto;line-height:40px; color:#006699;text-align:center;} -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/table/edittd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 |
19 | 20 | 21 |
22 | 60 | 61 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/emotion.css: -------------------------------------------------------------------------------- 1 | .jd img{ 2 | background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top; 3 | cursor:pointer;width:35px;height:35px;display:block; 4 | } 5 | .pp img{ 6 | background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top; 7 | cursor:pointer;width:25px;height:25px;display:block; 8 | } 9 | .ldw img{ 10 | background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top; 11 | cursor:pointer;width:35px;height:35px;display:block; 12 | } 13 | .tsj img{ 14 | background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top; 15 | cursor:pointer;width:35px;height:35px;display:block; 16 | } 17 | .cat img{ 18 | background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top; 19 | cursor:pointer;width:35px;height:35px;display:block; 20 | } 21 | .bb img{ 22 | background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top; 23 | cursor:pointer;width:35px;height:35px;display:block; 24 | } 25 | .youa img{ 26 | background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top; 27 | cursor:pointer;width:35px;height:35px;display:block; 28 | } 29 | 30 | .smileytable td {height: 37px;} 31 | #tabPanel{margin-left:5px;overflow: hidden;} 32 | #tabContent {float:left;background:#FFFFFF;} 33 | #tabContent div{display: none;width:480px;overflow:hidden;} 34 | #tabIconReview.show{left:17px;display:block;} 35 | .menuFocus{background:#ACCD3C;} 36 | .menuDefault{background:#FFFFFF;} 37 | #tabIconReview{position:absolute;left:406px;left:398px \9;top:41px;z-index:65533;width:90px;height:76px;} 38 | img.review{width:90px;height:76px;border:2px solid #9cb945;background:#FFFFFF;background-position:center;background-repeat:no-repeat;} 39 | 40 | .wrapper .tabbody{position:relative;float:left;clear:both;padding:10px;width: 95%;} 41 | .tabbody table{width: 100%;} 42 | .tabbody td{border:1px solid #BAC498;} 43 | .tabbody td span{display: block;zoom:1;padding:0 4px;} -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/themes/default/dialogbase.css: -------------------------------------------------------------------------------- 1 | /*弹出对话框页面样式组件 2 | */ 3 | 4 | /*reset 5 | */ 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, font, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td { 15 | margin: 0; 16 | padding: 0; 17 | outline: 0; 18 | font-size: 100%; 19 | } 20 | 21 | body { 22 | line-height: 1; 23 | } 24 | 25 | ol, ul { 26 | list-style: none; 27 | } 28 | 29 | blockquote, q { 30 | quotes: none; 31 | } 32 | 33 | ins { 34 | text-decoration: none; 35 | } 36 | 37 | del { 38 | text-decoration: line-through; 39 | } 40 | 41 | table { 42 | border-collapse: collapse; 43 | border-spacing: 0; 44 | } 45 | 46 | /*module 47 | */ 48 | body { 49 | background-color: #fff; 50 | font: 12px/1.5 sans-serif, "宋体", "Arial Narrow", HELVETICA; 51 | color: #646464; 52 | } 53 | 54 | /*tab*/ 55 | .tabhead { 56 | position: relative; 57 | z-index: 10; 58 | } 59 | 60 | .tabhead span { 61 | display: inline-block; 62 | padding: 0 5px; 63 | height: 30px; 64 | border: 1px solid #ccc; 65 | background: url("images/dialog-title-bg.png") repeat-x; 66 | text-align: center; 67 | line-height: 30px; 68 | cursor: pointer; 69 | *margin-right: 5px; 70 | } 71 | 72 | .tabhead span.focus { 73 | height: 31px; 74 | border-bottom: none; 75 | background: #fff; 76 | } 77 | 78 | .tabbody { 79 | position: relative; 80 | top: -1px; 81 | margin: 0 auto; 82 | border: 1px solid #ccc; 83 | } 84 | 85 | /*button*/ 86 | a.button { 87 | display: block; 88 | text-align: center; 89 | line-height: 24px; 90 | text-decoration: none; 91 | height: 24px; 92 | width: 95px; 93 | border: 0; 94 | color: #838383; 95 | background: url(../../themes/default/images/icons-all.gif) no-repeat; 96 | } 97 | 98 | a.button:hover { 99 | background-position: 0 -30px; 100 | } -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/attachment/attachment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ueditor图片对话框 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 |
26 | 27 |
28 |
29 |
30 |
31 | 0% 32 | 33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
    45 |
  • 46 |
47 |
48 |
49 | 50 | 51 |
52 |
53 |
54 | 55 |
56 |
57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/table/edittable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 |
11 |
12 |

13 |
    14 |
  • 15 | 16 |
  • 17 |
  • 18 | 19 |
  • 20 |
21 |
    22 |
  • 23 | 24 |
  • 25 |
  • 26 | 27 |
  • 28 |
29 |
30 |
31 |
32 |

33 |
    34 |
  • 35 | 36 |
  • 37 |
  • 38 | 39 |
  • 40 |
41 |
42 |
43 |
44 |

45 |
    46 |
  • 47 | 48 | 49 |
  • 50 |
51 |
52 |
53 |
54 |
55 |
56 |

57 |
58 |
59 |
60 |
61 |
62 | 63 | 64 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/internal.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | var parent = window.parent; 3 | //dialog对象 4 | dialog = parent.$EDITORUI[window.frameElement.id.replace( /_iframe$/, '' )]; 5 | //当前打开dialog的编辑器实例 6 | editor = dialog.editor; 7 | 8 | UE = parent.UE; 9 | 10 | domUtils = UE.dom.domUtils; 11 | 12 | utils = UE.utils; 13 | 14 | browser = UE.browser; 15 | 16 | ajax = UE.ajax; 17 | 18 | $G = function ( id ) { 19 | return document.getElementById( id ) 20 | }; 21 | //focus元素 22 | $focus = function ( node ) { 23 | setTimeout( function () { 24 | if ( browser.ie ) { 25 | var r = node.createTextRange(); 26 | r.collapse( false ); 27 | r.select(); 28 | } else { 29 | node.focus() 30 | } 31 | }, 0 ) 32 | }; 33 | utils.loadFile(document,{ 34 | href:editor.options.themePath + editor.options.theme + "/dialogbase.css?cache="+Math.random(), 35 | tag:"link", 36 | type:"text/css", 37 | rel:"stylesheet" 38 | }); 39 | lang = editor.getLang(dialog.className.split( "-" )[2]); 40 | if(lang){ 41 | domUtils.on(window,'load',function () { 42 | 43 | var langImgPath = editor.options.langPath + editor.options.lang + "/images/"; 44 | //针对静态资源 45 | for ( var i in lang["static"] ) { 46 | var dom = $G( i ); 47 | if(!dom) continue; 48 | var tagName = dom.tagName, 49 | content = lang["static"][i]; 50 | if(content.src){ 51 | //clone 52 | content = utils.extend({},content,false); 53 | content.src = langImgPath + content.src; 54 | } 55 | if(content.style){ 56 | content = utils.extend({},content,false); 57 | content.style = content.style.replace(/url\s*\(/g,"url(" + langImgPath) 58 | } 59 | switch ( tagName.toLowerCase() ) { 60 | case "var": 61 | dom.parentNode.replaceChild( document.createTextNode( content ), dom ); 62 | break; 63 | case "select": 64 | var ops = dom.options; 65 | for ( var j = 0, oj; oj = ops[j]; ) { 66 | oj.innerHTML = content.options[j++]; 67 | } 68 | for ( var p in content ) { 69 | p != "options" && dom.setAttribute( p, content[p] ); 70 | } 71 | break; 72 | default : 73 | domUtils.setAttributes( dom, content); 74 | } 75 | } 76 | } ); 77 | } 78 | 79 | 80 | })(); 81 | 82 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ueditor-java-qiniu 2 | 3 | ## 说明 4 | 鉴于大部分用户对ueditor直接上传七牛云比较热衷,同时七牛云对sdk做了升级, 5 | 6 | 对原[ueditor-java-bcs-qiniu](https://github.com/uikoo9/ueditor-java-bcs-qiniu)进行升级, 7 | 8 | 1. 原ueditor-java-bcs-qiniu停止升级; 9 | 2. 停止对bcs(百度云存储)的支持; 10 | 3. 升级ueditor中上传到七牛云的代码,支持最新的七牛云sdk。 11 | 12 | ## 简介 13 | 1. 对ueditor.jar源码进行修改 14 | 2. 使其支持上传文件,图片等到服务器,qiniu(七牛云) 15 | 16 | ## 使用 17 | 1. 请下载本项目并导入eclipse在tomcat下运行 18 | 2. config.properties中的jfinal.ueditor.upload_to 19 | 1. 值为local时上传到服务器 20 | 2. 值为qiniu时上传到qiniu 21 | 3. config.properties中的qiniu需要修改为自己的ak,sk,bucketname 22 | 4. WebRoot\ueditor-min-1.4.3\jsp\config.json中 23 | 1. imageUrlPrefix,videoUrlPrefix,fileUrlPrefix,三个值需要修改 24 | 2. 当上传到local时设置对应的local地址,例如:http://localhost/ue 25 | 3. 当上传到qiniu时设置为对应的地址,例如:http://yourname.qiniudn.com/@ 26 | 5. 项目启动时执行获取uptoken的线程 27 | 1. 请在项目启动时调用QQiNiuUtil.genUptoken(); 28 | 2. 由于每个uptoken默认有效期限为3600s,所以需要定时获取,写了一个线程去获取 29 | 3. 多谢[gelosie](https://github.com/gelosie)的提醒 30 | 31 | ## jar包说明 32 | 1. 项目下共有11个包,依次说明; 33 | 2. [jfinal](http://www.jfinal.com/)相关jar,jfinal是一个mvc框架,类似ssh: 34 | 1. jfinal-1.9-bin.jar 35 | 2. freemarker-2.3.20.jar 36 | 3. ueditor-1.1.1相关jar: 37 | 1. commons-codec-1.9.jar 38 | 2. commons-fileupload-1.3.1.jar 39 | 3. commons-io-2.4.jar 40 | 4. json.jar 41 | 5. ueditor-1.1.1-for-qiniu-new.jar 42 | 6. 其中ueditor-1.1.1-for-qiniu-new.jar的源码进行过修改,详见下 43 | 4. qiniu-7.0.4相关jar 44 | 1. gson-2.3.1.jar 45 | 2. okhttp-2.3.0-SNAPSHOT.jar 46 | 3. okio-1.3.0-SNAPSHOT.jar 47 | 4. qiniu-java-sdk-7.0.4.jar 48 | 49 | ## 源码修改说明 50 | 1. 修改了com.baidu.ueditor.upload.StorageManager.java一个文件 51 | 2. 修改详情 52 | 53 | private static State saveTmpFile(File tmpFile, String path) { 54 | State state = null; 55 | File targetFile = new File(path); 56 | 57 | if (targetFile.canWrite()) { 58 | return new BaseState(false, AppInfo.PERMISSION_DENIED); 59 | } 60 | 61 | String uploadto = QPropertiesUtil.get("jfinal.ueditor.upload_to"); 62 | boolean uploaderror = false; 63 | if(QStringUtil.notEmpty(uploadto)){ 64 | String key = "/" + path.split("//")[1]; 65 | 66 | if("qiniu".equals(uploadto)){ 67 | QQiNiuUtil.uploadFile(key, tmpFile.getAbsolutePath()); 68 | }else{ 69 | uploaderror = true; 70 | } 71 | }else{ 72 | uploaderror = true; 73 | } 74 | 75 | if(uploaderror){ 76 | try { 77 | FileUtils.moveFile(tmpFile, targetFile); 78 | } catch (IOException e) { 79 | return new BaseState(false, AppInfo.IO_ERROR); 80 | } 81 | } 82 | 83 | state = new BaseState(true); 84 | state.putInfo( "size", targetFile.length() ); 85 | state.putInfo( "title", targetFile.getName() ); 86 | 87 | return state; 88 | } 89 | 90 | ## 作者 91 | 1. uikoo9 92 | 2. 欢迎访问[uikoo9.com](http://uikoo9.com) 93 | 94 | ##捐助 95 | 希望得到您的捐助: 96 | 97 | (支付宝捐助) 98 | 99 | ![zhifubao](http://uikoo9.qiniudn.com/@/img/donate/zhifu2.png) 100 | 101 | (微信捐助) 102 | 103 | ![weixin](http://uikoo9.qiniudn.com/@/img/donate/zhifu1.png) -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/codemirror/codemirror.css: -------------------------------------------------------------------------------- 1 | .CodeMirror { 2 | line-height: 1em; 3 | font-family: monospace; 4 | } 5 | 6 | .CodeMirror-scroll { 7 | overflow: auto; 8 | height: 300px; 9 | /* This is needed to prevent an IE[67] bug where the scrolled content 10 | is visible outside of the scrolling box. */ 11 | position: relative; 12 | } 13 | 14 | .CodeMirror-gutter { 15 | position: absolute; left: 0; top: 0; 16 | z-index: 10; 17 | background-color: #f7f7f7; 18 | border-right: 1px solid #eee; 19 | min-width: 2em; 20 | height: 100%; 21 | } 22 | .CodeMirror-gutter-text { 23 | color: #aaa; 24 | text-align: right; 25 | padding: .4em .2em .4em .4em; 26 | white-space: pre !important; 27 | } 28 | .CodeMirror-lines { 29 | padding: .4em; 30 | } 31 | 32 | .CodeMirror pre { 33 | -moz-border-radius: 0; 34 | -webkit-border-radius: 0; 35 | -o-border-radius: 0; 36 | border-radius: 0; 37 | border-width: 0; margin: 0; padding: 0; background: transparent; 38 | font-family: inherit; 39 | font-size: inherit; 40 | padding: 0; margin: 0; 41 | white-space: pre; 42 | word-wrap: normal; 43 | } 44 | 45 | .CodeMirror-wrap pre { 46 | word-wrap: break-word; 47 | white-space: pre-wrap; 48 | } 49 | .CodeMirror-wrap .CodeMirror-scroll { 50 | overflow-x: hidden; 51 | } 52 | 53 | .CodeMirror textarea { 54 | outline: none !important; 55 | } 56 | 57 | .CodeMirror pre.CodeMirror-cursor { 58 | z-index: 10; 59 | position: absolute; 60 | visibility: hidden; 61 | border-left: 1px solid black; 62 | } 63 | .CodeMirror-focused pre.CodeMirror-cursor { 64 | visibility: visible; 65 | } 66 | 67 | span.CodeMirror-selected { background: #d9d9d9; } 68 | .CodeMirror-focused span.CodeMirror-selected { background: #d2dcf8; } 69 | 70 | .CodeMirror-searching {background: #ffa;} 71 | 72 | /* Default theme */ 73 | 74 | .cm-s-default span.cm-keyword {color: #708;} 75 | .cm-s-default span.cm-atom {color: #219;} 76 | .cm-s-default span.cm-number {color: #164;} 77 | .cm-s-default span.cm-def {color: #00f;} 78 | .cm-s-default span.cm-variable {color: black;} 79 | .cm-s-default span.cm-variable-2 {color: #05a;} 80 | .cm-s-default span.cm-variable-3 {color: #085;} 81 | .cm-s-default span.cm-property {color: black;} 82 | .cm-s-default span.cm-operator {color: black;} 83 | .cm-s-default span.cm-comment {color: #a50;} 84 | .cm-s-default span.cm-string {color: #a11;} 85 | .cm-s-default span.cm-string-2 {color: #f50;} 86 | .cm-s-default span.cm-meta {color: #555;} 87 | .cm-s-default span.cm-error {color: #f00;} 88 | .cm-s-default span.cm-qualifier {color: #555;} 89 | .cm-s-default span.cm-builtin {color: #30a;} 90 | .cm-s-default span.cm-bracket {color: #cc7;} 91 | .cm-s-default span.cm-tag {color: #170;} 92 | .cm-s-default span.cm-attribute {color: #00c;} 93 | .cm-s-default span.cm-header {color: #a0a;} 94 | .cm-s-default span.cm-quote {color: #090;} 95 | .cm-s-default span.cm-hr {color: #999;} 96 | .cm-s-default span.cm-link {color: #00c;} 97 | 98 | span.cm-header, span.cm-strong {font-weight: bold;} 99 | span.cm-em {font-style: italic;} 100 | span.cm-emstrong {font-style: italic; font-weight: bold;} 101 | span.cm-link {text-decoration: underline;} 102 | 103 | div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} 104 | div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} 105 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/spechars/spechars.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-9-26 5 | * Time: 下午1:09 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | var charsContent = [ 9 | { name:"tsfh", title:lang.tsfh, content:toArray("、,。,·,ˉ,ˇ,¨,〃,々,—,~,‖,…,‘,’,“,”,〔,〕,〈,〉,《,》,「,」,『,』,〖,〗,【,】,±,×,÷,∶,∧,∨,∑,∏,∪,∩,∈,∷,√,⊥,∥,∠,⌒,⊙,∫,∮,≡,≌,≈,∽,∝,≠,≮,≯,≤,≥,∞,∵,∴,♂,♀,°,′,″,℃,$,¤,¢,£,‰,§,№,☆,★,○,●,◎,◇,◆,□,■,△,▲,※,→,←,↑,↓,〓,〡,〢,〣,〤,〥,〦,〧,〨,〩,㊣,㎎,㎏,㎜,㎝,㎞,㎡,㏄,㏎,㏑,㏒,㏕,︰,¬,¦,℡,ˊ,ˋ,˙,–,―,‥,‵,℅,℉,↖,↗,↘,↙,∕,∟,∣,≒,≦,≧,⊿,═,║,╒,╓,╔,╕,╖,╗,╘,╙,╚,╛,╜,╝,╞,╟,╠,╡,╢,╣,╤,╥,╦,╧,╨,╩,╪,╫,╬,╭,╮,╯,╰,╱,╲,╳,▁,▂,▃,▄,▅,▆,▇,�,█,▉,▊,▋,▌,▍,▎,▏,▓,▔,▕,▼,▽,◢,◣,◤,◥,☉,⊕,〒,〝,〞")}, 10 | { name:"lmsz", title:lang.lmsz, content:toArray("ⅰ,ⅱ,ⅲ,ⅳ,ⅴ,ⅵ,ⅶ,ⅷ,ⅸ,ⅹ,Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,Ⅵ,Ⅶ,Ⅷ,Ⅸ,Ⅹ,Ⅺ,Ⅻ")}, 11 | { name:"szfh", title:lang.szfh, content:toArray("⒈,⒉,⒊,⒋,⒌,⒍,⒎,⒏,⒐,⒑,⒒,⒓,⒔,⒕,⒖,⒗,⒘,⒙,⒚,⒛,⑴,⑵,⑶,⑷,⑸,⑹,⑺,⑻,⑼,⑽,⑾,⑿,⒀,⒁,⒂,⒃,⒄,⒅,⒆,⒇,①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,㈠,㈡,㈢,㈣,㈤,㈥,㈦,㈧,㈨,㈩")}, 12 | { name:"rwfh", title:lang.rwfh, content:toArray("ぁ,あ,ぃ,い,ぅ,う,ぇ,え,ぉ,お,か,が,き,ぎ,く,ぐ,け,げ,こ,ご,さ,ざ,し,じ,す,ず,せ,ぜ,そ,ぞ,た,だ,ち,ぢ,っ,つ,づ,て,で,と,ど,な,に,ぬ,ね,の,は,ば,ぱ,ひ,び,ぴ,ふ,ぶ,ぷ,へ,べ,ぺ,ほ,ぼ,ぽ,ま,み,む,め,も,ゃ,や,ゅ,ゆ,ょ,よ,ら,り,る,れ,ろ,ゎ,わ,ゐ,ゑ,を,ん,ァ,ア,ィ,イ,ゥ,ウ,ェ,エ,ォ,オ,カ,ガ,キ,ギ,ク,グ,ケ,ゲ,コ,ゴ,サ,ザ,シ,ジ,ス,ズ,セ,ゼ,ソ,ゾ,タ,ダ,チ,ヂ,ッ,ツ,ヅ,テ,デ,ト,ド,ナ,ニ,ヌ,ネ,ノ,ハ,バ,パ,ヒ,ビ,ピ,フ,ブ,プ,ヘ,ベ,ペ,ホ,ボ,ポ,マ,ミ,ム,メ,モ,ャ,ヤ,ュ,ユ,ョ,ヨ,ラ,リ,ル,レ,ロ,ヮ,ワ,ヰ,ヱ,ヲ,ン,ヴ,ヵ,ヶ")}, 13 | { name:"xlzm", title:lang.xlzm, content:toArray("Α,Β,Γ,Δ,Ε,Ζ,Η,Θ,Ι,Κ,Λ,Μ,Ν,Ξ,Ο,Π,Ρ,Σ,Τ,Υ,Φ,Χ,Ψ,Ω,α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ,ν,ξ,ο,π,ρ,σ,τ,υ,φ,χ,ψ,ω")}, 14 | { name:"ewzm", title:lang.ewzm, content:toArray("А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я")}, 15 | { name:"pyzm", title:lang.pyzm, content:toArray("ā,á,ǎ,à,ē,é,ě,è,ī,í,ǐ,ì,ō,ó,ǒ,ò,ū,ú,ǔ,ù,ǖ,ǘ,ǚ,ǜ,ü")}, 16 | { name:"yyyb", title:lang.yyyb, content:toArray("i:,i,e,æ,ʌ,ə:,ə,u:,u,ɔ:,ɔ,a:,ei,ai,ɔi,əu,au,iə,εə,uə,p,t,k,b,d,g,f,s,ʃ,θ,h,v,z,ʒ,ð,tʃ,tr,ts,dʒ,dr,dz,m,n,ŋ,l,r,w,j,")}, 17 | { name:"zyzf", title:lang.zyzf, content:toArray("ㄅ,ㄆ,ㄇ,ㄈ,ㄉ,ㄊ,ㄋ,ㄌ,ㄍ,ㄎ,ㄏ,ㄐ,ㄑ,ㄒ,ㄓ,ㄔ,ㄕ,ㄖ,ㄗ,ㄘ,ㄙ,ㄚ,ㄛ,ㄜ,ㄝ,ㄞ,ㄟ,ㄠ,ㄡ,ㄢ,ㄣ,ㄤ,ㄥ,ㄦ,ㄧ,ㄨ")} 18 | ]; 19 | (function createTab(content) { 20 | for (var i = 0, ci; ci = content[i++];) { 21 | var span = document.createElement("span"); 22 | span.setAttribute("tabSrc", ci.name); 23 | span.innerHTML = ci.title; 24 | if (i == 1)span.className = "focus"; 25 | domUtils.on(span, "click", function () { 26 | var tmps = $G("tabHeads").children; 27 | for (var k = 0, sk; sk = tmps[k++];) { 28 | sk.className = ""; 29 | } 30 | tmps = $G("tabBodys").children; 31 | for (var k = 0, sk; sk = tmps[k++];) { 32 | sk.style.display = "none"; 33 | } 34 | this.className = "focus"; 35 | $G(this.getAttribute("tabSrc")).style.display = ""; 36 | }); 37 | $G("tabHeads").appendChild(span); 38 | domUtils.insertAfter(span, document.createTextNode("\n")); 39 | var div = document.createElement("div"); 40 | div.id = ci.name; 41 | div.style.display = (i == 1) ? "" : "none"; 42 | var cons = ci.content; 43 | for (var j = 0, con; con = cons[j++];) { 44 | var charSpan = document.createElement("span"); 45 | charSpan.innerHTML = con; 46 | domUtils.on(charSpan, "click", function () { 47 | editor.execCommand("insertHTML", this.innerHTML); 48 | dialog.close(); 49 | }); 50 | div.appendChild(charSpan); 51 | } 52 | $G("tabBodys").appendChild(div); 53 | } 54 | })(charsContent); 55 | function toArray(str) { 56 | return str.split(","); 57 | } 58 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/emotion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | 33 |
34 | 35 | 53 | 54 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/video/video.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | 15 | 16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 | 31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | 0% 41 | 42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
    54 |
  • 55 |
56 |
57 |
58 |
59 |
60 | 61 | 62 | 63 | 64 |
65 |
66 |
67 | 68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/jsp/config.json: -------------------------------------------------------------------------------- 1 | /* 前后端通信相关的配置,注释只允许使用多行方式 */ 2 | { 3 | /* {filename} 会替换成原文件名,配置这项需要注意中文乱码问题 */ 4 | /* {rand:6} 会替换成随机数,后面的数字是随机数的位数 */ 5 | /* {time} 会替换成时间戳 */ 6 | /* {yyyy} 会替换成四位年份 */ 7 | /* {yy} 会替换成两位年份 */ 8 | /* {mm} 会替换成两位月份 */ 9 | /* {dd} 会替换成两位日期 */ 10 | /* {hh} 会替换成两位小时 */ 11 | /* {ii} 会替换成两位分钟 */ 12 | /* {ss} 会替换成两位秒 */ 13 | /* 非法字符 \ : * ? " < > | */ 14 | /* 具请体看线上文档: fex.baidu.com/ueditor/#use-format_upload_filename */ 15 | 16 | /* 上传图片配置项 */ 17 | "imageActionName": "uploadimage", /* 执行上传图片的action名称 */ 18 | "imageFieldName": "upfile", /* 提交的图片表单名称 */ 19 | "imageMaxSize": 2048000, /* 上传大小限制,单位B */ 20 | "imageAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 上传图片格式显示 */ 21 | "imageCompressEnable": true, /* 是否压缩图片,默认是true */ 22 | "imageCompressBorder": 1600, /* 图片压缩最长边限制 */ 23 | "imageInsertAlign": "none", /* 插入的图片浮动方式 */ 24 | "imageUrlPrefix": "http://uikoo9-ueditor.qiniudn.com/@", /* 图片访问路径前缀 */ 25 | "imagePathFormat": "/images/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ 26 | 27 | /* 上传视频配置 */ 28 | "videoActionName": "uploadvideo", /* 执行上传视频的action名称 */ 29 | "videoFieldName": "upfile", /* 提交的视频表单名称 */ 30 | "videoUrlPrefix": "http://uikoo9-ueditor.qiniudn.com/@", /* 视频访问路径前缀 */ 31 | "videoPathFormat": "/videos/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ 32 | "videoMaxSize": 102400000, /* 上传大小限制,单位B,默认100MB */ 33 | "videoAllowFiles": [ 34 | ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", 35 | ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* 上传视频格式显示 */ 36 | 37 | /* 上传文件配置 */ 38 | "fileActionName": "uploadfile", /* controller里,执行上传视频的action名称 */ 39 | "fileFieldName": "upfile", /* 提交的文件表单名称 */ 40 | "fileUrlPrefix": "http://uikoo9-ueditor.qiniudn.com/@", /* 文件访问路径前缀 */ 41 | "filePathFormat": "/files/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ 42 | "fileMaxSize": 51200000, /* 上传大小限制,单位B,默认50MB */ 43 | "fileAllowFiles": [ 44 | ".png", ".jpg", ".jpeg", ".gif", ".bmp", 45 | ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", 46 | ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", 47 | ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", ".jar", 48 | ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml" 49 | ], /* 上传文件格式显示 */ 50 | 51 | /* 涂鸦图片上传配置项 */ 52 | "scrawlActionName": "uploadscrawl", /* 执行上传涂鸦的action名称 */ 53 | "scrawlFieldName": "upfile", /* 提交的图片表单名称 */ 54 | "scrawlPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ 55 | "scrawlMaxSize": 2048000, /* 上传大小限制,单位B */ 56 | "scrawlUrlPrefix": "", /* 图片访问路径前缀 */ 57 | "scrawlInsertAlign": "none", 58 | 59 | /* 截图工具上传 */ 60 | "snapscreenActionName": "uploadimage", /* 执行上传截图的action名称 */ 61 | "snapscreenPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ 62 | "snapscreenUrlPrefix": "", /* 图片访问路径前缀 */ 63 | "snapscreenInsertAlign": "none", /* 插入的图片浮动方式 */ 64 | 65 | /* 抓取远程图片配置 */ 66 | "catcherLocalDomain": ["127.0.0.1", "localhost", "img.baidu.com"], 67 | "catcherActionName": "catchimage", /* 执行抓取远程图片的action名称 */ 68 | "catcherFieldName": "source", /* 提交的图片列表表单名称 */ 69 | "catcherPathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ 70 | "catcherUrlPrefix": "", /* 图片访问路径前缀 */ 71 | "catcherMaxSize": 2048000, /* 上传大小限制,单位B */ 72 | "catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 抓取图片格式显示 */ 73 | 74 | /* 列出指定目录下的图片 */ 75 | "imageManagerActionName": "listimage", /* 执行图片管理的action名称 */ 76 | "imageManagerListPath": "/ueditor/jsp/upload/image/", /* 指定要列出图片的目录 */ 77 | "imageManagerListSize": 20, /* 每次列出文件数量 */ 78 | "imageManagerUrlPrefix": "", /* 图片访问路径前缀 */ 79 | "imageManagerInsertAlign": "none", /* 插入的图片浮动方式 */ 80 | "imageManagerAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 列出的文件类型 */ 81 | 82 | /* 列出指定目录下的文件 */ 83 | "fileManagerActionName": "listfile", /* 执行文件管理的action名称 */ 84 | "fileManagerListPath": "/ueditor/jsp/upload/file/", /* 指定要列出文件的目录 */ 85 | "fileManagerUrlPrefix": "", /* 文件访问路径前缀 */ 86 | "fileManagerListSize": 20, /* 每次列出文件数量 */ 87 | "fileManagerAllowFiles": [ 88 | ".png", ".jpg", ".jpeg", ".gif", ".bmp", 89 | ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", 90 | ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", 91 | ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", 92 | ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml" 93 | ] /* 列出的文件类型 */ 94 | } -------------------------------------------------------------------------------- /WebRoot/WEB-INF/view/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | uikoo9.com 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 47 | 48 | 49 |
50 | 82 | 83 |
84 |
85 |
86 | 87 | 88 | 89 | 92 | 93 | 94 |
95 |
96 |
97 | 98 |
99 |
100 | 101 | 109 | 110 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/link/link.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 33 | 34 | 35 | 36 | 37 |
30 | 31 | 32 |
38 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/index.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 完整demo 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |

完整demo

18 | 19 |
20 |
21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 |
35 | 36 | 37 | 38 | 39 | 40 | 41 |
42 | 43 |
44 |
45 | 47 | 49 |
50 | 51 | 155 | 156 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/SyntaxHighlighter/shCoreDefault.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter,.syntaxhighlighter td,.syntaxhighlighter tr,.syntaxhighlighter tbody,.syntaxhighlighter thead,.syntaxhighlighter caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0!important;-webkit-border-radius:0 0 0 0!important;background:none!important;border:0!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;margin:0!important;outline:0!important;overflow:visible!important;padding:0!important;position:static!important;right:auto!important;text-align:left!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-weight:normal!important;font-style:normal!important;min-height:inherit!important;min-height:auto!important;font-size:13px!important}.syntaxhighlighter{width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;border-radius:4px!important;border-collapse:separate!important}.syntaxhighlighter.source{overflow:hidden!important}.syntaxhighlighter .bold{font-weight:bold!important}.syntaxhighlighter .italic{font-style:italic!important}.syntaxhighlighter .gutter div{white-space:pre!important;word-wrap:normal}.syntaxhighlighter caption{text-align:left!important;padding:.5em 0 .5em 1em!important}.syntaxhighlighter td.code{width:100%!important}.syntaxhighlighter td.code .container{position:relative!important}.syntaxhighlighter td.code .container textarea{box-sizing:border-box!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;border:none!important;background:white!important;padding-left:1em!important;overflow:hidden!important;white-space:pre!important}.syntaxhighlighter td.gutter .line{text-align:right!important;padding:0 .5em 0 1em!important}.syntaxhighlighter td.code .line{padding:0 1em!important}.syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0!important}.syntaxhighlighter.show{display:block!important}.syntaxhighlighter.collapsed table{display:none!important}.syntaxhighlighter.collapsed .toolbar{padding:.1em .8em 0 .8em!important;font-size:1em!important;position:static!important;width:auto!important}.syntaxhighlighter.collapsed .toolbar span{display:inline!important;margin-right:1em!important}.syntaxhighlighter.collapsed .toolbar span a{padding:0!important;display:none!important}.syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline!important}.syntaxhighlighter .toolbar{position:absolute!important;right:1px!important;top:1px!important;width:11px!important;height:11px!important;font-size:10px!important;z-index:10!important}.syntaxhighlighter .toolbar span.title{display:inline!important}.syntaxhighlighter .toolbar a{display:block!important;text-align:center!important;text-decoration:none!important;padding-top:1px!important}.syntaxhighlighter .toolbar a.expandSource{display:none!important}.syntaxhighlighter.ie{font-size:.9em!important;padding:1px 0 1px 0!important}.syntaxhighlighter.ie .toolbar{line-height:8px!important}.syntaxhighlighter.ie .toolbar a{padding-top:0!important}.syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none!important}.syntaxhighlighter.printing .line .number{color:#bbb!important}.syntaxhighlighter.printing .line .content{color:black!important}.syntaxhighlighter.printing .toolbar{display:none!important}.syntaxhighlighter.printing a{text-decoration:none!important}.syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black!important}.syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200!important}.syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue!important}.syntaxhighlighter.printing .keyword{color:#ff7800!important;font-weight:bold!important}.syntaxhighlighter.printing .preprocessor{color:gray!important}.syntaxhighlighter.printing .variable{color:#a70!important}.syntaxhighlighter.printing .value{color:#090!important}.syntaxhighlighter.printing .functions{color:#ff1493!important}.syntaxhighlighter.printing .constants{color:#06c!important}.syntaxhighlighter.printing .script{font-weight:bold!important}.syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray!important}.syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:#ff1493!important}.syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red!important}.syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black!important}.syntaxhighlighter{background-color:#f5f5f5!important}.syntaxhighlighter .line.highlighted.number{color:black!important}.syntaxhighlighter caption{color:black!important}.syntaxhighlighter .gutter{color:#afafaf!important;background-color:#f7f7f9!important;border-right:1px solid #e1e1e8!important;padding:9.5px 0 9.5px 9.5px!important;border-top-left-radius:4px!important;border-bottom-left-radius:4px!important;user-select:none!important;-moz-user-select:none!important;-webkit-user-select:none!important}.syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c!important;color:white!important}.syntaxhighlighter.printing .line .content{border:none!important}.syntaxhighlighter.collapsed{overflow:visible!important}.syntaxhighlighter.collapsed .toolbar{color:blue!important;background:white!important;border:1px solid #6ce26c!important}.syntaxhighlighter.collapsed .toolbar a{color:blue!important}.syntaxhighlighter.collapsed .toolbar a:hover{color:red!important}.syntaxhighlighter .toolbar{color:white!important;background:#6ce26c!important;border:none!important}.syntaxhighlighter .toolbar a{color:white!important}.syntaxhighlighter .toolbar a:hover{color:black!important}.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black!important}.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200!important}.syntaxhighlighter .string,.syntaxhighlighter .string a{color:blue!important}.syntaxhighlighter .keyword{color:#ff7800!important}.syntaxhighlighter .preprocessor{color:gray!important}.syntaxhighlighter .variable{color:#a70!important}.syntaxhighlighter .value{color:#090!important}.syntaxhighlighter .functions{color:#ff1493!important}.syntaxhighlighter .constants{color:#06c!important}.syntaxhighlighter .script{font-weight:bold!important;color:#ff7800!important;background-color:none!important}.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray!important}.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493!important}.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red!important}.syntaxhighlighter .keyword{font-weight:bold!important} -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/emotion/emotion.js: -------------------------------------------------------------------------------- 1 | window.onload = function () { 2 | editor.setOpt({ 3 | emotionLocalization:false 4 | }); 5 | 6 | emotion.SmileyPath = editor.options.emotionLocalization === true ? 'images/' : "http://img.baidu.com/hi/"; 7 | emotion.SmileyBox = createTabList( emotion.tabNum ); 8 | emotion.tabExist = createArr( emotion.tabNum ); 9 | 10 | initImgName(); 11 | initEvtHandler( "tabHeads" ); 12 | }; 13 | 14 | function initImgName() { 15 | for ( var pro in emotion.SmilmgName ) { 16 | var tempName = emotion.SmilmgName[pro], 17 | tempBox = emotion.SmileyBox[pro], 18 | tempStr = ""; 19 | 20 | if ( tempBox.length ) return; 21 | for ( var i = 1; i <= tempName[1]; i++ ) { 22 | tempStr = tempName[0]; 23 | if ( i < 10 ) tempStr = tempStr + '0'; 24 | tempStr = tempStr + i + '.gif'; 25 | tempBox.push( tempStr ); 26 | } 27 | } 28 | } 29 | 30 | function initEvtHandler( conId ) { 31 | var tabHeads = $G( conId ); 32 | for ( var i = 0, j = 0; i < tabHeads.childNodes.length; i++ ) { 33 | var tabObj = tabHeads.childNodes[i]; 34 | if ( tabObj.nodeType == 1 ) { 35 | domUtils.on( tabObj, "click", (function ( index ) { 36 | return function () { 37 | switchTab( index ); 38 | }; 39 | })( j ) ); 40 | j++; 41 | } 42 | } 43 | switchTab( 0 ); 44 | $G( "tabIconReview" ).style.display = 'none'; 45 | } 46 | 47 | function InsertSmiley( url, evt ) { 48 | var obj = { 49 | src:editor.options.emotionLocalization ? editor.options.UEDITOR_HOME_URL + "dialogs/emotion/" + url : url 50 | }; 51 | obj._src = obj.src; 52 | editor.execCommand( 'insertimage', obj ); 53 | if ( !evt.ctrlKey ) { 54 | dialog.popup.hide(); 55 | } 56 | } 57 | 58 | function switchTab( index ) { 59 | 60 | autoHeight( index ); 61 | if ( emotion.tabExist[index] == 0 ) { 62 | emotion.tabExist[index] = 1; 63 | createTab( 'tab' + index ); 64 | } 65 | //获取呈现元素句柄数组 66 | var tabHeads = $G( "tabHeads" ).getElementsByTagName( "span" ), 67 | tabBodys = $G( "tabBodys" ).getElementsByTagName( "div" ), 68 | i = 0, L = tabHeads.length; 69 | //隐藏所有呈现元素 70 | for ( ; i < L; i++ ) { 71 | tabHeads[i].className = ""; 72 | tabBodys[i].style.display = "none"; 73 | } 74 | //显示对应呈现元素 75 | tabHeads[index].className = "focus"; 76 | tabBodys[index].style.display = "block"; 77 | } 78 | 79 | function autoHeight( index ) { 80 | var iframe = dialog.getDom( "iframe" ), 81 | parent = iframe.parentNode.parentNode; 82 | switch ( index ) { 83 | case 0: 84 | iframe.style.height = "380px"; 85 | parent.style.height = "392px"; 86 | break; 87 | case 1: 88 | iframe.style.height = "220px"; 89 | parent.style.height = "232px"; 90 | break; 91 | case 2: 92 | iframe.style.height = "260px"; 93 | parent.style.height = "272px"; 94 | break; 95 | case 3: 96 | iframe.style.height = "300px"; 97 | parent.style.height = "312px"; 98 | break; 99 | case 4: 100 | iframe.style.height = "140px"; 101 | parent.style.height = "152px"; 102 | break; 103 | case 5: 104 | iframe.style.height = "260px"; 105 | parent.style.height = "272px"; 106 | break; 107 | case 6: 108 | iframe.style.height = "230px"; 109 | parent.style.height = "242px"; 110 | break; 111 | default: 112 | 113 | } 114 | } 115 | 116 | 117 | function createTab( tabName ) { 118 | var faceVersion = "?v=1.1", //版本号 119 | tab = $G( tabName ), //获取将要生成的Div句柄 120 | imagePath = emotion.SmileyPath + emotion.imageFolders[tabName], //获取显示表情和预览表情的路径 121 | positionLine = 11 / 2, //中间数 122 | iWidth = iHeight = 35, //图片长宽 123 | iColWidth = 3, //表格剩余空间的显示比例 124 | tableCss = emotion.imageCss[tabName], 125 | cssOffset = emotion.imageCssOffset[tabName], 126 | textHTML = [''], 127 | i = 0, imgNum = emotion.SmileyBox[tabName].length, imgColNum = 11, faceImage, 128 | sUrl, realUrl, posflag, offset, infor; 129 | 130 | for ( ; i < imgNum; ) { 131 | textHTML.push( '' ); 132 | for ( var j = 0; j < imgColNum; j++, i++ ) { 133 | faceImage = emotion.SmileyBox[tabName][i]; 134 | if ( faceImage ) { 135 | sUrl = imagePath + faceImage + faceVersion; 136 | realUrl = imagePath + faceImage; 137 | posflag = j < positionLine ? 0 : 1; 138 | offset = cssOffset * i * (-1) - 1; 139 | infor = emotion.SmileyInfor[tabName][i]; 140 | 141 | textHTML.push( '' ); 149 | } 150 | textHTML.push( '' ); 151 | } 152 | textHTML.push( '
' ); 142 | textHTML.push( '' ); 143 | textHTML.push( '' ); 144 | textHTML.push( '' ); 145 | } else { 146 | textHTML.push( '' ); 147 | } 148 | textHTML.push( '
' ); 153 | textHTML = textHTML.join( "" ); 154 | tab.innerHTML = textHTML; 155 | } 156 | 157 | function over( td, srcPath, posFlag ) { 158 | td.style.backgroundColor = "#ACCD3C"; 159 | $G( 'faceReview' ).style.backgroundImage = "url(" + srcPath + ")"; 160 | if ( posFlag == 1 ) $G( "tabIconReview" ).className = "show"; 161 | $G( "tabIconReview" ).style.display = 'block'; 162 | } 163 | 164 | function out( td ) { 165 | td.style.backgroundColor = "transparent"; 166 | var tabIconRevew = $G( "tabIconReview" ); 167 | tabIconRevew.className = ""; 168 | tabIconRevew.style.display = 'none'; 169 | } 170 | 171 | function createTabList( tabNum ) { 172 | var obj = {}; 173 | for ( var i = 0; i < tabNum; i++ ) { 174 | obj["tab" + i] = []; 175 | } 176 | return obj; 177 | } 178 | 179 | function createArr( tabNum ) { 180 | var arr = []; 181 | for ( var i = 0; i < tabNum; i++ ) { 182 | arr[i] = 0; 183 | } 184 | return arr; 185 | } 186 | 187 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/music/music.js: -------------------------------------------------------------------------------- 1 | function Music() { 2 | this.init(); 3 | } 4 | (function () { 5 | var pages = [], 6 | panels = [], 7 | selectedItem = null; 8 | Music.prototype = { 9 | total:70, 10 | pageSize:10, 11 | dataUrl:"http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.search.common", 12 | playerUrl:"http://box.baidu.com/widget/flash/bdspacesong.swf", 13 | 14 | init:function () { 15 | var me = this; 16 | domUtils.on($G("J_searchName"), "keyup", function (event) { 17 | var e = window.event || event; 18 | if (e.keyCode == 13) { 19 | me.dosearch(); 20 | } 21 | }); 22 | domUtils.on($G("J_searchBtn"), "click", function () { 23 | me.dosearch(); 24 | }); 25 | }, 26 | callback:function (data) { 27 | var me = this; 28 | me.data = data.song_list; 29 | setTimeout(function () { 30 | $G('J_resultBar').innerHTML = me._renderTemplate(data.song_list); 31 | }, 300); 32 | }, 33 | dosearch:function () { 34 | var me = this; 35 | selectedItem = null; 36 | var key = $G('J_searchName').value; 37 | if (utils.trim(key) == "")return false; 38 | key = encodeURIComponent(key); 39 | me._sent(key); 40 | }, 41 | doselect:function (i) { 42 | var me = this; 43 | if (typeof i == 'object') { 44 | selectedItem = i; 45 | } else if (typeof i == 'number') { 46 | selectedItem = me.data[i]; 47 | } 48 | }, 49 | onpageclick:function (id) { 50 | var me = this; 51 | for (var i = 0; i < pages.length; i++) { 52 | $G(pages[i]).className = 'pageoff'; 53 | $G(panels[i]).className = 'paneloff'; 54 | } 55 | $G('page' + id).className = 'pageon'; 56 | $G('panel' + id).className = 'panelon'; 57 | }, 58 | listenTest:function (elem) { 59 | var me = this, 60 | view = $G('J_preview'), 61 | is_play_action = (elem.className == 'm-try'), 62 | old_trying = me._getTryingElem(); 63 | 64 | if (old_trying) { 65 | old_trying.className = 'm-try'; 66 | view.innerHTML = ''; 67 | } 68 | if (is_play_action) { 69 | elem.className = 'm-trying'; 70 | view.innerHTML = me._buildMusicHtml(me._getUrl(true)); 71 | } 72 | }, 73 | _sent:function (param) { 74 | var me = this; 75 | $G('J_resultBar').innerHTML = '
'; 76 | 77 | utils.loadFile(document, { 78 | src:me.dataUrl + '&query=' + param + '&page_size=' + me.total + '&callback=music.callback&.r=' + Math.random(), 79 | tag:"script", 80 | type:"text/javascript", 81 | defer:"defer" 82 | }); 83 | }, 84 | _removeHtml:function (str) { 85 | var reg = /<\s*\/?\s*[^>]*\s*>/gi; 86 | return str.replace(reg, ""); 87 | }, 88 | _getUrl:function (isTryListen) { 89 | var me = this; 90 | var param = 'from=tiebasongwidget&url=&name=' + encodeURIComponent(me._removeHtml(selectedItem.title)) + '&artist=' 91 | + encodeURIComponent(me._removeHtml(selectedItem.author)) + '&extra=' 92 | + encodeURIComponent(me._removeHtml(selectedItem.album_title)) 93 | + '&autoPlay='+isTryListen+'' + '&loop=true'; 94 | return me.playerUrl + "?" + param; 95 | }, 96 | _getTryingElem:function () { 97 | var s = $G('J_listPanel').getElementsByTagName('span'); 98 | 99 | for (var i = 0; i < s.length; i++) { 100 | if (s[i].className == 'm-trying') 101 | return s[i]; 102 | } 103 | return null; 104 | }, 105 | _buildMusicHtml:function (playerUrl) { 106 | var html = ' 12) 120 | return s.substring(0, 5) + '...'; 121 | if (!s) s = " "; 122 | return s; 123 | }, 124 | _rebuildData:function (data) { 125 | var me = this, 126 | newData = [], 127 | d = me.pageSize, 128 | itembox; 129 | for (var i = 0; i < data.length; i++) { 130 | if ((i + d) % d == 0) { 131 | itembox = []; 132 | newData.push(itembox) 133 | } 134 | itembox.push(data[i]); 135 | } 136 | return newData; 137 | }, 138 | _renderTemplate:function (data) { 139 | var me = this; 140 | if (data.length == 0)return '
' + lang.emptyTxt + '
'; 141 | data = me._rebuildData(data); 142 | var s = [], p = [], t = []; 143 | s.push('
'); 144 | p.push('
'); 145 | for (var i = 0, tmpList; tmpList = data[i++];) { 146 | panels.push('panel' + i); 147 | pages.push('page' + i); 148 | if (i == 1) { 149 | s.push('
'); 150 | if (data.length != 1) { 151 | t.push('
' + (i ) + '
'); 152 | } 153 | } else { 154 | s.push('
'); 155 | t.push('
' + (i ) + '
'); 156 | } 157 | s.push('
'); 158 | s.push('
' + lang.chapter + '' + lang.singer 159 | + '' + lang.special + '' + lang.listenTest + '
'); 160 | for (var j = 0, tmpObj; tmpObj = tmpList[j++];) { 161 | s.push(''); 168 | } 169 | s.push('
'); 170 | s.push('
'); 171 | } 172 | t.reverse(); 173 | p.push(t.join('')); 174 | s.push('
'); 175 | p.push('
'); 176 | return s.join('') + p.join(''); 177 | }, 178 | exec:function () { 179 | var me = this; 180 | if (selectedItem == null) return; 181 | $G('J_preview').innerHTML = ""; 182 | editor.execCommand('music', { 183 | url:me._getUrl(false), 184 | width:400, 185 | height:95 186 | }); 187 | } 188 | }; 189 | })(); 190 | 191 | 192 | 193 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/video-js/font/vjs.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | This is a custom SVG font generated by IcoMoon. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 23 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 43 | 56 | 57 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/dialogs/table/edittable.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-12-19 5 | * Time: 下午4:55 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | (function () { 9 | var title = $G("J_title"), 10 | titleCol = $G("J_titleCol"), 11 | caption = $G("J_caption"), 12 | sorttable = $G("J_sorttable"), 13 | autoSizeContent = $G("J_autoSizeContent"), 14 | autoSizePage = $G("J_autoSizePage"), 15 | tone = $G("J_tone"), 16 | me, 17 | preview = $G("J_preview"); 18 | 19 | var editTable = function () { 20 | me = this; 21 | me.init(); 22 | }; 23 | editTable.prototype = { 24 | init:function () { 25 | var colorPiker = new UE.ui.ColorPicker({ 26 | editor:editor 27 | }), 28 | colorPop = new UE.ui.Popup({ 29 | editor:editor, 30 | content:colorPiker 31 | }); 32 | 33 | title.checked = editor.queryCommandState("inserttitle") == -1; 34 | titleCol.checked = editor.queryCommandState("inserttitlecol") == -1; 35 | caption.checked = editor.queryCommandState("insertcaption") == -1; 36 | sorttable.checked = editor.queryCommandState("enablesort") == 1; 37 | 38 | var enablesortState = editor.queryCommandState("enablesort"), 39 | disablesortState = editor.queryCommandState("disablesort"); 40 | 41 | sorttable.checked = !!(enablesortState < 0 && disablesortState >=0); 42 | sorttable.disabled = !!(enablesortState < 0 && disablesortState < 0); 43 | sorttable.title = enablesortState < 0 && disablesortState < 0 ? lang.errorMsg:''; 44 | 45 | me.createTable(title.checked, titleCol.checked, caption.checked); 46 | me.setAutoSize(); 47 | me.setColor(me.getColor()); 48 | 49 | domUtils.on(title, "click", me.titleHanler); 50 | domUtils.on(titleCol, "click", me.titleColHanler); 51 | domUtils.on(caption, "click", me.captionHanler); 52 | domUtils.on(sorttable, "click", me.sorttableHanler); 53 | domUtils.on(autoSizeContent, "click", me.autoSizeContentHanler); 54 | domUtils.on(autoSizePage, "click", me.autoSizePageHanler); 55 | 56 | domUtils.on(tone, "click", function () { 57 | colorPop.showAnchor(tone); 58 | }); 59 | domUtils.on(document, 'mousedown', function () { 60 | colorPop.hide(); 61 | }); 62 | colorPiker.addListener("pickcolor", function () { 63 | me.setColor(arguments[1]); 64 | colorPop.hide(); 65 | }); 66 | colorPiker.addListener("picknocolor", function () { 67 | me.setColor(""); 68 | colorPop.hide(); 69 | }); 70 | }, 71 | 72 | createTable:function (hasTitle, hasTitleCol, hasCaption) { 73 | var arr = [], 74 | sortSpan = '^'; 75 | arr.push(""); 76 | if (hasCaption) { 77 | arr.push("") 78 | } 79 | if (hasTitle) { 80 | arr.push(""); 81 | if(hasTitleCol) { arr.push(""); } 82 | for (var j = 0; j < 5; j++) { 83 | arr.push(""); 84 | } 85 | arr.push(""); 86 | } 87 | for (var i = 0; i < 6; i++) { 88 | arr.push(""); 89 | if(hasTitleCol) { arr.push("") } 90 | for (var k = 0; k < 5; k++) { 91 | arr.push("") 92 | } 93 | arr.push(""); 94 | } 95 | arr.push("
" + lang.captionName + "
" + lang.titleName + "" + lang.titleName + "
" + lang.titleName + "" + lang.cellsName + "
"); 96 | preview.innerHTML = arr.join(""); 97 | this.updateSortSpan(); 98 | }, 99 | titleHanler:function () { 100 | var example = $G("J_example"), 101 | frg=document.createDocumentFragment(), 102 | color = domUtils.getComputedStyle(domUtils.getElementsByTagName(example, "td")[0], "border-color"), 103 | colCount = example.rows[0].children.length; 104 | 105 | if (title.checked) { 106 | example.insertRow(0); 107 | for (var i = 0, node; i < colCount; i++) { 108 | node = document.createElement("th"); 109 | node.innerHTML = lang.titleName; 110 | frg.appendChild(node); 111 | } 112 | example.rows[0].appendChild(frg); 113 | 114 | } else { 115 | domUtils.remove(example.rows[0]); 116 | } 117 | me.setColor(color); 118 | me.updateSortSpan(); 119 | }, 120 | titleColHanler:function () { 121 | var example = $G("J_example"), 122 | color = domUtils.getComputedStyle(domUtils.getElementsByTagName(example, "td")[0], "border-color"), 123 | colArr = example.rows, 124 | colCount = colArr.length; 125 | 126 | if (titleCol.checked) { 127 | for (var i = 0, node; i < colCount; i++) { 128 | node = document.createElement("th"); 129 | node.innerHTML = lang.titleName; 130 | colArr[i].insertBefore(node, colArr[i].children[0]); 131 | } 132 | } else { 133 | for (var i = 0; i < colCount; i++) { 134 | domUtils.remove(colArr[i].children[0]); 135 | } 136 | } 137 | me.setColor(color); 138 | me.updateSortSpan(); 139 | }, 140 | captionHanler:function () { 141 | var example = $G("J_example"); 142 | if (caption.checked) { 143 | var row = document.createElement('caption'); 144 | row.innerHTML = lang.captionName; 145 | example.insertBefore(row, example.firstChild); 146 | } else { 147 | domUtils.remove(domUtils.getElementsByTagName(example, 'caption')[0]); 148 | } 149 | }, 150 | sorttableHanler:function(){ 151 | me.updateSortSpan(); 152 | }, 153 | autoSizeContentHanler:function () { 154 | var example = $G("J_example"); 155 | example.removeAttribute("width"); 156 | }, 157 | autoSizePageHanler:function () { 158 | var example = $G("J_example"); 159 | var tds = example.getElementsByTagName(example, "td"); 160 | utils.each(tds, function (td) { 161 | td.removeAttribute("width"); 162 | }); 163 | example.setAttribute('width', '100%'); 164 | }, 165 | updateSortSpan: function(){ 166 | var example = $G("J_example"), 167 | row = example.rows[0]; 168 | 169 | var spans = domUtils.getElementsByTagName(example,"span"); 170 | utils.each(spans,function(span){ 171 | span.parentNode.removeChild(span); 172 | }); 173 | if (sorttable.checked) { 174 | utils.each(row.cells, function(cell, i){ 175 | var span = document.createElement("span"); 176 | span.innerHTML = "^"; 177 | cell.appendChild(span); 178 | }); 179 | } 180 | }, 181 | getColor:function () { 182 | var start = editor.selection.getStart(), color, 183 | cell = domUtils.findParentByTagName(start, ["td", "th", "caption"], true); 184 | color = cell && domUtils.getComputedStyle(cell, "border-color"); 185 | if (!color) color = "#DDDDDD"; 186 | return color; 187 | }, 188 | setColor:function (color) { 189 | var example = $G("J_example"), 190 | arr = domUtils.getElementsByTagName(example, "td").concat( 191 | domUtils.getElementsByTagName(example, "th"), 192 | domUtils.getElementsByTagName(example, "caption") 193 | ); 194 | 195 | tone.value = color; 196 | utils.each(arr, function (node) { 197 | node.style.borderColor = color; 198 | }); 199 | 200 | }, 201 | setAutoSize:function () { 202 | var me = this; 203 | autoSizePage.checked = true; 204 | me.autoSizePageHanler(); 205 | } 206 | }; 207 | 208 | new editTable; 209 | 210 | dialog.onok = function () { 211 | editor.__hasEnterExecCommand = true; 212 | 213 | var checks = { 214 | title:"inserttitle deletetitle", 215 | titleCol:"inserttitlecol deletetitlecol", 216 | caption:"insertcaption deletecaption", 217 | sorttable:"enablesort disablesort" 218 | }; 219 | editor.fireEvent('saveScene'); 220 | for(var i in checks){ 221 | var cmds = checks[i].split(" "), 222 | input = $G("J_" + i); 223 | if(input["checked"]){ 224 | editor.queryCommandState(cmds[0])!=-1 &&editor.execCommand(cmds[0]); 225 | }else{ 226 | editor.queryCommandState(cmds[1])!=-1 &&editor.execCommand(cmds[1]); 227 | } 228 | } 229 | 230 | editor.execCommand("edittable", tone.value); 231 | autoSizeContent.checked ?editor.execCommand('adaptbytext') : ""; 232 | autoSizePage.checked ? editor.execCommand("adaptbywindow") : ""; 233 | editor.fireEvent('saveScene'); 234 | 235 | editor.__hasEnterExecCommand = false; 236 | }; 237 | })(); -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/ueditor.config.bak.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ueditor完整配置项 3 | * 可以在这里配置整个编辑器的特性 4 | */ 5 | /**************************提示******************************** 6 | * 所有被注释的配置项均为UEditor默认值。 7 | * 修改默认配置请首先确保已经完全明确该参数的真实用途。 8 | * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 9 | * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 10 | **************************提示********************************/ 11 | 12 | (function () { 13 | 14 | /** 15 | * 编辑器资源文件根路径。它所表示的含义是:以编辑器实例化页面为当前路径,指向编辑器资源文件(即dialog等文件夹)的路径。 16 | * 鉴于很多同学在使用编辑器的时候出现的种种路径问题,此处强烈建议大家使用"相对于网站根目录的相对路径"进行配置。 17 | * "相对于网站根目录的相对路径"也就是以斜杠开头的形如"/myProject/ueditor/"这样的路径。 18 | * 如果站点中有多个不在同一层级的页面需要实例化编辑器,且引用了同一UEditor的时候,此处的URL可能不适用于每个页面的编辑器。 19 | * 因此,UEditor提供了针对不同页面的编辑器可单独配置的根路径,具体来说,在需要实例化编辑器的页面最顶部写上如下代码即可。当然,需要令此处的URL等于对应的配置。 20 | * window.UEDITOR_HOME_URL = "/xxxx/xxxx/"; 21 | */ 22 | var URL = window.UEDITOR_HOME_URL || getUEBasePath(); 23 | 24 | /** 25 | * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。 26 | */ 27 | window.UEDITOR_CONFIG = { 28 | 29 | //为编辑器实例添加一个路径,这个不能被注释 30 | UEDITOR_HOME_URL: URL 31 | 32 | // 服务器统一请求接口路径 33 | , serverUrl: URL + "jsp/controller.jsp" 34 | 35 | //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义 36 | 37 | , toolbars: [["source","unlink","link","print","preview","simpleupload","music","emotion","insertvideo","attachment","horizontal","spechars","pasteplain","insertcode","bold","italic","underline","forecolor","backcolor","justifyleft","justifycenter","justifyright","removeformat","formatmatch","fontfamily","fontsize","inserttable","deletetable","mergeright","mergedown","splittorows","splittocols","splittocells","mergecells","insertcol","insertrow","deletecol","deleterow"]] 38 | //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准 39 | //,labelMap:{ 40 | // 'anchor':'', 'undo':'' 41 | //} 42 | 43 | //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件: 44 | //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase() 45 | //,lang:"zh-cn" 46 | //,langPath:URL +"lang/" 47 | 48 | //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件: 49 | //现有如下皮肤:default 50 | //,theme:'default' 51 | //,themePath:URL +"themes/" 52 | 53 | //,zIndex : 900 //编辑器层级的基数,默认是900 54 | 55 | //针对getAllHtml方法,会在对应的head标签中增加该编码设置。 56 | //,charset:"utf-8" 57 | 58 | //若实例化编辑器的页面手动修改的domain,此处需要设置为true 59 | //,customDomain:false 60 | 61 | //常用配置项目 62 | //,isShow : true //默认显示编辑器 63 | 64 | //,textarea:'editorValue' // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值 65 | 66 | //,initialContent:'欢迎使用ueditor!' //初始化编辑器的内容,也可以通过textarea/script给值,看官网例子 67 | 68 | //,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了 69 | 70 | //,focus:false //初始化时,是否让编辑器获得焦点true或false 71 | 72 | //如果自定义,最好给p标签如下的行高,要不输入中文时,会有跳动感 73 | //,initialStyle:'p{line-height:1em}'//编辑器层级的基数,可以用来改变字体等 74 | 75 | //,iframeCssUrl: URL + '/themes/iframe.css' //给编辑器内部引入一个css文件 76 | 77 | //,initialFrameWidth:1000 //初始化编辑器宽度,默认1000 78 | //,initialFrameHeight:320 //初始化编辑器高度,默认320 79 | 80 | //,readonly : false //编辑器初始化结束后,编辑区域是否是只读的,默认是false 81 | 82 | //,autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况) 83 | 84 | //,imagePopup:true //图片操作的浮层开关,默认打开 85 | 86 | //,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹 87 | 88 | //粘贴只保留标签,去除标签所有属性 89 | //,retainOnlyLabelPasted: false 90 | 91 | //,pasteplain:false //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴 92 | //纯文本粘贴模式下的过滤规则 93 | //'filterTxtRules' : function(){ 94 | // function transP(node){ 95 | // node.tagName = 'p'; 96 | // node.setStyle(); 97 | // } 98 | // return { 99 | // //直接删除及其字节点内容 100 | // '-' : 'script style object iframe embed input select', 101 | // 'p': {$:{}}, 102 | // 'br':{$:{}}, 103 | // 'div':{'$':{}}, 104 | // 'li':{'$':{}}, 105 | // 'caption':transP, 106 | // 'th':transP, 107 | // 'tr':transP, 108 | // 'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP, 109 | // 'td':function(node){ 110 | // //没有内容的td直接删掉 111 | // var txt = !!node.innerText(); 112 | // if(txt){ 113 | // node.parentNode.insertAfter(UE.uNode.createText('    '),node); 114 | // } 115 | // node.parentNode.removeChild(node,node.innerText()) 116 | // } 117 | // } 118 | //}() 119 | 120 | //,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串 121 | 122 | //,autoTransWordToList:false //禁止word中粘贴进来的列表自动变成列表标签 123 | 124 | //fontfamily 125 | //字体设置 label留空支持多语言自动切换,若配置,则以配置值为准 126 | //,'fontfamily':[ 127 | // { label:'',name:'songti',val:'宋体,SimSun'}, 128 | // { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'}, 129 | // { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'}, 130 | // { label:'',name:'heiti',val:'黑体, SimHei'}, 131 | // { label:'',name:'lishu',val:'隶书, SimLi'}, 132 | // { label:'',name:'andaleMono',val:'andale mono'}, 133 | // { label:'',name:'arial',val:'arial, helvetica,sans-serif'}, 134 | // { label:'',name:'arialBlack',val:'arial black,avant garde'}, 135 | // { label:'',name:'comicSansMs',val:'comic sans ms'}, 136 | // { label:'',name:'impact',val:'impact,chicago'}, 137 | // { label:'',name:'timesNewRoman',val:'times new roman'} 138 | //] 139 | 140 | //fontsize 141 | //字号 142 | //,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36] 143 | 144 | //快捷菜单 145 | //,shortcutMenu:["fontfamily", "fontsize", "bold", "italic", "underline", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist"] 146 | 147 | //tab 148 | //点击tab键时移动的距离,tabSize倍数,tabNode什么字符做为单位 149 | //,tabSize:4 150 | //,tabNode:' ' 151 | 152 | //removeFormat 153 | //清除格式时可以删除的标签和属性 154 | //removeForamtTags标签 155 | //,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' 156 | //removeFormatAttributes属性 157 | //,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign' 158 | 159 | //scaleEnabled 160 | //是否可以拉伸长高,默认true(当开启时,自动长高失效) 161 | //,scaleEnabled:false 162 | //,minFrameWidth:800 //编辑器拖动时最小宽度,默认800 163 | //,minFrameHeight:220 //编辑器拖动时最小高度,默认220 164 | 165 | //tableDragable 166 | //表格是否可以拖拽 167 | //,tableDragable: true 168 | 169 | //,disabledTableInTable:true //禁止表格嵌套 170 | 171 | //sourceEditor 172 | //源码的查看方式,codemirror 是代码高亮,textarea是文本框,默认是codemirror 173 | //注意默认codemirror只能在ie8+和非ie中使用 174 | //,sourceEditor:"codemirror" 175 | //如果sourceEditor是codemirror,还用配置一下两个参数 176 | //codeMirrorJsUrl js加载的路径,默认是 URL + "third-party/codemirror/codemirror.js" 177 | //,codeMirrorJsUrl:URL + "third-party/codemirror/codemirror.js" 178 | //codeMirrorCssUrl css加载的路径,默认是 URL + "third-party/codemirror/codemirror.css" 179 | //,codeMirrorCssUrl:URL + "third-party/codemirror/codemirror.css" 180 | //编辑器初始化完成后是否进入源码模式,默认为否。 181 | //,sourceEditorFirst:false 182 | 183 | //iframeUrlMap 184 | //dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径 185 | //,iframeUrlMap:{ 186 | // 'anchor':'~/dialogs/anchor/anchor.html', 187 | //} 188 | 189 | }; 190 | 191 | function getUEBasePath(docUrl, confUrl) { 192 | 193 | return getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath()); 194 | 195 | } 196 | 197 | function getConfigFilePath() { 198 | 199 | var configPath = document.getElementsByTagName('script'); 200 | 201 | return configPath[ configPath.length - 1 ].src; 202 | 203 | } 204 | 205 | function getBasePath(docUrl, confUrl) { 206 | 207 | var basePath = confUrl; 208 | 209 | 210 | if (/^(\/|\\\\)/.test(confUrl)) { 211 | 212 | basePath = /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/, ''); 213 | 214 | } else if (!/^[a-z]+:/i.test(confUrl)) { 215 | 216 | docUrl = docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, ''); 217 | 218 | basePath = docUrl + "" + confUrl; 219 | 220 | } 221 | 222 | return optimizationPath(basePath); 223 | 224 | } 225 | 226 | function optimizationPath(path) { 227 | 228 | var protocol = /^[a-z]+:\/\//.exec(path)[ 0 ], 229 | tmp = null, 230 | res = []; 231 | 232 | path = path.replace(protocol, "").split("?")[0].split("#")[0]; 233 | 234 | path = path.replace(/\\/g, '/').split(/\//); 235 | 236 | path[ path.length - 1 ] = ""; 237 | 238 | while (path.length) { 239 | 240 | if (( tmp = path.shift() ) === "..") { 241 | res.pop(); 242 | } else if (tmp !== ".") { 243 | res.push(tmp); 244 | } 245 | 246 | } 247 | 248 | return protocol + res.join("/"); 249 | 250 | } 251 | 252 | window.UE = { 253 | getUEBasePath: getUEBasePath 254 | }; 255 | 256 | })(); 257 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/ueditor.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ueditor完整配置项 3 | * 可以在这里配置整个编辑器的特性 4 | */ 5 | /**************************提示******************************** 6 | * 所有被注释的配置项均为UEditor默认值。 7 | * 修改默认配置请首先确保已经完全明确该参数的真实用途。 8 | * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 9 | * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 10 | **************************提示********************************/ 11 | 12 | (function () { 13 | 14 | /** 15 | * 编辑器资源文件根路径。它所表示的含义是:以编辑器实例化页面为当前路径,指向编辑器资源文件(即dialog等文件夹)的路径。 16 | * 鉴于很多同学在使用编辑器的时候出现的种种路径问题,此处强烈建议大家使用"相对于网站根目录的相对路径"进行配置。 17 | * "相对于网站根目录的相对路径"也就是以斜杠开头的形如"/myProject/ueditor/"这样的路径。 18 | * 如果站点中有多个不在同一层级的页面需要实例化编辑器,且引用了同一UEditor的时候,此处的URL可能不适用于每个页面的编辑器。 19 | * 因此,UEditor提供了针对不同页面的编辑器可单独配置的根路径,具体来说,在需要实例化编辑器的页面最顶部写上如下代码即可。当然,需要令此处的URL等于对应的配置。 20 | * window.UEDITOR_HOME_URL = "/xxxx/xxxx/"; 21 | */ 22 | var URL = base + '/ueditor-min-1.4.3/'; 23 | 24 | /** 25 | * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。 26 | */ 27 | window.UEDITOR_CONFIG = { 28 | 29 | //为编辑器实例添加一个路径,这个不能被注释 30 | UEDITOR_HOME_URL: URL 31 | 32 | // 服务器统一请求接口路径 33 | , serverUrl: URL + "jsp/controller.jsp" 34 | 35 | //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义 36 | 37 | , toolbars: [ 38 | [ 39 | 'bold','italic','underline','forecolor','backcolor','|', 40 | 'fontfamily','fontsize','paragraph','|', 41 | 'spechars','justifyleft','justifycenter','justifyright','link','unlink','horizontal','|', 42 | 'removeformat','formatmatch','pasteplain','|', 43 | 'emotion','music','simpleupload','insertvideo','attachment' 44 | ], 45 | [ 46 | 'source','|', 47 | 'inserttable','deletetable','mergeright','mergedown','splittorows','splittocols','splittocells','mergecells','insertcol','insertrow','deletecol','deleterow','insertparagraphbeforetable','|', 48 | 'print','preview','|','insertcode' 49 | ] 50 | ] 51 | //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准 52 | //,labelMap:{ 53 | // 'anchor':'', 'undo':'' 54 | //} 55 | 56 | //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件: 57 | //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase() 58 | //,lang:"zh-cn" 59 | //,langPath:URL +"lang/" 60 | 61 | //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件: 62 | //现有如下皮肤:default 63 | //,theme:'default' 64 | //,themePath:URL +"themes/" 65 | 66 | ,zIndex : 1039 //编辑器层级的基数,默认是900 67 | 68 | //针对getAllHtml方法,会在对应的head标签中增加该编码设置。 69 | //,charset:"utf-8" 70 | 71 | //若实例化编辑器的页面手动修改的domain,此处需要设置为true 72 | //,customDomain:false 73 | 74 | //常用配置项目 75 | //,isShow : true //默认显示编辑器 76 | 77 | //,textarea:'editorValue' // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值 78 | 79 | //,initialContent:'欢迎使用ueditor!' //初始化编辑器的内容,也可以通过textarea/script给值,看官网例子 80 | 81 | //,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了 82 | 83 | //,focus:false //初始化时,是否让编辑器获得焦点true或false 84 | 85 | //如果自定义,最好给p标签如下的行高,要不输入中文时,会有跳动感 86 | //,initialStyle:'p{line-height:1em}'//编辑器层级的基数,可以用来改变字体等 87 | 88 | //,iframeCssUrl: URL + '/themes/iframe.css' //给编辑器内部引入一个css文件 89 | 90 | //,initialFrameWidth:1000 //初始化编辑器宽度,默认1000 91 | ,initialFrameHeight:640 //初始化编辑器高度,默认320 92 | 93 | //,readonly : false //编辑器初始化结束后,编辑区域是否是只读的,默认是false 94 | 95 | //,autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况) 96 | 97 | //,imagePopup:true //图片操作的浮层开关,默认打开 98 | 99 | //,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹 100 | 101 | //粘贴只保留标签,去除标签所有属性 102 | //,retainOnlyLabelPasted: false 103 | 104 | //,pasteplain:false //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴 105 | //纯文本粘贴模式下的过滤规则 106 | //'filterTxtRules' : function(){ 107 | // function transP(node){ 108 | // node.tagName = 'p'; 109 | // node.setStyle(); 110 | // } 111 | // return { 112 | // //直接删除及其字节点内容 113 | // '-' : 'script style object iframe embed input select', 114 | // 'p': {$:{}}, 115 | // 'br':{$:{}}, 116 | // 'div':{'$':{}}, 117 | // 'li':{'$':{}}, 118 | // 'caption':transP, 119 | // 'th':transP, 120 | // 'tr':transP, 121 | // 'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP, 122 | // 'td':function(node){ 123 | // //没有内容的td直接删掉 124 | // var txt = !!node.innerText(); 125 | // if(txt){ 126 | // node.parentNode.insertAfter(UE.uNode.createText('    '),node); 127 | // } 128 | // node.parentNode.removeChild(node,node.innerText()) 129 | // } 130 | // } 131 | //}() 132 | 133 | //,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串 134 | 135 | //,autoTransWordToList:false //禁止word中粘贴进来的列表自动变成列表标签 136 | 137 | //fontfamily 138 | //字体设置 label留空支持多语言自动切换,若配置,则以配置值为准 139 | //,'fontfamily':[ 140 | // { label:'',name:'songti',val:'宋体,SimSun'}, 141 | // { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'}, 142 | // { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'}, 143 | // { label:'',name:'heiti',val:'黑体, SimHei'}, 144 | // { label:'',name:'lishu',val:'隶书, SimLi'}, 145 | // { label:'',name:'andaleMono',val:'andale mono'}, 146 | // { label:'',name:'arial',val:'arial, helvetica,sans-serif'}, 147 | // { label:'',name:'arialBlack',val:'arial black,avant garde'}, 148 | // { label:'',name:'comicSansMs',val:'comic sans ms'}, 149 | // { label:'',name:'impact',val:'impact,chicago'}, 150 | // { label:'',name:'timesNewRoman',val:'times new roman'} 151 | //] 152 | 153 | //fontsize 154 | //字号 155 | //,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36] 156 | 157 | //快捷菜单 158 | //,shortcutMenu:["fontfamily", "fontsize", "bold", "italic", "underline", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist"] 159 | 160 | //tab 161 | //点击tab键时移动的距离,tabSize倍数,tabNode什么字符做为单位 162 | //,tabSize:4 163 | //,tabNode:' ' 164 | 165 | //removeFormat 166 | //清除格式时可以删除的标签和属性 167 | //removeForamtTags标签 168 | //,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' 169 | //removeFormatAttributes属性 170 | //,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign' 171 | 172 | //scaleEnabled 173 | //是否可以拉伸长高,默认true(当开启时,自动长高失效) 174 | ,scaleEnabled:false 175 | //,minFrameWidth:800 //编辑器拖动时最小宽度,默认800 176 | //,minFrameHeight:220 //编辑器拖动时最小高度,默认220 177 | 178 | //tableDragable 179 | //表格是否可以拖拽 180 | //,tableDragable: true 181 | 182 | //,disabledTableInTable:true //禁止表格嵌套 183 | 184 | //sourceEditor 185 | //源码的查看方式,codemirror 是代码高亮,textarea是文本框,默认是codemirror 186 | //注意默认codemirror只能在ie8+和非ie中使用 187 | //,sourceEditor:"codemirror" 188 | //如果sourceEditor是codemirror,还用配置一下两个参数 189 | //codeMirrorJsUrl js加载的路径,默认是 URL + "third-party/codemirror/codemirror.js" 190 | //,codeMirrorJsUrl:URL + "third-party/codemirror/codemirror.js" 191 | //codeMirrorCssUrl css加载的路径,默认是 URL + "third-party/codemirror/codemirror.css" 192 | //,codeMirrorCssUrl:URL + "third-party/codemirror/codemirror.css" 193 | //编辑器初始化完成后是否进入源码模式,默认为否。 194 | //,sourceEditorFirst:false 195 | 196 | //iframeUrlMap 197 | //dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径 198 | //,iframeUrlMap:{ 199 | // 'anchor':'~/dialogs/anchor/anchor.html', 200 | //} 201 | 202 | }; 203 | 204 | function getUEBasePath(docUrl, confUrl) { 205 | 206 | return getBasePath(docUrl || self.document.URL || self.location.href, confUrl || getConfigFilePath()); 207 | 208 | } 209 | 210 | function getConfigFilePath() { 211 | 212 | var configPath = document.getElementsByTagName('script'); 213 | 214 | return configPath[ configPath.length - 1 ].src; 215 | 216 | } 217 | 218 | function getBasePath(docUrl, confUrl) { 219 | 220 | var basePath = confUrl; 221 | 222 | 223 | if (/^(\/|\\\\)/.test(confUrl)) { 224 | 225 | basePath = /^.+?\w(\/|\\\\)/.exec(docUrl)[0] + confUrl.replace(/^(\/|\\\\)/, ''); 226 | 227 | } else if (!/^[a-z]+:/i.test(confUrl)) { 228 | 229 | docUrl = docUrl.split("#")[0].split("?")[0].replace(/[^\\\/]+$/, ''); 230 | 231 | basePath = docUrl + "" + confUrl; 232 | 233 | } 234 | 235 | return optimizationPath(basePath); 236 | 237 | } 238 | 239 | function optimizationPath(path) { 240 | 241 | var protocol = /^[a-z]+:\/\//.exec(path)[ 0 ], 242 | tmp = null, 243 | res = []; 244 | 245 | path = path.replace(protocol, "").split("?")[0].split("#")[0]; 246 | 247 | path = path.replace(/\\/g, '/').split(/\//); 248 | 249 | path[ path.length - 1 ] = ""; 250 | 251 | while (path.length) { 252 | 253 | if (( tmp = path.shift() ) === "..") { 254 | res.pop(); 255 | } else if (tmp !== ".") { 256 | res.push(tmp); 257 | } 258 | 259 | } 260 | 261 | return protocol + res.join("/"); 262 | 263 | } 264 | 265 | window.UE = { 266 | getUEBasePath: getUEBasePath 267 | }; 268 | 269 | })(); 270 | -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/third-party/video-js/video-js.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | Video.js Default Styles (http://videojs.com) 3 | Version 4.3.0 4 | Create your own skin at http://designer.videojs.com 5 | */.vjs-default-skin{color:#ccc}@font-face{font-family:VideoJS;src:url(font/vjs.eot);src:url(font/vjs.eot?#iefix) format('embedded-opentype'),url(font/vjs.woff) format('woff'),url(font/vjs.ttf) format('truetype');font-weight:400;font-style:normal}.vjs-default-skin .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;background-color:#333;background-color:rgba(51,51,51,.9)}.vjs-default-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-default-skin .vjs-slider-handle{position:absolute;left:0;top:0}.vjs-default-skin .vjs-slider-handle:before{content:"\e009";font-family:VideoJS;font-size:1em;line-height:1;text-align:center;text-shadow:0 0 1em #fff;position:absolute;top:0;left:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.vjs-default-skin .vjs-control-bar{display:none;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#07141e;background-color:rgba(7,20,30,.7)}.vjs-default-skin.vjs-has-started .vjs-control-bar{display:block;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-default-skin.vjs-controls-disabled .vjs-control-bar{display:none}.vjs-default-skin.vjs-using-native-controls .vjs-control-bar{display:none}@media \0screen{.vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-default-skin .vjs-control{outline:0;position:relative;float:left;text-align:center;margin:0;padding:0;height:3em;width:4em}.vjs-default-skin .vjs-control:before{font-family:VideoJS;font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-default-skin .vjs-control:focus:before,.vjs-default-skin .vjs-control:hover:before{text-shadow:0 0 1em #fff}.vjs-default-skin .vjs-control:focus{}.vjs-default-skin .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-default-skin .vjs-play-control{width:5em;cursor:pointer}.vjs-default-skin .vjs-play-control:before{content:"\e001"}.vjs-default-skin.vjs-playing .vjs-play-control:before{content:"\e002"}.vjs-default-skin .vjs-mute-control,.vjs-default-skin .vjs-volume-menu-button{cursor:pointer;float:right}.vjs-default-skin .vjs-mute-control:before,.vjs-default-skin .vjs-volume-menu-button:before{content:"\e006"}.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before{content:"\e003"}.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before{content:"\e004"}.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before{content:"\e005"}.vjs-default-skin .vjs-volume-control{width:5em;float:right}.vjs-default-skin .vjs-volume-bar{width:5em;height:.6em;margin:1.1em auto 0}.vjs-default-skin .vjs-volume-menu-button .vjs-menu-content{height:2.9em}.vjs-default-skin .vjs-volume-level{position:absolute;top:0;left:0;height:.5em;background:#66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-volume-bar .vjs-volume-handle{width:.5em;height:.5em}.vjs-default-skin .vjs-volume-handle:before{font-size:.9em;top:-.2em;left:-.2em;width:1em;height:1em}.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content{width:6em;left:-4em}.vjs-default-skin .vjs-progress-control{position:absolute;left:0;right:0;width:auto;font-size:.3em;height:1em;top:-1em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin:hover .vjs-progress-control{font-size:.9em;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-default-skin .vjs-progress-holder{height:100%}.vjs-default-skin .vjs-progress-holder .vjs-play-progress,.vjs-default-skin .vjs-progress-holder .vjs-load-progress{position:absolute;display:block;height:100%;margin:0;padding:0;left:0;top:0}.vjs-default-skin .vjs-play-progress{background:#66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.4)}.vjs-default-skin .vjs-seek-handle{width:1.5em;height:100%}.vjs-default-skin .vjs-seek-handle:before{padding-top:.1em}.vjs-default-skin .vjs-time-controls{font-size:1em;line-height:3em}.vjs-default-skin .vjs-current-time{float:left}.vjs-default-skin .vjs-duration{float:left}.vjs-default-skin .vjs-remaining-time{display:none;float:left}.vjs-time-divider{float:left;line-height:3em}.vjs-default-skin .vjs-fullscreen-control{width:3.8em;cursor:pointer;float:right}.vjs-default-skin .vjs-fullscreen-control:before{content:"\e000"}.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before{content:"\e00b"}.vjs-default-skin .vjs-big-play-button{left:.5em;top:.5em;font-size:3em;display:block;z-index:2;position:absolute;width:4em;height:2.6em;text-align:center;vertical-align:middle;cursor:pointer;opacity:1;background-color:#07141e;background-color:rgba(7,20,30,.7);border:.1em solid #3b4249;-webkit-border-radius:.8em;-moz-border-radius:.8em;border-radius:.8em;-webkit-box-shadow:0 0 1em rgba(255,255,255,.25);-moz-box-shadow:0 0 1em rgba(255,255,255,.25);box-shadow:0 0 1em rgba(255,255,255,.25);-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-2.1em;top:50%;margin-top:-1.4000000000000001em}.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button{display:none}.vjs-default-skin.vjs-has-started .vjs-big-play-button{display:none}.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-default-skin:hover .vjs-big-play-button,.vjs-default-skin .vjs-big-play-button:focus{outline:0;border-color:#fff;background-color:#505050;background-color:rgba(50,50,50,.75);-webkit-box-shadow:0 0 3em #fff;-moz-box-shadow:0 0 3em #fff;box-shadow:0 0 3em #fff;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-default-skin .vjs-big-play-button:before{content:"\e001";font-family:VideoJS;line-height:2.6em;text-shadow:.05em .05em .1em #000;text-align:center;position:absolute;left:0;width:100%;height:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;font-size:4em;line-height:1;width:1em;height:1em;margin-left:-.5em;margin-top:-.5em;opacity:.75;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-default-skin .vjs-loading-spinner:before{content:"\e01e";font-family:VideoJS;position:absolute;top:0;left:0;width:1em;height:1em;text-align:center;text-shadow:0 0 .1em #000}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.vjs-default-skin .vjs-menu-button{float:right;cursor:pointer}.vjs-default-skin .vjs-menu{display:none;position:absolute;bottom:0;left:0;width:0;height:0;margin-bottom:3em;border-left:2em solid transparent;border-right:2em solid transparent;border-top:1.55em solid #000;border-top-color:rgba(7,40,50,.5)}.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;position:absolute;width:10em;bottom:1.5em;max-height:15em;overflow:auto;left:-5em;background-color:#07141e;background-color:rgba(7,20,30,.7);-webkit-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);-moz-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);box-shadow:-.2em -.2em .3em rgba(255,255,255,.2)}.vjs-default-skin .vjs-menu-button:hover .vjs-menu{display:block}.vjs-default-skin .vjs-menu-button ul li{list-style:none;margin:0;padding:.3em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-default-skin .vjs-menu-button ul li.vjs-selected{background-color:#000}.vjs-default-skin .vjs-menu-button ul li:focus,.vjs-default-skin .vjs-menu-button ul li:hover,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover{outline:0;color:#111;background-color:#fff;background-color:rgba(255,255,255,.75);-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-default-skin .vjs-subtitles-button:before{content:"\e00c"}.vjs-default-skin .vjs-captions-button:before{content:"\e008"}.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js{background-color:#000;position:relative;padding:0;font-size:10px;vertical-align:middle;font-weight:400;font-style:normal;font-family:Arial,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js:-moz-full-screen{position:absolute}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0;width:100%!important;height:100%!important;_position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;height:100%;margin:0;padding:0;position:relative;width:100%}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0;width:100%}.video-js.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-text-track-display{text-align:center;position:absolute;bottom:4em;left:1em;right:1em}.video-js .vjs-text-track{display:none;font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:rgba(0,0,0,.5)}.video-js .vjs-subtitles{color:#fff}.video-js .vjs-captions{color:#fc6}.vjs-tt-cue{display:block}.vjs-default-skin .vjs-hidden{display:none}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible} -------------------------------------------------------------------------------- /WebRoot/ueditor-min-1.4.3/ueditor.parse.min.js: -------------------------------------------------------------------------------- 1 | !function(){!function(){UE=window.UE||{};var isIE=!!window.ActiveXObject;var utils={removeLastbs:function(url){return url.replace(/\/$/,"")},extend:function(t,s){var a=arguments,notCover=this.isBoolean(a[a.length-1])?a[a.length-1]:false,len=this.isBoolean(a[a.length-1])?a.length-1:a.length;for(var i=1;i=start&&v===item){index=i;return false}});return index},hasClass:function(element,className){className=className.replace(/(^[ ]+)|([ ]+$)/g,"").replace(/[ ]{2,}/g," ").split(" ");for(var i=0,ci,cls=element.className;ci=className[i++];){if(!new RegExp("\\b"+ci+"\\b","i").test(cls)){return false}}return i-1==className.length},addClass:function(elm,classNames){if(!elm)return;classNames=this.trim(classNames).replace(/[ ]{2,}/g," ").split(" ");for(var i=0,ci,cls=elm.className;ci=classNames[i++];){if(!new RegExp("\\b"+ci+"\\b").test(cls)){cls+=" "+ci}}elm.className=utils.trim(cls)},removeClass:function(elm,classNames){classNames=this.isArray(classNames)?classNames:this.trim(classNames).replace(/[ ]{2,}/g," ").split(" ");for(var i=0,ci,cls=elm.className;ci=classNames[i++];){cls=cls.replace(new RegExp("\\b"+ci+"\\b"),"")}cls=this.trim(cls).replace(/[ ]{2,}/g," ");elm.className=cls;!cls&&elm.removeAttribute("className")},on:function(element,type,handler){var types=this.isArray(type)?type:type.split(/\s+/),k=types.length;if(k)while(k--){type=types[k];if(element.addEventListener){element.addEventListener(type,handler,false)}else{if(!handler._d){handler._d={els:[]}}var key=type+handler.toString(),index=utils.indexOf(handler._d.els,element);if(!handler._d[key]||index==-1){if(index==-1){handler._d.els.push(element)}if(!handler._d[key]){handler._d[key]=function(evt){return handler.call(evt.srcElement,evt||window.event)}}element.attachEvent("on"+type,handler._d[key])}}}element=null},off:function(element,type,handler){var types=this.isArray(type)?type:type.split(/\s+/),k=types.length;if(k)while(k--){type=types[k];if(element.removeEventListener){element.removeEventListener(type,handler,false)}else{var key=type+handler.toString();try{element.detachEvent("on"+type,handler._d?handler._d[key]:handler)}catch(e){}if(handler._d&&handler._d[key]){var index=utils.indexOf(handler._d.els,element);if(index!=-1){handler._d.els.splice(index,1)}handler._d.els.length==0&&delete handler._d[key]}}}},loadFile:function(){var tmpList=[];function getItem(doc,obj){try{for(var i=0,ci;ci=tmpList[i++];){if(ci.doc===doc&&ci.url==(obj.src||obj.href)){return ci}}}catch(e){return null}}return function(doc,obj,fn){var item=getItem(doc,obj);if(item){if(item.ready){fn&&fn()}else{item.funs.push(fn)}return}tmpList.push({doc:doc,url:obj.src||obj.href,funs:[fn]});if(!doc.body){var html=[];for(var p in obj){if(p=="tag")continue;html.push(p+'="'+obj[p]+'"')}doc.write("<"+obj.tag+" "+html.join(" ")+" >");return}if(obj.id&&doc.getElementById(obj.id)){return}var element=doc.createElement(obj.tag);delete obj.tag;for(var p in obj){element.setAttribute(p,obj[p])}element.onload=element.onreadystatechange=function(){if(!this.readyState||/loaded|complete/.test(this.readyState)){item=getItem(doc,obj);if(item.funs.length>0){item.ready=1;for(var fi;fi=item.funs.pop();){fi()}}element.onload=element.onreadystatechange=null}};element.onerror=function(){throw Error("The load "+(obj.href||obj.src)+" fails,check the url")};doc.getElementsByTagName("head")[0].appendChild(element)}}()};utils.each(["String","Function","Array","Number","RegExp","Object","Boolean"],function(v){utils["is"+v]=function(obj){return Object.prototype.toString.apply(obj)=="[object "+v+"]"}});var parselist={};UE.parse={register:function(parseName,fn){parselist[parseName]=fn},load:function(opt){utils.each(parselist,function(v){v.call(opt,utils)})}};uParse=function(selector,opt){utils.domReady(function(){var contents;if(document.querySelectorAll){contents=document.querySelectorAll(selector)}else{if(/^#/.test(selector)){contents=[document.getElementById(selector.replace(/^#/,""))]}else if(/^\./.test(selector)){var contents=[];utils.each(document.getElementsByTagName("*"),function(node){if(node.className&&new RegExp("\\b"+selector.replace(/^\./,"")+"\\b","i").test(node.className)){contents.push(node)}})}else{contents=document.getElementsByTagName(selector)}}utils.each(contents,function(v){UE.parse.load(utils.extend({root:v,selector:selector},opt))})})}}();UE.parse.register("vedio",function(utils){var video=this.root.getElementsByTagName("video"),audio=this.root.getElementsByTagName("audio");document.createElement("video");document.createElement("audio");if(video.length||audio.length){var sourcePath=utils.removeLastbs(this.rootPath),jsurl=sourcePath+"/third-party/video-js/video.js",cssurl=sourcePath+"/third-party/video-js/video-js.min.css",swfUrl=sourcePath+"/third-party/video-js/video-js.swf";if(window.videojs){videojs.autoSetup()}else{utils.loadFile(document,{id:"video_css",tag:"link",rel:"stylesheet",type:"text/css",href:cssurl});utils.loadFile(document,{id:"video_js",src:jsurl,tag:"script",type:"text/javascript"},function(){videojs.options.flash.swf=swfUrl;videojs.autoSetup()})}}});UE.parse.register("insertcode",function(utils){var pres=this.root.getElementsByTagName("pre");if(pres.length){if(typeof XRegExp=="undefined"){var jsurl,cssurl;if(this.rootPath!==undefined){jsurl=utils.removeLastbs(this.rootPath)+"/third-party/SyntaxHighlighter/shCore.js";cssurl=utils.removeLastbs(this.rootPath)+"/third-party/SyntaxHighlighter/shCoreDefault.css"}else{jsurl=this.highlightJsUrl;cssurl=this.highlightCssUrl}utils.loadFile(document,{id:"syntaxhighlighter_css",tag:"link",rel:"stylesheet",type:"text/css",href:cssurl});utils.loadFile(document,{id:"syntaxhighlighter_js",src:jsurl,tag:"script",type:"text/javascript",defer:"defer"},function(){utils.each(pres,function(pi){if(pi&&/brush/i.test(pi.className)){SyntaxHighlighter.highlight(pi)}})})}else{utils.each(pres,function(pi){if(pi&&/brush/i.test(pi.className)){SyntaxHighlighter.highlight(pi)}})}}});UE.parse.register("table",function(utils){var me=this,root=this.root,tables=root.getElementsByTagName("table");if(tables.length){var selector=this.selector;utils.cssRule("table",selector+" table.noBorderTable td,"+selector+" table.noBorderTable th,"+selector+" table.noBorderTable caption{border:1px dashed #ddd !important}"+selector+" table.sortEnabled tr.firstRow th,"+selector+" table.sortEnabled tr.firstRow td{padding-right:20px; background-repeat: no-repeat;"+"background-position: center right; background-image:url("+this.rootPath+"themes/default/images/sortable.png);}"+selector+" table.sortEnabled tr.firstRow th:hover,"+selector+" table.sortEnabled tr.firstRow td:hover{background-color: #EEE;}"+selector+" table{margin-bottom:10px;border-collapse:collapse;display:table;}"+selector+" td,"+selector+" th{ background:white; padding: 5px 10px;border: 1px solid #DDD;}"+selector+" caption{border:1px dashed #DDD;border-bottom:0;padding:3px;text-align:center;}"+selector+" th{border-top:1px solid #BBB;background:#F7F7F7;}"+selector+" table tr.firstRow th{border-top:2px solid #BBB;background:#F7F7F7;}"+selector+" tr.ue-table-interlace-color-single td{ background: #fcfcfc; }"+selector+" tr.ue-table-interlace-color-double td{ background: #f7faff; }"+selector+" td p{margin:0;padding:0;}",document);utils.each("td th caption".split(" "),function(tag){var cells=root.getElementsByTagName(tag);cells.length&&utils.each(cells,function(node){if(!node.firstChild){node.innerHTML=" "}})});var tables=root.getElementsByTagName("table");utils.each(tables,function(table){if(/\bsortEnabled\b/.test(table.className)){utils.on(table,"click",function(e){var target=e.target||e.srcElement,cell=findParentByTagName(target,["td","th"]);var table=findParentByTagName(target,"table"),colIndex=utils.indexOf(table.rows[0].cells,cell),sortType=table.getAttribute("data-sort-type");if(colIndex!=-1){sortTable(table,colIndex,me.tableSortCompareFn||sortType);updateTable(table)}})}});function findParentByTagName(target,tagNames){var i,current=target;tagNames=utils.isArray(tagNames)?tagNames:[tagNames];while(current){for(i=0;i0){var t=array[i];array[i]=array[j];array[j]=t}}}return array}function updateTable(table){if(!utils.hasClass(table.rows[0],"firstRow")){for(var i=1;i