imperavi-rails 0.0.3.beta → 0.0.4.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +33 -29
- data/app/assets/javascripts/imperavi-rails/imperavi/redactor.js +317 -405
- data/app/assets/stylesheets/imperavi-rails/imperavi/redactor.css.scss +1 -1
- data/app/views/imperavi_rails/imperavi/image_edit.html.erb +1 -1
- data/lib/imperavi-rails/controller_methods.rb +35 -0
- data/lib/imperavi-rails/version.rb +1 -1
- data/lib/imperavi-rails.rb +9 -3
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +12384 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_44_32_721_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_44_32_721_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_45_23_25_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_45_23_25_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_45_49_374_15744.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_45_49_374_15744.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_50_20_902_4.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/14_50_20_902_4.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_22_15_373_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_22_15_373_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_22_40_820_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_22_40_820_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_23_30_325_3.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_23_30_325_3.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_23_57_376_4.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_23_57_376_4.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_26_27_220_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_26_27_220_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_26_57_55_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_26_57_55_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_27_58_370_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_27_58_370_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_29_07_700_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_29_07_700_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_29_19_327_4.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_29_19_327_4.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_29_53_813_4.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_29_53_813_4.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_30_13_242_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_30_13_242_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_30_19_927_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_30_19_927_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_14_355_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_14_355_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_19_371_1.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_19_371_1.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_28_432_15750.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_28_432_15750.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_39_821_15720.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_39_821_15720.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_47_624_4.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_31_47_624_4.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_33_26_155_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_33_26_155_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_34_29_787_2_small.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_34_29_787_2_small.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_34_35_450_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_34_35_450_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_34_41_340_15744.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_34_41_340_15744.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_38_14_325_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_38_14_325_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_45_06_883_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_45_06_883_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_45_18_915_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_45_18_915_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_45_46_86_15744.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_45_46_86_15744.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_47_24_195_3.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_47_24_195_3.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_47_46_83_5.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_47_46_83_5.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_51_18_603_15720.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_51_18_603_15720.jpg.meta +3 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_51_57_666_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_51_57_666_6.jpg.meta +4 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_53_25_938_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/17/19_53_25_938_6.jpg.meta +4 -0
- data/spec/dummy/tmp/cache/assets/CA9/BC0/sprockets%2F85d8b987b980454101a1236fdec2c220 +0 -0
- data/spec/dummy/tmp/cache/assets/CBE/FC0/sprockets%2Ff5431a64e341b062b7530132a5c1ea5a +2306 -1667
- data/spec/dummy/tmp/cache/assets/CC5/C10/sprockets%2F7c81f5c40dc9b87819488e127f487a04 +447 -369
- data/spec/dummy/tmp/cache/assets/CD5/530/sprockets%2F8d4c18bd4851f107c450a2c782301f8b +53 -0
- data/spec/dummy/tmp/cache/assets/CD7/EF0/sprockets%2Fc22597dc7c74137ba100f08542fec580 +76 -0
- data/spec/dummy/tmp/cache/assets/D09/DB0/sprockets%2F5ad1bbd0a458985447fac962fb121264 +188 -0
- data/spec/dummy/tmp/cache/assets/D1A/AB0/sprockets%2F05ea78f209b93ef03f29e933625b7fa5 +305 -1
- data/spec/dummy/tmp/cache/assets/D33/480/sprockets%2Fec072121b559132efe7d07cac0e991a5 +106 -0
- data/spec/dummy/tmp/cache/assets/D38/5D0/sprockets%2F7913f60d743aeb957af7a0ca5a20059d +0 -0
- data/spec/dummy/tmp/cache/assets/D43/830/sprockets%2Fe09848481135db1a4a5c783a7dc94fbd +50 -0
- data/spec/dummy/tmp/cache/assets/D59/260/sprockets%2Fd513a46ce8d83f003a733cb306dfe01a +317 -406
- data/spec/dummy/tmp/cache/assets/D64/190/sprockets%2Ffdfa1bbf71247a2b9ef0b97732603e02 +0 -0
- data/spec/dummy/tmp/cache/assets/D66/200/sprockets%2Fb343cda49d5d41a82c10a8f06d986bd2 +45 -0
- data/spec/dummy/tmp/cache/assets/D6B/980/sprockets%2F56c37f49f60073a401fcbd529dcaa74e +222 -0
- data/spec/dummy/tmp/cache/assets/D6D/AF0/sprockets%2F5a1aa4e3f7d7008e775019dfef3282cc +97 -0
- data/spec/dummy/tmp/cache/assets/D76/560/sprockets%2Fe0c5141697a090ffb74c9412e6dd7fef +50 -0
- data/spec/dummy/tmp/cache/assets/D95/E80/sprockets%2F844edf25b78967cbe9cf3e969c37c6c7 +0 -0
- data/spec/dummy/tmp/cache/assets/D96/230/sprockets%2F63e1b63e2b03d0bd6aaebd27c9973e91 +248 -1
- data/spec/dummy/tmp/cache/assets/D9B/E30/sprockets%2Fd87c8ca46743542cace533cfe91ae1d0 +437 -365
- data/spec/dummy/tmp/cache/assets/D9B/FF0/sprockets%2Fd8bbace39747d4af921e0534736baea3 +125 -0
- data/spec/dummy/tmp/cache/assets/DA2/970/sprockets%2F0d4ef1d42ee3e36fedcd979b3506525b +881 -1
- data/spec/dummy/tmp/cache/assets/DA8/F60/sprockets%2Fbb2cd57d63160c94d622ef9d91ccef68 +5 -5
- data/spec/dummy/tmp/cache/assets/DAC/140/sprockets%2F7a814a5598eaaaccf7ab7895f5663ad5 +89 -0
- data/spec/dummy/tmp/cache/assets/DB7/F90/sprockets%2Faf8cc6b28a790c7e3bd686e8ab9973c8 +0 -0
- data/spec/dummy/tmp/cache/assets/DBB/960/sprockets%2Fe20156d5decfaaea9d1e09f14a100f19 +16 -0
- data/spec/dummy/tmp/cache/sass/bc54e898614d486bf9338d646e8cd056915d4779/redactor.css.scssc +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/01/8b80e42551d33aed663f5757b3e4d3789383e6 +2359 -0
- data/spec/dummy/tmp/dragonfly/cache/body/02/3133eaaddaa68515039bc51e11b3bca2ad3f23 +986 -0
- data/spec/dummy/tmp/dragonfly/cache/body/03/13c061439229cdbd19215cbd1cf0e26441fac2 +713 -0
- data/spec/dummy/tmp/dragonfly/cache/body/05/024188cd40feb026eb8ccd15985d890ba9c84e +643 -0
- data/spec/dummy/tmp/dragonfly/cache/body/06/e22ab9a18784ce1f20e09401ee38b9672860d9 +697 -0
- data/spec/dummy/tmp/dragonfly/cache/body/07/f49938e6a88e40d2d6fd9fc613578396148e1d +1014 -0
- data/spec/dummy/tmp/dragonfly/cache/body/08/8e8a8fc07862b6f7f1bb3d065c44a796a1b959 +489 -0
- data/spec/dummy/tmp/dragonfly/cache/body/09/7fc6a9593ea7b3a9992dd166cdc87cf0e06afc +2341 -0
- data/spec/dummy/tmp/dragonfly/cache/body/09/c8b9529699d7f44fc6e314c992ea222ecf891a +926 -0
- data/spec/dummy/tmp/dragonfly/cache/body/0a/eae45805608cdebd81ace3ac272d43ef8c581a +517 -0
- data/spec/dummy/tmp/dragonfly/cache/body/0f/33cebc2562a1ba143494c74b572a7f569c398e +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/12/f3e9f5435e64b368b805b0f6e2e5b04763e0e9 +713 -0
- data/spec/dummy/tmp/dragonfly/cache/body/13/02bfc481015a6a0abeb3bd17a166b761ba8a47 +626 -0
- data/spec/dummy/tmp/dragonfly/cache/body/14/132bf3af2f923b66a62826ebe1dd001f0ba183 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/16/3001f75355d109f24b59f690f7ba71c2616261 +2343 -0
- data/spec/dummy/tmp/dragonfly/cache/body/16/7a17ea4c64e37f9f0aa5e773501ee5131bb2af +552 -0
- data/spec/dummy/tmp/dragonfly/cache/body/18/1ddbad5715e03f6bcaeb409ca55a8f1f1c2b76 +1000 -0
- data/spec/dummy/tmp/dragonfly/cache/body/18/dc1d281e1b27f8e29a5d3ea3192ee5ab92c8fe +1721 -0
- data/spec/dummy/tmp/dragonfly/cache/body/19/244efbcbf0ed096cc80addb39d1139782691e4 +701 -0
- data/spec/dummy/tmp/dragonfly/cache/body/1b/09d865c098ccb9e1bb1783281f8f18ab22f49c +1016 -0
- data/spec/dummy/tmp/dragonfly/cache/body/1b/5baeb3d8b21ebdd6d60357437ea9b4ddefa49a +537 -0
- data/spec/dummy/tmp/dragonfly/cache/body/1b/f3995977d56cd70d334227ffae3858fdb3e1d4 +1011 -0
- data/spec/dummy/tmp/dragonfly/cache/body/1c/8c49d20e2ca7ccea3c7124923f2d6ff715400c +538 -0
- data/spec/dummy/tmp/dragonfly/cache/body/1e/3ce5b58c37f23053d85f581ff49d15ad1a498a +674 -0
- data/spec/dummy/tmp/dragonfly/cache/body/1f/de9c96ae1b545cb125a43f6c81fe6f15851ac7 +546 -0
- data/spec/dummy/tmp/dragonfly/cache/body/20/5d43e6adae0bf766e830109660e59dfd97a776 +646 -0
- data/spec/dummy/tmp/dragonfly/cache/body/20/9dd05484ee6eca030ee50cf71b912a67089c79 +2339 -0
- data/spec/dummy/tmp/dragonfly/cache/body/21/bdc0c588b6d2ddbbcc9b76fe749c38f0ef2f41 +872 -0
- data/spec/dummy/tmp/dragonfly/cache/body/22/f0e133e63c81c43643026aa5cbb3712bfa929e +708 -0
- data/spec/dummy/tmp/dragonfly/cache/body/24/f7da13054199d224537d7530367474f292c85a +2359 -0
- data/spec/dummy/tmp/dragonfly/cache/body/27/0ac007b4441579233e425f3e7a36887eb4298e +986 -0
- data/spec/dummy/tmp/dragonfly/cache/body/28/c775213c7f72c870045887887893831bbb9083 +1006 -0
- data/spec/dummy/tmp/dragonfly/cache/body/2a/602d5bf47ce3c3e1fbd540f3659acdf8488b84 +2341 -0
- data/spec/dummy/tmp/dragonfly/cache/body/2c/79dceb2787a90f7da9a43673db8d1f1922a379 +641 -0
- data/spec/dummy/tmp/dragonfly/cache/body/2d/016dc3e8be00f46455041e5187159762a1a72b +535 -0
- data/spec/dummy/tmp/dragonfly/cache/body/2d/40a96b71b5c4be6ea5de082c5c468b923df113 +626 -0
- data/spec/dummy/tmp/dragonfly/cache/body/2f/2077afd991927df732811e002d532f34a62c86 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/30/7cdb90b26de71fedb1774d7b7fe630e77cf34f +1011 -0
- data/spec/dummy/tmp/dragonfly/cache/body/33/43ee3681542a52fec318884c34cdc6233aec90 +2359 -0
- data/spec/dummy/tmp/dragonfly/cache/body/34/d994dfa8a8a2cf1dddcfcb9d7d43839f798a66 +1007 -0
- data/spec/dummy/tmp/dragonfly/cache/body/36/1acb61b84bbb2e3b1fe7cb28e1ca0bb2ebc147 +1721 -0
- data/spec/dummy/tmp/dragonfly/cache/body/37/0de185ac6803197940a4aca2ee4cb6cd97aa25 +700 -0
- data/spec/dummy/tmp/dragonfly/cache/body/39/36d756ac37cbfd7995a8413c5b813623f8c1d6 +496 -0
- data/spec/dummy/tmp/dragonfly/cache/body/39/c79f94952d16de5de0ec59089d381ace6e386e +1029 -0
- data/spec/dummy/tmp/dragonfly/cache/body/3f/457b87cdc17162db48461cf72c87457ebe753b +1011 -0
- data/spec/dummy/tmp/dragonfly/cache/body/40/d745dd4044031ccd76b4f5a8ad46e3c16ea8c0 +915 -0
- data/spec/dummy/tmp/dragonfly/cache/body/43/1a5a2dc62c3b453378dad049c48fcf36928f53 +2342 -0
- data/spec/dummy/tmp/dragonfly/cache/body/43/abfe6e68d8603f92084533b5f94fb717bc2b02 +700 -0
- data/spec/dummy/tmp/dragonfly/cache/body/44/65e89dffc7531e6479a00711d7bf430c56754f +2359 -0
- data/spec/dummy/tmp/dragonfly/cache/body/47/1092abd16e44c60537ac674b871481ca6d108e +489 -0
- data/spec/dummy/tmp/dragonfly/cache/body/47/befec7e863f30488d1c9a72619411e3c311eea +552 -0
- data/spec/dummy/tmp/dragonfly/cache/body/48/4af0743c55ececa9e2b3477a666492914d5a25 +700 -0
- data/spec/dummy/tmp/dragonfly/cache/body/48/5935b1ceed38545d44989a5464049018f63ecd +926 -0
- data/spec/dummy/tmp/dragonfly/cache/body/4a/db06a6fda9b3fbe12beb6816390a4fd61e4491 +667 -0
- data/spec/dummy/tmp/dragonfly/cache/body/4b/088deec20739cb75b3d8e2ca591171b342026d +862 -0
- data/spec/dummy/tmp/dragonfly/cache/body/4b/ea67064045b150fdd661d9b25fe1c447df7570 +703 -0
- data/spec/dummy/tmp/dragonfly/cache/body/50/8888bca37caef9e8ecf9434f304d1ab2cc820a +538 -0
- data/spec/dummy/tmp/dragonfly/cache/body/54/862500a3c1ce6a605de340ded6051d9d6c96dc +880 -0
- data/spec/dummy/tmp/dragonfly/cache/body/55/a3a5731c805bf0c5deda35500598030e91caf7 +2358 -0
- data/spec/dummy/tmp/dragonfly/cache/body/56/50f6edaa5e2fe07797333404d13fe63360f72c +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/56/dfa139236a6fcecf0fdd13308a17d03666d223 +2361 -0
- data/spec/dummy/tmp/dragonfly/cache/body/58/d135dda5118408bf76a2b381ac0d482276ee97 +546 -0
- data/spec/dummy/tmp/dragonfly/cache/body/59/0b00b9579bdc8d199e42d68cc83ee72ba6036a +712 -0
- data/spec/dummy/tmp/dragonfly/cache/body/59/c6cdda1534cfeb69aed8a295fa36aa0b34d9ac +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/5c/c982746925609ae2ddd24d20e9f96247006dc3 +883 -0
- data/spec/dummy/tmp/dragonfly/cache/body/5f/033e3fda7f0149729cdeba2807ccad0ce6ea32 +1016 -0
- data/spec/dummy/tmp/dragonfly/cache/body/5f/95bdb3eb07339f50a73c3e2c38d619b2321902 +2361 -0
- data/spec/dummy/tmp/dragonfly/cache/body/60/92cdccc969bab02d35b702148409d59276ec8e +703 -0
- data/spec/dummy/tmp/dragonfly/cache/body/62/d3974c45b38586ded0f6adefcefeb4e25aea08 +2357 -0
- data/spec/dummy/tmp/dragonfly/cache/body/63/9cff6d42d49aaded2e3201d0b311fb0c4d5af5 +872 -0
- data/spec/dummy/tmp/dragonfly/cache/body/65/b3251b1348841946320cd8ac140a7a10a07de5 +894 -0
- data/spec/dummy/tmp/dragonfly/cache/body/66/59b5c1535bed3649f05f378f9a935a9369a14f +2341 -0
- data/spec/dummy/tmp/dragonfly/cache/body/67/8611d272ec29fc5cb7a63a709a12f47da63fbd +538 -0
- data/spec/dummy/tmp/dragonfly/cache/body/68/9bc64959e48ba446c2a48a48952d4e6e422bee +2334 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6a/0be367e94b672cef188ef8c3261ed63fa59e6d +701 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6a/1642bac93ee93e5ca10af933c39f6db9e15508 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6a/4558d01c325e63bfe9abe3df6b1255e51a20e6 +703 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6b/8df0f17fd3ce7a7e551e91f30909a847a2abee +734 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6b/90cf2c21e1934876d420d2524fe5216c5e7bf1 +551 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6d/d8a547a0125a1da2df83e6b2f4c36631a1bd2f +538 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6e/a8d288ea6931b9277121b209ac32959b717029 +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/6f/b27a907116ff2fa7a668b30d49b65885a09022 +1016 -0
- data/spec/dummy/tmp/dragonfly/cache/body/71/01bff740c639a7b8383a5e247ece9552656acb +708 -0
- data/spec/dummy/tmp/dragonfly/cache/body/73/7752ee519e2ee8c13b4c9165fb98c19a874843 +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/74/c9b1fca6f96048f555aed33ddb5c5240839f62 +793 -0
- data/spec/dummy/tmp/dragonfly/cache/body/75/01f0f946848c6b910634bed2a58e748dd0a4d2 +986 -0
- data/spec/dummy/tmp/dragonfly/cache/body/75/15881fe428cd4b04438de4e03ba3acc7cd789e +642 -0
- data/spec/dummy/tmp/dragonfly/cache/body/77/02b8ae247e83a86e819b150375bd2971911635 +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/79/0ba4208b6b095e78b15c6f2c4ef04b9e568fdf +976 -0
- data/spec/dummy/tmp/dragonfly/cache/body/7a/40b3b7e48d2fb4f8dc6b9ce3b2c6414cd3db4b +638 -0
- data/spec/dummy/tmp/dragonfly/cache/body/7a/44fbc7caa954feca99ae14cdd31700f3bc01ca +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/81/1412d99f15c17d9a52618013667ddc6acbb5e7 +560 -0
- data/spec/dummy/tmp/dragonfly/cache/body/82/bb0ce1f6b156348edb5d054b09681adbb1541c +638 -0
- data/spec/dummy/tmp/dragonfly/cache/body/82/f4aef50c7d0580ce3de59af781988f8c027e31 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/84/3bafbd4a01aaae5795b68c2a21561fd78e8bfb +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/84/61cb5340e22fb0e266e5276613f5b218b793c0 +774 -0
- data/spec/dummy/tmp/dragonfly/cache/body/87/452e47dc8c565d70543b6a8b3aeeeafef5ede6 +1008 -0
- data/spec/dummy/tmp/dragonfly/cache/body/8e/6921af9cd9a9aa0cb4a521be98d497ff7fdeaf +700 -0
- data/spec/dummy/tmp/dragonfly/cache/body/8e/d1fec3f23b9477057019f581847f7f8b2051c3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/8f/e7d4976bf7e183cf4f6ab9409f8503351dad3c +709 -0
- data/spec/dummy/tmp/dragonfly/cache/body/90/1abfe79ed8fa57b0f367b8d6cc284742d74bd9 +703 -0
- data/spec/dummy/tmp/dragonfly/cache/body/93/fe1fa30d5fe0cb493dd11ea6eaee9201b50cd8 +712 -0
- data/spec/dummy/tmp/dragonfly/cache/body/94/7a175f9de08b84499763ba6cc25f6911ef315e +913 -0
- data/spec/dummy/tmp/dragonfly/cache/body/98/2828d5b0867095317a017415955ef31a50dbc5 +1014 -0
- data/spec/dummy/tmp/dragonfly/cache/body/98/f06faf5cfff9a92b4d99d400523e1f1551742e +1007 -0
- data/spec/dummy/tmp/dragonfly/cache/body/99/2dab09135d5fcbaa2c2b833a8284cb56be5c26 +1014 -0
- data/spec/dummy/tmp/dragonfly/cache/body/99/b545fe8ab3b930d8997fd75bb08feea0c9754d +915 -0
- data/spec/dummy/tmp/dragonfly/cache/body/9a/ff030c94bb0fbe5d9fbb8cf6865236cb7d74b2 +217 -0
- data/spec/dummy/tmp/dragonfly/cache/body/9f/8083640216ee29b9e8b4f10990f33d94aa352c +2360 -0
- data/spec/dummy/tmp/dragonfly/cache/body/9f/f4d177f296f259ff4ef3ddb38583daaf7c4dad +1011 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a0/13144afc0d13219dad65508b046b9e0693a22b +926 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a1/44a32dab1df021f54bf212d2a401b7fc69a2d8 +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a2/7996e882d74e2e2c590fbfee8a8842b43f5c5e +1014 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a2/e9ac7eba6c9ac611ec0cb7f26cbe0711b4b59c +694 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a3/cd2fc5aabd1c551bba7f290844b8d89c94ab1e +523 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a4/1a483a32348565e7afc810f49f55c1a9cbcd5d +707 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a5/ddf1a8e968d20390ab06c94b19eb69a1e81ad7 +908 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a6/f516919f720c81c119adadf1693ea44e5b90fe +490 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a8/5137398b4d62aacbb0921f50eb9f62e7ec8de4 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a8/fb555a7e2420a17ce30758861ac3de784677eb +1011 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b0/9703b98c965449cfbff801b8482e5c2c9b1b50 +954 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b1/4c0f9e41101026eff8ebdc3fc9eae61c25372b +700 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b3/d870794114f8ce678eeeddb0616abbea93ec7b +562 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b4/1d331b6f64144bdee2ab598fd7f5ed2bcb6c3c +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b4/84edbbb2dae5a5fc1cbfc8c8d3517bd1466a1b +2359 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b5/52eaf4b5bac5fcf8667e5fb74f4b1c61984b0e +537 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b6/9ec86cf5018fe63297e409da6638450c5041d2 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b7/31c759f6bf5b6adc13874d8ccf325a1715bf33 +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b8/84c73fced17e1cb4f2efc18ed4f81789e5a622 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b9/43df43ad225c99d420cdb7e5d7714c2876273f +1007 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b9/b4cb4d1647df4ec458ef3cc18782261a46bef2 +641 -0
- data/spec/dummy/tmp/dragonfly/cache/body/ba/1c57461ee48afadc870fca415b0e2aeaec3f4a +882 -0
- data/spec/dummy/tmp/dragonfly/cache/body/be/d14e3b72d93bfc0cace752edf21f5cc2af8949 +2358 -0
- data/spec/dummy/tmp/dragonfly/cache/body/c1/0767685a05c93f5e79a81ec5016820d7068afd +281 -0
- data/spec/dummy/tmp/dragonfly/cache/body/c3/5f95670b5171f06b0c450331c20ce59d44d5bd +537 -0
- data/spec/dummy/tmp/dragonfly/cache/body/c3/c76755904506b55cc288baed5e8f3ae767e1f9 +908 -0
- data/spec/dummy/tmp/dragonfly/cache/body/c7/48859071d0c1e701557a2b59181ae9d40b4c1c +1029 -0
- data/spec/dummy/tmp/dragonfly/cache/body/cc/e21614b70000b7a45bf382a696dfdf2e78811f +1029 -0
- data/spec/dummy/tmp/dragonfly/cache/body/cd/daa343d969732d44b9018e9e8403d758c1075b +2334 -0
- data/spec/dummy/tmp/dragonfly/cache/body/cd/dbba7b01cfb5eabf3c3b557d3cc1c7eeac9157 +523 -0
- data/spec/dummy/tmp/dragonfly/cache/body/d0/654133544a02cf512cdbe78256f913d684ee32 +894 -0
- data/spec/dummy/tmp/dragonfly/cache/body/d4/42ed09f48e3e24cd3cd958c9e0865df054419b +1029 -0
- data/spec/dummy/tmp/dragonfly/cache/body/d6/1eefad56108f5a8e1fa7aa72ff9b9f9cd633fc +538 -0
- data/spec/dummy/tmp/dragonfly/cache/body/d6/d1ac8848c469cd9094fa75b7528e0f5b6b632e +496 -0
- data/spec/dummy/tmp/dragonfly/cache/body/d7/899077450ebef4fdc0e9bb929825299f54457f +697 -0
- data/spec/dummy/tmp/dragonfly/cache/body/d9/f0d58e806b8697218740130d2ca12b3b86d6ef +1007 -0
- data/spec/dummy/tmp/dragonfly/cache/body/da/378953b0532aa6da1fa92abeeae89199ef8227 +1006 -0
- data/spec/dummy/tmp/dragonfly/cache/body/da/7c689c2f3a69f6770b63b71a8e71b6a1a28b37 +967 -0
- data/spec/dummy/tmp/dragonfly/cache/body/da/e26a3a67f1a9ea2332232ea28c90082c0e3bad +963 -0
- data/spec/dummy/tmp/dragonfly/cache/body/dc/abdd743fd3e9d7bd5647abeb86e66a3e6f9597 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/e0/85f72a9f92bfadac77ceb40b9dcce7f1d0c0b4 +712 -0
- data/spec/dummy/tmp/dragonfly/cache/body/e1/f71dadeca1e7e8044d7ffe33168a41cf4b915e +712 -0
- data/spec/dummy/tmp/dragonfly/cache/body/e3/5e3eeacd0fa04028277861a7e20aca055126bf +705 -0
- data/spec/dummy/tmp/dragonfly/cache/body/e7/71af29ca1fb912746c2a8c252ce2dbda293797 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/eb/d3df10f28dd5eb3361f2dea07bce8f31883cb4 +562 -0
- data/spec/dummy/tmp/dragonfly/cache/body/f2/0000c07c049d6b02b83c134a47f79d25c8f884 +1006 -0
- data/spec/dummy/tmp/dragonfly/cache/body/f3/81eaa388ae0115314da5ef3dff86dde481f6ea +1011 -0
- data/spec/dummy/tmp/dragonfly/cache/body/f4/f597679294dfce3758a1e23f8739ddadb7a07a +905 -0
- data/spec/dummy/tmp/dragonfly/cache/body/f6/5638ff81bbc2e264c25be9224311d5b88e199e +696 -0
- data/spec/dummy/tmp/dragonfly/cache/body/f8/4c49b7e7f1df8b9bf194c8e4f238965275a470 +638 -0
- data/spec/dummy/tmp/dragonfly/cache/body/f8/bce7bef222715dce37713e4b658bb432746046 +642 -0
- data/spec/dummy/tmp/dragonfly/cache/body/fb/4bbd9bd1b55ea5c5f029a98429cbe84fecbd56 +1029 -0
- data/spec/dummy/tmp/dragonfly/cache/body/fe/83a325403c35319d9539703bf8b707c48cbb81 +700 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/0b/a9c9bfcc4c3c931157c0740283f9879ffbc80e +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/16/82dfe14b1caadf556cccc78e6742ecba3c8f50 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/18/2807a34d96c2dc102f1c7f2c2fe2a3dea0152a +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/1b/df42876b5661f82d4041d818e787e2f58949e7 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/1d/f723c27427056dd58a506f1e4f15020442098e +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/22/66939b783406813e2f0a76f3a2f29473675994 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/23/4f7740cb6118c7c530ce379339a99828a75ef3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/26/25fc31c2b02071c5c60621d36793dc55fdb33c +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/29/717968cc2fa016a4911e7161b6423235f36c87 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/2d/83e1c5e84c02b8fee05b62d483999bfaba7be0 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/2d/b7fe2b8774fa388daa3c8370f34052119b4222 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/2d/fe381b58b48b16278672bd61db736e4e920955 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/32/e0d3566d2be50daabce5a94c515f772050829b +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/38/5bb4a3ceace256ca114fc14a3c5ae12ec83fb0 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/39/b52b68255f54efe8cb853fd153088f94a7661a +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/3e/0173e72157b702c4926d190389540028b0ae1d +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/52/a111bad2ef8c87af7f55baf0ffc5cdefc446e4 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/55/32c60f25996b8e8a9fdf7125956c5204fa8792 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/64/61f1782e6f9ec4e6416c0aec429529ea70a1a1 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/66/b6e26427e56a9f9ade00d4cf5d615679f0f7a7 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/66/f44aba1428593600ff0e47ea6aa54362e39a59 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/6d/f4ba8735866613f9b640f6a0cc8e4583eba1f9 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/78/d74c0cd05a77c0c06acb622761d30c9ea00bb3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/7a/6033b3a3f17fbddc765d138d39de24f94f0965 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/7a/d6666861b23fcf6c7ea45d61810fdb1c14d9d0 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/80/5841ac20acdd8dd41460c8346294abc5c4dd8f +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/83/5df7873207b08f78fd9d690e5a0b759242b937 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/83/696c30e03b7215b60e076bc528c8829ddcc516 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/83/b01df8c183f9586aff3f30bd22f4c24793c52b +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/85/289eb541e97e28d96dacfd07c314be3beb566a +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/8c/1a23bf2dd650d0327255a5fe948c325d350107 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/8f/5281faf3f227ef4bbbd3b644cc9eafc86ff9b1 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/91/0922a2bd8308a75961dac5733d4907df678f65 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/92/8e4f3f982b856114506c590c291dea7f0c29d7 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/92/99ecbc80a7e8abcc02a36d9c3365b23b1a5b1a +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/98/00e4dc8c2a89849e9d3cb8dd37f8c45d744dd3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/9d/4531b3a9ffdee2c2b2b485675e8b055a2de25f +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/a2/5920380e48276ad6f8bc26fb9a4a527db839c8 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/b7/407b5584752ca5298158a78be896bf810dd4e0 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/b7/ae83f0c4d7b4849a78af8830c31ffe4b166b52 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/d2/458b4acc8a67ee57346f1f4ebfa0f0e4bb4ea3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/d5/341018026448c1d4f56801bd7ddb8380e1a73c +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/e7/6d1dc2d45d19440e781f6c5d00f39d8aeb4da1 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/ee/fe74949a8c2a0bbc077385a12944d9f98a12e0 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/ef/d71b44567b90c7f85e9bd0576e4b7e55bd3565 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/f9/67ac04386c59253bd80f4034d18af166cc5691 +0 -0
- data/spec/dummy/tmp/sass-cache/6e61637ec8d1d247724328e8c4a6704fe36b468e/_hacks.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/77824dc1336af71703311a2e58b21a32c1511e63/_border-radius.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/77824dc1336af71703311a2e58b21a32c1511e63/_box-shadow.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/77824dc1336af71703311a2e58b21a32c1511e63/_gradient.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/77824dc1336af71703311a2e58b21a32c1511e63/_images.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/77824dc1336af71703311a2e58b21a32c1511e63/_inline-block.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/77824dc1336af71703311a2e58b21a32c1511e63/_shared.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/bc54e898614d486bf9338d646e8cd056915d4779/buttons.css.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/bc54e898614d486bf9338d646e8cd056915d4779/redactor.css.scssc +0 -0
- data/spec/dummy/tmp/sass-cache/d1a1c9c63df53223abb80676ef7dcc16c1375c54/_support.scssc +0 -0
- metadata +605 -20
- data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -1,16 +1,15 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1328499882.6609886:@value{I"
|
2
2
|
class:EFI"BundledAsset;
|
3
3
|
FI"id;
|
4
|
-
F"%
|
5
|
-
|
6
|
-
TI"
|
4
|
+
F"%77916ac3900a9776380fee66d0acc875I"logical_path;
|
5
|
+
F"(imperavi-rails/imperavi/redactor.jsI"
|
7
6
|
F"d/home/tanraya/sandbox/imperavi-rails/app/assets/javascripts/imperavi-rails/imperavi/redactor.jsI"content_type;
|
8
7
|
FI"application/javascript;
|
9
8
|
FI"
|
10
9
|
mtime;
|
11
|
-
FI"2012-02-
|
10
|
+
FI"2012-02-03T19:32:56+06:00;
|
12
11
|
FI" body;
|
13
|
-
FI"
|
12
|
+
FI")�/*
|
14
13
|
Redactor v7.2.0
|
15
14
|
Updated 20.11.2011
|
16
15
|
|
@@ -81,6 +80,7 @@ function detectAndroidWebKit() {
|
|
81
80
|
overlay : true, // modal overlay
|
82
81
|
fileUploadCallback : false, // callback function
|
83
82
|
imageUploadCallback : false, // callback function
|
83
|
+
imageInsertCallback : function() {},
|
84
84
|
|
85
85
|
// Paths to various handlers
|
86
86
|
paths : {
|
@@ -377,11 +377,10 @@ function detectAndroidWebKit() {
|
|
377
377
|
docObserve: function() {
|
378
378
|
var body = $(this.doc).find('body');
|
379
379
|
|
380
|
-
body.find('img').click(function(e)
|
380
|
+
body.find('img').click(function(e) { this.imageEdit(e); }.bind2(this));
|
381
381
|
body.find('table').click(function(e) { this.tableObserver(e); }.bind2(this));
|
382
382
|
body.find('.redactor_file_link').click(function(e) { this.fileEdit(e); }.bind2(this));
|
383
|
-
|
384
|
-
},
|
383
|
+
},
|
385
384
|
|
386
385
|
// Format on submit form
|
387
386
|
formSets: function() {
|
@@ -432,7 +431,9 @@ function detectAndroidWebKit() {
|
|
432
431
|
}
|
433
432
|
},
|
434
433
|
|
435
|
-
|
434
|
+
/**************************************************************************************************************************
|
435
|
+
* Format and clean********************************************************************************************************
|
436
|
+
**************************************************************************************************************************/
|
436
437
|
clean: function() {
|
437
438
|
var html = this.getHtml();
|
438
439
|
|
@@ -452,6 +453,7 @@ function detectAndroidWebKit() {
|
|
452
453
|
return html;
|
453
454
|
},
|
454
455
|
|
456
|
+
|
455
457
|
tidyUp: function (html) {
|
456
458
|
// lowercase
|
457
459
|
if ($.browser.msie)
|
@@ -617,9 +619,9 @@ function detectAndroidWebKit() {
|
|
617
619
|
this.execCommand('inserthtml', '<hr class="redactor_cut" />');
|
618
620
|
},
|
619
621
|
|
620
|
-
|
621
|
-
|
622
|
-
|
622
|
+
/**************************************************************************************************************************
|
623
|
+
* Toggle *****************************************************************************************************************
|
624
|
+
**************************************************************************************************************************/
|
623
625
|
toggle: function()
|
624
626
|
{
|
625
627
|
if (this.opts.visual)
|
@@ -679,9 +681,9 @@ function detectAndroidWebKit() {
|
|
679
681
|
},
|
680
682
|
|
681
683
|
|
682
|
-
|
683
|
-
|
684
|
-
|
684
|
+
/**************************************************************************************************************************
|
685
|
+
* Video ******************************************************************************************************************
|
686
|
+
**************************************************************************************************************************/
|
685
687
|
showVideo: function()
|
686
688
|
{
|
687
689
|
redactorActive = this;
|
@@ -708,9 +710,9 @@ function detectAndroidWebKit() {
|
|
708
710
|
|
709
711
|
|
710
712
|
|
711
|
-
|
712
|
-
|
713
|
-
|
713
|
+
/**************************************************************************************************************************
|
714
|
+
* File *******************************************************************************************************************
|
715
|
+
**************************************************************************************************************************/
|
714
716
|
showFile: function()
|
715
717
|
{
|
716
718
|
redactorActive = this;
|
@@ -786,9 +788,9 @@ function detectAndroidWebKit() {
|
|
786
788
|
top.location.href = this.opts.paths.files.download + file_id;
|
787
789
|
},
|
788
790
|
|
789
|
-
|
790
|
-
|
791
|
-
|
791
|
+
/**************************************************************************************************************************
|
792
|
+
* Table ******************************************************************************************************************
|
793
|
+
**************************************************************************************************************************/
|
792
794
|
showTable: function()
|
793
795
|
{
|
794
796
|
redactorActive = this;
|
@@ -911,62 +913,46 @@ function detectAndroidWebKit() {
|
|
911
913
|
});
|
912
914
|
},
|
913
915
|
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
imageEdit: function(e)
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
var
|
922
|
-
|
923
|
-
|
924
|
-
$('#
|
925
|
-
|
926
|
-
|
927
|
-
$('#
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
916
|
+
/**************************************************************************************************************************
|
917
|
+
* Image ******************************************************************************************************************
|
918
|
+
**************************************************************************************************************************/
|
919
|
+
imageEdit: function(e) {
|
920
|
+
var handler = function() {
|
921
|
+
var $el = $(e.target);
|
922
|
+
var align_box = $('#redactor_form_image_align');
|
923
|
+
var alt = $('#redactor_file_alt');
|
924
|
+
|
925
|
+
// Download image
|
926
|
+
$('#redactor_image_edit_src').attr('href', $el.attr('src'));
|
927
|
+
|
928
|
+
// Remove image
|
929
|
+
$('#redactor_image_edit_delete').click(function() {
|
930
|
+
$el.remove();
|
931
|
+
this.modalClose();
|
932
|
+
}.bind2(this));
|
933
|
+
|
934
|
+
// Save images
|
935
|
+
$('#redactorSaveBtn').click(function() {
|
936
|
+
$el.attr('alt', alt.val())
|
937
|
+
.removeClass('img_left img_right img_none')
|
938
|
+
.addClass('img_' + align_box.val());
|
939
|
+
|
940
|
+
this.modalClose();
|
941
|
+
}.bind2(this));
|
942
|
+
|
943
|
+
// Populate inputs
|
944
|
+
alt.val($el.attr('alt'));
|
945
|
+
align_box.val($el.css('float'));
|
946
|
+
}.bind2(this);
|
935
947
|
|
936
|
-
redactorActive = this;
|
948
|
+
redactorActive = this;
|
937
949
|
this.modalInit(RLANG.image, this.opts.paths.dialogs.imageEdit, 380, 290, handler);
|
938
950
|
},
|
939
|
-
imageSave: function(el)
|
940
|
-
{
|
941
|
-
$(el).attr('alt', $('#redactor_file_alt').val());
|
942
|
-
|
943
|
-
var style = '';
|
944
|
-
if ($('#redactor_form_image_align') != 0)
|
945
|
-
{
|
946
|
-
var float = $('#redactor_form_image_align').val();
|
947
951
|
|
948
|
-
|
949
|
-
$(el).removeClass('img_left').removeClass('img_right')
|
950
|
-
|
951
|
-
if (float == 'left')
|
952
|
-
$(el).addClass('img_left');
|
953
|
-
else if (float == 'right')
|
954
|
-
$(el).addClass('img_right')
|
955
|
-
}
|
956
|
-
else $(el).css({ float: 'none', margin: '0' });
|
957
|
-
|
958
|
-
this.modalClose();
|
959
|
-
},
|
960
|
-
deleteImage: function(el)
|
961
|
-
{
|
962
|
-
$(el).remove();
|
963
|
-
this.modalClose();
|
964
|
-
},
|
965
|
-
showImage: function()
|
966
|
-
{
|
952
|
+
showImage: function() {
|
967
953
|
this.spanid = Math.floor(Math.random() * 99999);
|
968
|
-
|
969
|
-
{
|
954
|
+
|
955
|
+
if (jQuery.browser.msie) {
|
970
956
|
this.execCommand('inserthtml', '<span id="span' + this.spanid + '"></span>');
|
971
957
|
}
|
972
958
|
|
@@ -980,6 +966,7 @@ function detectAndroidWebKit() {
|
|
980
966
|
});
|
981
967
|
});
|
982
968
|
} else {
|
969
|
+
// 'pretty' code
|
983
970
|
$('#redactor_tabs li').eq(0).remove();
|
984
971
|
$('#redactor_tabs a').eq(1).addClass('redactor_tabs_act');
|
985
972
|
$('#redactor_tabs1').hide();
|
@@ -987,11 +974,8 @@ function detectAndroidWebKit() {
|
|
987
974
|
}
|
988
975
|
|
989
976
|
// upload params
|
990
|
-
var params = '';
|
991
|
-
if (this.opts.imageUploadCallback) var params = this.opts.imageUploadCallback();
|
992
|
-
|
993
977
|
$('#redactor_file').dragupload({
|
994
|
-
url : this.opts.paths.images.upload
|
978
|
+
url : this.opts.paths.images.upload,
|
995
979
|
success : function(data) {
|
996
980
|
this.imageUploadCallback(data);
|
997
981
|
}.bind2(this)
|
@@ -999,7 +983,7 @@ function detectAndroidWebKit() {
|
|
999
983
|
|
1000
984
|
this.uploadInit('redactor_file', {
|
1001
985
|
auto : true,
|
1002
|
-
url : this.opts.paths.images.upload
|
986
|
+
url : this.opts.paths.images.upload,
|
1003
987
|
trigger : 'redactorUploadBtn',
|
1004
988
|
success : function(data) {
|
1005
989
|
this.imageUploadCallback(data);
|
@@ -1007,31 +991,25 @@ function detectAndroidWebKit() {
|
|
1007
991
|
}.bind2(this);
|
1008
992
|
|
1009
993
|
redactorActive = this;
|
1010
|
-
this.modalInit(RLANG.image, this.opts.paths.dialogs.image,
|
1011
|
-
|
994
|
+
this.modalInit(RLANG.image, this.opts.paths.dialogs.image, 750, 600, handler);
|
1012
995
|
},
|
1013
|
-
|
1014
|
-
{
|
996
|
+
|
997
|
+
imageSetThumb: function(data) {
|
1015
998
|
this._imageSet('<img alt="" src="' + data + '" />');
|
1016
999
|
},
|
1017
|
-
imageUploadCallback: function(data)
|
1018
|
-
{
|
1019
|
-
if ($('#redactor_file_link').val() != '') data = $('#redactor_file_link').val();
|
1020
1000
|
|
1001
|
+
imageUploadCallback: function(data) {
|
1002
|
+
if ($('#redactor_file_link').val() != '') data = $('#redactor_file_link').val();
|
1021
1003
|
this._imageSet(data);
|
1022
|
-
|
1023
|
-
|
1024
|
-
_imageSet: function(html)
|
1025
|
-
{
|
1004
|
+
},
|
1005
|
+
|
1006
|
+
_imageSet: function(html) {
|
1026
1007
|
redactorActive.frame.get(0).contentWindow.focus();
|
1027
1008
|
|
1028
|
-
if ($.browser.msie)
|
1029
|
-
{
|
1009
|
+
if ($.browser.msie) {
|
1030
1010
|
$(redactorActive.doc.getElementById('span' + redactorActive.spanid)).after(html);
|
1031
1011
|
$(redactorActive.doc.getElementById('span' + redactorActive.spanid)).remove();
|
1032
|
-
}
|
1033
|
-
else
|
1034
|
-
{
|
1012
|
+
} else {
|
1035
1013
|
redactorActive.execCommand('inserthtml', html);
|
1036
1014
|
}
|
1037
1015
|
|
@@ -1039,45 +1017,40 @@ function detectAndroidWebKit() {
|
|
1039
1017
|
this.docObserve();
|
1040
1018
|
},
|
1041
1019
|
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
*/
|
1020
|
+
/**************************************************************************************************************************
|
1021
|
+
* Link ******************************************************************************************************************
|
1022
|
+
**************************************************************************************************************************/
|
1046
1023
|
showLink: function()
|
1047
1024
|
{
|
1048
1025
|
redactorActive = this;
|
1049
1026
|
|
1050
|
-
var handler = function()
|
1051
|
-
{
|
1027
|
+
var handler = function() {
|
1052
1028
|
var sel = this.get_selection();
|
1053
|
-
if ($.browser.msie)
|
1054
|
-
{
|
1055
|
-
var temp = sel.htmlText.match(/href="(.*?)"/gi);
|
1056
|
-
if (temp != null)
|
1057
|
-
{
|
1058
|
-
temp = new String(temp);
|
1059
|
-
temp = temp.replace(/href="(.*?)"/gi, '$1');
|
1060
|
-
}
|
1061
1029
|
|
1062
|
-
|
1063
|
-
|
1064
|
-
else var url = '';
|
1065
|
-
var title = '';
|
1066
|
-
}
|
1067
|
-
else
|
1068
|
-
{
|
1069
|
-
if (sel.anchorNode.parentNode.tagName == 'A')
|
1070
|
-
{
|
1071
|
-
var url = sel.anchorNode.parentNode.href;
|
1072
|
-
var text = sel.anchorNode.parentNode.text;
|
1073
|
-
var title = sel.anchorNode.parentNode.title;
|
1074
|
-
if (sel.toString() == '') this.insert_link_node = sel.anchorNode.parentNode
|
1030
|
+
if ($.browser.msie) {
|
1031
|
+
var temp = sel.htmlText.match(/href="(.*?)"/gi);
|
1075
1032
|
|
1033
|
+
if (temp != null) {
|
1034
|
+
temp = new String(temp);
|
1035
|
+
temp = temp.replace(/href="(.*?)"/gi, '$1');
|
1076
1036
|
}
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1037
|
+
|
1038
|
+
var text = sel.text;
|
1039
|
+
if (temp != null) var url = temp;
|
1040
|
+
else var url = '';
|
1041
|
+
var title = '';
|
1042
|
+
} else {
|
1043
|
+
if (sel.anchorNode.parentNode.tagName == 'A') {
|
1044
|
+
var url = sel.anchorNode.parentNode.href;
|
1045
|
+
var text = sel.anchorNode.parentNode.text;
|
1046
|
+
var title = sel.anchorNode.parentNode.title;
|
1047
|
+
|
1048
|
+
if (sel.toString() == '')
|
1049
|
+
this.insert_link_node = sel.anchorNode.parentNode
|
1050
|
+
|
1051
|
+
} else {
|
1052
|
+
var url = '';
|
1053
|
+
var text = sel.toString();
|
1081
1054
|
var title = '';
|
1082
1055
|
}
|
1083
1056
|
}
|
@@ -1085,76 +1058,68 @@ function detectAndroidWebKit() {
|
|
1085
1058
|
$('#redactor_link_url').val(url).focus();
|
1086
1059
|
$('#redactor_link_text').val(text);
|
1087
1060
|
$('#redactor_link_title').val(title);
|
1088
|
-
|
1089
1061
|
}.bind2(this);
|
1090
1062
|
|
1091
1063
|
this.modalInit(RLANG.link, this.opts.paths.dialogs.link, 400, 300, handler);
|
1092
|
-
|
1093
|
-
|
1094
|
-
insertLink: function()
|
1095
|
-
{
|
1064
|
+
},
|
1065
|
+
|
1066
|
+
insertLink: function() {
|
1096
1067
|
var value = $('#redactor_link_text').val();
|
1097
1068
|
if (value == '') return true;
|
1098
1069
|
|
1099
1070
|
var title = $('#redactor_link_title').val();
|
1100
1071
|
if (title != '') title = ' title="' + $('#redactor_link_title').val() + '"';
|
1101
1072
|
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1073
|
+
// Email link?
|
1074
|
+
var mailto = $('#redactor_link_id_url').get(0).checked ? '' : 'mailto:';
|
1105
1075
|
var a = '<a href="' + mailto + $('#redactor_link_url').val() + '"' + title +'>' + value + '</a> ';
|
1106
1076
|
|
1107
|
-
if (
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
}
|
1119
|
-
else
|
1120
|
-
{
|
1121
|
-
redactorActive.frame.get(0).contentWindow.focus();
|
1122
|
-
redactorActive.execCommand('inserthtml', a);
|
1123
|
-
}
|
1077
|
+
if (this.insert_link_node) {
|
1078
|
+
$(this.insert_link_node).text(value);
|
1079
|
+
$(this.insert_link_node).attr('href', $('#redactor_link_url').val());
|
1080
|
+
|
1081
|
+
var title = $('#redactor_link_title').val();
|
1082
|
+
if (title != '') $(this.insert_link_node).attr('title', title);
|
1083
|
+
|
1084
|
+
this.modalClose();
|
1085
|
+
} else {
|
1086
|
+
redactorActive.frame.get(0).contentWindow.focus();
|
1087
|
+
redactorActive.execCommand('inserthtml', a);
|
1124
1088
|
}
|
1125
1089
|
|
1126
1090
|
this.modalClose();
|
1127
1091
|
},
|
1128
1092
|
|
1129
1093
|
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1094
|
+
/**************************************************************************************************************************
|
1095
|
+
* Modal ******************************************************************************************************************
|
1096
|
+
**************************************************************************************************************************/
|
1133
1097
|
modalInit: function(title, url, width, height, handler, scroll)
|
1134
1098
|
{
|
1135
|
-
if (this.opts.overlay)
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1099
|
+
if (this.opts.overlay) {
|
1100
|
+
$('#redactor_imp_modal_overlay')
|
1101
|
+
.show()
|
1102
|
+
.click(function() { this.modalClose(); }.bind2(this));
|
1139
1103
|
}
|
1140
1104
|
|
1141
|
-
if ($('#redactor_imp_modal').size() == 0)
|
1142
|
-
|
1143
|
-
|
1105
|
+
if ($('#redactor_imp_modal').size() == 0) {
|
1106
|
+
this.modal = $('<div id="redactor_imp_modal" style="display: none;"> \
|
1107
|
+
<div id="redactor_imp_modal_close"></div><div id="redactor_imp_modal_header"></div> \
|
1108
|
+
<div id="redactor_imp_modal_inner"></div></div>');
|
1144
1109
|
$('body').append(this.modal);
|
1145
1110
|
}
|
1146
1111
|
|
1147
1112
|
$('#redactor_imp_modal_close').click(function() { this.modalClose(); }.bind2(this));
|
1148
|
-
|
1149
|
-
|
1113
|
+
|
1114
|
+
var escClose = function(e) { if ( e.keyCode == 27) this.modalClose(); }.bind2(this)
|
1115
|
+
$(document).keyup(escClose);
|
1116
|
+
$(this.doc).keyup(escClose);
|
1150
1117
|
|
1151
1118
|
$.ajax({
|
1152
1119
|
url: url,
|
1153
|
-
success: function(data)
|
1154
|
-
{
|
1120
|
+
success: function(data) {
|
1155
1121
|
// parse lang
|
1156
|
-
$.each(RLANG, function(i,s)
|
1157
|
-
{
|
1122
|
+
$.each(RLANG, function(i,s) {
|
1158
1123
|
var re = new RegExp("%RLANG\." + i + "%","gi");
|
1159
1124
|
data = data.replace(re, s);
|
1160
1125
|
});
|
@@ -1162,357 +1127,314 @@ function detectAndroidWebKit() {
|
|
1162
1127
|
$('#redactor_imp_modal_inner').html(data);
|
1163
1128
|
$('#redactor_imp_modal_header').html(title);
|
1164
1129
|
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1130
|
+
$('#redactor_imp_modal').css({
|
1131
|
+
width : width + 'px',
|
1132
|
+
height : height ? height + 'px' : 'auto',
|
1133
|
+
marginTop : '-' + height/2 + 'px',
|
1134
|
+
marginLeft : '-' + width/2 + 'px'
|
1135
|
+
}).fadeIn('fast');
|
1136
|
+
|
1137
|
+
if (scroll === true) {
|
1138
|
+
$('#imp_redactor_table_box')
|
1139
|
+
.height(height-$('#redactor_imp_modal_header').outerHeight()-130)
|
1140
|
+
.css('overflow', 'auto');
|
1173
1141
|
}
|
1174
1142
|
|
1175
1143
|
if (typeof(handler) == 'function') handler();
|
1176
|
-
|
1177
|
-
|
1178
1144
|
}.bind2(this)
|
1179
1145
|
});
|
1180
1146
|
},
|
1181
|
-
modalClose: function()
|
1182
|
-
{
|
1183
1147
|
|
1148
|
+
modalClose: function() {
|
1184
1149
|
$('#redactor_imp_modal_close').unbind('click', function() { this.modalClose(); }.bind2(this));
|
1185
|
-
$('#redactor_imp_modal').fadeOut('fast', function()
|
1186
|
-
{
|
1150
|
+
$('#redactor_imp_modal').fadeOut('fast', function() {
|
1187
1151
|
$('#redactor_imp_modal_inner').html('');
|
1188
1152
|
|
1189
|
-
if (this.opts.overlay)
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
$(document).unbind('keyup', function(e) { if( e.keyCode == 27) this.modalClose(); }.bind2(this));
|
1196
|
-
$(this.doc).unbind('keyup', function(e) { if( e.keyCode == 27) this.modalClose(); }.bind2(this));
|
1197
|
-
|
1198
|
-
}.bind2(this));
|
1153
|
+
if (this.opts.overlay) {
|
1154
|
+
$('#redactor_imp_modal_overlay')
|
1155
|
+
.hide();
|
1156
|
+
.unbind('click', function() { this.modalClose(); }.bind2(this));
|
1157
|
+
}
|
1199
1158
|
|
1159
|
+
var escClose = function(e) { if ( e.keyCode == 27) this.modalClose(); }.bind2(this)
|
1160
|
+
$(document).unbind('keyup', escClose);
|
1161
|
+
$(this.doc).unbind('keyup', fescClose);
|
1162
|
+
}.bind2(this));
|
1200
1163
|
},
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1164
|
+
|
1165
|
+
/**************************************************************************************************************************
|
1166
|
+
* Upload *****************************************************************************************************************
|
1167
|
+
**************************************************************************************************************************/
|
1205
1168
|
uploadInit: function(element, options)
|
1206
1169
|
{
|
1207
1170
|
/*
|
1208
1171
|
Options
|
1209
1172
|
*/
|
1210
1173
|
this.uploadOptions = {
|
1211
|
-
url: false,
|
1212
|
-
success: false,
|
1213
|
-
start: false,
|
1214
|
-
trigger: false,
|
1215
|
-
auto: false,
|
1216
|
-
input: false
|
1174
|
+
url : false,
|
1175
|
+
success : false,
|
1176
|
+
start : false,
|
1177
|
+
trigger : false,
|
1178
|
+
auto : false,
|
1179
|
+
input : false
|
1217
1180
|
};
|
1218
1181
|
|
1219
1182
|
$.extend(this.uploadOptions, options);
|
1220
1183
|
|
1221
|
-
|
1222
1184
|
// Test input or form
|
1223
|
-
if ($('#' + element).get(0).tagName == 'INPUT')
|
1224
|
-
{
|
1185
|
+
if ($('#' + element).get(0).tagName == 'INPUT') {
|
1225
1186
|
this.uploadOptions.input = $('#' + element);
|
1226
1187
|
this.element = $($('#' + element).get(0).form);
|
1227
|
-
}
|
1228
|
-
else
|
1229
|
-
{
|
1188
|
+
} else {
|
1230
1189
|
this.element = $('#' + element);
|
1231
1190
|
}
|
1232
|
-
|
1233
1191
|
|
1234
1192
|
this.element_action = this.element.attr('action');
|
1235
1193
|
|
1236
1194
|
// Auto or trigger
|
1237
|
-
if (this.uploadOptions.auto)
|
1238
|
-
|
1239
|
-
$(this.uploadOptions.input).change(function()
|
1240
|
-
{
|
1195
|
+
if (this.uploadOptions.auto) {
|
1196
|
+
$(this.uploadOptions.input).change(function() {
|
1241
1197
|
this.element.submit(function(e) { return false; });
|
1242
1198
|
this.uploadSubmit();
|
1243
1199
|
}.bind2(this));
|
1244
1200
|
|
1245
|
-
}
|
1246
|
-
else if (this.uploadOptions.trigger)
|
1247
|
-
{
|
1201
|
+
} else if (this.uploadOptions.trigger) {
|
1248
1202
|
$('#' + this.uploadOptions.trigger).click(function() { this.uploadSubmit(); }.bind2(this));
|
1249
1203
|
}
|
1250
1204
|
},
|
1251
|
-
|
1252
|
-
{
|
1205
|
+
|
1206
|
+
uploadSubmit : function() {
|
1253
1207
|
this.uploadForm(this.element, this.uploadFrame());
|
1254
|
-
},
|
1255
|
-
|
1256
|
-
{
|
1208
|
+
},
|
1209
|
+
|
1210
|
+
uploadFrame : function() {
|
1257
1211
|
this.id = 'f' + Math.floor(Math.random() * 99999);
|
1258
1212
|
|
1259
|
-
var d
|
1260
|
-
var iframe
|
1213
|
+
var d = document.createElement('div');
|
1214
|
+
var iframe = '<iframe style="display:none" src="about:blank" id="'+this.id+'" name="'+this.id+'"></iframe>';
|
1261
1215
|
d.innerHTML = iframe;
|
1262
1216
|
document.body.appendChild(d);
|
1263
1217
|
|
1264
1218
|
// Start
|
1265
1219
|
if (this.uploadOptions.start) this.uploadOptions.start();
|
1266
|
-
|
1267
1220
|
$('#' + this.id).load(function () { this.uploadLoaded() }.bind2(this));
|
1268
1221
|
|
1269
1222
|
return this.id;
|
1270
1223
|
},
|
1271
|
-
|
1272
|
-
{
|
1273
|
-
if (this.uploadOptions.input)
|
1274
|
-
{
|
1224
|
+
|
1225
|
+
uploadForm : function(f, name) {
|
1226
|
+
if (this.uploadOptions.input) {
|
1275
1227
|
var formId = 'redactorUploadForm' + this.id;
|
1276
1228
|
var fileId = 'redactorUploadFile' + this.id;
|
1277
1229
|
this.form = $('<form action="' + this.uploadOptions.url + '" method="POST" target="' + name + '" name="' + formId + '" id="' + formId + '" enctype="multipart/form-data"></form>');
|
1278
1230
|
|
1279
1231
|
var oldElement = this.uploadOptions.input;
|
1280
1232
|
var newElement = $(oldElement).clone();
|
1281
|
-
|
1282
|
-
$(oldElement).
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
$(this.form).css('
|
1287
|
-
|
1233
|
+
|
1234
|
+
$(oldElement).attr('id', fileId)
|
1235
|
+
.before(newElement)
|
1236
|
+
.appendTo(this.form);
|
1237
|
+
|
1238
|
+
$(this.form).css('position', 'absolute')
|
1239
|
+
.css('top', '-2000px')
|
1240
|
+
.css('left', '-2000px')
|
1241
|
+
.appendTo('body');
|
1288
1242
|
|
1289
1243
|
this.form.submit();
|
1290
|
-
}
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
f.attr('enctype', 'multipart/form-data');
|
1296
|
-
f.attr('action', this.uploadOptions.url);
|
1244
|
+
} else {
|
1245
|
+
f.attr('target', name)
|
1246
|
+
.attr('method', 'POST')
|
1247
|
+
.attr('enctype', 'multipart/form-data')
|
1248
|
+
.attr('action', this.uploadOptions.url);
|
1297
1249
|
|
1298
1250
|
this.element.submit();
|
1299
1251
|
}
|
1300
|
-
|
1301
1252
|
},
|
1302
|
-
|
1303
|
-
{
|
1304
|
-
var i = $('#' + this.id);
|
1305
|
-
|
1306
|
-
if (i.contentDocument)
|
1307
|
-
else if (i.contentWindow)
|
1308
|
-
else
|
1253
|
+
|
1254
|
+
uploadLoaded : function() {
|
1255
|
+
var i = $('#' + this.id), d;
|
1256
|
+
|
1257
|
+
if (i.contentDocument) d = i.contentDocument;
|
1258
|
+
else if (i.contentWindow) d = i.contentWindow.document;
|
1259
|
+
else d = window.frames[this.id].document;
|
1309
1260
|
|
1310
1261
|
if (d.location.href == "about:blank") return true;
|
1311
1262
|
|
1312
1263
|
// Success
|
1313
1264
|
if (this.uploadOptions.success) this.uploadOptions.success(d.body.innerHTML);
|
1314
1265
|
|
1315
|
-
this.element.attr('action', this.element_action)
|
1316
|
-
|
1317
|
-
//this.element.unbind('submit');
|
1318
|
-
//if (this.uploadOptions.input) $(this.form).remove();
|
1266
|
+
this.element.attr('action', this.element_action)
|
1267
|
+
.attr('target', '');
|
1319
1268
|
},
|
1320
1269
|
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1270
|
+
|
1271
|
+
/**************************************************************************************************************************
|
1272
|
+
* Toolbar *****************************************************************************************************************
|
1273
|
+
**************************************************************************************************************************/
|
1324
1274
|
buildToolbar: function()
|
1325
1275
|
{
|
1326
1276
|
this.toolbar = $('<ul id="imp_redactor_toolbar_' + this.frameID + '" class="imp_redactor_toolbar"></ul>');
|
1327
1277
|
|
1328
|
-
if (this.opts.air)
|
1329
|
-
{
|
1278
|
+
if (this.opts.air) {
|
1330
1279
|
$(this.air).append(this.toolbar);
|
1331
1280
|
this.box.prepend(this.air);
|
1332
|
-
}
|
1333
|
-
else $(this.box).prepend(this.toolbar);
|
1281
|
+
} else $(this.box).prepend(this.toolbar);
|
1334
1282
|
|
1335
1283
|
|
1336
|
-
$.each(RTOOLBAR,
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
var
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
{
|
1359
|
-
var ul = $('<ul class="imp_redactor_drop_down imp_redactor_drop_down' + this.frameID + '" id="imp_redactor_drop_down' + this.frameID + '_' + s.name + '" style="display: none;"></ul>');
|
1360
|
-
if ($.browser.msie) ul.css({ borderLeft: '1px solid #ddd', borderRight: '1px solid #ddd', borderBottom: '1px solid #ddd' });
|
1361
|
-
}
|
1362
|
-
|
1363
|
-
// build dropdown
|
1364
|
-
if (typeof(s.dropdown) != 'undefined')
|
1365
|
-
{
|
1366
|
-
|
1367
|
-
$.each(s.dropdown,
|
1368
|
-
function (x, d)
|
1369
|
-
{
|
1370
|
-
if (typeof(d.style) == 'undefined') d.style = '';
|
1371
|
-
|
1372
|
-
if (d.name == 'separator')
|
1373
|
-
{
|
1374
|
-
var ul_li = $('<li class="separator_drop"></li>');
|
1375
|
-
$(ul).append(ul_li);
|
1376
|
-
}
|
1377
|
-
else
|
1378
|
-
{
|
1379
|
-
|
1380
|
-
var ul_li = $('<li></li>');
|
1381
|
-
var ul_li_a = $('<a href="javascript:void(null);" style="' + d.style + '">' + d.title + '</a>');
|
1382
|
-
$(ul_li).append(ul_li_a);
|
1383
|
-
$(ul).append(ul_li);
|
1384
|
-
|
1385
|
-
if (typeof(d.func) == 'undefined') $(ul_li_a).click(function() { this.execCommand(d.exec, d.name); }.bind2(this));
|
1386
|
-
else $(ul_li_a).click(function(e) { this[d.func](e); }.bind2(this));
|
1387
|
-
}
|
1284
|
+
$.each(RTOOLBAR, function (i, s) {
|
1285
|
+
if (s.name == 'separator') {
|
1286
|
+
var li = $('<li class="separator"></li>');
|
1287
|
+
$(this.toolbar).append(li);
|
1288
|
+
} else {
|
1289
|
+
var a = $('<a href="javascript:void(null);" class="imp_btn imp_btn_' + s.name + '" title="' + s.title + '"></a>');
|
1290
|
+
|
1291
|
+
if (typeof(s.func) == 'undefined') a.click(function() { this.execCommand(s.exec, s.name); }.bind2(this));
|
1292
|
+
else if (s.func != 'show') a.click(function(e) { this[s.func](e); }.bind2(this));
|
1293
|
+
|
1294
|
+
var li = $('<li class="imp_li_btn imp_li_btn_' + s.name + '"></li>');
|
1295
|
+
$(li).append(a);
|
1296
|
+
$(this.toolbar).append(li);
|
1297
|
+
|
1298
|
+
// build dropdown box
|
1299
|
+
if (s.name == 'backcolor' || s.name == 'fontcolor' || typeof(s.dropdown) != 'undefined') {
|
1300
|
+
var ul = $('<ul class="imp_redactor_drop_down imp_redactor_drop_down' + this.frameID + '" id="imp_redactor_drop_down' + this.frameID + '_' + s.name + '" style="display: none;"></ul>');
|
1301
|
+
if ($.browser.msie) ul.css({ borderLeft: '1px solid #ddd', borderRight: '1px solid #ddd', borderBottom: '1px solid #ddd' });
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
// build dropdown
|
1305
|
+
if (typeof(s.dropdown) != 'undefined') {
|
1388
1306
|
|
1307
|
+
$.each(s.dropdown, function (x, d) {
|
1308
|
+
if (typeof(d.style) == 'undefined') d.style = '';
|
1389
1309
|
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
$(document).click(this.hdlHideDropDown);
|
1408
|
-
}
|
1409
|
-
|
1410
|
-
|
1310
|
+
if (d.name == 'separator') {
|
1311
|
+
var ul_li = $('<li class="separator_drop"></li>');
|
1312
|
+
$(ul).append(ul_li);
|
1313
|
+
} else {
|
1314
|
+
var ul_li = $('<li></li>');
|
1315
|
+
var ul_li_a = $('<a href="javascript:void(null);" style="' + d.style + '">' + d.title + '</a>');
|
1316
|
+
$(ul_li).append(ul_li_a);
|
1317
|
+
$(ul).append(ul_li);
|
1318
|
+
|
1319
|
+
if (typeof(d.func) == 'undefined') $(ul_li_a).click(function() { this.execCommand(d.exec, d.name); }.bind2(this));
|
1320
|
+
else $(ul_li_a).click(function(e) { this[d.func](e); }.bind2(this));
|
1321
|
+
}
|
1322
|
+
}.bind2(this)
|
1323
|
+
);
|
1324
|
+
} else {
|
1325
|
+
a.mouseover(function() { this.hideAllDropDown() }.bind2(this));
|
1411
1326
|
}
|
1327
|
+
|
1328
|
+
// observing dropdown
|
1329
|
+
if (s.name == 'backcolor' || s.name == 'fontcolor' || typeof(s.dropdown) != 'undefined') {
|
1330
|
+
$('#imp_redactor_toolbar_' + this.frameID).after(ul);
|
1331
|
+
|
1332
|
+
this.hdlHideDropDown = function(e) { this.hideDropDown(e, ul, s.name) }.bind2(this);
|
1333
|
+
this.hdlShowDropDown = function(e) { this.showDropDown(e, ul, s.name) }.bind2(this);
|
1334
|
+
this.hdlShowerDropDown = function(e) { this.showerDropDown(e, ul, s.name) }.bind2(this);
|
1335
|
+
|
1336
|
+
a.click(this.hdlShowDropDown).mouseover(this.hdlShowerDropDown);
|
1337
|
+
|
1338
|
+
$(document).click(this.hdlHideDropDown);
|
1339
|
+
}
|
1340
|
+
}
|
1412
1341
|
}.bind2(this)
|
1413
1342
|
);
|
1414
1343
|
},
|
1415
1344
|
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1345
|
+
|
1346
|
+
/**************************************************************************************************************************
|
1347
|
+
* DropDown ***************************************************************************************************************
|
1348
|
+
**************************************************************************************************************************/
|
1419
1349
|
showedDropDown: false,
|
1420
|
-
|
1421
|
-
{
|
1350
|
+
|
1351
|
+
showDropDown: function(e, ul, name) {
|
1422
1352
|
|
1423
|
-
if (this.showedDropDown)
|
1424
|
-
|
1425
|
-
{
|
1353
|
+
if (this.showedDropDown) {
|
1354
|
+
this.hideAllDropDown();
|
1355
|
+
} else {
|
1426
1356
|
this.showedDropDown = true;
|
1427
1357
|
this.showingDropDown(e, ul, name);
|
1428
|
-
}
|
1429
|
-
|
1358
|
+
}
|
1430
1359
|
},
|
1431
|
-
|
1432
|
-
{
|
1360
|
+
|
1361
|
+
showingDropDown: function(e, ul, name) {
|
1433
1362
|
this.hideAllDropDown();
|
1434
1363
|
this.addSelButton(name);
|
1435
1364
|
|
1436
1365
|
var left = $('#imp_redactor_toolbar_' + this.frameID + ' li.imp_li_btn_' + name).position().left;
|
1437
1366
|
$(ul).css('left', left + 'px').show();
|
1438
1367
|
},
|
1439
|
-
|
1440
|
-
{
|
1368
|
+
|
1369
|
+
showerDropDown: function(e, ul, name) {
|
1441
1370
|
if (this.showedDropDown) this.showingDropDown(e, ul, name);
|
1442
1371
|
},
|
1443
|
-
|
1444
|
-
{
|
1372
|
+
|
1373
|
+
hideAllDropDown: function() {
|
1445
1374
|
$('#imp_redactor_toolbar_' + this.frameID + ' li.imp_li_btn').removeClass('act');
|
1446
1375
|
$('ul.imp_redactor_drop_down' + this.frameID).hide();
|
1447
1376
|
},
|
1448
|
-
|
1449
|
-
{
|
1450
|
-
if (!$(e.target).parent().hasClass('act'))
|
1451
|
-
{
|
1377
|
+
|
1378
|
+
hideDropDown: function(e, ul, name) {
|
1379
|
+
if (!$(e.target).parent().hasClass('act')) {
|
1452
1380
|
this.showedDropDown = false;
|
1453
1381
|
this.hideAllDropDown();
|
1454
|
-
}
|
1382
|
+
}
|
1455
1383
|
|
1456
1384
|
$(document).unbind('click', this.hdlHideDropDown);
|
1457
1385
|
$(this.doc).unbind('click', this.hdlHideDropDown);
|
1458
|
-
|
1459
1386
|
},
|
1460
|
-
|
1461
|
-
{
|
1387
|
+
|
1388
|
+
addSelButton: function(name) {
|
1462
1389
|
var element = $('#imp_redactor_toolbar_' + this.frameID + ' li.imp_li_btn_' + name);
|
1463
1390
|
element.addClass('act');
|
1464
1391
|
},
|
1465
|
-
|
1466
|
-
{
|
1392
|
+
|
1393
|
+
removeSelButton: function(name) {
|
1467
1394
|
var element = $('#imp_redactor_toolbar_' + this.frameID + ' li.imp_li_btn_' + name);
|
1468
1395
|
element.removeClass('act');
|
1469
|
-
},
|
1470
|
-
|
1471
|
-
{
|
1396
|
+
},
|
1397
|
+
|
1398
|
+
toggleSelButton: function(name) {
|
1472
1399
|
$('#imp_redactor_toolbar_' + this.frameID + ' li.imp_li_btn_' + name).toggleClass('act');
|
1473
1400
|
},
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
initResize: function(e)
|
1480
|
-
{
|
1401
|
+
|
1402
|
+
/**************************************************************************************************************************
|
1403
|
+
* Resizer ***************************************************************************************************************
|
1404
|
+
**************************************************************************************************************************/
|
1405
|
+
initResize: function(e) {
|
1481
1406
|
if (e.preventDefault) e.preventDefault();
|
1482
1407
|
else e.returnValue = false;
|
1483
1408
|
|
1484
1409
|
this.splitter = e.target;
|
1485
1410
|
|
1486
|
-
if (this.opts.visual)
|
1487
|
-
{
|
1411
|
+
if (this.opts.visual) {
|
1488
1412
|
this.element_resize = this.frame;
|
1489
1413
|
this.element_resize.get(0).style.visibility = 'hidden';
|
1490
1414
|
this.element_resize_parent = this.$el;
|
1491
|
-
}
|
1492
|
-
else
|
1493
|
-
{
|
1415
|
+
} else {
|
1494
1416
|
this.element_resize = this.$el;
|
1495
1417
|
this.element_resize_parent = this.frame;
|
1496
1418
|
}
|
1497
1419
|
|
1498
|
-
this.stopResizeHdl
|
1420
|
+
this.stopResizeHdl = function (e) { this.stopResize(e) }.bind2(this);
|
1499
1421
|
this.startResizeHdl = function (e) { this.startResize(e) }.bind2(this);
|
1500
|
-
this.resizeHdl
|
1422
|
+
this.resizeHdl = function (e) { this.resize(e) }.bind2(this);
|
1501
1423
|
|
1502
1424
|
$(document).mousedown(this.startResizeHdl);
|
1503
1425
|
$(document).mouseup(this.stopResizeHdl);
|
1504
1426
|
$(this.splitter).mouseup(this.stopResizeHdl);
|
1505
1427
|
|
1506
1428
|
this.null_point = false;
|
1507
|
-
this.h_new
|
1508
|
-
this.h
|
1429
|
+
this.h_new = false;
|
1430
|
+
this.h = this.element_resize.height();
|
1509
1431
|
},
|
1510
|
-
|
1511
|
-
{
|
1432
|
+
|
1433
|
+
startResize: function() {
|
1512
1434
|
$(document).mousemove(this.resizeHdl);
|
1513
1435
|
},
|
1514
|
-
|
1515
|
-
{
|
1436
|
+
|
1437
|
+
resize: function(e) {
|
1516
1438
|
if (e.preventDefault) e.preventDefault();
|
1517
1439
|
else e.returnValue = false;
|
1518
1440
|
|
@@ -1524,14 +1446,13 @@ function detectAndroidWebKit() {
|
|
1524
1446
|
|
1525
1447
|
if (s_new <= 30) return true;
|
1526
1448
|
|
1527
|
-
if (s_new >= 0)
|
1528
|
-
{
|
1449
|
+
if (s_new >= 0) {
|
1529
1450
|
this.element_resize.get(0).style.height = s_new + 'px';
|
1530
1451
|
this.element_resize_parent.get(0).style.height = s_new + 'px';
|
1531
1452
|
}
|
1532
1453
|
},
|
1533
|
-
|
1534
|
-
{
|
1454
|
+
|
1455
|
+
stopResize: function(e) {
|
1535
1456
|
$(document).unbind('mousemove', this.resizeHdl);
|
1536
1457
|
$(document).unbind('mousedown', this.startResizeHdl);
|
1537
1458
|
$(document).unbind('mouseup', this.stopResizeHdl);
|
@@ -1539,21 +1460,15 @@ function detectAndroidWebKit() {
|
|
1539
1460
|
|
1540
1461
|
this.element_resize.get(0).style.visibility = 'visible';
|
1541
1462
|
}
|
1542
|
-
|
1543
1463
|
};
|
1544
1464
|
|
1545
1465
|
|
1546
|
-
String.prototype.isInlineName = function()
|
1547
|
-
{
|
1466
|
+
String.prototype.isInlineName = function() {
|
1548
1467
|
var inlineList = new Array("#text", "a", "em", "font", "span", "strong", "u");
|
1549
|
-
var theName
|
1468
|
+
var theName = this.toLowerCase();
|
1550
1469
|
|
1551
|
-
for (var i = 0; i < inlineList.length; i++)
|
1552
|
-
|
1553
|
-
if (theName == inlineList[i])
|
1554
|
-
{
|
1555
|
-
return true;
|
1556
|
-
}
|
1470
|
+
for (var i = 0; i < inlineList.length; i++) {
|
1471
|
+
if (theName == inlineList[i]) return true
|
1557
1472
|
}
|
1558
1473
|
|
1559
1474
|
return false;
|
@@ -1561,23 +1476,19 @@ function detectAndroidWebKit() {
|
|
1561
1476
|
|
1562
1477
|
|
1563
1478
|
// bind2
|
1564
|
-
Function.prototype.bind2 = function(object)
|
1565
|
-
{
|
1479
|
+
Function.prototype.bind2 = function(object) {
|
1566
1480
|
var method = this; var oldArguments = $.makeArray(arguments).slice(1);
|
1567
|
-
|
1568
|
-
{
|
1481
|
+
|
1482
|
+
return function (argument) {
|
1569
1483
|
if (argument == new Object) { method = null; oldArguments = null; }
|
1570
1484
|
else if (method == null) throw "Attempt to invoke destructed method reference.";
|
1571
1485
|
else { var newArguments = $.makeArray(arguments); return method.apply(object, oldArguments.concat(newArguments)); }
|
1572
1486
|
};
|
1573
1487
|
};
|
1574
|
-
|
1575
|
-
|
1576
1488
|
})(jQuery);
|
1577
1489
|
|
1578
1490
|
// redactor_tabs
|
1579
|
-
function showRedactorTabs(el, index)
|
1580
|
-
{
|
1491
|
+
function showRedactorTabs(el, index) {
|
1581
1492
|
$('#redactor_tabs a').removeClass('redactor_tabs_act');
|
1582
1493
|
$(el).addClass('redactor_tabs_act');
|
1583
1494
|
|
@@ -1591,8 +1502,8 @@ F["d/home/tanraya/sandbox/imperavi-rails/app/assets/javascripts/imperavi-rails/
|
|
1591
1502
|
F[{I" path;
|
1592
1503
|
F"d/home/tanraya/sandbox/imperavi-rails/app/assets/javascripts/imperavi-rails/imperavi/redactor.jsI"
|
1593
1504
|
mtime;
|
1594
|
-
FIu: Time
|
1505
|
+
FIu: Time
|
1595
1506
|
:@_zoneI" YEKT;
|
1596
|
-
T:
|
1597
|
-
F"%
|
1507
|
+
T:
|
1508
|
+
F"%87cc28d4094492731766b22bae97c479I"
|
1598
1509
|
F"%46dde6621c301f4928e3b34efee9e3b5
|