ueditor.rails 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +32 -0
- data/app/assets/javascripts/default.config.js +382 -0
- data/app/assets/javascripts/ueditor.js +2 -0
- data/lib/tasks/ueditor_on_rails_tasks.rake +4 -0
- data/lib/ueditor.rails.rb +17 -0
- data/lib/ueditor/engine.rb +23 -0
- data/lib/ueditor/helpers/form_builder.rb +11 -0
- data/lib/ueditor/helpers/form_helper.rb +13 -0
- data/lib/ueditor/helpers/js_helper.rb +13 -0
- data/lib/ueditor/helpers/view_helper.rb +13 -0
- data/lib/ueditor/hooks/simple_form.rb +16 -0
- data/lib/ueditor/version.rb +3 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +14 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/dummy_controller.rb +18 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/dummy_model.rb +5 -0
- data/test/dummy/app/views/dummy/new.html.erb +22 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +28 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +34 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/log/development.log +51 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/029530186b2a67ade6e57e578c85b454 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/02b56f18dcd4ddec585a02528773c04b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/07898ec696d976eeafb61ef6bb48e097 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0ab8e71a1cbfab4ba97406936b8424d8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d7c51218669ae27b1bb2d8ff9c9c1f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f941886593d207e4ec1f3aba81f3189 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/19694ecb6829b547affeb420f6c4f4ba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24fd9e383d10c56ae5bf72ce4e8d57d5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2a3155304ce0d3a6b8245de3b211a442 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2ef8e8b9d212c49500f1cbb6ab432078 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f6f08f80fb713b72a4c53eca782d352 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/46de6851f078c896ce0a451fe8e67691 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4d359ff4c9c3e425adcf7471f456dd80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/63be665b75f7410b31ece33884eb8eef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7bd63ec22736e590f74f2614ba885123 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8165d0bcd2b5c04b4a98f4f0cbabef64 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8f07cc0565a08f28c45bc04f78ed9feb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9239aabeb118940064b039f4afb8f328 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/92e3cf1ee6169034b72859923497867a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/98ba4a17ce612c2782d52cb7f2a2beb9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a38c0bac61b2d1e331de0057548aba0f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b0df046a48e07ba1cd75447c9732874b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7d95afb3c2e49e813b301d797917b8c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bc3d8cda22ec9e1bf2cbe1f02cc13438 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bd22193b7c008abf93a7640553ee8b24 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c846ab366c3537979e0c1f64aa2c7e23 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ccf39b0f3aeafc89430db44186a59037 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ce2d1d6840444ec16109eb6d2cf8c224 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/da3d050a8e457e6eb47cf56f3342fbd5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/db1e6b0095d2d333b72e73bdf3c40965 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e357c8a9ad97f42187ce017e3bf4a3ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e37eb86c730315ed8a58688351abf8f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fa046bb067616da9d14862739bf2c67c +0 -0
- data/test/test_helper.rb +15 -0
- data/test/ueditor_on_rails_test.rb +7 -0
- data/vendor/assets/javascripts/ueditor/dialogs/anchor/anchor.html +40 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.css +681 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.html +60 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.js +754 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/image.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/progress.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/background.css +94 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/background.html +56 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/background.js +376 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/background/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/chart.config.js +65 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.css +165 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.html +89 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/charts.js +519 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts0.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts1.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts2.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts3.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts4.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/charts/images/charts5.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css +43 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html +54 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.js +186 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/gmap/gmap.html +89 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.css +7 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.html +82 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.js +56 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.css +894 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.html +120 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.js +1139 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/alignicon.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/image.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/progress.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/success.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html +98 -0
- data/vendor/assets/javascripts/ueditor/dialogs/internal.js +81 -0
- data/vendor/assets/javascripts/ueditor/dialogs/link/link.html +126 -0
- data/vendor/assets/javascripts/ueditor/dialogs/map/map.html +135 -0
- data/vendor/assets/javascripts/ueditor/dialogs/map/show.html +118 -0
- data/vendor/assets/javascripts/ueditor/dialogs/music/music.css +30 -0
- data/vendor/assets/javascripts/ueditor/dialogs/music/music.html +32 -0
- data/vendor/assets/javascripts/ueditor/dialogs/music/music.js +192 -0
- data/vendor/assets/javascripts/ueditor/dialogs/preview/preview.html +40 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/addimg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/brush.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/delimgH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/empty.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/emptyH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/eraser.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redo.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/redoH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scale.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/scaleH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/size.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undo.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/images/undoH.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.css +72 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.html +95 -0
- data/vendor/assets/javascripts/ueditor/dialogs/scrawl/scrawl.js +671 -0
- data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html +102 -0
- data/vendor/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +164 -0
- data/vendor/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html +58 -0
- data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html +21 -0
- data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js +57 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.css +84 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.html +64 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.js +237 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittd.html +61 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittip.html +33 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/config.js +42 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/template.css +18 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/template.html +26 -0
- data/vendor/assets/javascripts/ueditor/dialogs/template/template.js +53 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/file-icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/image.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/progress.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/success.gif +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/success.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.css +635 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.html +86 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.js +789 -0
- data/vendor/assets/javascripts/ueditor/dialogs/webapp/webapp.html +53 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/tangram.js +1495 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html +111 -0
- data/vendor/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js +157 -0
- data/vendor/assets/javascripts/ueditor/index.html +175 -0
- data/vendor/assets/javascripts/ueditor/lang/en/en.js +684 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/addimage.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/alldeletebtnupskin.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/background.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/button.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/copy.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/deletedisable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/deleteenable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/listbackground.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/localimage.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/music.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftdisable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotateleftenable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightdisable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/en/images/upload.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +669 -0
- data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.css +1903 -0
- data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.min.css +8 -0
- data/vendor/assets/javascripts/ueditor/themes/default/dialogbase.css +100 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/anchor.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_down.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/arrow_up.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/button-bg.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cancelbutton.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/charts.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_h.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/cursor_v.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/dialog-title-bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/filescan.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/highlighted.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/icons-all.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/icons.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/icons.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/loaderror.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/loading.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/lock.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/scale.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/sortable.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/spacer.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/sparator_v.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/table-cell-align.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/tangram-colorpicker.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/toolbar_bg.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/unhighlighted.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/upload.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/videologo.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/word.gif +0 -0
- data/vendor/assets/javascripts/ueditor/themes/default/images/wordpaste.png +0 -0
- data/vendor/assets/javascripts/ueditor/themes/iframe.css +1 -0
- data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +104 -0
- data/vendor/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +3581 -0
- data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
- data/vendor/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- data/vendor/assets/javascripts/ueditor/ueditor.all.js +29429 -0
- data/vendor/assets/javascripts/ueditor/ueditor.all.min.js +709 -0
- data/vendor/assets/javascripts/ueditor/ueditor.config.js +413 -0
- data/vendor/assets/javascripts/ueditor/ueditor.parse.js +1022 -0
- data/vendor/assets/javascripts/ueditor/ueditor.parse.min.js +28 -0
- metadata +464 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,43 @@
|
|
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;}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title></title>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
6
|
+
<meta name="robots" content="noindex, nofollow"/>
|
7
|
+
<script type="text/javascript" src="../internal.js"></script>
|
8
|
+
<link rel="stylesheet" type="text/css" href="emotion.css">
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div id="tabPanel" class="wrapper">
|
12
|
+
<div id="tabHeads" class="tabhead">
|
13
|
+
<span><var id="lang_input_choice"></var></span>
|
14
|
+
<span><var id="lang_input_Tuzki"></var></span>
|
15
|
+
<span><var id="lang_input_lvdouwa"></var></span>
|
16
|
+
<span><var id="lang_input_BOBO"></var></span>
|
17
|
+
<span><var id="lang_input_babyCat"></var></span>
|
18
|
+
<span><var id="lang_input_bubble"></var></span>
|
19
|
+
<span><var id="lang_input_youa"></var></span>
|
20
|
+
</div>
|
21
|
+
<div id="tabBodys" class="tabbody">
|
22
|
+
<div id="tab0"></div>
|
23
|
+
<div id="tab1"></div>
|
24
|
+
<div id="tab2"></div>
|
25
|
+
<div id="tab3"></div>
|
26
|
+
<div id="tab4"></div>
|
27
|
+
<div id="tab5"></div>
|
28
|
+
<div id="tab6"></div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div id="tabIconReview">
|
32
|
+
<img id='faceReview' class='review' src="../../themes/default/images/spacer.gif"/>
|
33
|
+
</div>
|
34
|
+
<script type="text/javascript" src="emotion.js"></script>
|
35
|
+
<script type="text/javascript">
|
36
|
+
var emotion = {
|
37
|
+
tabNum:7, //切换面板数量
|
38
|
+
SmilmgName:{ tab0:['j_00', 84], tab1:['t_00', 40], tab2:['w_00', 52], tab3:['B_00', 63], tab4:['C_00', 20], tab5:['i_f', 50], tab6:['y_00', 40] }, //图片前缀名
|
39
|
+
imageFolders:{ tab0:'jx2/', tab1:'tsj/', tab2:'ldw/', tab3:'bobo/', tab4:'babycat/', tab5:'face/', tab6:'youa/'}, //图片对应文件夹路径
|
40
|
+
imageCss:{tab0:'jd', tab1:'tsj', tab2:'ldw', tab3:'bb', tab4:'cat', tab5:'pp', tab6:'youa'}, //图片css类名
|
41
|
+
imageCssOffset:{tab0:35, tab1:35, tab2:35, tab3:35, tab4:35, tab5:25, tab6:35}, //图片偏移
|
42
|
+
SmileyInfor:{
|
43
|
+
tab0:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '打酱油', '俯卧撑', '气愤', '?', '吻', '怒', '胜利', 'HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '微笑', '亲吻', '调皮', '惊恐', '耍酷', '发火', '害羞', '汗水', '大哭', '', '加油', '困', '你NB', '晕倒', '开心', '偷笑', '大哭', '滴汗', '叹气', '超赞', '??', '飞吻', '天使', '撒花', '生气', '被砸', '吓傻', '随意吐'],
|
44
|
+
tab1:['Kiss', 'Love', 'Yeah', '啊!', '背扭', '顶', '抖胸', '88', '汗', '瞌睡', '鲁拉', '拍砖', '揉脸', '生日快乐', '摊手', '睡觉', '瘫坐', '无聊', '星星闪', '旋转', '也不行', '郁闷', '正Music', '抓墙', '撞墙至死', '歪头', '戳眼', '飘过', '互相拍砖', '砍死你', '扔桌子', '少林寺', '什么?', '转头', '我爱牛奶', '我踢', '摇晃', '晕厥', '在笼子里', '震荡'],
|
45
|
+
tab2:['大笑', '瀑布汗~', '惊讶', '臭美', '傻笑', '抛媚眼', '发怒', '我错了', 'money', '气愤', '挑逗', '吻', '怒', '胜利', '委屈', '受伤', '说啥呢?', '闭嘴', '不', '逗你玩儿', '飞吻', '眩晕', '魔法', '我来了', '睡了', '我打', '闭嘴', '打', '打晕了', '刷牙', '爆揍', '炸弹', '倒立', '刮胡子', '邪恶的笑', '不要不要', '爱恋中', '放大仔细看', '偷窥', '超高兴', '晕', '松口气', '我跑', '享受', '修养', '哭', '汗', '啊~', '热烈欢迎', '打酱油', '俯卧撑', '?'],
|
46
|
+
tab3:['HI', 'KISS', '不说', '不要', '扯花', '大心', '顶', '大惊', '飞吻', '鬼脸', '害羞', '口水', '狂哭', '来', '泪眼', '流泪', '生气', '吐舌', '喜欢', '旋转', '再见', '抓狂', '汗', '鄙视', '拜', '吐血', '嘘', '打人', '蹦跳', '变脸', '扯肉', '吃To', '吃花', '吹泡泡糖', '大变身', '飞天舞', '回眸', '可怜', '猛抽', '泡泡', '苹果', '亲', '', '骚舞', '烧香', '睡', '套娃娃', '捅捅', '舞倒', '西红柿', '爱慕', '摇', '摇摆', '杂耍', '招财', '被殴', '被球闷', '大惊', '理想', '欧打', '呕吐', '碎', '吐痰'],
|
47
|
+
tab4:['发财了', '吃西瓜', '套牢', '害羞', '庆祝', '我来了', '敲打', '晕了', '胜利', '臭美', '被打了', '贪吃', '迎接', '酷', '顶', '幸运', '爱心', '躲', '送花', '选择'],
|
48
|
+
tab5:['微笑', '亲吻', '调皮', '惊讶', '耍酷', '发火', '害羞', '汗水', '大哭', '得意', '鄙视', '困', '夸奖', '晕倒', '疑问', '媒婆', '狂吐', '青蛙', '发愁', '亲吻', '', '爱心', '心碎', '玫瑰', '礼物', '哭', '奸笑', '可爱', '得意', '呲牙', '暴汗', '楚楚可怜', '困', '哭', '生气', '惊讶', '口水', '彩虹', '夜空', '太阳', '钱钱', '灯泡', '咖啡', '蛋糕', '音乐', '爱', '胜利', '赞', '鄙视', 'OK'],
|
49
|
+
tab6:['男兜', '女兜', '开心', '乖乖', '偷笑', '大笑', '抽泣', '大哭', '无奈', '滴汗', '叹气', '狂晕', '委屈', '超赞', '??', '疑问', '飞吻', '天使', '撒花', '生气', '被砸', '口水', '泪奔', '吓傻', '吐舌头', '点头', '随意吐', '旋转', '困困', '鄙视', '狂顶', '篮球', '再见', '欢迎光临', '恭喜发财', '稍等', '我在线', '恕不议价', '库房有货', '货在路上']
|
50
|
+
}
|
51
|
+
};
|
52
|
+
</script>
|
53
|
+
</body>
|
54
|
+
</html>
|
@@ -0,0 +1,186 @@
|
|
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 = ['<table class="smileytable">'],
|
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( '<tr>' );
|
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( '<td class="' + tableCss + '" border="1" width="' + iColWidth + '%" style="border-collapse:collapse;" align="center" bgcolor="transparent" onclick="InsertSmiley(\'' + realUrl.replace( /'/g, "\\'" ) + '\',event)" onmouseover="over(this,\'' + sUrl + '\',\'' + posflag + '\')" onmouseout="out(this)">' );
|
142
|
+
textHTML.push( '<span>' );
|
143
|
+
textHTML.push( '<img style="background-position:left ' + offset + 'px;" title="' + infor + '" src="' + emotion.SmileyPath + (editor.options.emotionLocalization ? '0.gif" width="' : 'default/0.gif" width="') + iWidth + '" height="' + iHeight + '"></img>' );
|
144
|
+
textHTML.push( '</span>' );
|
145
|
+
} else {
|
146
|
+
textHTML.push( '<td width="' + iColWidth + '%" bgcolor="#FFFFFF">' );
|
147
|
+
}
|
148
|
+
textHTML.push( '</td>' );
|
149
|
+
}
|
150
|
+
textHTML.push( '</tr>' );
|
151
|
+
}
|
152
|
+
textHTML.push( '</table>' );
|
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
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,89 @@
|
|
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
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title></title>
|
7
|
+
<script type="text/javascript" src="../internal.js"></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
|
+
#address{width:220px;height:21px;background: #FFF;border:1px solid #d7d7d7; line-height: 21px;}
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
|
15
|
+
</head>
|
16
|
+
<body>
|
17
|
+
<div class="content">
|
18
|
+
<table>
|
19
|
+
<tr>
|
20
|
+
<td><label for="address"><var id="lang_input_address"></var></label></td>
|
21
|
+
<td><input id="address" type="text" /></td>
|
22
|
+
<td><a id="doSearch" href="javascript:void(0)" class="button"><var id="lang_input_search"></var></a></td>
|
23
|
+
</tr>
|
24
|
+
</table>
|
25
|
+
<div id="container" style="width: 100%; height: 340px;margin: 5px auto; border: 1px solid gray;"></div>
|
26
|
+
</div>
|
27
|
+
<script type="text/javascript">
|
28
|
+
domUtils.on(window,"load",function(){
|
29
|
+
var map = new google.maps.Map(document.getElementById('container'), {
|
30
|
+
zoom: 3,
|
31
|
+
streetViewControl: false,
|
32
|
+
scaleControl: true,
|
33
|
+
mapTypeId: google.maps.MapTypeId.ROADMAP
|
34
|
+
});
|
35
|
+
var imgcss;
|
36
|
+
var marker = new google.maps.Marker({
|
37
|
+
map: map,
|
38
|
+
draggable: true
|
39
|
+
});
|
40
|
+
function doSearch(){
|
41
|
+
var address = document.getElementById('address').value;
|
42
|
+
var geocoder = new google.maps.Geocoder();
|
43
|
+
geocoder.geocode( { 'address': address}, function (results, status) {
|
44
|
+
if (status == google.maps.GeocoderStatus.OK) {
|
45
|
+
var bounds = results[0].geometry.viewport;
|
46
|
+
map.fitBounds(bounds);
|
47
|
+
marker.setPosition(results[0].geometry.location);
|
48
|
+
marker.setTitle(address);
|
49
|
+
} else alert(lang.searchError);
|
50
|
+
});
|
51
|
+
}
|
52
|
+
$G('address').onkeydown = function (evt){
|
53
|
+
evt = evt || event;
|
54
|
+
if (evt.keyCode == 13) {
|
55
|
+
doSearch();
|
56
|
+
}
|
57
|
+
};
|
58
|
+
$G("doSearch").onclick = doSearch;
|
59
|
+
dialog.onok = function (){
|
60
|
+
var center = map.getCenter();
|
61
|
+
var point = marker.getPosition();
|
62
|
+
var url = "http://maps.googleapis.com/maps/api/staticmap?center=" + center.lat() + ',' + center.lng() + "&zoom=" + map.zoom + "&size=520x340&maptype=" + map.getMapTypeId() + "&markers=" + point.lat() + ',' + point.lng() + "&sensor=false";
|
63
|
+
editor.execCommand('inserthtml', '<img width="520" height="340" src="' + url + '"' + (imgcss ? ' style="' + imgcss + '"' :'') + '/>');
|
64
|
+
};
|
65
|
+
|
66
|
+
function getPars(str,par){
|
67
|
+
var reg = new RegExp(par+"=((\\d+|[.,])*)","g");
|
68
|
+
return reg.exec(str)[1];
|
69
|
+
}
|
70
|
+
var img = editor.selection.getRange().getClosedNode();
|
71
|
+
if(img && img.src.indexOf("http://maps.googleapis.com/maps/api/staticmap")!=-1){
|
72
|
+
var url = img.getAttribute("src");
|
73
|
+
var centers = getPars(url,"center").split(",");
|
74
|
+
point = new google.maps.LatLng(Number(centers[0]),Number(centers[1]));
|
75
|
+
map.setCenter(point);
|
76
|
+
map.setZoom(Number(getPars(url,"zoom")));
|
77
|
+
centers = getPars(url,"markers").split(",");
|
78
|
+
marker.setPosition(new google.maps.LatLng(Number(centers[0]),Number(centers[1])));
|
79
|
+
imgcss = img.style.cssText;
|
80
|
+
}else{
|
81
|
+
setTimeout(function(){
|
82
|
+
doSearch();
|
83
|
+
},30)
|
84
|
+
}
|
85
|
+
});
|
86
|
+
|
87
|
+
</script>
|
88
|
+
</body>
|
89
|
+
</html>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
.wrapper{width: 370px;margin: 10px auto;zoom: 1;}
|
2
|
+
.tabbody{height: 360px;}
|
3
|
+
.tabbody .panel{width:100%;height: 360px;position: absolute;background: #fff;}
|
4
|
+
.tabbody .panel h1{font-size:26px;margin: 5px 0 0 5px;}
|
5
|
+
.tabbody .panel p{font-size:12px;margin: 5px 0 0 5px;}
|
6
|
+
.tabbody table{width:90%;line-height: 20px;margin: 5px 0 0 5px;;}
|
7
|
+
.tabbody table thead{font-weight: bold;line-height: 25px;}
|
@@ -0,0 +1,82 @@
|
|
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 content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
7
|
+
<script type="text/javascript" src="../internal.js"></script>
|
8
|
+
<link rel="stylesheet" type="text/css" href="help.css">
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div class="wrapper" id="helptab">
|
12
|
+
<div id="tabHeads" class="tabhead">
|
13
|
+
<span class="focus" tabsrc="about"><var id="lang_input_about"></var></span>
|
14
|
+
<span tabsrc="shortcuts"><var id="lang_input_shortcuts"></var></span>
|
15
|
+
</div>
|
16
|
+
<div id="tabBodys" class="tabbody">
|
17
|
+
<div id="about" class="panel">
|
18
|
+
<h1>UEditor</h1>
|
19
|
+
<p id="version"></p>
|
20
|
+
<p><var id="lang_input_introduction"></var></p>
|
21
|
+
</div>
|
22
|
+
<div id="shortcuts" class="panel">
|
23
|
+
<table>
|
24
|
+
<thead>
|
25
|
+
<tr>
|
26
|
+
<td><var id="lang_Txt_shortcuts"></var></td>
|
27
|
+
<td><var id="lang_Txt_func"></var></td>
|
28
|
+
</tr>
|
29
|
+
</thead>
|
30
|
+
<tbody>
|
31
|
+
<tr>
|
32
|
+
<td>ctrl+b</td>
|
33
|
+
<td><var id="lang_Txt_bold"></var></td>
|
34
|
+
</tr>
|
35
|
+
<tr>
|
36
|
+
<td>ctrl+c</td>
|
37
|
+
<td><var id="lang_Txt_copy"></var></td>
|
38
|
+
</tr>
|
39
|
+
<tr>
|
40
|
+
<td>ctrl+x</td>
|
41
|
+
<td><var id="lang_Txt_cut"></var></td>
|
42
|
+
</tr>
|
43
|
+
<tr>
|
44
|
+
<td>ctrl+v</td>
|
45
|
+
<td><var id="lang_Txt_Paste"></var></td>
|
46
|
+
</tr>
|
47
|
+
<tr>
|
48
|
+
<td>ctrl+y</td>
|
49
|
+
<td><var id="lang_Txt_undo"></var></td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td>ctrl+z</td>
|
53
|
+
<td><var id="lang_Txt_redo"></var></td>
|
54
|
+
</tr>
|
55
|
+
<tr>
|
56
|
+
<td>ctrl+i</td>
|
57
|
+
<td><var id="lang_Txt_italic"></var></td>
|
58
|
+
</tr>
|
59
|
+
<tr>
|
60
|
+
<td>ctrl+u</td>
|
61
|
+
<td><var id="lang_Txt_underline"></var></td>
|
62
|
+
</tr>
|
63
|
+
<tr>
|
64
|
+
<td>ctrl+a</td>
|
65
|
+
<td><var id="lang_Txt_selectAll"></var></td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<td>shift+enter</td>
|
69
|
+
<td><var id="lang_Txt_visualEnter"></var></td>
|
70
|
+
</tr>
|
71
|
+
<tr>
|
72
|
+
<td>alt+z</td>
|
73
|
+
<td><var id="lang_Txt_fullscreen"></var></td>
|
74
|
+
</tr>
|
75
|
+
</tbody>
|
76
|
+
</table>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
<script type="text/javascript" src="help.js"></script>
|
81
|
+
</body>
|
82
|
+
</html>
|