ueditor.rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/ueditor/install/install_generator.rb +16 -0
- data/lib/generators/ueditor/install/install_generator.rb~ +11 -0
- data/lib/ueditor/engine.rb +0 -4
- data/lib/ueditor/version.rb +1 -1
- data/test/dummy/log/production.log +1353 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/dialogs/internal.js +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/dialogs/link/link.html +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/lang/zh-cn/images/copy.png +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/lang/zh-cn/images/localimage.png +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/lang/zh-cn/images/music.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/lang/zh-cn}/images/upload.png +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/lang/zh-cn/zh-cn.js +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/themes/default/css/ueditor.css +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/themes/default/css/ueditor.min.css +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/dialogbase.css +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/anchor.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/arrow.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/arrow_down.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/arrow_up.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/button-bg.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/cancelbutton.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/charts.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/cursor_h.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/cursor_h.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/cursor_v.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/cursor_v.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/dialog-title-bg.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/filescan.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/highlighted.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/icons-all.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/icons.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/icons.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/loaderror.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/loading.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/lock.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/neweditor-tab-bg.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/pagebreak.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/scale.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/sortable.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/spacer.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/sparator_v.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/table-cell-align.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/tangram-colorpicker.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/toolbar_bg.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/unhighlighted.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/lang/zh-cn → test/dummy/public/ueditor/themes/default}/images/upload.png +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/videologo.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/word.gif +0 -0
- data/{app/assets/stylesheets/ueditor/themes/mindpin → test/dummy/public/ueditor/themes/default}/images/wordpaste.png +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/themes/iframe.css +0 -0
- data/{app/assets/stylesheets → test/dummy/public}/ueditor/themes/mindpin/css/ueditor.css +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/dialogbase.css +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/anchor.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/arrow.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/arrow_down.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/arrow_up.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/button-bg.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/cancelbutton.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/charts.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/cursor_h.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/cursor_h.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/cursor_v.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/cursor_v.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/dialog-title-bg.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/filescan.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/highlighted.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/icons-all.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/icons.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/icons.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/loaderror.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/loading.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/lock.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/neweditor-tab-bg.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/pagebreak.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/scale.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/sortable.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/spacer.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/sparator_v.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/table-cell-align.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/tangram-colorpicker.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/toolbar_bg.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/unhighlighted.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/upload.png +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/videologo.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/word.gif +0 -0
- data/{vendor/assets/javascripts/ueditor/themes/default → test/dummy/public/ueditor/themes/mindpin}/images/wordpaste.png +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/third-party/codemirror/codemirror.css +0 -0
- data/{vendor/assets/javascripts → test/dummy/public}/ueditor/third-party/codemirror/codemirror.js +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/013d3910df39380c9835a1a09b1b0394 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0287552b2ed2375eb3994acfd0401379 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/042f034170ae9e5e9a3250327cf7f76c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/068979fb213f839c9f212b3c2a7e2c2e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/07898ec696d976eeafb61ef6bb48e097 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d3adb5ccf5b328e3ac5a377cb75950f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d7c51218669ae27b1bb2d8ff9c9c1f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0e90d83c1ab24528628e4609fb586091 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0eec6c8f3340bbf1869594bc1ff269d7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1877e760da6482994e4f6cf99784e1d9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/192c4d88f6f4dba65f5698071771034b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1af16e914cf172cc2aa44df3cced14f5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1c3b903be7c25d59dfe83210439a666f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24fd9e383d10c56ae5bf72ce4e8d57d5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2bd9b36c9a36c9f81a3c6e5d0441627c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/39c9402f2f90854001756fbefb867372 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3c1de255e0748374a47adaca5a0b7c4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3f510214aa9624f2da3cd0783abd192a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4196b513b6c42fb2e82629ac02e73a0e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4c94a28829548eb17d395443cd28e642 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/527aa044ed2e5faab5b6012b651c3e9b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/580fa03b89740097210553bdf51e68bf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58dfd54d27db5a2c9ec6d9f20e630dd5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5fd644dc7b31d25b01e94daf13d1d4e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6195f009395a38d03838f59ef2041c2e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/627dae5d4a86c14af13bd6f999c910b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/64115546a9047100e090cb1246d41441 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/659c194a08628e282ac3caef1cb64804 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/66b13ebd7685fed96f87e2e5c7d7c167 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6866d66fb3f554afa63e61797336d37d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6962f233059f4a46438c57cd7ff0178b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a5211567f4868e16cdef45f2dc41760 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6bd107821f81c2ca5d905c7009c4ee0d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6df111d99ff43e651268d9b99fefe7ab +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6f115efdfc563e297792c6acc09b0c83 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/74c7b5b3c1ca983f3ac5ad62a4fbdb2c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/75b3bbd255f089f395989caa2edffa98 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7749de71818f5b7c68977768875fe38b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b633e32ff8f5b63473e65e956a0658c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e96adf825802b7dc7fa5dda49f3d55d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7f811a5208ba420e057da25b64148224 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8cc74b16772244683b7851fb053bb881 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8d6caca6f3f2b9906931982182b3a922 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8f59d6d83ad3566a855f7c6aaf0a2153 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8fc1dd433b6df0cba2a75cd76a8da01b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8fdd7d692fcf9a32ff067edb15bd9ad0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/928403fb611339c27e0b0da3f3ea9b61 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/92e3cf1ee6169034b72859923497867a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/935979215259c475f51e2586d1044279 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9a3f05eb39f31a54f7559fd547ae2f18 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9a904bdae53c39029763a22365b0a8b6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9b3d7568bb003e509b9d7738059786e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9c3e5e21298b3b566a13e183a8f10786 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9cf4f6018741f4616dee1202f16fbd2f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9d0b40b6b204fc27b695ce3fd5a49c3b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9d66737565ac7c4fed8aa8e1f3321103 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9ead576401706d295b6b476bb95b0313 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a10e599274d9f5d3e66ec7e2d5ffcef0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aebb8180507e349998b5e23d08b43e22 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b10ed8cd524f9253eb0b73a2b6c017a6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b1a98233bc45e40cf2126c88931f5a36 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b42a8262c38dbcb01665313145d94913 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ba06dddf946f4ff1fc88c21c78ed110d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bd22193b7c008abf93a7640553ee8b24 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bf6e535c1b4fcd995c5321775f7e4de5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c063d154b6ded9368c4954bc8bc6d5ea +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0f1f59a72b8ef82b78625bd27648a4a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c18888a7c09e2eb388e72c4ef47b4593 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c30d975ed601f7b1d2917a051d251bbd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c800654e22200fd45faeb0f4dd9a47f8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d1b451134739a78f1aeb8c7ac49dc6e3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d47169197e7aa9941ad089040737c05f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d68ede5388340e696f67f220442e5660 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d6f8f312eca7fa6eacc0449cd18a4004 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d7a2a268dbd0a95c02367ecf94cdc034 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc96b37cb7c1aa49cff5b505258ea02c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dcea57f350de3f53cb075960bde1ef6f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de8973704a9dbcd11f569fe5258b50f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dfb85a649d917d557af66a0d9175640f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1f08470eeb91b3de56f26f93f5816c9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e796b3630b76a2a9e542c7e9d7a3d251 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e8493f4b1c9cb71c1675a010274ef29e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e9f28f7fae5e38e93eadee3ac548e6cf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ece6fe161d7f779037f7d8b60ce71aa0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ed196b382cb757aa57e2e6a0506bfe39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eebdbdc927f8d48934b8afb3122992d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ef6827a4f9ce88627a4950abce43498e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f02ea9bf13c6ca5fda21e580dfccab15 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f11f345ccecb5a293d4ac484b1363707 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f4dc1524730d3d411725501b22a7e3d7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f6a64bd477747723b37e7edc56d9a784 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ff43fb34074dab0d1daf1babaec2e757 +0 -0
- data/{app → vendor}/assets/javascripts/config.mindpin.default.coffee +31 -2
- data/vendor/assets/javascripts/ueditor.js +3 -0
- metadata +348 -88
- data/app/assets/javascripts/ueditor.js +0 -3
- data/vendor/assets/javascripts/ueditor/index.html +0 -156
@@ -1,156 +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>完整demo</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
7
|
-
<script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
|
8
|
-
<script type="text/javascript" charset="utf-8" src="ueditor.all.min.js"> </script>
|
9
|
-
<style type="text/css">
|
10
|
-
div{
|
11
|
-
width:100%;
|
12
|
-
}
|
13
|
-
</style>
|
14
|
-
</head>
|
15
|
-
<body>
|
16
|
-
<div>
|
17
|
-
<h1>完整demo</h1>
|
18
|
-
<script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
|
19
|
-
</div>
|
20
|
-
<div id="btns">
|
21
|
-
<div>
|
22
|
-
<button onclick="getAllHtml()">获得整个html的内容</button>
|
23
|
-
<button onclick="getContent()">获得内容</button>
|
24
|
-
<button onclick="setContent()">写入内容</button>
|
25
|
-
<button onclick="setContent(true)">追加内容</button>
|
26
|
-
<button onclick="getContentTxt()">获得纯文本</button>
|
27
|
-
<button onclick="getPlainTxt()">获得带格式的纯文本</button>
|
28
|
-
<button onclick="hasContent()">判断是否有内容</button>
|
29
|
-
<button onclick="setFocus()">使编辑器获得焦点</button>
|
30
|
-
<button onmousedown="isFocus(event)">编辑器是否获得焦点</button>
|
31
|
-
<button onmousedown="setblur(event)" >编辑器失去焦点</button>
|
32
|
-
|
33
|
-
</div>
|
34
|
-
<div>
|
35
|
-
<button onclick="getText()">获得当前选中的文本</button>
|
36
|
-
<button onclick="insertHtml()">插入给定的内容</button>
|
37
|
-
<button id="enable" onclick="setEnabled()">可以编辑</button>
|
38
|
-
<button onclick="setDisabled()">不可编辑</button>
|
39
|
-
<button onclick=" UE.getEditor('editor').setHide()">隐藏编辑器</button>
|
40
|
-
<button onclick=" UE.getEditor('editor').setShow()">显示编辑器</button>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
</div>
|
44
|
-
<div>
|
45
|
-
<button onclick="createEditor()">
|
46
|
-
创建编辑器</button>
|
47
|
-
<button onclick="deleteEditor()">
|
48
|
-
删除编辑器</button>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<script type="text/javascript">
|
52
|
-
|
53
|
-
//实例化编辑器
|
54
|
-
//建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor('editor')就能拿到相关的实例
|
55
|
-
var ue = UE.getEditor('editor');
|
56
|
-
|
57
|
-
|
58
|
-
function isFocus(e){
|
59
|
-
alert(UE.getEditor('editor').isFocus());
|
60
|
-
UE.dom.domUtils.preventDefault(e)
|
61
|
-
}
|
62
|
-
function setblur(e){
|
63
|
-
UE.getEditor('editor').blur();
|
64
|
-
UE.dom.domUtils.preventDefault(e)
|
65
|
-
}
|
66
|
-
function insertHtml() {
|
67
|
-
var value = prompt('插入html代码', '');
|
68
|
-
UE.getEditor('editor').execCommand('insertHtml', value)
|
69
|
-
}
|
70
|
-
function createEditor() {
|
71
|
-
enableBtn();
|
72
|
-
UE.getEditor('editor');
|
73
|
-
}
|
74
|
-
function getAllHtml() {
|
75
|
-
alert(UE.getEditor('editor').getAllHtml())
|
76
|
-
}
|
77
|
-
function getContent() {
|
78
|
-
var arr = [];
|
79
|
-
arr.push("使用editor.getContent()方法可以获得编辑器的内容");
|
80
|
-
arr.push("内容为:");
|
81
|
-
arr.push(UE.getEditor('editor').getContent());
|
82
|
-
alert(arr.join("\n"));
|
83
|
-
}
|
84
|
-
function getPlainTxt() {
|
85
|
-
var arr = [];
|
86
|
-
arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
|
87
|
-
arr.push("内容为:");
|
88
|
-
arr.push(UE.getEditor('editor').getPlainTxt());
|
89
|
-
alert(arr.join('\n'))
|
90
|
-
}
|
91
|
-
function setContent(isAppendTo) {
|
92
|
-
var arr = [];
|
93
|
-
arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
|
94
|
-
UE.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
|
95
|
-
alert(arr.join("\n"));
|
96
|
-
}
|
97
|
-
function setDisabled() {
|
98
|
-
UE.getEditor('editor').setDisabled('fullscreen');
|
99
|
-
disableBtn("enable");
|
100
|
-
}
|
101
|
-
|
102
|
-
function setEnabled() {
|
103
|
-
UE.getEditor('editor').setEnabled();
|
104
|
-
enableBtn();
|
105
|
-
}
|
106
|
-
|
107
|
-
function getText() {
|
108
|
-
//当你点击按钮时编辑区域已经失去了焦点,如果直接用getText将不会得到内容,所以要在选回来,然后取得内容
|
109
|
-
var range = UE.getEditor('editor').selection.getRange();
|
110
|
-
range.select();
|
111
|
-
var txt = UE.getEditor('editor').selection.getText();
|
112
|
-
alert(txt)
|
113
|
-
}
|
114
|
-
|
115
|
-
function getContentTxt() {
|
116
|
-
var arr = [];
|
117
|
-
arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
|
118
|
-
arr.push("编辑器的纯文本内容为:");
|
119
|
-
arr.push(UE.getEditor('editor').getContentTxt());
|
120
|
-
alert(arr.join("\n"));
|
121
|
-
}
|
122
|
-
function hasContent() {
|
123
|
-
var arr = [];
|
124
|
-
arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
|
125
|
-
arr.push("判断结果为:");
|
126
|
-
arr.push(UE.getEditor('editor').hasContents());
|
127
|
-
alert(arr.join("\n"));
|
128
|
-
}
|
129
|
-
function setFocus() {
|
130
|
-
UE.getEditor('editor').focus();
|
131
|
-
}
|
132
|
-
function deleteEditor() {
|
133
|
-
disableBtn();
|
134
|
-
UE.getEditor('editor').destroy();
|
135
|
-
}
|
136
|
-
function disableBtn(str) {
|
137
|
-
var div = document.getElementById('btns');
|
138
|
-
var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
|
139
|
-
for (var i = 0, btn; btn = btns[i++];) {
|
140
|
-
if (btn.id == str) {
|
141
|
-
UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
|
142
|
-
} else {
|
143
|
-
btn.setAttribute("disabled", "true");
|
144
|
-
}
|
145
|
-
}
|
146
|
-
}
|
147
|
-
function enableBtn() {
|
148
|
-
var div = document.getElementById('btns');
|
149
|
-
var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
|
150
|
-
for (var i = 0, btn; btn = btns[i++];) {
|
151
|
-
UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
|
152
|
-
}
|
153
|
-
}
|
154
|
-
</script>
|
155
|
-
</body>
|
156
|
-
</html>
|