ueditor_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.markdown +36 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/ueditor_rails/config.js.erb +207 -0
- data/app/assets/javascripts/ueditor_rails/init.js +12 -0
- data/app/controllers/ueditor_rails/application_controller.rb +5 -0
- data/app/controllers/ueditor_rails/dialogs_controller.rb +13 -0
- data/app/controllers/ueditor_rails/libs_controller.rb +20 -0
- data/app/helpers/ueditor_rails/application_helper.rb +4 -0
- data/app/views/ueditor_rails/dialogs/attachment.html.erb +128 -0
- data/app/views/ueditor_rails/dialogs/image.html.erb +205 -0
- data/config/routes.rb +11 -0
- data/lib/generators/ueditor_rails/USAGE +8 -0
- data/lib/generators/ueditor_rails/install_generator.rb +15 -0
- data/lib/generators/ueditor_rails/templates/ueditor_config.js.erb +204 -0
- data/lib/tasks/ueditor_rails_tasks.rake +4 -0
- data/lib/ueditor_rails.rb +25 -0
- data/lib/ueditor_rails/engine.rb +17 -0
- data/lib/ueditor_rails/helpers/form_builder.rb +11 -0
- data/lib/ueditor_rails/helpers/form_helper.rb +26 -0
- data/lib/ueditor_rails/helpers/view_helper.rb +21 -0
- data/lib/ueditor_rails/util.rb +32 -0
- data/lib/ueditor_rails/version.rb +3 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +17 -0
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/javascripts/ueditor_config.js.erb +201 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/posts_controller.rb +83 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.erb +25 -0
- data/test/dummy/app/views/posts/edit.html.erb +6 -0
- data/test/dummy/app/views/posts/index.html.erb +29 -0
- data/test/dummy/app/views/posts/new.html.erb +5 -0
- data/test/dummy/app/views/posts/show.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +8 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130327173045_create_posts.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/log/development.log +12037 -0
- data/test/dummy/log/production.log +7 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/posts.yml +9 -0
- data/test/dummy/test/functional/posts_controller_test.rb +49 -0
- data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/unit/post_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/BDF/630/sprockets%2F5614511158c119e0843a3290422f62c4 +0 -0
- data/test/dummy/tmp/cache/assets/C2B/2B0/sprockets%2F6197f74231bf6577350613931d3f68d2 +0 -0
- data/test/dummy/tmp/cache/assets/C45/6F0/sprockets%2F8d0029260fa306414726778ccc2114f5 +0 -0
- data/test/dummy/tmp/cache/assets/C54/700/sprockets%2Ff3a117b56f12646d477370198ef50526 +0 -0
- data/test/dummy/tmp/cache/assets/C5C/D10/sprockets%2F46f8f094709b1722d4b908743489c22b +0 -0
- data/test/dummy/tmp/cache/assets/C60/B40/sprockets%2F54d01774a089b4d6669dee7038085556 +0 -0
- data/test/dummy/tmp/cache/assets/C6D/9D0/sprockets%2F0c0b92de372485111abd31809d680064 +0 -0
- data/test/dummy/tmp/cache/assets/C72/EA0/sprockets%2Fe282c06e62457331c3b56d36c320615d +0 -0
- data/test/dummy/tmp/cache/assets/C7A/940/sprockets%2F5799f5e28166414991897d6f9127d5fc +0 -0
- data/test/dummy/tmp/cache/assets/C7A/9C0/sprockets%2F492d15f65b17b6cfa0b7351378602147 +0 -0
- data/test/dummy/tmp/cache/assets/C84/AA0/sprockets%2F98093181296cc04f03f7580efb00c973 +0 -0
- data/test/dummy/tmp/cache/assets/C89/310/sprockets%2Fd1d06f948d748a7068c0e146154d8229 +0 -0
- data/test/dummy/tmp/cache/assets/C8A/8E0/sprockets%2F646396c661345dcc625cc575bf061577 +0 -0
- data/test/dummy/tmp/cache/assets/C8C/B80/sprockets%2F371bf96e99717688ed7313a0c53f4212 +0 -0
- data/test/dummy/tmp/cache/assets/C99/A70/sprockets%2F015fa15293ee9b3456140aa71fa44160 +0 -0
- data/test/dummy/tmp/cache/assets/CA7/4B0/sprockets%2Fa126b67ca393a693b7520818dc36c404 +0 -0
- data/test/dummy/tmp/cache/assets/CAC/3D0/sprockets%2F0839a13780ffe1bba453564492f04f70 +0 -0
- data/test/dummy/tmp/cache/assets/CAC/F50/sprockets%2Fd2c5808102c08c0f1626871aa59d796b +0 -0
- data/test/dummy/tmp/cache/assets/CC4/520/sprockets%2F985cf9f9b78b2869f70270770b134c3a +0 -0
- data/test/dummy/tmp/cache/assets/CC4/9A0/sprockets%2F2479c7a9ae4286405682d75dcb378d48 +0 -0
- data/test/dummy/tmp/cache/assets/CC7/220/sprockets%2Fd066c004d1fd26ae76a61303a7a18145 +0 -0
- data/test/dummy/tmp/cache/assets/CD1/E30/sprockets%2F07e2a3e7922a96e0bf582b3ed2160214 +0 -0
- data/test/dummy/tmp/cache/assets/CD4/5E0/sprockets%2F9bb402071b005bd61ca675149f1bf697 +0 -0
- data/test/dummy/tmp/cache/assets/CD5/B70/sprockets%2F416150dc3ac35079c94273cc46e90aa6 +0 -0
- data/test/dummy/tmp/cache/assets/CD6/630/sprockets%2Fe020a12eeaf2399ab542086e57d74056 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/4D0/sprockets%2Fa24d9ba34e6c16d99323053382f150df +0 -0
- data/test/dummy/tmp/cache/assets/CDC/F80/sprockets%2F7bd94371d531b3f85d02c7a9427841aa +0 -0
- data/test/dummy/tmp/cache/assets/CDE/4B0/sprockets%2F342f1d7b7ca0569074f9128b9bda7125 +0 -0
- data/test/dummy/tmp/cache/assets/CDE/550/sprockets%2F6a69b27076b361fd10f64874f2c1b46b +0 -0
- data/test/dummy/tmp/cache/assets/CDF/860/sprockets%2F8a563174551315a923fc9a78d22fcb7a +0 -0
- data/test/dummy/tmp/cache/assets/CE1/3B0/sprockets%2F11a824a4c96529c2912f753ecf8b506d +0 -0
- data/test/dummy/tmp/cache/assets/CE3/A20/sprockets%2F9154bb14d747165e7f19d8161d4d2e4b +0 -0
- data/test/dummy/tmp/cache/assets/CE4/5E0/sprockets%2F1d31011d7c1599edc54d31d597f856e3 +0 -0
- data/test/dummy/tmp/cache/assets/CE5/8C0/sprockets%2F5abcadff90738332520786578cf1733c +0 -0
- data/test/dummy/tmp/cache/assets/CE6/070/sprockets%2F85808d5f0458f045dea0e9036d7f53c1 +0 -0
- data/test/dummy/tmp/cache/assets/CE7/DB0/sprockets%2F8e9537e225fe8d0a543dbf320c949325 +0 -0
- data/test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/CF0/C10/sprockets%2Fba2886d474f933456975a52ed2f1c66d +0 -0
- data/test/dummy/tmp/cache/assets/CF4/050/sprockets%2F07e64101425f48db3e2b5a4a61d02cc3 +0 -0
- data/test/dummy/tmp/cache/assets/CF6/2D0/sprockets%2Ffeef88a45781660a21645e8fbe276297 +0 -0
- data/test/dummy/tmp/cache/assets/CF9/3D0/sprockets%2Fd3a2bd3092fe687b0687869fe956493b +0 -0
- data/test/dummy/tmp/cache/assets/CF9/970/sprockets%2Fca43c206a5f90a0505194d56e635a1da +0 -0
- data/test/dummy/tmp/cache/assets/D04/9C0/sprockets%2F826e5acfd685ead033361021fa9723c1 +0 -0
- data/test/dummy/tmp/cache/assets/D07/000/sprockets%2F31610287c7cc1435a7c99f3e132abdc7 +0 -0
- data/test/dummy/tmp/cache/assets/D07/BB0/sprockets%2Ff7bbd33ae141463d938437050ac3d5d8 +0 -0
- data/test/dummy/tmp/cache/assets/D09/590/sprockets%2F0f074320e9adb54e1f4f69cb6392e420 +0 -0
- data/test/dummy/tmp/cache/assets/D0A/5D0/sprockets%2F131bc060fc89d617bc9c9571d2537ab3 +0 -0
- data/test/dummy/tmp/cache/assets/D10/3A0/sprockets%2F158f48165ddb9cfa4518a02159a4ec19 +0 -0
- data/test/dummy/tmp/cache/assets/D11/3D0/sprockets%2F95e3f52aa53952013be443db8d395c7e +0 -0
- data/test/dummy/tmp/cache/assets/D11/A80/sprockets%2Fc2fb6624be686158b2401b4d4a885e7d +0 -0
- data/test/dummy/tmp/cache/assets/D11/E20/sprockets%2Fbdd46b652f74de0b46055c41948c2d84 +0 -0
- data/test/dummy/tmp/cache/assets/D12/0B0/sprockets%2F671f91009e9f5a07db9c719430ed02cf +0 -0
- data/test/dummy/tmp/cache/assets/D12/F90/sprockets%2F397710de23c0f7b3f6cc3ad8635f7812 +0 -0
- data/test/dummy/tmp/cache/assets/D1A/310/sprockets%2F5384ad85f52d3272dbc64d46ef3876a4 +0 -0
- data/test/dummy/tmp/cache/assets/D1B/EA0/sprockets%2F5110d4ac9e35fe6749c40d2f99bf9191 +0 -0
- data/test/dummy/tmp/cache/assets/D1C/910/sprockets%2F0fb26515c30c3b1656a3f4410afb1d2b +0 -0
- data/test/dummy/tmp/cache/assets/D1C/C30/sprockets%2F6c41af8340e06f9fd28928991fea3c42 +0 -0
- data/test/dummy/tmp/cache/assets/D21/A00/sprockets%2F3207bde101a4d88963b9df6e869e267f +0 -0
- data/test/dummy/tmp/cache/assets/D22/DA0/sprockets%2F8a5776bdd0a1e1690c2e7f8bd5798908 +0 -0
- data/test/dummy/tmp/cache/assets/D25/7D0/sprockets%2F560b2b61bc3cb739ccb701c2b657311c +0 -0
- data/test/dummy/tmp/cache/assets/D28/A40/sprockets%2Fbba251ea4d111ae85160c127f4ab8756 +0 -0
- data/test/dummy/tmp/cache/assets/D2A/A10/sprockets%2F0459c22963b25c20faa51ac6dad617d2 +0 -0
- data/test/dummy/tmp/cache/assets/D2A/B10/sprockets%2F84f48544cf0b378928b7d6f59e392ccc +0 -0
- data/test/dummy/tmp/cache/assets/D31/800/sprockets%2F1e3ed31b0bc5875c2b1557f20b169ad7 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A50/sprockets%2F11b9b104e2626ae5b506fd28b0b68af8 +0 -0
- data/test/dummy/tmp/cache/assets/D38/840/sprockets%2F12b5bf92ed12d821b47e92fa804855aa +0 -0
- data/test/dummy/tmp/cache/assets/D39/CF0/sprockets%2F8571123a9e73ccd7c112e35e39aca6a7 +0 -0
- data/test/dummy/tmp/cache/assets/D3A/F30/sprockets%2F15a0362cc0f96f824d2e192dc23c4fd9 +0 -0
- data/test/dummy/tmp/cache/assets/D3C/170/sprockets%2F916c8d4a702e456a3963151dcfd8bfa0 +0 -0
- data/test/dummy/tmp/cache/assets/D3C/9C0/sprockets%2Fab97a93e34581b3aa9fd71ac1f384019 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/6C0/sprockets%2Ffb767a73ef0afcc0165723ec081903f9 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/C90/sprockets%2F9da014b6c3ba9a861d11299abe96d476 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/DC0/sprockets%2F82ef6bb4f2ec0237011ff08c692e429f +0 -0
- data/test/dummy/tmp/cache/assets/D41/4D0/sprockets%2F4b5e8493a27349a2c6b62acf462b58dd +0 -0
- data/test/dummy/tmp/cache/assets/D42/5C0/sprockets%2F054be4bebb7d59a4a747b3464e91f329 +0 -0
- data/test/dummy/tmp/cache/assets/D42/7C0/sprockets%2Ffcae5059b63412f6b286ddf1715e4b94 +0 -0
- data/test/dummy/tmp/cache/assets/D43/CF0/sprockets%2Fa8f40f4e4b38284009db82d3ee59a3c7 +0 -0
- data/test/dummy/tmp/cache/assets/D43/FB0/sprockets%2F400daf4968c6654111b9a7fd0a5f96fd +0 -0
- data/test/dummy/tmp/cache/assets/D44/400/sprockets%2F9f62068ab2f5e6f245e6090cbcda5845 +0 -0
- data/test/dummy/tmp/cache/assets/D45/A50/sprockets%2Fe86f7863ca9e1239c3a0cc78cc81209a +0 -0
- data/test/dummy/tmp/cache/assets/D4A/400/sprockets%2F9d22629fae12423fde39a8bc663796ea +0 -0
- data/test/dummy/tmp/cache/assets/D4B/710/sprockets%2Fe191069e1e69dbe5206ce3893d0fb6e8 +0 -0
- data/test/dummy/tmp/cache/assets/D4C/370/sprockets%2F9f8871ddc326d27fb2444e2b9e630c8e +0 -0
- data/test/dummy/tmp/cache/assets/D4C/730/sprockets%2F63a49b3364c4469aefe69ade635508fb +0 -0
- data/test/dummy/tmp/cache/assets/D4D/060/sprockets%2Fdf8071fd9e383d72ba1f17b5d5e98516 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D51/190/sprockets%2Fbde53d033a467778f7e5d2095d78fb4f +0 -0
- data/test/dummy/tmp/cache/assets/D52/080/sprockets%2Fbdb460a11eea94fd16071a7ea1f35210 +0 -0
- data/test/dummy/tmp/cache/assets/D52/890/sprockets%2Fbdd9c7f2d6d70b352f318578941ef9a7 +0 -0
- data/test/dummy/tmp/cache/assets/D53/E70/sprockets%2F856560debef90857ce907e1ae35fd079 +0 -0
- data/test/dummy/tmp/cache/assets/D57/580/sprockets%2Fc693d77ad959894ad2460c9eeb958a2a +0 -0
- data/test/dummy/tmp/cache/assets/D5A/630/sprockets%2F4ac0ab0666b16174df72ccb05c742ad7 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D5B/6E0/sprockets%2F01f2ef3b2303b7c39612f0755dcdda3c +0 -0
- data/test/dummy/tmp/cache/assets/D5E/C40/sprockets%2F3dd04e28364ca3b9aff00660e3028caf +0 -0
- data/test/dummy/tmp/cache/assets/D5E/E70/sprockets%2F85bf39edf8bd33f53b98060c75979cc9 +0 -0
- data/test/dummy/tmp/cache/assets/D63/E30/sprockets%2F8bb9b1b4042fa39f01e8b7a2d0388ca5 +0 -0
- data/test/dummy/tmp/cache/assets/D68/E70/sprockets%2F0d2ae672147c167b2c2f42d8cbe8c7b5 +0 -0
- data/test/dummy/tmp/cache/assets/D69/B40/sprockets%2F60528372c4d9ea38ee60b3fde0d0ba84 +0 -0
- data/test/dummy/tmp/cache/assets/D69/C00/sprockets%2Fb71f8a5e0942ae7d4b2b814238ff2e0c +0 -0
- data/test/dummy/tmp/cache/assets/D6A/660/sprockets%2F498dedb0ef6a80d452a4b07782d6b1a4 +0 -0
- data/test/dummy/tmp/cache/assets/D6C/0A0/sprockets%2F21ec0bf9b2152153f3942fcf8eba9f09 +0 -0
- data/test/dummy/tmp/cache/assets/D6D/570/sprockets%2Fb37f4aac840a59d278d8c57a338ccd20 +0 -0
- data/test/dummy/tmp/cache/assets/D6E/920/sprockets%2F9ebedf09390f21a580b35c937e24cb1f +0 -0
- data/test/dummy/tmp/cache/assets/D6E/AD0/sprockets%2F1dc84fc453b1ddb966271ae54d6b54d5 +0 -0
- data/test/dummy/tmp/cache/assets/D6E/F20/sprockets%2F2bb516def8c3a08b7174648da9dd40f3 +0 -0
- data/test/dummy/tmp/cache/assets/D70/B70/sprockets%2F6ebaed371aa715b95667e416378cba4d +0 -0
- data/test/dummy/tmp/cache/assets/D71/740/sprockets%2F1db90d964be0b67d1b79f5a5e5391ce1 +0 -0
- data/test/dummy/tmp/cache/assets/D75/860/sprockets%2Fe8fa1c4ebb9335f1fa16379c842fe750 +0 -0
- data/test/dummy/tmp/cache/assets/D75/EF0/sprockets%2F1d96674c67d405c6b50cddfd3b6c3e39 +0 -0
- data/test/dummy/tmp/cache/assets/D78/010/sprockets%2Faef73289dfbc84248a6aa0183feb8772 +0 -0
- data/test/dummy/tmp/cache/assets/D78/550/sprockets%2F0331b677d4885ee27b9c418f4fedaea4 +0 -0
- data/test/dummy/tmp/cache/assets/D7B/B50/sprockets%2F4685b399157deeddba90ea877df710b2 +0 -0
- data/test/dummy/tmp/cache/assets/D7C/2E0/sprockets%2Fbf5c619eecd922259e6b45e2f8e02b86 +0 -0
- data/test/dummy/tmp/cache/assets/D7C/8A0/sprockets%2Fcaf9df030f62b864de4e3944a9d477d4 +0 -0
- data/test/dummy/tmp/cache/assets/D7C/DE0/sprockets%2F4f4705ac7f29f60e99355fb3abf0af78 +0 -0
- data/test/dummy/tmp/cache/assets/D7D/510/sprockets%2Fee497e95e73cc27afe781b6bb90b5424 +0 -0
- data/test/dummy/tmp/cache/assets/D81/F00/sprockets%2Fac659dac860cb3646df9806f668ac39d +0 -0
- data/test/dummy/tmp/cache/assets/D86/620/sprockets%2F01395e5b7993cede6976336b9cfa9bbe +0 -0
- data/test/dummy/tmp/cache/assets/D86/6F0/sprockets%2F1526f063df1a7cc0e4fa0460cb6ba44d +0 -0
- data/test/dummy/tmp/cache/assets/D87/BB0/sprockets%2Fcd4ae785e2fdf9282a2f36c9543995de +0 -0
- data/test/dummy/tmp/cache/assets/D88/E00/sprockets%2Ff5b3e902fad33c44ff6a0e9db20501a0 +0 -0
- data/test/dummy/tmp/cache/assets/D8C/6D0/sprockets%2F0ead4d15ad8a9d31d33a14dc191da657 +0 -0
- data/test/dummy/tmp/cache/assets/D92/1B0/sprockets%2F1fa31cfb668a21f6d4bb0f6b2536e34e +0 -0
- data/test/dummy/tmp/cache/assets/D98/C50/sprockets%2Fcfa37bd769d589c2da1d3116a6db0b90 +0 -0
- data/test/dummy/tmp/cache/assets/D9C/790/sprockets%2Fc1bb1797c7e487ea4a940cfd3423da5c +0 -0
- data/test/dummy/tmp/cache/assets/D9C/CD0/sprockets%2Fc85016e7bbd4f3adbb7635d01f85d39b +0 -0
- data/test/dummy/tmp/cache/assets/D9D/0A0/sprockets%2Fcf40aaefd8ac6ea638790e4a2d367541 +0 -0
- data/test/dummy/tmp/cache/assets/D9D/930/sprockets%2F1229f6eab13c794c3ce94ad629d3bbb6 +0 -0
- data/test/dummy/tmp/cache/assets/D9D/CB0/sprockets%2F5ffa3729fab74e9b171334f933bbcd2a +0 -0
- data/test/dummy/tmp/cache/assets/D9D/D30/sprockets%2F7c202fe7098da9201fe66d37cc60eadd +0 -0
- data/test/dummy/tmp/cache/assets/D9E/1F0/sprockets%2Fb913f5de5b049aa041b8ad77ca576b9f +0 -0
- data/test/dummy/tmp/cache/assets/DA0/870/sprockets%2F92b550d7b5e47436b5d1db5b47daec8e +0 -0
- data/test/dummy/tmp/cache/assets/DA0/C70/sprockets%2Fd04dbacd60d1e2be636849d485b8d75b +0 -0
- data/test/dummy/tmp/cache/assets/DA1/C50/sprockets%2F2f73ec238cc2edfeecf185428d06435b +0 -0
- data/test/dummy/tmp/cache/assets/DA2/9C0/sprockets%2F5d2fe3ca5cf7ad9e2c5939a291f214a7 +0 -0
- data/test/dummy/tmp/cache/assets/DA4/390/sprockets%2F5cdc49a8aad8844bdc5b0a55b28666d8 +0 -0
- data/test/dummy/tmp/cache/assets/DA5/850/sprockets%2Ffedd0769ffb447639ab123e2db9a3c29 +0 -0
- data/test/dummy/tmp/cache/assets/DAE/160/sprockets%2F6cec68e7a5a848c93ade0e89e7c3501e +0 -0
- data/test/dummy/tmp/cache/assets/DAE/260/sprockets%2Fce5fe9569d7e18ea8a136cac298e3f12 +0 -0
- data/test/dummy/tmp/cache/assets/DB0/DB0/sprockets%2Fc39fd8a8e5ea5f6a1636c4707c9ef4a7 +0 -0
- data/test/dummy/tmp/cache/assets/DB3/C60/sprockets%2F0b0030d24fc428acb4c74c3edd0b94eb +0 -0
- data/test/dummy/tmp/cache/assets/DB8/F30/sprockets%2F91c7bb3a08ba6cd159d4b02313deaa7d +0 -0
- data/test/dummy/tmp/cache/assets/DC1/E50/sprockets%2F92af4d6d0bafa3ab109c5856ed14e34b +0 -0
- data/test/dummy/tmp/cache/assets/DC7/A30/sprockets%2Ff1eccc7f669f63b03bbb55750b50edc1 +0 -0
- data/test/dummy/tmp/cache/assets/DC8/B40/sprockets%2F9af180717bb0bacb7e27ce5d53fd1d74 +0 -0
- data/test/dummy/tmp/cache/assets/DC9/540/sprockets%2F608262feadebbf52a6d81168ab76b0fd +0 -0
- data/test/dummy/tmp/cache/assets/DC9/C10/sprockets%2Fa94c69d0007efe2ef0dbec32e82c942a +0 -0
- data/test/dummy/tmp/cache/assets/DCB/790/sprockets%2Ffa6e0afb98324ab70f6f2add80ab9546 +0 -0
- data/test/dummy/tmp/cache/assets/DCE/F10/sprockets%2Fa10ef3bf2ea4459a641b3fedfa78785b +0 -0
- data/test/dummy/tmp/cache/assets/DD5/A40/sprockets%2F773b57e8cbaba49a2858c9acd5ed930a +0 -0
- data/test/dummy/tmp/cache/assets/DD7/600/sprockets%2F0cec2cc545e1d3bd889d195f68dea4b7 +0 -0
- data/test/dummy/tmp/cache/assets/DDA/AC0/sprockets%2F8cce49d0b8e0a2de9cbc08fc2279865f +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DDE/500/sprockets%2Fcff617ff0b83b5a38c991e1a2bff589f +0 -0
- data/test/dummy/tmp/cache/assets/DE0/790/sprockets%2Fe508b8ce9b8ef49ab69cf5bbc3d09680 +0 -0
- data/test/dummy/tmp/cache/assets/DFA/3D0/sprockets%2F969dbba9b0b881d0fe3ead044ce6b6a4 +0 -0
- data/test/dummy/tmp/cache/assets/DFD/610/sprockets%2F5fa40e7fbec251546395f4adbb7aecf4 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E0C/D50/sprockets%2Fdd746cdf1870fea2d4fef3db2c96c694 +0 -0
- data/test/dummy/tmp/cache/assets/E0E/0D0/sprockets%2F9fab330147d57668f6aff14ccefbfe9e +0 -0
- data/test/dummy/tmp/cache/assets/E12/430/sprockets%2F83cde7e665d636ba5b5f98d2dec7fdc3 +0 -0
- data/test/dummy/tmp/cache/assets/E23/590/sprockets%2F467d2a58abfbf81d715fdacd6ac3b2b2 +0 -0
- data/test/dummy/tmp/cache/assets/E30/F10/sprockets%2Feb96e11c82be8b736df1fcccbcaa8529 +0 -0
- data/test/dummy/tmp/cache/assets/E33/680/sprockets%2F1c62bdad5d5cc668bc73eeadc944c97c +0 -0
- data/test/dummy/tmp/cache/assets/E34/9F0/sprockets%2F2dbdbaffe3f466f85cee37cee4331f34 +0 -0
- data/test/dummy/tmp/cache/assets/E44/410/sprockets%2Fcfdd750d7776be51e48bfefe3cbc99e4 +0 -0
- data/test/dummy/tmp/cache/assets/E44/560/sprockets%2Fd728f19f2f5dfac9f555babd49ebb89d +0 -0
- data/test/dummy/tmp/cache/assets/E6C/C10/sprockets%2F837ca65eade4def9af9b6ada7cb394f4 +0 -0
- data/test/dummy/tmp/cache/assets/E86/510/sprockets%2F6de0e7ce2c9b7e2c7ced4bcfac2b2d06 +0 -0
- data/test/functional/ueditor_rails/dialogs_controller_test.rb +16 -0
- data/test/functional/ueditor_rails/libs_controller_test.rb +21 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- data/test/ueditor_rails_test.rb +7 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.css.erb +130 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/attachment.html.erb +128 -0
- data/vendor/assets/javascripts/ueditor/dialogs/attachment/callbacks.js +166 -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_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/fileTypeMaps.js +29 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.css.erb +44 -0
- data/vendor/assets/javascripts/ueditor/dialogs/emotion/emotion.html.erb +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/help/help.css +7 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.html.erb +82 -0
- data/vendor/assets/javascripts/ueditor/dialogs/help/help.js +54 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.css.erb +74 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.html.erb +204 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/image.js +712 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/imageUploader.swf +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/center_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/left_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/none_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/image/images/right_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/internal.js +79 -0
- data/vendor/assets/javascripts/ueditor/dialogs/link/link.html.erb +126 -0
- data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.html.erb +21 -0
- data/vendor/assets/javascripts/ueditor/dialogs/spechars/spechars.js +56 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.css +75 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.html.erb +56 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittable.js +182 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittd.html.erb +50 -0
- data/vendor/assets/javascripts/ueditor/dialogs/table/edittip.html.erb +33 -0
- data/vendor/assets/javascripts/ueditor/dialogs/tangram.js +1238 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +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/right_focus.jpg +0 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.css +59 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.html.erb +67 -0
- data/vendor/assets/javascripts/ueditor/dialogs/video/video.js +402 -0
- data/vendor/assets/javascripts/ueditor/editor_all.js.erb +17707 -0
- data/vendor/assets/javascripts/ueditor/editor_config.js +238 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
- data/vendor/assets/javascripts/ueditor/lang/zh-cn/images/imglabel.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 +492 -0
- data/vendor/assets/javascripts/ueditor/themes/default/css/ueditor.css +1582 -0
- data/vendor/assets/javascripts/ueditor/themes/default/dialogbase.css.erb +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/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/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/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/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/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/swfupload/fileprogress.js +215 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.cookies.js +53 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.js +1132 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.proxy.js +96 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.queue.js +98 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.speed.js +346 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload.swf +0 -0
- data/vendor/assets/javascripts/ueditor/third-party/swfupload/swfupload_fp9.swf +0 -0
- data/vendor/assets/javascripts/ueditor/uparse.js +358 -0
- metadata +674 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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="<%= asset_path 'ueditor/dialogs/internal.js' %>"></script>
|
8
|
+
<link rel="stylesheet" type="text/css" href="<%= asset_path 'ueditor/dialogs/help/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><var id="lang_input_version"></var></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="<%= asset_path 'ueditor/dialogs/help/help.js' %>"></script>
|
81
|
+
</body>
|
82
|
+
</html>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* Created with JetBrains PhpStorm.
|
3
|
+
* User: xuheng
|
4
|
+
* Date: 12-9-26
|
5
|
+
* Time: 下午1:06
|
6
|
+
* To change this template use File | Settings | File Templates.
|
7
|
+
*/
|
8
|
+
/**
|
9
|
+
* tab点击处理事件
|
10
|
+
* @param tabHeads
|
11
|
+
* @param tabBodys
|
12
|
+
* @param obj
|
13
|
+
*/
|
14
|
+
function clickHandler( tabHeads,tabBodys,obj ) {
|
15
|
+
//head样式更改
|
16
|
+
for ( var k = 0, len = tabHeads.length; k < len; k++ ) {
|
17
|
+
tabHeads[k].className = "";
|
18
|
+
}
|
19
|
+
obj.className = "focus";
|
20
|
+
//body显隐
|
21
|
+
var tabSrc = obj.getAttribute( "tabSrc" );
|
22
|
+
for ( var j = 0, length = tabBodys.length; j < length; j++ ) {
|
23
|
+
var body = tabBodys[j],
|
24
|
+
id = body.getAttribute( "id" );
|
25
|
+
body.onclick = function(){
|
26
|
+
this.style.zoom = 1;
|
27
|
+
};
|
28
|
+
if ( id != tabSrc ) {
|
29
|
+
body.style.zIndex = 1;
|
30
|
+
} else {
|
31
|
+
body.style.zIndex = 200;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
/**
|
38
|
+
* TAB切换
|
39
|
+
* @param tabParentId tab的父节点ID或者对象本身
|
40
|
+
*/
|
41
|
+
function switchTab( tabParentId ) {
|
42
|
+
var tabElements = $G( tabParentId ).children,
|
43
|
+
tabHeads = tabElements[0].children,
|
44
|
+
tabBodys = tabElements[1].children;
|
45
|
+
|
46
|
+
for ( var i = 0, length = tabHeads.length; i < length; i++ ) {
|
47
|
+
var head = tabHeads[i];
|
48
|
+
if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head );
|
49
|
+
head.onclick = function () {
|
50
|
+
clickHandler(tabHeads,tabBodys,this);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
switchTab("helptab");
|
@@ -0,0 +1,74 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
.wrapper{ width: 623px;margin: 10px auto;zoom:1;position: relative;}
|
3
|
+
.tabbody{ height:325px;_height:330px;}/*tab样式框大小*/
|
4
|
+
.panel { position: absolute;width:100%; height:100%;background: #fff;}
|
5
|
+
|
6
|
+
#remote{ z-index: 200;}
|
7
|
+
#remote table{border-collapse: collapse;width: 620px; height: 300px; margin-top: 5px;}
|
8
|
+
#remote td.label{text-align: center;width: 80px; }
|
9
|
+
#remote td{height: 40px;}
|
10
|
+
td input {
|
11
|
+
width: 150px;
|
12
|
+
height: 21px;
|
13
|
+
line-height: 21px;
|
14
|
+
background: #FFF;
|
15
|
+
border: 1px solid #d7d7d7;
|
16
|
+
}
|
17
|
+
#url {width: 520px;margin-bottom: 2px;}
|
18
|
+
#preview{width: 260px; height: 260px; position: absolute;top:50px; left: 341px; z-index: 9999;background-color: #eee}
|
19
|
+
.lock{
|
20
|
+
position: absolute;
|
21
|
+
width: 45px;
|
22
|
+
height: 40px;
|
23
|
+
top: 68px;
|
24
|
+
left: 260px;
|
25
|
+
background: url(<%= asset_path 'ueditor/themes/default/images/lock.gif' %>) 3px -4px no-repeat;
|
26
|
+
line-height: 40px;
|
27
|
+
padding-top:10px;
|
28
|
+
}
|
29
|
+
.saveDir{
|
30
|
+
/*width: 132px;*/
|
31
|
+
/*text-align: right;*/
|
32
|
+
height: 40px;
|
33
|
+
line-height: 40px;
|
34
|
+
margin-left: 30px;
|
35
|
+
float: left;
|
36
|
+
}
|
37
|
+
.saveDir select{
|
38
|
+
height: 30px;
|
39
|
+
}
|
40
|
+
#duiqi{ width: 62px; height: 38px;float: left}
|
41
|
+
#remoteFloat div,#localFloat div{cursor:pointer;opacity: 0.5;filter: alpha(opacity = 50);margin-left:1px;width:38px;height:36px;float:left;}
|
42
|
+
#remoteFloat .focus,#localFloat .focus{opacity: 1;filter: alpha(opacity = 100)}
|
43
|
+
#maskIframe{ width: 620px; height: 325px; position: absolute;z-index: 100; }
|
44
|
+
#flashContainer { margin: 6px;position: relative;}
|
45
|
+
#upload{width: 100px;height: 30px;float: right; margin:3px 6px 0 0;cursor: pointer;}
|
46
|
+
#imageList{width: 620px;height: 315px; margin-top: 10px;overflow:hidden;overflow-y: auto;}
|
47
|
+
#imageList img{cursor: pointer ;border: 2px solid #fff}
|
48
|
+
#imgManager #imageList div{float: left;width: 100px;height: 100px;margin: 5px 10px;}
|
49
|
+
#imgSearchTxt{padding-left:2px;margin-left:15px;background: #FFF;width:200px;height:21px;line-height:21px;border: 1px solid #d7d7d7;}
|
50
|
+
#searchList{width: 620px;overflow: auto;zoom:1;height: 270px;}
|
51
|
+
#searchList div{float: left;width: 116px;height: 135px;margin: 5px 15px;_margin:5px 10px;}
|
52
|
+
#searchList img{margin: 2px 8px;cursor: pointer;border: 2px solid #fff} /*不用缩略图*/
|
53
|
+
#searchList p{margin-left: 10px;_margin-left:8px;}
|
54
|
+
#imgType{
|
55
|
+
width: 65px;
|
56
|
+
height: 23px;
|
57
|
+
line-height: 22px;
|
58
|
+
border: 1px solid #d7d7d7;
|
59
|
+
}
|
60
|
+
#imgSearchBtn,#imgSearchReset{
|
61
|
+
width: 100%;
|
62
|
+
height: 25px;
|
63
|
+
margin: 0 3px;
|
64
|
+
line-height: 25px;
|
65
|
+
background: #eee;
|
66
|
+
border: 1px solid #d7d7d7;
|
67
|
+
cursor: pointer
|
68
|
+
}
|
69
|
+
.msg{margin-left: 5px;}
|
70
|
+
|
71
|
+
.align_btn_none { background:url(<%= asset_path 'ueditor/dialogs/image/images/none_focus.jpg' %>); }
|
72
|
+
.align_btn_left { background:url(<%= asset_path 'ueditor/dialogs/image/images/left_focus.jpg' %>); }
|
73
|
+
.align_btn_right { background:url(<%= asset_path 'ueditor/dialogs/image/images/right_focus.jpg' %>); }
|
74
|
+
.align_btn_center { background:url(<%= asset_path 'ueditor/dialogs/image/images/center_focus.jpg' %>); }
|
@@ -0,0 +1,204 @@
|
|
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="<%= asset_path 'ueditor/dialogs/internal.js' %>"></script>
|
8
|
+
<link rel="stylesheet" href="<%= asset_path 'ueditor/dialogs/image/image.css' %>" type="text/css" />
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div class="wrapper">
|
12
|
+
<div id="imageTab">
|
13
|
+
<div id="tabHeads" class="tabhead">
|
14
|
+
<span tabSrc="remote" class="focus"><var id="lang_tab_remote"></var></span>
|
15
|
+
<span tabSrc="local"><var id="lang_tab_local"></var></span>
|
16
|
+
<span tabSrc="imgManager"><var id="lang_tab_imgManager"></var></span>
|
17
|
+
<span tabSrc="imgSearch"><var id="lang_tab_imgSearch"></var></span>
|
18
|
+
</div>
|
19
|
+
<div id="tabBodys" class="tabbody">
|
20
|
+
<div id="remote" class="panel">
|
21
|
+
<table cellpadding="0" cellspacing="0">
|
22
|
+
<tr>
|
23
|
+
<td class="label"><label for="url"><var id="lang_input_url"></var></label></td>
|
24
|
+
<td><input id="url" type="text"/></td>
|
25
|
+
</tr>
|
26
|
+
<tr>
|
27
|
+
<td class="label"><label for="width"><var id="lang_input_width"></var></label></td>
|
28
|
+
<td><input type="text" id="width"/> px</td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td class="label"><label for="height"><var id="lang_input_height"></var></label></td>
|
32
|
+
<td><input type="text" id="height"/> px</td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td class="label"><label for="border"><var id="lang_input_border"></var></label></td>
|
36
|
+
<td><input type="text" id="border"/> px</td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td class="label"><label for="vhSpace"><var id="lang_input_vhspace"></var></label></td>
|
40
|
+
<td><input type="text" id="vhSpace"/> px</td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td class="label"><label for="title"><var id="lang_input_title"></var></label></td>
|
44
|
+
<td><input type="text" id="title"/></td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td class="label"><var id="lang_input_remoteAlign"></var></td>
|
48
|
+
<td id="remoteFloat"></td>
|
49
|
+
</tr>
|
50
|
+
</table>
|
51
|
+
|
52
|
+
<div id="preview"></div>
|
53
|
+
<div class="lock"><input id="lock" type="checkbox" checked="checked"></div>
|
54
|
+
</div>
|
55
|
+
<div id="local" class="panel">
|
56
|
+
<div id="flashContainer"></div>
|
57
|
+
<div><div id="upload" style="display: none" ></div><div id="duiqi"></div><div id="localFloat"></div></div>
|
58
|
+
|
59
|
+
<div class="saveDir">
|
60
|
+
<var id="lang_savePath" ></var>:<select id="savePath">
|
61
|
+
<option value="1">upload</option>
|
62
|
+
<option value="2">upload1</option>
|
63
|
+
</select>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div id="imgManager" class="panel">
|
67
|
+
<div id="imageList"><var id="lang_imgLoading"></var></div>
|
68
|
+
</div>
|
69
|
+
<div id="imgSearch" class="panel">
|
70
|
+
<table style="margin-top: 5px;">
|
71
|
+
<tr>
|
72
|
+
<td width="200"><input id="imgSearchTxt" type="text" /></td>
|
73
|
+
<td width="65">
|
74
|
+
<select id="imgType">
|
75
|
+
<!--具体内容值将由国际化组件动态填充-->
|
76
|
+
<option value="&s=4&z=0"></option>
|
77
|
+
<option value="&s=1&z=19"></option>
|
78
|
+
<option value="&s=2&z=0"></option>
|
79
|
+
<option value="&s=3&z=0"></option>
|
80
|
+
</select>
|
81
|
+
</td>
|
82
|
+
<td width="80"><input id="imgSearchBtn" type="button" /></td>
|
83
|
+
<td width="80"><input id="imgSearchReset" type="button" /></td>
|
84
|
+
</tr>
|
85
|
+
</table>
|
86
|
+
<div id="searchList"></div>
|
87
|
+
</div>
|
88
|
+
<iframe id="maskIframe" src="about:blank" scrolling="no" frameborder="no"></iframe>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
<script type="text/javascript" src="<%= asset_path 'ueditor/dialogs/tangram.js' %>"></script>
|
93
|
+
<script type="text/javascript" src="<%= asset_path 'ueditor/dialogs/image/image.js.erb' %>"></script>
|
94
|
+
|
95
|
+
<script type="text/javascript">
|
96
|
+
//全局变量
|
97
|
+
var imageUrls = [], //用于保存从服务器返回的图片信息数组
|
98
|
+
selectedImageCount = 0; //当前已选择的但未上传的图片数量
|
99
|
+
|
100
|
+
editor.setOpt({
|
101
|
+
imageFieldName:"upfile",
|
102
|
+
compressSide:0,
|
103
|
+
maxImageSideLength:900
|
104
|
+
});
|
105
|
+
utils.domReady(function(){
|
106
|
+
var flashOptions = {
|
107
|
+
container:"flashContainer", //flash容器id
|
108
|
+
url:editor.options.imageUrl, // 上传处理页面的url地址
|
109
|
+
ext:'{"param1":"value1", "param2":"value2"}', //可向服务器提交的自定义参数列表
|
110
|
+
fileType:'{"description":"'+lang.fileType+'", "extension":"*.gif;*.jpeg;*.png;*.jpg"}', //上传文件格式限制
|
111
|
+
flashUrl:'imageUploader.swf', //上传用的flash组件地址
|
112
|
+
width:608, //flash的宽度
|
113
|
+
height:272, //flash的高度
|
114
|
+
gridWidth:121, // 每一个预览图片所占的宽度
|
115
|
+
gridHeight:120, // 每一个预览图片所占的高度
|
116
|
+
picWidth:100, // 单张预览图片的宽度
|
117
|
+
picHeight:100, // 单张预览图片的高度
|
118
|
+
uploadDataFieldName:editor.options.imageFieldName, // POST请求中图片数据的key
|
119
|
+
picDescFieldName:'pictitle', // POST请求中图片描述的key
|
120
|
+
maxSize:4, // 文件的最大体积,单位M
|
121
|
+
compressSize:2, // 上传前如果图片体积超过该值,会先压缩,单位M
|
122
|
+
maxNum:1, // 单次最大可上传多少个文件
|
123
|
+
compressSide:editor.options.compressSide, //等比压缩的基准,0为按照最长边,1为按照宽度,2为按照高度
|
124
|
+
compressLength:editor.options.maxImageSideLength //能接受的最大边长,超过该值Flash会自动等比压缩
|
125
|
+
};
|
126
|
+
//回调函数集合,支持传递函数名的字符串、函数句柄以及函数本身三种类型
|
127
|
+
var callbacks = {
|
128
|
+
// 选择文件的回调
|
129
|
+
selectFileCallback: function(selectFiles){
|
130
|
+
utils.each(selectFiles,function(file){
|
131
|
+
var tmp = {};
|
132
|
+
tmp.id = file.index;
|
133
|
+
tmp.data = {};
|
134
|
+
postConfig.push(tmp);
|
135
|
+
});
|
136
|
+
selectedImageCount += selectFiles.length;
|
137
|
+
if(selectedImageCount) baidu.g("upload").style.display = "";
|
138
|
+
dialog.buttons[0].setDisabled(true); //初始化时置灰确定按钮
|
139
|
+
},
|
140
|
+
// 删除文件的回调
|
141
|
+
deleteFileCallback: function(delFiles){
|
142
|
+
for(var i = 0,len = delFiles.length;i<len;i++){
|
143
|
+
var index = delFiles[i].index;
|
144
|
+
postConfig.splice(index,1);
|
145
|
+
}
|
146
|
+
selectedImageCount -= delFiles.length;
|
147
|
+
if (!selectedImageCount) {
|
148
|
+
baidu.g("upload").style.display = "none";
|
149
|
+
dialog.buttons[0].setDisabled(false); //没有选择图片时重新点亮按钮
|
150
|
+
}
|
151
|
+
},
|
152
|
+
|
153
|
+
// 单个文件上传完成的回调
|
154
|
+
uploadCompleteCallback: function(data){
|
155
|
+
try{
|
156
|
+
var info = eval("(" + data.info + ")");
|
157
|
+
info && imageUrls.push(info);
|
158
|
+
selectedImageCount--;
|
159
|
+
}catch(e){}
|
160
|
+
|
161
|
+
},
|
162
|
+
// 单个文件上传失败的回调,
|
163
|
+
uploadErrorCallback: function (data){
|
164
|
+
if(!data.info){
|
165
|
+
alert(lang.netError);
|
166
|
+
}
|
167
|
+
//console && console.log(data);
|
168
|
+
},
|
169
|
+
// 全部上传完成时的回调
|
170
|
+
allCompleteCallback: function(){
|
171
|
+
dialog.buttons[0].setDisabled(false); //上传完毕后点亮按钮
|
172
|
+
},
|
173
|
+
// 文件超出限制的最大体积时的回调
|
174
|
+
//exceedFileCallback: 'exceedFileCallback',
|
175
|
+
// 开始上传某个文件时的回调
|
176
|
+
startUploadCallback: function(){
|
177
|
+
var config = postConfig.shift();
|
178
|
+
//也可以在这里更改
|
179
|
+
//if(config.id==2){ //设置第三张图片的对应参数
|
180
|
+
// config.data={"myParam":"value"}
|
181
|
+
// }
|
182
|
+
flashObj.addCustomizedParams(config.id,config.data);
|
183
|
+
}
|
184
|
+
};
|
185
|
+
imageUploader.init(flashOptions,callbacks);
|
186
|
+
$G("upload").onclick = function () {
|
187
|
+
/**
|
188
|
+
* 接口imageUploader.setPostParams()可以在提交时设置本次上传提交的参数(包括所有图片)
|
189
|
+
* 参数为json对象{"key1":"value1","key2":"value2"},其中key即为向后台post提交的name,value即为值。
|
190
|
+
* 其中有一个特殊的保留key值为action,若设置,可以更改本次提交的处理地址
|
191
|
+
*/
|
192
|
+
var postParams = {
|
193
|
+
"dir":baidu.g("savePath").value
|
194
|
+
};
|
195
|
+
imageUploader.setPostParams(postParams);
|
196
|
+
flashObj.upload();
|
197
|
+
this.style.display = "none";
|
198
|
+
$G("savePath").parentNode.style.display = "none";
|
199
|
+
};
|
200
|
+
|
201
|
+
});
|
202
|
+
</script>
|
203
|
+
</body>
|
204
|
+
</html>
|