centaline-data-driven 1.2.65 → 1.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +7 -3
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +0 -2
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +14 -10
- package/src/centaline/loader/src/ctl/Detail.js +3 -1
- package/src/centaline/loader/src/ctl/FormList.js +0 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/static/UEditor/dialogs/anchor/anchor.html +0 -40
- package/static/UEditor/dialogs/attachment/attachment.css +0 -681
- package/static/UEditor/dialogs/attachment/attachment.html +0 -60
- package/static/UEditor/dialogs/attachment/attachment.js +0 -768
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.png +0 -0
- package/static/UEditor/dialogs/attachment/images/bg.png +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/image.png +0 -0
- package/static/UEditor/dialogs/attachment/images/progress.png +0 -0
- package/static/UEditor/dialogs/attachment/images/success.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/success.png +0 -0
- package/static/UEditor/dialogs/background/background.css +0 -94
- package/static/UEditor/dialogs/background/background.html +0 -56
- package/static/UEditor/dialogs/background/background.js +0 -376
- package/static/UEditor/dialogs/background/images/bg.png +0 -0
- package/static/UEditor/dialogs/background/images/success.png +0 -0
- package/static/UEditor/dialogs/charts/chart.config.js +0 -65
- package/static/UEditor/dialogs/charts/charts.css +0 -165
- package/static/UEditor/dialogs/charts/charts.html +0 -89
- package/static/UEditor/dialogs/charts/charts.js +0 -519
- package/static/UEditor/dialogs/charts/images/charts0.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts1.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts2.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts3.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts4.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts5.png +0 -0
- package/static/UEditor/dialogs/emotion/emotion.css +0 -43
- package/static/UEditor/dialogs/emotion/emotion.html +0 -54
- package/static/UEditor/dialogs/emotion/emotion.js +0 -186
- package/static/UEditor/dialogs/emotion/images/0.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/bface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/cface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/fface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/jxface2.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/dialogs/emotion/images/tface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/wface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/yface.gif +0 -0
- package/static/UEditor/dialogs/gmap/gmap.html +0 -89
- package/static/UEditor/dialogs/help/help.css +0 -7
- package/static/UEditor/dialogs/help/help.html +0 -82
- package/static/UEditor/dialogs/help/help.js +0 -56
- package/static/UEditor/dialogs/image/image.css +0 -894
- package/static/UEditor/dialogs/image/image.html +0 -120
- package/static/UEditor/dialogs/image/image.js +0 -1156
- package/static/UEditor/dialogs/image/images/alignicon.jpg +0 -0
- package/static/UEditor/dialogs/image/images/bg.png +0 -0
- package/static/UEditor/dialogs/image/images/icons.gif +0 -0
- package/static/UEditor/dialogs/image/images/icons.png +0 -0
- package/static/UEditor/dialogs/image/images/image.png +0 -0
- package/static/UEditor/dialogs/image/images/progress.png +0 -0
- package/static/UEditor/dialogs/image/images/success.gif +0 -0
- package/static/UEditor/dialogs/image/images/success.png +0 -0
- package/static/UEditor/dialogs/insertframe/insertframe.html +0 -98
- package/static/UEditor/dialogs/internal.js +0 -81
- package/static/UEditor/dialogs/link/link.html +0 -126
- package/static/UEditor/dialogs/map/map.html +0 -135
- package/static/UEditor/dialogs/map/show.html +0 -118
- package/static/UEditor/dialogs/music/music.css +0 -30
- package/static/UEditor/dialogs/music/music.html +0 -32
- package/static/UEditor/dialogs/music/music.js +0 -192
- package/static/UEditor/dialogs/preview/preview.html +0 -40
- package/static/UEditor/dialogs/scrawl/images/addimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/brush.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimgH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/empty.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/emptyH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/eraser.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scale.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scaleH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/size.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/scrawl.css +0 -72
- package/static/UEditor/dialogs/scrawl/scrawl.html +0 -95
- package/static/UEditor/dialogs/scrawl/scrawl.js +0 -671
- package/static/UEditor/dialogs/searchreplace/searchreplace.html +0 -102
- package/static/UEditor/dialogs/searchreplace/searchreplace.js +0 -164
- package/static/UEditor/dialogs/snapscreen/snapscreen.html +0 -58
- package/static/UEditor/dialogs/spechars/spechars.html +0 -21
- package/static/UEditor/dialogs/spechars/spechars.js +0 -57
- package/static/UEditor/dialogs/table/dragicon.png +0 -0
- package/static/UEditor/dialogs/table/edittable.css +0 -84
- package/static/UEditor/dialogs/table/edittable.html +0 -64
- package/static/UEditor/dialogs/table/edittable.js +0 -237
- package/static/UEditor/dialogs/table/edittd.html +0 -61
- package/static/UEditor/dialogs/table/edittip.html +0 -33
- package/static/UEditor/dialogs/template/config.js +0 -42
- package/static/UEditor/dialogs/template/images/bg.gif +0 -0
- package/static/UEditor/dialogs/template/images/pre0.png +0 -0
- package/static/UEditor/dialogs/template/images/pre1.png +0 -0
- package/static/UEditor/dialogs/template/images/pre2.png +0 -0
- package/static/UEditor/dialogs/template/images/pre3.png +0 -0
- package/static/UEditor/dialogs/template/images/pre4.png +0 -0
- package/static/UEditor/dialogs/template/template.css +0 -18
- package/static/UEditor/dialogs/template/template.html +0 -26
- package/static/UEditor/dialogs/template/template.js +0 -53
- package/static/UEditor/dialogs/video/images/bg.png +0 -0
- package/static/UEditor/dialogs/video/images/center_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/video/images/icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/icons.png +0 -0
- package/static/UEditor/dialogs/video/images/image.png +0 -0
- package/static/UEditor/dialogs/video/images/left_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/none_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/progress.png +0 -0
- package/static/UEditor/dialogs/video/images/right_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/success.gif +0 -0
- package/static/UEditor/dialogs/video/images/success.png +0 -0
- package/static/UEditor/dialogs/video/video.css +0 -635
- package/static/UEditor/dialogs/video/video.html +0 -86
- package/static/UEditor/dialogs/video/video.js +0 -797
- package/static/UEditor/dialogs/webapp/webapp.html +0 -53
- package/static/UEditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- package/static/UEditor/dialogs/wordimage/imageUploader.swf +0 -0
- package/static/UEditor/dialogs/wordimage/tangram.js +0 -1495
- package/static/UEditor/dialogs/wordimage/wordimage.html +0 -110
- package/static/UEditor/dialogs/wordimage/wordimage.js +0 -157
- package/static/UEditor/index.html +0 -175
- package/static/UEditor/jsp/config.json +0 -94
- package/static/UEditor/jsp/controller.jsp +0 -14
- package/static/UEditor/jsp/lib/commons-codec-1.9.jar +0 -0
- package/static/UEditor/jsp/lib/commons-fileupload-1.3.1.jar +0 -0
- package/static/UEditor/jsp/lib/commons-io-2.4.jar +0 -0
- package/static/UEditor/jsp/lib/json.jar +0 -0
- package/static/UEditor/jsp/lib/ueditor-1.1.2.jar +0 -0
- package/static/UEditor/lang/en/en.js +0 -684
- package/static/UEditor/lang/en/images/addimage.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnupskin.png +0 -0
- package/static/UEditor/lang/en/images/background.png +0 -0
- package/static/UEditor/lang/en/images/button.png +0 -0
- package/static/UEditor/lang/en/images/copy.png +0 -0
- package/static/UEditor/lang/en/images/deletedisable.png +0 -0
- package/static/UEditor/lang/en/images/deleteenable.png +0 -0
- package/static/UEditor/lang/en/images/listbackground.png +0 -0
- package/static/UEditor/lang/en/images/localimage.png +0 -0
- package/static/UEditor/lang/en/images/music.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftenable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightenable.png +0 -0
- package/static/UEditor/lang/en/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/images/copy.png +0 -0
- package/static/UEditor/lang/zh-cn/images/localimage.png +0 -0
- package/static/UEditor/lang/zh-cn/images/music.png +0 -0
- package/static/UEditor/lang/zh-cn/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/zh-cn.js +0 -669
- package/static/UEditor/themes/default/css/ueditor.css +0 -1903
- package/static/UEditor/themes/default/css/ueditor.min.css +0 -8
- package/static/UEditor/themes/default/dialogbase.css +0 -100
- package/static/UEditor/themes/default/images/anchor.gif +0 -0
- package/static/UEditor/themes/default/images/arrow.png +0 -0
- package/static/UEditor/themes/default/images/arrow_down.png +0 -0
- package/static/UEditor/themes/default/images/arrow_up.png +0 -0
- package/static/UEditor/themes/default/images/button-bg.gif +0 -0
- package/static/UEditor/themes/default/images/cancelbutton.gif +0 -0
- package/static/UEditor/themes/default/images/charts.png +0 -0
- package/static/UEditor/themes/default/images/cursor_h.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_h.png +0 -0
- package/static/UEditor/themes/default/images/cursor_v.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_v.png +0 -0
- package/static/UEditor/themes/default/images/dialog-title-bg.png +0 -0
- package/static/UEditor/themes/default/images/filescan.png +0 -0
- package/static/UEditor/themes/default/images/highlighted.gif +0 -0
- package/static/UEditor/themes/default/images/icons-all.gif +0 -0
- package/static/UEditor/themes/default/images/icons.gif +0 -0
- package/static/UEditor/themes/default/images/icons.png +0 -0
- package/static/UEditor/themes/default/images/loaderror.png +0 -0
- package/static/UEditor/themes/default/images/loading.gif +0 -0
- package/static/UEditor/themes/default/images/lock.gif +0 -0
- package/static/UEditor/themes/default/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/themes/default/images/pagebreak.gif +0 -0
- package/static/UEditor/themes/default/images/scale.png +0 -0
- package/static/UEditor/themes/default/images/sortable.png +0 -0
- package/static/UEditor/themes/default/images/spacer.gif +0 -0
- package/static/UEditor/themes/default/images/sparator_v.png +0 -0
- package/static/UEditor/themes/default/images/table-cell-align.png +0 -0
- package/static/UEditor/themes/default/images/tangram-colorpicker.png +0 -0
- package/static/UEditor/themes/default/images/toolbar_bg.png +0 -0
- package/static/UEditor/themes/default/images/unhighlighted.gif +0 -0
- package/static/UEditor/themes/default/images/upload.png +0 -0
- package/static/UEditor/themes/default/images/videologo.gif +0 -0
- package/static/UEditor/themes/default/images/word.gif +0 -0
- package/static/UEditor/themes/default/images/wordpaste.png +0 -0
- package/static/UEditor/themes/iframe.css +0 -1
- package/static/UEditor/third-party/SyntaxHighlighter/shCore.js +0 -3655
- package/static/UEditor/third-party/SyntaxHighlighter/shCoreDefault.css +0 -1
- package/static/UEditor/third-party/codemirror/codemirror.css +0 -104
- package/static/UEditor/third-party/codemirror/codemirror.js +0 -3581
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.js +0 -13
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.src.js +0 -313
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.js +0 -15
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.src.js +0 -316
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.js +0 -17
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.src.js +0 -583
- package/static/UEditor/third-party/highcharts/highcharts-more.js +0 -50
- package/static/UEditor/third-party/highcharts/highcharts-more.src.js +0 -2430
- package/static/UEditor/third-party/highcharts/highcharts.js +0 -283
- package/static/UEditor/third-party/highcharts/highcharts.src.js +0 -16974
- package/static/UEditor/third-party/highcharts/modules/annotations.js +0 -7
- package/static/UEditor/third-party/highcharts/modules/annotations.src.js +0 -401
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.js +0 -133
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.src.js +0 -3113
- package/static/UEditor/third-party/highcharts/modules/data.js +0 -17
- package/static/UEditor/third-party/highcharts/modules/data.src.js +0 -582
- package/static/UEditor/third-party/highcharts/modules/drilldown.js +0 -11
- package/static/UEditor/third-party/highcharts/modules/drilldown.src.js +0 -447
- package/static/UEditor/third-party/highcharts/modules/exporting.js +0 -22
- package/static/UEditor/third-party/highcharts/modules/exporting.src.js +0 -709
- package/static/UEditor/third-party/highcharts/modules/funnel.js +0 -12
- package/static/UEditor/third-party/highcharts/modules/funnel.src.js +0 -289
- package/static/UEditor/third-party/highcharts/modules/heatmap.js +0 -1
- package/static/UEditor/third-party/highcharts/modules/heatmap.src.js +0 -53
- package/static/UEditor/third-party/highcharts/modules/map.js +0 -27
- package/static/UEditor/third-party/highcharts/modules/map.src.js +0 -1002
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.js +0 -12
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.src.js +0 -128
- package/static/UEditor/third-party/highcharts/themes/dark-blue.js +0 -254
- package/static/UEditor/third-party/highcharts/themes/dark-green.js +0 -255
- package/static/UEditor/third-party/highcharts/themes/gray.js +0 -257
- package/static/UEditor/third-party/highcharts/themes/grid.js +0 -103
- package/static/UEditor/third-party/highcharts/themes/skies.js +0 -89
- package/static/UEditor/third-party/jquery-1.10.2.js +0 -9789
- package/static/UEditor/third-party/jquery-1.10.2.min.js +0 -6
- package/static/UEditor/third-party/jquery-1.10.2.min.map +0 -1
- package/static/UEditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.eot +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.svg +0 -65
- package/static/UEditor/third-party/video-js/font/vjs.ttf +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.woff +0 -0
- package/static/UEditor/third-party/video-js/video-js.css +0 -766
- package/static/UEditor/third-party/video-js/video-js.min.css +0 -5
- package/static/UEditor/third-party/video-js/video-js.swf +0 -0
- package/static/UEditor/third-party/video-js/video.dev.js +0 -7106
- package/static/UEditor/third-party/video-js/video.js +0 -129
- package/static/UEditor/third-party/webuploader/Uploader.swf +0 -0
- package/static/UEditor/third-party/webuploader/webuploader.css +0 -28
- package/static/UEditor/third-party/webuploader/webuploader.custom.js +0 -5670
- package/static/UEditor/third-party/webuploader/webuploader.custom.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.js +0 -4176
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.html5only.js +0 -5559
- package/static/UEditor/third-party/webuploader/webuploader.html5only.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.js +0 -6733
- package/static/UEditor/third-party/webuploader/webuploader.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.js +0 -4593
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.min.js +0 -2
- package/static/UEditor/third-party/xss.min.js +0 -1
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.js +0 -1256
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.min.js +0 -9
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- package/static/UEditor/ueditor.all.min.js +0 -29574
- package/static/UEditor/ueditor.config.js +0 -497
- package/static/UEditor/ueditor.parse.js +0 -1022
- package/static/UEditor/ueditor.parse.min.js +0 -7
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
-
<title></title>
|
|
6
|
-
<script type="text/javascript" src="../internal.js"></script>
|
|
7
|
-
<style type="text/css">
|
|
8
|
-
.warp {width: 320px;height: 153px;margin-left:5px;padding: 20px 0 0 15px;position: relative;}
|
|
9
|
-
#url {width: 290px; margin-bottom: 2px; margin-left: -6px; margin-left: -2px\9;*margin-left:0;_margin-left:0; }
|
|
10
|
-
.format span{display: inline-block; width: 58px;text-align: center; zoom:1;}
|
|
11
|
-
table td{padding:5px 0;}
|
|
12
|
-
#align{width: 65px;height: 23px;line-height: 22px;}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class="warp">
|
|
17
|
-
<table width="300" cellpadding="0" cellspacing="0">
|
|
18
|
-
<tr>
|
|
19
|
-
<td colspan="2" class="format">
|
|
20
|
-
<span><var id="lang_input_address"></var></span>
|
|
21
|
-
<input style="width:200px" id="url" type="text" value=""/>
|
|
22
|
-
</td>
|
|
23
|
-
</tr>
|
|
24
|
-
<tr>
|
|
25
|
-
<td colspan="2" class="format"><span><var id="lang_input_width"></var></span><input style="width:200px" type="text" id="width"/> px</td>
|
|
26
|
-
|
|
27
|
-
</tr>
|
|
28
|
-
<tr>
|
|
29
|
-
<td colspan="2" class="format"><span><var id="lang_input_height"></var></span><input style="width:200px" type="text" id="height"/> px</td>
|
|
30
|
-
</tr>
|
|
31
|
-
<tr>
|
|
32
|
-
<td><span><var id="lang_input_isScroll"></var></span><input type="checkbox" id="scroll"/> </td>
|
|
33
|
-
<td><span><var id="lang_input_frameborder"></var></span><input type="checkbox" id="frameborder"/> </td>
|
|
34
|
-
</tr>
|
|
35
|
-
|
|
36
|
-
<tr>
|
|
37
|
-
<td colspan="2"><span><var id="lang_input_alignMode"></var></span>
|
|
38
|
-
<select id="align">
|
|
39
|
-
<option value=""></option>
|
|
40
|
-
<option value="left"></option>
|
|
41
|
-
<option value="right"></option>
|
|
42
|
-
</select>
|
|
43
|
-
</td>
|
|
44
|
-
</tr>
|
|
45
|
-
</table>
|
|
46
|
-
</div>
|
|
47
|
-
<script type="text/javascript">
|
|
48
|
-
var iframe = editor._iframe;
|
|
49
|
-
if(iframe){
|
|
50
|
-
$G("url").value = iframe.getAttribute("src")||"";
|
|
51
|
-
$G("width").value = iframe.getAttribute("width")||iframe.style.width.replace("px","")||"";
|
|
52
|
-
$G("height").value = iframe.getAttribute("height") || iframe.style.height.replace("px","") ||"";
|
|
53
|
-
$G("scroll").checked = (iframe.getAttribute("scrolling") == "yes") ? true : false;
|
|
54
|
-
$G("frameborder").checked = (iframe.getAttribute("frameborder") == "1") ? true : false;
|
|
55
|
-
$G("align").value = iframe.align ? iframe.align : "";
|
|
56
|
-
}
|
|
57
|
-
function queding(){
|
|
58
|
-
var url = $G("url").value.replace(/^\s*|\s*$/ig,""),
|
|
59
|
-
width = $G("width").value,
|
|
60
|
-
height = $G("height").value,
|
|
61
|
-
scroll = $G("scroll"),
|
|
62
|
-
frameborder = $G("frameborder"),
|
|
63
|
-
float = $G("align").value,
|
|
64
|
-
newIframe = editor.document.createElement("iframe"),
|
|
65
|
-
div;
|
|
66
|
-
if(!url){
|
|
67
|
-
alert(lang.enterAddress);
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
newIframe.setAttribute("src",/http:\/\/|https:\/\//ig.test(url) ? url : "http://"+url);
|
|
71
|
-
/^[1-9]+[.]?\d*$/g.test( width ) ? newIframe.setAttribute("width",width) : "";
|
|
72
|
-
/^[1-9]+[.]?\d*$/g.test( height ) ? newIframe.setAttribute("height",height) : "";
|
|
73
|
-
scroll.checked ? newIframe.setAttribute("scrolling","yes") : newIframe.setAttribute("scrolling","no");
|
|
74
|
-
frameborder.checked ? newIframe.setAttribute("frameborder","1",0) : newIframe.setAttribute("frameborder","0",0);
|
|
75
|
-
float ? newIframe.setAttribute("align",float) : newIframe.setAttribute("align","");
|
|
76
|
-
if(iframe){
|
|
77
|
-
iframe.parentNode.insertBefore(newIframe,iframe);
|
|
78
|
-
domUtils.remove(iframe);
|
|
79
|
-
}else{
|
|
80
|
-
div = editor.document.createElement("div");
|
|
81
|
-
div.appendChild(newIframe);
|
|
82
|
-
editor.execCommand("inserthtml",div.innerHTML);
|
|
83
|
-
}
|
|
84
|
-
editor._iframe = null;
|
|
85
|
-
dialog.close();
|
|
86
|
-
}
|
|
87
|
-
dialog.onok = queding;
|
|
88
|
-
$G("url").onkeydown = function(evt){
|
|
89
|
-
evt = evt || event;
|
|
90
|
-
if(evt.keyCode == 13){
|
|
91
|
-
queding();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
$focus($G( "url" ));
|
|
95
|
-
|
|
96
|
-
</script>
|
|
97
|
-
</body>
|
|
98
|
-
</html>
|
|
@@ -1,81 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<title></title>
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
|
7
|
-
<script type="text/javascript" src="../internal.js"></script>
|
|
8
|
-
<style type="text/css">
|
|
9
|
-
*{margin:0;padding:0;color: #838383;}
|
|
10
|
-
table{font-size: 12px;margin: 10px;line-height: 30px}
|
|
11
|
-
.txt{width:300px;height:21px;line-height:21px;border:1px solid #d7d7d7;}
|
|
12
|
-
</style>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<table>
|
|
16
|
-
<tr>
|
|
17
|
-
<td><label for="text"> <var id="lang_input_text"></var></label></td>
|
|
18
|
-
<td><input class="txt" id="text" type="text" disabled="true"/></td>
|
|
19
|
-
</tr>
|
|
20
|
-
<tr>
|
|
21
|
-
<td><label for="href"> <var id="lang_input_url"></var></label></td>
|
|
22
|
-
<td><input class="txt" id="href" type="text" /></td>
|
|
23
|
-
</tr>
|
|
24
|
-
<tr>
|
|
25
|
-
<td><label for="title"> <var id="lang_input_title"></var></label></td>
|
|
26
|
-
<td><input class="txt" id="title" type="text"/></td>
|
|
27
|
-
</tr>
|
|
28
|
-
<tr>
|
|
29
|
-
<td colspan="2">
|
|
30
|
-
<label for="target"><var id="lang_input_target"></var></label>
|
|
31
|
-
<input id="target" type="checkbox"/>
|
|
32
|
-
</td>
|
|
33
|
-
</tr>
|
|
34
|
-
<tr>
|
|
35
|
-
<td colspan="2" id="msg"></td>
|
|
36
|
-
</tr>
|
|
37
|
-
</table>
|
|
38
|
-
<script type="text/javascript">
|
|
39
|
-
var range = editor.selection.getRange(),
|
|
40
|
-
link = range.collapsed ? editor.queryCommandValue( "link" ) : editor.selection.getStart(),
|
|
41
|
-
url,
|
|
42
|
-
text = $G('text'),
|
|
43
|
-
rangeLink = domUtils.findParentByTagName(range.getCommonAncestor(),'a',true),
|
|
44
|
-
orgText;
|
|
45
|
-
link = domUtils.findParentByTagName( link, "a", true );
|
|
46
|
-
if(link){
|
|
47
|
-
url = utils.html(link.getAttribute( '_href' ) || link.getAttribute( 'href', 2 ));
|
|
48
|
-
|
|
49
|
-
if(rangeLink === link && !link.getElementsByTagName('img').length){
|
|
50
|
-
text.removeAttribute('disabled');
|
|
51
|
-
orgText = text.value = link[browser.ie ? 'innerText':'textContent'];
|
|
52
|
-
}else{
|
|
53
|
-
text.setAttribute('disabled','true');
|
|
54
|
-
text.value = lang.validLink;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
}else{
|
|
58
|
-
if(range.collapsed){
|
|
59
|
-
text.removeAttribute('disabled');
|
|
60
|
-
text.value = '';
|
|
61
|
-
}else{
|
|
62
|
-
text.setAttribute('disabled','true');
|
|
63
|
-
text.value = lang.validLink;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
$G("title").value = url ? link.title : "";
|
|
68
|
-
$G("href").value = url ? url: '';
|
|
69
|
-
$G("target").checked = url && link.target == "_blank" ? true : false;
|
|
70
|
-
$focus($G("href"));
|
|
71
|
-
|
|
72
|
-
function handleDialogOk(){
|
|
73
|
-
var href =$G('href').value.replace(/^\s+|\s+$/g, '');
|
|
74
|
-
if(href){
|
|
75
|
-
if(!hrefStartWith(href,["http","/","ftp://",'#'])) {
|
|
76
|
-
href = "http://" + href;
|
|
77
|
-
}
|
|
78
|
-
var obj = {
|
|
79
|
-
'href' : href,
|
|
80
|
-
'target' : $G("target").checked ? "_blank" : '_self',
|
|
81
|
-
'title' : $G("title").value.replace(/^\s+|\s+$/g, ''),
|
|
82
|
-
'_href':href
|
|
83
|
-
};
|
|
84
|
-
//修改链接内容的情况太特殊了,所以先做到这里了
|
|
85
|
-
//todo:情况多的时候,做到command里
|
|
86
|
-
if(orgText && text.value != orgText){
|
|
87
|
-
link[browser.ie ? 'innerText' : 'textContent'] = obj.textValue = text.value;
|
|
88
|
-
range.selectNode(link).select()
|
|
89
|
-
}
|
|
90
|
-
if(range.collapsed){
|
|
91
|
-
obj.textValue = text.value;
|
|
92
|
-
}
|
|
93
|
-
editor.execCommand('link',utils.clearEmptyAttrs(obj) );
|
|
94
|
-
dialog.close();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
dialog.onok = handleDialogOk;
|
|
98
|
-
$G('href').onkeydown = $G('title').onkeydown = function(evt){
|
|
99
|
-
evt = evt || window.event;
|
|
100
|
-
if (evt.keyCode == 13) {
|
|
101
|
-
handleDialogOk();
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
$G('href').onblur = function(){
|
|
106
|
-
if(!hrefStartWith(this.value,["http","/","ftp://",'#'])){
|
|
107
|
-
$G("msg").innerHTML = "<span style='color: red'>"+lang.httpPrompt+"</span>";
|
|
108
|
-
}else{
|
|
109
|
-
$G("msg").innerHTML = "";
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
function hrefStartWith(href,arr){
|
|
114
|
-
href = href.replace(/^\s+|\s+$/g, '');
|
|
115
|
-
for(var i=0,ai;ai=arr[i++];){
|
|
116
|
-
if(href.indexOf(ai)==0){
|
|
117
|
-
return true;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
</script>
|
|
125
|
-
</body>
|
|
126
|
-
</html>
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
-
<title></title>
|
|
6
|
-
<script type="text/javascript" src="../internal.js"></script>
|
|
7
|
-
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&services=true"></script>
|
|
8
|
-
<style type="text/css">
|
|
9
|
-
.content{width:530px; height: 350px;margin: 10px auto;}
|
|
10
|
-
.content table{width: 100%}
|
|
11
|
-
.content table td{vertical-align: middle;}
|
|
12
|
-
#city,#address{height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}
|
|
13
|
-
#city{width:60px}
|
|
14
|
-
#address{width:130px}
|
|
15
|
-
#is_dynamic_label span{vertical-align:middle;margin: 3px 0px 3px 3px;}
|
|
16
|
-
#is_dynamic_label input{vertical-align:middle;margin: 3px 3px 3px 50px;}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div class="content">
|
|
21
|
-
<table>
|
|
22
|
-
<tr>
|
|
23
|
-
<td><var id="lang_city"></var>:</td>
|
|
24
|
-
<td><input id="city" type="text" /></td>
|
|
25
|
-
<td><var id="lang_address"></var>:</td>
|
|
26
|
-
<td><input id="address" type="text" value="" /></td>
|
|
27
|
-
<td><a href="javascript:doSearch()" class="button"><var id="lang_search"></var></a></td>
|
|
28
|
-
<td><label id="is_dynamic_label" for="is_dynamic"><input id="is_dynamic" type="checkbox" name="is_dynamic" /><span><var id="lang_dynamicmap"></var></span></label></td>
|
|
29
|
-
</tr>
|
|
30
|
-
</table>
|
|
31
|
-
<div style="width:100%;height:340px;margin:5px auto;border:1px solid gray" id="container"></div>
|
|
32
|
-
|
|
33
|
-
</div>
|
|
34
|
-
<script type="text/javascript">
|
|
35
|
-
var map = new BMap.Map("container"),marker,point,styleStr;
|
|
36
|
-
map.enableScrollWheelZoom();
|
|
37
|
-
map.enableContinuousZoom();
|
|
38
|
-
function doSearch(){
|
|
39
|
-
if (!document.getElementById('city').value) {
|
|
40
|
-
alert(lang.cityMsg);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
var search = new BMap.LocalSearch(document.getElementById('city').value, {
|
|
44
|
-
onSearchComplete: function (results){
|
|
45
|
-
if (results && results.getNumPois()) {
|
|
46
|
-
var points = [];
|
|
47
|
-
for (var i=0; i<results.getCurrentNumPois(); i++) {
|
|
48
|
-
points.push(results.getPoi(i).point);
|
|
49
|
-
}
|
|
50
|
-
if (points.length > 1) {
|
|
51
|
-
map.setViewport(points);
|
|
52
|
-
} else {
|
|
53
|
-
map.centerAndZoom(points[0], 13);
|
|
54
|
-
}
|
|
55
|
-
point = map.getCenter();
|
|
56
|
-
marker.setPoint(point);
|
|
57
|
-
} else {
|
|
58
|
-
alert(lang.errorMsg);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
search.search(document.getElementById('address').value || document.getElementById('city').value);
|
|
63
|
-
}
|
|
64
|
-
//获得参数
|
|
65
|
-
function getPars(str,par){
|
|
66
|
-
var reg = new RegExp(par+"=((\\d+|[.,])*)","g");
|
|
67
|
-
return reg.exec(str)[1];
|
|
68
|
-
}
|
|
69
|
-
function init(){
|
|
70
|
-
var mapNode = editor.selection.getRange().getClosedNode(),
|
|
71
|
-
isMapImg = mapNode && /api[.]map[.]baidu[.]com/ig.test(mapNode.getAttribute("src")),
|
|
72
|
-
isMapIframe = mapNode && domUtils.hasClass(mapNode, 'ueditor_baidumap');
|
|
73
|
-
if(isMapImg || isMapIframe){
|
|
74
|
-
var url, centerPos, markerPos;
|
|
75
|
-
if(isMapIframe) {
|
|
76
|
-
url = decodeURIComponent(mapNode.getAttribute("src"));
|
|
77
|
-
$G('is_dynamic').checked = true;
|
|
78
|
-
styleStr = mapNode.style.cssText;
|
|
79
|
-
} else {
|
|
80
|
-
url = mapNode.getAttribute("src");
|
|
81
|
-
styleStr = mapNode.style.cssText;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
centerPos = getPars(url,"center").split(",");
|
|
85
|
-
markerPos = getPars(url, "markers").split(",");
|
|
86
|
-
point = new BMap.Point(Number(centerPos[0]),Number(centerPos[1]));
|
|
87
|
-
marker = new BMap.Marker(new BMap.Point(Number(markerPos[0]), Number(markerPos[1])));
|
|
88
|
-
map.addControl(new BMap.NavigationControl());
|
|
89
|
-
map.centerAndZoom(point, Number(getPars(url,"zoom")));
|
|
90
|
-
}else{
|
|
91
|
-
point = new BMap.Point(116.404, 39.915); // 创建点坐标
|
|
92
|
-
marker = new BMap.Marker(point);
|
|
93
|
-
map.addControl(new BMap.NavigationControl());
|
|
94
|
-
map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。
|
|
95
|
-
}
|
|
96
|
-
marker.enableDragging();
|
|
97
|
-
map.addOverlay(marker);
|
|
98
|
-
}
|
|
99
|
-
init();
|
|
100
|
-
document.getElementById('address').onkeydown = function (evt){
|
|
101
|
-
evt = evt || event;
|
|
102
|
-
if (evt.keyCode == 13) {
|
|
103
|
-
doSearch();
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
dialog.onok = function (){
|
|
107
|
-
var center = map.getCenter();
|
|
108
|
-
var zoom = map.zoomLevel;
|
|
109
|
-
var size = map.getSize();
|
|
110
|
-
var mapWidth = size.width;
|
|
111
|
-
var mapHeight = size.height;
|
|
112
|
-
var point = marker.getPoint();
|
|
113
|
-
|
|
114
|
-
if($G('is_dynamic').checked) {
|
|
115
|
-
var URL = editor.options.UEDITOR_HOME_URL,
|
|
116
|
-
url = [URL + (/\/$/.test(URL) ? '':'/') + "dialogs/map/show.html" +
|
|
117
|
-
'#center=' + center.lng + ',' + center.lat,
|
|
118
|
-
'&zoom=' + zoom,
|
|
119
|
-
'&width=' + mapWidth,
|
|
120
|
-
'&height=' + mapHeight,
|
|
121
|
-
'&markers=' + point.lng + ',' + point.lat,
|
|
122
|
-
'&markerStyles=' + 'l,A'].join('');
|
|
123
|
-
editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + ' frameborder="0" width="' + (mapWidth+4) + '" height="' + (mapHeight+4) + '"></iframe>');
|
|
124
|
-
} else {
|
|
125
|
-
var url = "http://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat +
|
|
126
|
-
"&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat;
|
|
127
|
-
editor.execCommand('inserthtml', '<img width="'+ size.width +'"height="'+ size.height +'" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + '/>');
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
document.getElementById("address").focus();
|
|
131
|
-
</script>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
</body>
|
|
135
|
-
</html>
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8"/>
|
|
6
|
-
<meta name="keywords" content="百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"/>
|
|
7
|
-
<meta name="description" content="百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"/>
|
|
8
|
-
<title>百度地图API自定义地图</title>
|
|
9
|
-
<!--引用百度地图API-->
|
|
10
|
-
<style type="text/css">
|
|
11
|
-
html, body {
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body onload="initMap();">
|
|
21
|
-
<!--百度地图容器-->
|
|
22
|
-
<div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div>
|
|
23
|
-
</body>
|
|
24
|
-
<script type="text/javascript">
|
|
25
|
-
function getParam(name) {
|
|
26
|
-
return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : '';
|
|
27
|
-
}
|
|
28
|
-
var map, marker;
|
|
29
|
-
var centerParam = getParam('center');
|
|
30
|
-
var zoomParam = getParam('zoom');
|
|
31
|
-
var widthParam = getParam('width');
|
|
32
|
-
var heightParam = getParam('height');
|
|
33
|
-
var markersParam = getParam('markers');
|
|
34
|
-
var markerStylesParam = getParam('markerStyles');
|
|
35
|
-
|
|
36
|
-
//创建和初始化地图函数:
|
|
37
|
-
function initMap() {
|
|
38
|
-
// [FF]切换模式后报错
|
|
39
|
-
if (!window.BMap) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
var dituContent = document.getElementById('dituContent');
|
|
43
|
-
dituContent.style.width = widthParam + 'px';
|
|
44
|
-
dituContent.style.height = heightParam + 'px';
|
|
45
|
-
|
|
46
|
-
createMap();//创建地图
|
|
47
|
-
setMapEvent();//设置地图事件
|
|
48
|
-
addMapControl();//向地图添加控件
|
|
49
|
-
|
|
50
|
-
// 创建标注
|
|
51
|
-
var markersArr = markersParam.split(',');
|
|
52
|
-
var point = new BMap.Point(markersArr[0], markersArr[1]);
|
|
53
|
-
marker = new BMap.Marker(point);
|
|
54
|
-
marker.enableDragging();
|
|
55
|
-
map.addOverlay(marker); // 将标注添加到地图中
|
|
56
|
-
|
|
57
|
-
if(parent.editor && parent.document.body.contentEditable=="true") { //在编辑状态下
|
|
58
|
-
setMapListener();//地图改变修改外层的iframe标签src属性
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
//创建地图函数:
|
|
63
|
-
function createMap() {
|
|
64
|
-
map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
|
|
65
|
-
var centerArr = centerParam.split(',');
|
|
66
|
-
var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定义一个中心点坐标
|
|
67
|
-
map.centerAndZoom(point, parseInt(zoomParam));//设定地图的中心点和坐标并将地图显示在地图容器中
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
//地图事件设置函数:
|
|
71
|
-
function setMapEvent() {
|
|
72
|
-
map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
|
|
73
|
-
map.enableScrollWheelZoom();//启用地图滚轮放大缩小
|
|
74
|
-
map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
|
|
75
|
-
map.enableKeyboard();//启用键盘上下左右键移动地图
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
//地图控件添加函数:
|
|
79
|
-
function addMapControl() {
|
|
80
|
-
//向地图中添加缩放控件
|
|
81
|
-
var ctrl_nav = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE});
|
|
82
|
-
map.addControl(ctrl_nav);
|
|
83
|
-
//向地图中添加缩略图控件
|
|
84
|
-
var ctrl_ove = new BMap.OverviewMapControl({anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1});
|
|
85
|
-
map.addControl(ctrl_ove);
|
|
86
|
-
//向地图中添加比例尺控件
|
|
87
|
-
var ctrl_sca = new BMap.ScaleControl({anchor: BMAP_ANCHOR_BOTTOM_LEFT});
|
|
88
|
-
map.addControl(ctrl_sca);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function setMapListener() {
|
|
92
|
-
var editor = parent.editor, containerIframe,
|
|
93
|
-
iframes = parent.document.getElementsByTagName('iframe');
|
|
94
|
-
for (var key in iframes) {
|
|
95
|
-
if (iframes[key].contentWindow == window) {
|
|
96
|
-
containerIframe = iframes[key];
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if (containerIframe) {
|
|
101
|
-
map.addEventListener('moveend', mapListenerHandler);
|
|
102
|
-
map.addEventListener('zoomend', mapListenerHandler);
|
|
103
|
-
marker.addEventListener('dragend', mapListenerHandler);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function mapListenerHandler() {
|
|
107
|
-
var zoom = map.getZoom(),
|
|
108
|
-
center = map.getCenter(),
|
|
109
|
-
marker = window.marker.getPoint();
|
|
110
|
-
containerIframe.src = containerIframe.src.
|
|
111
|
-
replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat).
|
|
112
|
-
replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat).
|
|
113
|
-
replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom);
|
|
114
|
-
editor.fireEvent('saveScene');
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
</script>
|
|
118
|
-
</html>
|
|
@@ -1,30 +0,0 @@
|
|
|
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;}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
5
|
-
<title>插入音乐</title>
|
|
6
|
-
<script type="text/javascript" src="../internal.js"></script>
|
|
7
|
-
<link rel="stylesheet" type="text/css" href="music.css">
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div class="wrapper">
|
|
11
|
-
<div class="searchBar">
|
|
12
|
-
<input id="J_searchName" type="text"/>
|
|
13
|
-
<input type="button" class="searchBtn" id="J_searchBtn">
|
|
14
|
-
</div>
|
|
15
|
-
<div class="resultBar" id="J_resultBar">
|
|
16
|
-
<div class="loading" style="display:none"></div>
|
|
17
|
-
<div class="empty"><var id="lang_input_tips"></var></div>
|
|
18
|
-
</div>
|
|
19
|
-
<div id="J_preview"></div>
|
|
20
|
-
</div>
|
|
21
|
-
<script type="text/javascript" src="music.js"></script>
|
|
22
|
-
<script type="text/javascript">
|
|
23
|
-
var music = new Music;
|
|
24
|
-
dialog.onok = function () {
|
|
25
|
-
music.exec();
|
|
26
|
-
};
|
|
27
|
-
dialog.oncancel = function () {
|
|
28
|
-
$G('J_preview').innerHTML = "";
|
|
29
|
-
};
|
|
30
|
-
</script>
|
|
31
|
-
</body>
|
|
32
|
-
</html>
|