ckeditor 4.2.4 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +15 -12
- data/README.md +65 -75
- data/Rakefile +17 -9
- data/app/assets/javascripts/ckeditor/config.js +1 -0
- data/app/controllers/ckeditor/application_controller.rb +3 -0
- data/app/controllers/ckeditor/attachment_files_controller.rb +2 -0
- data/app/controllers/ckeditor/pictures_controller.rb +2 -0
- data/app/helpers/ckeditor/application_helper.rb +2 -0
- data/app/views/ckeditor/attachment_files/index.html.erb +1 -1
- data/config/locales/da.ckeditor.yml +9 -0
- data/config/routes.rb +2 -0
- data/lib/ckeditor/asset_response.rb +15 -4
- data/lib/ckeditor/backend/active_storage.rb +68 -0
- data/lib/ckeditor/backend/carrierwave.rb +2 -12
- data/lib/ckeditor/backend/dragonfly.rb +2 -0
- data/lib/ckeditor/backend/paperclip.rb +2 -15
- data/lib/ckeditor/backend/shrine.rb +29 -0
- data/lib/ckeditor/helpers/controllers.rb +2 -2
- data/lib/ckeditor/helpers/form_builder.rb +2 -2
- data/lib/ckeditor/helpers/form_helper.rb +2 -2
- data/lib/ckeditor/helpers/view_helper.rb +2 -2
- data/lib/ckeditor/hooks/action_policy.rb +41 -0
- data/lib/ckeditor/hooks/cancan.rb +4 -1
- data/lib/ckeditor/hooks/formtastic.rb +2 -0
- data/lib/ckeditor/hooks/pundit.rb +2 -0
- data/lib/ckeditor/hooks/simple_form.rb +2 -0
- data/lib/ckeditor/http.rb +8 -5
- data/lib/ckeditor/orm/active_record.rb +2 -0
- data/lib/ckeditor/orm/base.rb +2 -0
- data/lib/ckeditor/orm/mongoid.rb +2 -0
- data/lib/ckeditor/paginatable.rb +2 -0
- data/lib/ckeditor/rails.rb +3 -0
- data/lib/ckeditor/text_area.rb +3 -1
- data/lib/ckeditor/utils/javascript_code.rb +1 -1
- data/lib/ckeditor/utils.rb +1 -39
- data/lib/ckeditor/version.rb +4 -2
- data/lib/ckeditor.rb +10 -16
- data/lib/generators/ckeditor/action_policy_generator.rb +22 -0
- data/lib/generators/ckeditor/install_generator.rb +16 -6
- data/lib/generators/ckeditor/pundit_policy_generator.rb +2 -0
- data/lib/generators/ckeditor/templates/action_policy/attachment_file_policy.rb +18 -0
- data/lib/generators/ckeditor/templates/action_policy/picture_policy.rb +18 -0
- data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/asset.rb +10 -0
- data/lib/generators/ckeditor/templates/active_record/{refile → active_storage}/ckeditor/attachment_file.rb +3 -1
- data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb +13 -0
- data/lib/generators/ckeditor/templates/active_record/{refile → active_storage}/migration.rb +10 -8
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +7 -5
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb +7 -5
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +8 -6
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +2 -1
- data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +2 -3
- data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +2 -0
- data/lib/generators/ckeditor/templates/base/shrine/initializer.rb +25 -0
- data/lib/generators/ckeditor/templates/ckeditor.rb +3 -6
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb +2 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/asset.rb +8 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/attachment_file.rb +21 -0
- data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/picture.rb +51 -0
- data/lib/generators/ckeditor/templates/pundit_policy/attachment_file_policy.rb +2 -0
- data/lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb +2 -0
- data/lib/tasks/ckeditor.rake +2 -0
- data/test/controllers/attachment_files_controller_test.rb +17 -15
- data/test/controllers/pictures_controller_test.rb +17 -15
- data/test/dummy/Rakefile +2 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -2
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/posts_controller.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/views/posts/index.html.erb +0 -3
- data/test/dummy/app/views/posts/show.html.erb +3 -0
- data/test/dummy/config/application.rb +5 -1
- data/test/dummy/config/boot.rb +2 -0
- data/test/dummy/config/environment.rb +2 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +2 -0
- data/test/dummy/config/environments/test.rb +5 -3
- data/test/dummy/config/initializers/assets.rb +2 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +2 -0
- data/test/dummy/config/initializers/ckeditor.rb +2 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/test/dummy/config/initializers/inflections.rb +2 -0
- data/test/dummy/config/initializers/mime_types.rb +2 -0
- data/test/dummy/config/initializers/paperclip.rb +2 -0
- data/test/dummy/config/initializers/session_store.rb +2 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +2 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/config/storage.yml +3 -0
- data/test/dummy/config.ru +2 -0
- data/test/dummy/db/migrate/20110623120047_create_posts.rb +5 -3
- data/test/dummy/db/migrate/20170806125915_create_active_storage_tables.rb +26 -0
- data/test/dummy/log/test.log +539 -0
- data/test/dummy/script/rails +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-d/-dBqueNlS8WwuPraBl4IkbfQRL93pVKQvYJ-zSKRKxU.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-f/-fyTq7_I0HC-1OsK08Hj6mGMvCIifWgY8Qri65a094A.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/04/04ewZ0c1q_zE-xyp1_tu63iQ08Zc487NAJXCiHxKqCs.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/05/053vWA3kmu4-6v32aM64Pwcd_LdIf_3lsrDSuGparNE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/08/08WCRw3WlsP1fILmwynQ8HaeL3mN5xQV8RsV-OpCR84.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0F/0FLX257BoU4j7TvAGAqmKK7M4JK8lPYWt8un9-GElUE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0_/0_RwuQhVhuz2Zj6cyW1Qrg1wmAy9jf_TbrWm30CNHwM.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0c/0cpHzwSwJiYcbgcK2pD0vXwKP2VM1owgdYZr4ejiLfI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0v/0vzBAlV2TqPJ14G3w9RBBQaFnUaM4_DAV7_fvNQKK-M.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/15/15kTYHJ9YGIbASZaM7epQZZNu7Fjx93C9YcSeGbURSM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1L/1LzUbGbE3gxsOFwMWWvg7rbCKWcSXx3ikLrP176lXvw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1s/1sXde7PzLPTWbUz4TxQj1XtFcTUsn-ojYQHOBNmc3eY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2i/2i9A4OM8yFNZvNJjen7ywQCA8YUoxnPoVy2aiXupbCg.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2n/2nLwAurhvsqUvixh2bPQw-EUkt5JWr9XHyfoEzEEtBs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2o/2o8J2-5zLYcqYc4HmspjYoHJGOiwjk0oKA7p-WYhU6k.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3D/3DzwHWCow-x5X9Wpkg5ZCH3RqQlpZ6G3Qo6hvMYtanc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3d/3dmugBqWzGPHNnc8FEqDvHfFYpKJbAziKxIf7veqCOw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3s/3ss6YahyYEb0qLAV8864wv9pJxbGvaMr2gPjI8FPo_4.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4I/4IQZgALzTTT6ZQIK0WwW1zO54x5J1KKPbB-DfiGIb00.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4j/4j7x99qNyXvE-LyUyEJ59JT-OaB4CfqjVCaoaRqWxHY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5s/5sf_1So_2TzJhgV9CwZM6iCCfLnz76wdN4yAbVQ3xvg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5w/5wYq7JIx5EMI40F3-Np0vuSwqq5AbsM1M7Z02ubK_Zs.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5z/5zzxntCI3GPFcP-dfgOc86Ajp1jgBaj2ESaz4cO9oIc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6G/6GlNQ20eeXzca9VGo0hCliNy33gq2QqzC5_o1IjUrZw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6I/6I3t_d6wk7buUIh3xThJ6H3WZTVnn5V7gIJBIl1jfSY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6J/6JN4ZmYR_lrkbDiMIsrtw6_IGsGkNNJhUgmlVFZFki8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6L/6L0_bpdm_t1xV1LSElTd4EiwZmDbfImqgNOP44oY4Fg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6r/6rRvrDpqz6FBD-NUHBvGh8o1Os4tCO9hjOpM0LcqD6Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6y/6yLbSHho8x8T9bFbe5z6A6GSXRtIlu6-MMBP51MpuVQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7B/7BS88BiOyR7L5EgLvnb2cNG_eC7dZP-TaFbT1u14YfI.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7L/7LI10ckVJmn25-bsvE-zOANz2by_rfrzndpbz_0M3IA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7M/7MnhqviqKpQp4a6wlaqaGhyHxO_7fumN8XNbgTyefGo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7a_aF8iQYuIK9pnWRrnBM4bGcvaW7B7KGiqxdGPrABE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8d/8dK01tNjVZOkAv12c7NbQ9M95iiLjRUHvn8_vQZFLC8.cache +5 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/93/930-vFx7yFTnr3WLd3kATLnNsdxrmPLNDAJlgPMSia8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AK/AK3qK8yEs07-d1XF4nIIK-4r5Bae3biMoXTH-XimcIk.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AP/AP8aU7CCks37uIRxKXMzD6WbSYsrqlQVLuhOHYrZM70.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/B6/B60PzutJO4bVi4HpUZrFVrpcrNiBllTtUuDHmCANe4g.cache +6 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bi/BidoqWHH9nqc490f8yoQGbijq0_eHWA21nVyVDLIKG0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bu/BujNz6G7IUtmYGCIKckBJwkoWo42olu6npeyPUjZK3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CV/CV7HIa3sfMBoB2Iak0KlcMe2CgrlP3KycILium6_rvg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DF/DFl6sNWFwAG371Exi_W7tO72hRJKBO18TGmgDwRl5T8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ee/EeJgeYVT_CZY1OzmZRpaZpwSCdpiI_kGLaZyp0Lx0z0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/F-/F-mRXZF1KeR-VvdE94qLvfQ7G4tYqETlWPdhw0ktOpE.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/F4/F4obfNmo-wutrSru1b2HuBT0ru_64CzGsup4A9kP_8w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gh/GhvM2-MuVU_HNVX1clAXt359AJIcJU5n8YI3boG-6RA.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Go/GogfiSOr9ALlZL8yRf8sY-qJt52NT1sNItvg2IRbEhQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gv/GvoRTz1WzfS40w8mlkZuGKYVMryiv7uFPO5AAWbU24c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCF8cWFjuzdewkC9MR_Gcqb67OnqDAwYJp2lSDV8p14.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HT/HToXd6N9BdjuaIfhJw4T6kU3K4erf6L5Zs2ueeZEtIc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hp/HpI4DVES2KTfRomEwW8II9vDXyyEe7l_7hImKJVoSsQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hu/Hu2TRCk8fVVZKSxUqbu8-2aqv5WaFckjbOIYPeVG6rE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwnxC7SnRH6xsVsIU77ajeY3wU3VgmFmYLA67RAkyB0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/J-/J-27mU8JDzKZkGLimdmK3wnjKTz2ek_eGRsV6Sx5SfI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JX/JXOdZ4crBS7WZXI04yj4_Kx2Bihs7WfBV5eV7utJkus.cache +5 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jp/JpeAXRxkp45Ez2YpDSX7odrxvwES3hXR1eofCSTDlCA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KD/KDQQKO-9XB9j2jrauksdDASKO3M2EjFlU7YxNsCuTC4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kb/KbtoOF2L9wfndqHkMPAXW-ygqLRoawx6iQOx5qozg44.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LA/LA6X678QgeRBLF8c0bPiZP5BJSJIVM6DzB5-SO49W_E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LF/LFI2nxI8wama02WD6drIwzwpfToiO8WBSjaNw0gUxHU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LM/LMkoH8G88hsoVlg2reWs5yn3aTvP3ri6X60VliTesQ0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ls/LsGB6rbumOWBPBSGbvzGm9GnX1N-hluqCr3eCmRVUP8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lx/LxE1TCMSj5X6GY2HAoIgSCphYVJw3joMIgJy0AladIM.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ly/LyU_a18GYQo-r9NjeP0s8quyyhInekhZRIBHJz_jT_A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/MV/MVJnuzWbanuxqW14Dc8Y78-M8Wi65wLSlCc8Wq49NZw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mo/MofjNnOqCS7WlmuCoJ8OwcR4P0o6Y7mPtRa-hVz-RWE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/N1/N19o30SdBrcqxzPFFb8TfCDRSI2Ufsev3FDMgGjuPIo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ng/Nge8YQeDgbFwrlL8feny1ICqk32DcsNYzcSz0CjcWD4.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqedKG2c6jsceuP2uhnKqQmoyWVcFM3cmIkRCv0F-PY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/On/OnMLw3lNhWehiCR4-8vVkwnE0-ijIqhyFtA5vn4HcGI.cache +5 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ov/Ovk6Og38upK7ebMdnjglXiiIWrBEX5smzQXQ_dEiiEE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P0/P0qk9upwDGzYJ923EAuUTbCuu1ymuoJabO8Qznsp8D4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P7/P7pJR0M3wKV-yEunRosFcJX4QQgWy7ifJMlTKXWCd7E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PL/PLXqKdFjQPq1gG8MxkJDd034AGrOmlP42lNttsKRNVo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PT/PTVUf7xyaFbCSvcQQS6baLxtS8Bhte_NUCiUxGXq3RE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PU/PUCBOw7REdP4zl3q099sKBit47suWaK8rbjNVtLUCkA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q1/Q1mnnVNVktIvFYfFKFv5gBaHJxHrvUhQVS2s-GyXsZg.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qm/QmfJnJlv-UeE5U5-dy10ddCGxsyEccCwm8rlSfbMQWg.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qs/QssGIs6hD9knPyadpRNYFqAEaPjIyBWHLvdLhtj01DQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qw/Qwsr6MU-j_a5wWaRoGNRGKc5JNIM7xEVY3TbTGmdbd4.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R5/R5ng3VLTDnoUI-pznc7CN8O-eOp6uAz37kiabllbgWk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RS/RSQ4sWSaWJyZXl_vfRrU7XEmXaNiQL4fMldJ1_DmOqQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rx/RxtO8tM6L0cocpDr1jv2Z4HX8XWqnzTPJjJmA4oFt6U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SJ/SJJOHM7e3gxOVnyy408rn8A376ehBdI69AJIdTdqISM.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SO/SO8HufFJWm0rbsJXVsRurZibwFbbCCMMPdp0yjQlqjQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sk/SkKTg6-wnERrIvPIbEvfEBwo6h01DChWrXsj4QM61vU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sn/SnneONwbfZdkgXIrIsPDnNxDb2aBY83Ea0e7WboKZ0A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TV/TVDhf7ZxMs_Oov5iDATk8se3-2zK8Yvg9-gvrnuGHXc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TZ/TZiQSFmcqgsCteB5wJhqefkgWHVDI18yyz_Og5I19ik.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/U7/U7Z6P2gy-gFd0rlSilzfYFNlAfmAODBgOU_f7Q0vVvs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ue/UeAZe1xqNjtzc63YDKyd5eqo4OMQ4yfiLlxK9aRvKB8.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uo/UofS0cqKwZpmrXESj48fTq4w4aeea0UszZv_1umJt_I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VK/VK_uz7ZwmPAKPQfL-tCEPIQ0_2o4cY_5QKX_8HldmmM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vk/VkV7pbT1hx8yaop4NiDn1kMR7MwS_VjDYNPHQWQOO7E.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WS/WShNZpE9_w8EMfkXTaye8MNmuDHrLltlcwPIptKTCao.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/W_/W_HCQ-NoqY6LFvWJqI7Dxpauna6rDadRWwPYumXhIIM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xe/XeODfy0gnLbSsviQI9sx8KqYuV7_t_6GfabdB7-NB7s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y8/Y8ekK4ZkAoQpC2Q0MtxNBTkGhYhmBbHMrD6vFMvKsAo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YD/YDL_VgvgExnwrajYeJLrzifB9dktBwDqzNtyzUtCD3Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YS/YStJFI5718x9-8P5pafLnelgTxmna9x4IbZdhs3YeOk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y_/Y_OlVACK6j5lr-2QVZMaU8cF-Dz1S_T2TZ86vN6PJJw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yb/YbAK65K3suwQEaHCdlXIRDkEuwX9DlYOxixaW07hcg4.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ys/YsncDM5rDIeiBNnJwZyWqSu7-fLu8nQPHiSxcKNtRlw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_T/_ThR31O-Iv0N9azSBsaq8YMNCZS0HtNOdVUNhufNXqQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_W/_WIOqpnSoDe30Uiwc3u9ca1Yf0ygrAdkiz1oenJ9rIc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a9/a9Ndc4oxVRT9YmbyC1t6eAMps_QBsPEyzgfosMs_ckc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ah/ahINRHBr4OBNS6Ev96ytwFu4Lllhejr5UfwHq62_6F8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/an/anaBKbCx7jOFT835cgqX0qxCfQWgrUwV8MN48mg136A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/b6/b6ctzSonpQ3RSo-USlxPZ2o51cMq7G0j_n2UP5SPK9g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bU/bU2MPAAPSo5Q9uII3DGJLnVmpnQaruoUpBe36In7L_c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bb/bbZFJ3rtnAZP8x3-JUVnid9NsB7Ff1zTuFHxn7iW8Cc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bs/bsTZHkPBfjgJJ2bpQqBSWywtikZk0kwL0nl315LSj34.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bz/bzx9c8FLtzNokI1rMWlgCOhK7ZyRZSmpJxAbR40lMUc.cache +5 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/c9/c9nQO7jCnRjJKRDITo6nng557fFIp9YwmqA4xlNx-Cc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cj/cjaZOYTjEMptRd8RaY0aujOSTeN4Fyo7tRti_SZEERk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dX/dXO4TJtTYlA_7BjfdzdlW__MyZh56Dx5UdjcZomT4ZU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dj/dj0sh0-NeIakN5o7gtB6MzonGSfAE6aSAOGXcquLJVU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dj/djpmLvcEUPPF44GeZjEzf-jWZlc43XiLngR0P6gsQzU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/do/donDLRkEPz9EI7K96pZGvNqvQbn-Zt8pg2bFQehKF4Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eD/eDN9FOZjukdumjpRxy1tDpIQg0sTdzyuhBMUyz7Pz4U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eM/eMVK5ougZydBZd-IFAJzjaqAoDNJDp8Nm0oBdhlOv6s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ee/eeDN6LD9G2ZAgTdcEL9_ZQiXSI6Jzuhv5KbW9Svj88c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/f3/f3wGcAzcwR7I9M4vVSdMvKlbHNGKB0OcwcC2rIf_u58.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fS/fSgu2am11_zgLAKnTUnylmTiVzFQB77Z-eN62d88XwI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ff/ffM8QR3UUdE3AiPSVMzQK8MNI2C1oOblPKve3hyihoo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fj/fjaG6x1t7euwaWpHAXwTw1pZJtYG75K7QurK7WV67YA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fq/fqTBZznNgZs-NP6pZ74WUtbDbZRAkI4w979R64f5XHg.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/h8/h8sGT3_wLt8J2pgHahjWvnn0LoMdD11mHQRMfhWVI2k.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hI/hIQZbwjIE-fff8Nh4CiPwqWX0PQdtLh17GomAFE85QU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hY/hYGLA_7mx6SXKXIUKMLJHBbim2gPLx9mYGyCqOc0aes.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hu/huoCxkTn25xVdE8qEIejwda9aqbGvP59sq280V686Jg.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i2/i2U8mHjJazWLJXeYa7Hcm0-KV3SMr1Nf_VQ-wUuMKjY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ir/irDLGExxBttMiQTc_vLJLSI_d7WIDKbcuHBryvJZCJk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j7/j7iaQzvTc-zrBhXlfNVdmYrLxRxmsFmV9jJN5uqqVlA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jC/jCMuwPHJykKL72ahWss8nfPend5gDfz6pffXbVZb0SQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jG/jG9xx8asJ-QgTwP6NEhmkP5DSyThNsc6uInt9qologY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jL/jLEJNDJIeSEhhThblk5gUv2g-CMijgdeNx095kk9_os.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kS/kSXrNqbjB2VH3IOyTGrAYSGttB7BoB9bj6-BQSCs_hI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ka/kaNVZlAtVg3t0BmMjOH8ZCHkrezmFy_sME1Hw8Mrfew.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kn/kn8Xx6CH8r-3h4p_tbEVHnFaA4j34VRYFr8VmgiqTLQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kr/krlmMov27lpasITgeAiFvUhUp9yCr-5LWxBeRtMPwfs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lH/lHdb_PeCgraahSNfhufdF5kLuIosrzrYwpcSZXywlPc.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lN/lN2qsMU1zXlSuoInbefVqrNTK1V2SEzSN1yqZfU9Ru0.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lb/lbnm5U7Gc44KazG1ygxKg-VJZlsxiKs8bCG16FrK7jI.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ll/lltp1XFfKQGeq6WKJMN-CriKVEps7jmtmU-XI7EhTUw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mJ/mJFbTtnJshoNhVmVi9S9jG2aUTioPSxms_kGk5nyhKw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mK/mKSHnoDeWz42GN5sMeRKn7fKoZB-2BxxLkob6rAveh4.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/m_/m__FoNXoU2ztoyz-ek6W7hzQ-6132ydpKlf1xmtDXgg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxirVMN-incSwDxg8-429kTSg4efU3tISnX6VUojUZU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/n8/n8v5QNtmkANjHzhzKlmk3rW9CPcjOcuBF8jLGQUnb28.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nn/nnxK8B35jBT31MZrxryKytxAhZVhDWrRxvVO_2NvRw4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/o8/o8KD_tJYoRXEbO4jLMzJhtX6pOqnfhiEMRDj5ghHTS4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oG/oGGbOH0hayY6D5txd3QtccbRigWVxB19fvWJP8O54vM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pC/pCfash9WTrrfv9yfQQwyLt9f7SObtMriLlo_QkWE1p8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pS/pSDc64mPPrsJBsMdeoB71e7NlSvg60IUQVxCWg2TDU0.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pl/plxe4bdnRdiniGrjkXXUjSoYZ9v7bXVTxBns7IX5LNY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pm/pmHrrifNbYp5V3uylbmaHIXbyDDGVEGvB7xfLPuKwbs.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/py/py9y20elSXBr1-Fif8v5Z0aLwHfPrkEG34K9pThNoNk.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qC/qCimPuombih_K1Y6U-YS-ySAHCUNTvYPZ_N6-DWDl_k.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qG/qGjYU5rc4whNqGbZ-Ev-sFFYZDTXZpOhnHRswH81VQI.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qY/qYHktjZeTVYyIeVzmSIgG2JV42fyTV0TzIwUkxbYZSQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qj/qjlULgrZuuzCTNHTNE3IvsI88IhYpf5DLwzbRg7as3U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qo/qoDAyevKyArNmynPNuCh-sSSEpD4jVGF8vBJGSLM42I.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qp/qpsGPYK_DEnlbfAV1B10gzf85X2fjUVuKcaShGwFAR8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rr/rrMhNNXPFintjn_ZP5RMFZmX5q_4J2rvzVr516oVuZY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHEfrMxYcpqzAw9Xv5yKd-ImHdYH4dw3LRhAzLtNwbQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHfCg4WEOfg53iPAv44uwp5mNK6HqvMyWeKmGwAboII.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sO/sOkgigzpw9yHTJg1R-bsV_50W9L_p9MTv6CSwUMz_Ps.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sP/sPb7jxWOfAHmE_llKwieoJexagI5CQl9F25-09UhQCM.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/t2/t2AGtm95zgEC1ymTx-cF4Gky6yXKjqMM4BXuQxMYhFU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/t3/t3rIl0sKxtbuOdKHOKqe6PtzY-mEAmGMAy0S0te2eyo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tB/tBmy1XTnr--22LM6Zitujx92I1dfh3m1RH3Hhwks3V4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tk/tkYfC9_v7qC9g2yfxRD8SNXVpb9703C5rhHXs3ET7_E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ts/tsSAxcVtdRaxifKEGGehVyZ2rLzQJJ3dc0DXnmPwO8M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u-/u-V0RvPZjM64X8dX6_bn3jtIvQfG75OKy9zuIF6Jtg0.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uA/uA7RfNzNOTNRm3jkZG14w8hjSC4pJRn1ZVs0ec_OPMo.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uI/uI_EOGimZCd_E1CgRv5ifLYmSxuP0i4sNiF2WXvP3sg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ux/uxR005Y05Jhl50Mw1ufdKt3V984bimlyEX5akB_YAFI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uy/uyyADGu_J8RFP7jMFgLJqNnknx-Oz400wn381wWVZW4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v-/v-gtNgPSykhFBuKgDhi-xeCf3tbEBQUjY1qKPXMISlM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v2/v2naCjkpFPH9c-NwmCJETQoK7DBDYup8o_jydJMBDeY.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v3/v3eDSIGmyd0Y1kk1ASc_uFEb7tUqfFdZ3yRZAeZrzcI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vN/vN59miXCuGAyw0iHQg6OmhStV0S1Tz-vGOWUxwN7QOg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vg/vgMKcSF0IQZKKv_x3DrjpksN2pFDWFN7IJhEAmmCZBg.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vj/vjuI2fQXa2D6CtQ6q3qr_40P0da4JKryXaWNv7zrA2M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/w2/w2WHVIahCX79zlFp_7dfbl6wQPinwISKSTHWngyEnyo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/w7/w7fdZ5-Ljpw3oKqBv4nMpR-cYQ9fB7PLoqk2NcUbIWQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wm/wm0jVVRcI8qC_VsoOfKCp0HHJGnlBOy_FNG3hjMa6Pk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wn/wn3GJ6c-gkr5A6lLAfyeKL98H4FX6r7XKIeUW80gypw.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wn/wnvJ74QIdj8tSD10cXmY9KyXCpaQIv0FfZJWw-EudW8.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wv/wvWyU7svrHKgHvpxvJLK3vuc7SIlfxCVir2p_VMBMjs.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x0/x0wzfxL-nQeWjMAL12L3UiDAYyDTiOg8yp4mdTaZpC8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xP/xPMfTXGxxCCgIip6XsG-paelKjnDzbpAYugLmUfykPs.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xR/xRbb3t3bGtgdtnLyv6VZBUPDasllTgN4dsslLL1Ndf0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xh/xhKrbQYzOttXPAV3B8UE0g48dsYPni_9ikA8eccOYIk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xn/xn0zd3HM9eTR0-7a6FgJE6NhOy9SsbF21A3rVbVwROw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yP/yPvoUhaf_yuFaCNJU6ITFYdEzeuSBXWQNLp9bs8nbMc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ym/ymcTn0HULLF6Wenkujvetcm2D24XnhUKoc81dWkMhR8.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zD/zDfjs5LeIEuQk6D7sUn8Om3fIIvhvtKmCm8eRfACJgM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zV/zVYsJrJcUbMc1v3v2sP7YsdaBmKpuVVM7oNkvxGJ1JQ.cache +0 -0
- data/test/functional/posts_controller_test.rb +18 -16
- data/test/generators/install_generator_test.rb +58 -56
- data/test/integration/navigation_test.rb +2 -0
- data/test/models/attachment_file_test.rb +4 -4
- data/test/models/ckeditor_test.rb +3 -21
- data/test/models/picture_test.rb +12 -10
- data/test/models/utils_test.rb +2 -0
- data/test/orm/active_record.rb +11 -1
- data/test/orm/mongoid.rb +2 -0
- data/test/support/helpers.rb +2 -0
- data/test/support/integration_case.rb +2 -0
- data/test/test_helper.rb +15 -9
- data/test/tmp/app/models/ckeditor/asset.rb +2 -0
- data/test/tmp/app/models/ckeditor/attachment_file.rb +2 -0
- data/test/tmp/app/models/ckeditor/picture.rb +2 -0
- data/test/tmp/config/initializers/ckeditor.rb +4 -7
- metadata +472 -432
- data/app/assets/javascripts/ckeditor/init.js.erb +0 -8
- data/lib/ckeditor/backend/refile.rb +0 -39
- data/lib/ckeditor/utils/content_type_detector.rb +0 -38
- data/lib/generators/ckeditor/templates/active_record/refile/ckeditor/asset.rb +0 -4
- data/lib/generators/ckeditor/templates/active_record/refile/ckeditor/picture.rb +0 -11
- data/test/dummy/public/ckeditor_assets/attachments/1/rails.tar.gz +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png +0 -0
- data/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png +0 -0
- data/test/dummy/public/uploads/ckeditor/attachments/1/rails.tar.gz +0 -0
- data/test/dummy/public/uploads/ckeditor/pictures/1/content_rails.png +0 -0
- data/test/dummy/public/uploads/ckeditor/pictures/1/rails.png +0 -0
- data/test/dummy/public/uploads/ckeditor/pictures/1/thumb_rails.png +0 -0
- data/test/support/raw_post.rb +0 -9
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +0 -1304
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +0 -1420
- data/vendor/assets/javascripts/ckeditor/README.md +0 -39
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +0 -10
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +0 -1184
- data/vendor/assets/javascripts/ckeditor/config.js +0 -10
- data/vendor/assets/javascripts/ckeditor/contents.css +0 -208
- data/vendor/assets/javascripts/ckeditor/lang/af.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/az.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/da.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/de-ch.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/de.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/el.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/en.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/es-mx.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/es.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/et.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/he.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/is.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/it.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/km.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/no.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/oc.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/si.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sq.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/th.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/tt.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +0 -5
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +0 -20
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor.svg +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/copyformatting/styles/copyformatting.css +0 -45
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -24
- data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -20
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -44
- data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -8
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -28
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -52
- data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +0 -20
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -28
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/dialog.css +0 -23
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -32
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -9
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -21
- data/vendor/assets/javascripts/ckeditor/plugins/tableselection/styles/tableselection.css +0 -32
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -17
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -84
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -7
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -92
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +0 -5
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/readme.md +0 -46
- data/vendor/assets/javascripts/ckeditor/styles.js +0 -137
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b71ac2d1ebfd0eb53c8e24472f22e603c41c3ae8fc5958e44664211ee8e2b6ed
|
4
|
+
data.tar.gz: 8dd8a0c4681b5c76baf6a09d7c4a71426e7fedd9dd5c10e9623af7bd9d4a567d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a609bce33d5a52dfab3d630681ffe9f84cf58f39a1fc219606030f9a618a416ba620f9958345afab23cb76e79958ca4c7c3e8aa5cf3a8c1f701d856491b2cf30
|
7
|
+
data.tar.gz: d2ebba5c7fe3716a65e4af6595da206f52bdee4913fb6ca961d3ae3dcfb5d838664b86067f1dbb265dbe889c4817a15a78624e93e9b2b9bdf5b63f5858830d87
|
data/Gemfile
CHANGED
@@ -1,36 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'http://rubygems.org'
|
2
4
|
|
3
5
|
gemspec
|
4
6
|
|
5
|
-
gem 'rails', '
|
7
|
+
gem 'rails', '~> 5.2.4.6'
|
6
8
|
|
7
9
|
platforms :ruby do
|
8
|
-
gem 'sqlite3'
|
9
10
|
gem 'sass'
|
10
|
-
|
11
|
-
|
12
|
-
gem 'unicorn', '~> 4.0.1'
|
13
|
-
end
|
11
|
+
gem 'sqlite3', '~> 1.3.6'
|
12
|
+
gem 'sprockets', '~> 3.7.2'
|
14
13
|
|
15
14
|
group :development, :test do
|
16
|
-
gem 'jquery-rails', '~> 4.0.4'
|
17
15
|
gem 'capybara', '>= 0.4.0'
|
16
|
+
gem 'jquery-rails', '~> 4.3.3'
|
18
17
|
gem 'mynyml-redgreen', '~> 0.7.1', require: 'redgreen'
|
18
|
+
gem 'rails-controller-testing'
|
19
|
+
|
20
|
+
gem 'rubocop-rails'
|
19
21
|
end
|
20
22
|
|
21
23
|
group :active_record do
|
22
|
-
gem 'paperclip'
|
23
24
|
gem 'carrierwave'
|
24
25
|
gem 'dragonfly'
|
25
26
|
gem 'mini_magick'
|
26
|
-
gem '
|
27
|
-
gem 'refile-mini_magick'
|
27
|
+
gem 'paperclip', '~> 6.1.0'
|
28
28
|
end
|
29
29
|
|
30
30
|
group :mongoid do
|
31
|
-
gem 'mongoid', '~> 5.0.0'
|
32
31
|
gem 'bson_ext'
|
33
|
-
gem 'mongoid-paperclip', require: 'mongoid_paperclip'
|
34
32
|
gem 'carrierwave-mongoid', require: 'carrierwave/mongoid'
|
33
|
+
gem 'mongoid', '~> 7.0.2'
|
34
|
+
gem 'mongoid-paperclip', require: 'mongoid_paperclip'
|
35
|
+
gem 'shrine'
|
36
|
+
gem 'shrine-mongoid'
|
37
|
+
gem 'image_processing'
|
35
38
|
end
|
36
39
|
end
|
data/README.md
CHANGED
@@ -3,17 +3,16 @@
|
|
3
3
|
[![Build Status](https://semaphoreci.com/api/v1/igor-galeta/ckeditor/branches/master/shields_badge.svg)](https://semaphoreci.com/igor-galeta/ckeditor)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/galetahub/ckeditor/badges/gpa.svg)](https://codeclimate.com/github/galetahub/ckeditor)
|
5
5
|
|
6
|
-
CKEditor is a WYSIWYG text editor designed to simplify web content creation. It brings common word processing features directly to your web pages. Enhance your website experience with our community maintained editor.
|
7
|
-
[ckeditor.com](http://ckeditor.com/)
|
6
|
+
CKEditor is a WYSIWYG text editor designed to simplify web content creation. It brings common word processing features directly to your web pages. Enhance your website experience with our community maintained editor. Currently this gem supports [ckeditor 4](https://ckeditor.com/ckeditor-4/) only.
|
8
7
|
|
9
8
|
## Features
|
10
9
|
|
11
|
-
* CKEditor version 4.
|
12
|
-
* Rails 5.
|
10
|
+
* CKEditor version 4.x (https://ckeditor.com/ckeditor-4/)
|
11
|
+
* Rails 5.x, 4.2.x integration
|
13
12
|
* Files browser
|
14
13
|
* HTML5 file uploader
|
15
14
|
* Hooks for formtastic and simple_form forms generators
|
16
|
-
* Integrated with authorization
|
15
|
+
* Integrated with authorization frameworks [CanCanCan](https://github.com/CanCanCommunity/cancancan) and [Pundit](https://github.com/varvet/pundit)
|
17
16
|
|
18
17
|
## Installation
|
19
18
|
|
@@ -29,16 +28,16 @@ or if you'd like to use the latest version from Github:
|
|
29
28
|
gem 'ckeditor', github: 'galetahub/ckeditor'
|
30
29
|
```
|
31
30
|
|
32
|
-
|
31
|
+
Include this inside your `config/initializers/assets.rb`:
|
33
32
|
|
34
|
-
```
|
35
|
-
|
33
|
+
```
|
34
|
+
Rails.application.config.assets.precompile += %w[ckeditor/config.js]
|
36
35
|
```
|
37
36
|
|
38
37
|
For file upload support, you must generate the necessary file storage models.
|
39
38
|
The currently supported backends are:
|
40
39
|
|
41
|
-
* ActiveRecord (paperclip, carrierwave, dragonfly
|
40
|
+
* ActiveRecord (active_storage, paperclip, carrierwave, dragonfly)
|
42
41
|
* Mongoid (paperclip, carrierwave, dragonfly)
|
43
42
|
|
44
43
|
### How to generate models to store uploaded files
|
@@ -53,22 +52,22 @@ gem 'paperclip'
|
|
53
52
|
rails generate ckeditor:install --orm=active_record --backend=paperclip
|
54
53
|
```
|
55
54
|
|
56
|
-
#### ActiveRecord +
|
55
|
+
#### ActiveRecord + active_storage
|
57
56
|
|
58
57
|
```
|
59
|
-
gem
|
60
|
-
gem 'mini_magick'
|
58
|
+
gem "mini_magick"
|
61
59
|
|
62
|
-
rails
|
60
|
+
rails active_storage:install # if you not install active_storage yet
|
61
|
+
rails generate ckeditor:install --orm=active_record --backend=active_storage
|
63
62
|
```
|
64
63
|
|
65
|
-
#### ActiveRecord +
|
64
|
+
#### ActiveRecord + carrierwave
|
66
65
|
|
67
66
|
```
|
68
|
-
gem '
|
69
|
-
gem '
|
67
|
+
gem 'carrierwave'
|
68
|
+
gem 'mini_magick'
|
70
69
|
|
71
|
-
rails generate ckeditor:install --orm=active_record --backend=
|
70
|
+
rails generate ckeditor:install --orm=active_record --backend=carrierwave
|
72
71
|
```
|
73
72
|
|
74
73
|
#### ActiveRecord + dragonfly
|
@@ -89,6 +88,10 @@ gem 'mongoid-paperclip', require: 'mongoid_paperclip'
|
|
89
88
|
rails generate ckeditor:install --orm=mongoid --backend=paperclip
|
90
89
|
```
|
91
90
|
|
91
|
+
#### Mongoid + active_storage
|
92
|
+
|
93
|
+
Active Storage support **only** Active Record, see for [more info](https://github.com/rails/rails/issues/31408#issuecomment-351128111)
|
94
|
+
|
92
95
|
#### Mongoid + carrierwave
|
93
96
|
|
94
97
|
```
|
@@ -115,14 +118,6 @@ mount Ckeditor::Engine => '/ckeditor'
|
|
115
118
|
|
116
119
|
## Usage
|
117
120
|
|
118
|
-
### Load editor from gem vendor
|
119
|
-
|
120
|
-
Include ckeditor javascripts in your `app/assets/javascripts/application.js`:
|
121
|
-
|
122
|
-
```
|
123
|
-
//= require ckeditor/init
|
124
|
-
```
|
125
|
-
|
126
121
|
### Load editor via CKEditor CDN
|
127
122
|
|
128
123
|
Setup editor version to load (more info here http://cdn.ckeditor.com/)
|
@@ -147,7 +142,7 @@ Precompile ckeditor/config.js:
|
|
147
142
|
```ruby
|
148
143
|
# in config/initializers/assets.rb
|
149
144
|
|
150
|
-
Rails.application.config.assets.precompile += %w
|
145
|
+
Rails.application.config.assets.precompile += %w[ckeditor/config.js]
|
151
146
|
```
|
152
147
|
|
153
148
|
### Form helpers
|
@@ -159,6 +154,13 @@ Rails.application.config.assets.precompile += %w(ckeditor/config.js)
|
|
159
154
|
= cktext_area :page, :info, cols: 40, ckeditor: { uiColor: '#AADC6E', toolbar: 'mini' }
|
160
155
|
```
|
161
156
|
|
157
|
+
*It also works with bootstrap-form*
|
158
|
+
|
159
|
+
```slim
|
160
|
+
= bootstrap_form_for resource do |form|
|
161
|
+
= form.cktext_area :text, ckeditor: { language: 'uk'}
|
162
|
+
```
|
163
|
+
|
162
164
|
### Customize ckeditor
|
163
165
|
|
164
166
|
All ckeditor options can be found [here](http://docs.ckeditor.com/#!/api/CKEDITOR.config)
|
@@ -184,7 +186,7 @@ CKEDITOR.editorConfig = function (config) {
|
|
184
186
|
config.toolbar_mini = [
|
185
187
|
["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"],
|
186
188
|
];
|
187
|
-
config.toolbar = "
|
189
|
+
config.toolbar = "mini";
|
188
190
|
|
189
191
|
// ... rest of the original config.js ...
|
190
192
|
}
|
@@ -192,44 +194,15 @@ CKEDITOR.editorConfig = function (config) {
|
|
192
194
|
|
193
195
|
When overriding the default `config.js` file, you must set all configuration options yourself as the bundled `config.js` will not be loaded. To see the default configuration, run `bundle open ckeditor`, copy `app/assets/javascripts/ckeditor/config.js` into your project and customize it to your needs.
|
194
196
|
|
195
|
-
|
196
|
-
|
197
|
-
For Rails 4 and 5, add the following to `config/initializers/assets.rb`:
|
198
|
-
|
199
|
-
```ruby
|
200
|
-
Rails.application.config.assets.precompile += %w( ckeditor/* )
|
201
|
-
```
|
197
|
+
#### Install additional plugins
|
202
198
|
|
203
|
-
|
204
|
-
|
199
|
+
You should download necessary plugins with all dependencies and extract them in `app/assets/javascripts/ckeditor/plugins/`.
|
200
|
+
After that you can include your plugins in `app/assets/javascripts/ckeditor/config.js` in this way:
|
205
201
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
Ckeditor.setup do |config|
|
212
|
-
config.assets_languages = ['en', 'fr']
|
213
|
-
config.assets_plugins = ['image', 'smiley']
|
214
|
-
end
|
215
|
-
```
|
216
|
-
|
217
|
-
Note that you have to list your plugins, including all their dependencies.
|
218
|
-
|
219
|
-
### Include customized CKEDITOR_BASEPATH setting
|
220
|
-
|
221
|
-
Add your app/assets/javascripts/ckeditor/basepath.js.erb like
|
222
|
-
|
223
|
-
```erb
|
224
|
-
<%
|
225
|
-
base_path = ''
|
226
|
-
if ENV['PROJECT'] =~ /editor/i
|
227
|
-
base_path << "/#{Rails.root.basename.to_s}/"
|
228
|
-
end
|
229
|
-
base_path << Rails.application.config.assets.prefix
|
230
|
-
base_path << '/ckeditor/'
|
231
|
-
%>
|
232
|
-
var CKEDITOR_BASEPATH = '<%= base_path %>';
|
202
|
+
```javascript
|
203
|
+
CKEDITOR.editorConfig = function (config) {
|
204
|
+
config.extraPlugins = 'eqneditor,autosave,';
|
205
|
+
}
|
233
206
|
```
|
234
207
|
|
235
208
|
### AJAX
|
@@ -256,6 +229,9 @@ jQuery sample:
|
|
256
229
|
```
|
257
230
|
|
258
231
|
### SimpleForm integration
|
232
|
+
Note that the toolbar option should match the case specified in the config. If the config is not found it defaults to all available toolbar items.
|
233
|
+
|
234
|
+
i.e. config.toolbar_mini becomes {toolbar: 'mini'} in the form.
|
259
235
|
|
260
236
|
```slim
|
261
237
|
= form.input :content, as: :ckeditor, input_html: { ckeditor: { toolbar: 'Full' } }
|
@@ -274,7 +250,7 @@ $(document).on('page:load', ready)
|
|
274
250
|
```
|
275
251
|
Make sure the file is loaded from your app/assets/javascripts/application.js
|
276
252
|
|
277
|
-
###
|
253
|
+
### CanCanCan integration
|
278
254
|
|
279
255
|
To use cancan with Ckeditor, add this to an initializer:
|
280
256
|
|
@@ -282,12 +258,12 @@ To use cancan with Ckeditor, add this to an initializer:
|
|
282
258
|
# in config/initializers/ckeditor.rb
|
283
259
|
|
284
260
|
Ckeditor.setup do |config|
|
285
|
-
config.authorize_with :
|
261
|
+
config.authorize_with :cancancan
|
286
262
|
end
|
287
263
|
```
|
288
264
|
|
289
265
|
At this point, all authorization will fail and no one will be able to access the filebrowser pages.
|
290
|
-
To grant access, add
|
266
|
+
To grant access, add the following abilities (usually `ability.rb`)
|
291
267
|
|
292
268
|
```ruby
|
293
269
|
# Always performed
|
@@ -298,37 +274,50 @@ can [:read, :create, :destroy], Ckeditor::Picture
|
|
298
274
|
can [:read, :create, :destroy], Ckeditor::AttachmentFile
|
299
275
|
```
|
300
276
|
|
301
|
-
### Pundit
|
277
|
+
### Pundit or Action Policy Integration
|
302
278
|
|
303
|
-
|
279
|
+
Setup Pundit and Action Policy similar.
|
280
|
+
Just like CanCanCan, you can write this code in your config/initializers/ckeditor.rb file:
|
304
281
|
|
305
282
|
```ruby
|
306
283
|
Ckeditor.setup do |config|
|
307
|
-
config.authorize_with :pundit
|
284
|
+
config.authorize_with :pundit # or :action_policy
|
308
285
|
end
|
309
286
|
```
|
310
287
|
|
311
288
|
Then, generate the policy files for model **Picture** and **AttachmentFile**
|
312
289
|
|
313
290
|
```
|
314
|
-
$ rails g ckeditor:pundit_policy
|
291
|
+
$ rails g ckeditor:pundit_policy # or ckeditor:action_policy
|
315
292
|
```
|
316
293
|
By this command, you will got two files:
|
317
294
|
> app/policies/ckeditor/picture_policy.rb
|
318
295
|
app/policies/ckeditor/attachment_file_policy.rb
|
319
296
|
|
320
|
-
By default, only the user that logged in can access the models
|
297
|
+
By default, only the user that logged in can access the models.
|
321
298
|
|
322
299
|
You can customize these two policy files as you like.
|
323
300
|
|
324
301
|
## Engine configuration
|
325
|
-
|
326
|
-
|
302
|
+
|
303
|
+
* To override the default CKEditor routes create a [config.js](https://github.com/galetahub/ckeditor/blob/master/app/assets/javascripts/ckeditor/config.js) file within the host application at `app/assets/javascripts/ckeditor/config.js`
|
304
|
+
|
305
|
+
* By default, the engine inherits from `ApplicationController`. To override the default parent controller:
|
327
306
|
```
|
328
307
|
# in config/initializers/ckeditor.rb
|
329
308
|
|
330
309
|
Ckeditor.setup do |config|
|
331
|
-
config.parent_controller = '
|
310
|
+
config.parent_controller = 'MyCKEditorBaseController'
|
311
|
+
end
|
312
|
+
```
|
313
|
+
|
314
|
+
Based on this, if you want to secure CKEditor controller actions and you can't authenticate in ApplicationController, you could do so with a custom controller after configuring the override above, like so:
|
315
|
+
|
316
|
+
```
|
317
|
+
class MyCKEditorBaseController < ActionController::Base
|
318
|
+
|
319
|
+
before_action :authenticate_user! # or some other auth/permission logic here, like Pundit
|
320
|
+
|
332
321
|
end
|
333
322
|
```
|
334
323
|
|
@@ -350,9 +339,10 @@ en:
|
|
350
339
|
|
351
340
|
```bash
|
352
341
|
$> rake test CKEDITOR_BACKEND=paperclip
|
342
|
+
$> rake test CKEDITOR_BACKEND=active_storage
|
353
343
|
$> rake test CKEDITOR_BACKEND=carrierwave
|
354
|
-
$> rake test CKEDITOR_BACKEND=refile
|
355
344
|
$> rake test CKEDITOR_BACKEND=dragonfly
|
345
|
+
$> rake test CKEDITOR_BACKEND=shrine
|
356
346
|
$> rake test CKEDITOR_ORM=mongoid
|
357
347
|
|
358
348
|
$> rake test:controllers
|
data/Rakefile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'rubygems'
|
3
4
|
begin
|
4
5
|
require 'bundler/setup'
|
@@ -8,53 +9,60 @@ end
|
|
8
9
|
|
9
10
|
require 'rake'
|
10
11
|
require 'rdoc/task'
|
11
|
-
|
12
12
|
require 'rake/testtask'
|
13
13
|
|
14
|
+
require 'bundler/gem_tasks'
|
15
|
+
|
16
|
+
task default: :test
|
17
|
+
|
14
18
|
Rake::TestTask.new(:test) do |t|
|
15
19
|
t.libs << 'lib'
|
16
20
|
t.libs << 'test'
|
17
21
|
t.pattern = 'test/**/*_test.rb'
|
18
22
|
t.verbose = false
|
23
|
+
t.warning = false
|
19
24
|
end
|
20
25
|
|
21
|
-
Rake::TestTask.new(
|
26
|
+
Rake::TestTask.new('test:controllers') do |t|
|
22
27
|
t.libs << 'lib'
|
23
28
|
t.libs << 'test'
|
24
29
|
t.pattern = 'test/controllers/*_test.rb'
|
25
30
|
t.verbose = false
|
31
|
+
t.warning = false
|
26
32
|
end
|
27
33
|
|
28
|
-
Rake::TestTask.new(
|
34
|
+
Rake::TestTask.new('test:generators') do |t|
|
29
35
|
t.libs << 'lib'
|
30
36
|
t.libs << 'test'
|
31
37
|
t.pattern = 'test/generators/*_test.rb'
|
32
38
|
t.verbose = false
|
39
|
+
t.warning = false
|
33
40
|
end
|
34
41
|
|
35
|
-
Rake::TestTask.new(
|
42
|
+
Rake::TestTask.new('test:integration') do |t|
|
36
43
|
t.libs << 'lib'
|
37
44
|
t.libs << 'test'
|
38
45
|
t.pattern = 'test/integration/*_test.rb'
|
39
46
|
t.verbose = false
|
47
|
+
t.warning = false
|
40
48
|
end
|
41
49
|
|
42
|
-
Rake::TestTask.new(
|
50
|
+
Rake::TestTask.new('test:models') do |t|
|
43
51
|
t.libs << 'lib'
|
44
52
|
t.libs << 'test'
|
45
53
|
t.pattern = 'test/models/*_test.rb'
|
46
54
|
t.verbose = false
|
55
|
+
t.warning = false
|
47
56
|
end
|
48
57
|
|
49
|
-
Rake::TestTask.new(
|
58
|
+
Rake::TestTask.new('test:functional') do |t|
|
50
59
|
t.libs << 'lib'
|
51
60
|
t.libs << 'test'
|
52
61
|
t.pattern = 'test/functional/*_test.rb'
|
53
62
|
t.verbose = false
|
63
|
+
t.warning = false
|
54
64
|
end
|
55
65
|
|
56
|
-
task :default => :test
|
57
|
-
|
58
66
|
RDoc::Task.new do |rdoc|
|
59
67
|
rdoc.rdoc_dir = 'rdoc'
|
60
68
|
rdoc.title = 'Ckeditor'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize
|
2
4
|
layout Ckeditor.controller_layout
|
3
5
|
|
@@ -9,6 +11,7 @@ class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize
|
|
9
11
|
|
10
12
|
def respond_with_asset(asset)
|
11
13
|
asset_response = Ckeditor::AssetResponse.new(asset, request)
|
14
|
+
asset.data = asset_response.data
|
12
15
|
|
13
16
|
if asset.save
|
14
17
|
render asset_response.success(config.relative_url_root)
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'action_view/helpers/tag_helper'
|
2
4
|
require 'action_view/helpers/javascript_helper'
|
3
5
|
|
@@ -6,17 +8,19 @@ module Ckeditor
|
|
6
8
|
include ActionView::Helpers::TagHelper
|
7
9
|
include ActionView::Helpers::JavaScriptHelper
|
8
10
|
|
9
|
-
FUNCTION = 'window.parent.CKEDITOR.tools.callFunction'
|
10
|
-
JSON_TYPE = 'json'
|
11
|
+
FUNCTION = 'window.parent.CKEDITOR.tools.callFunction'
|
12
|
+
JSON_TYPE = 'json'
|
11
13
|
|
12
|
-
attr_reader :asset, :params
|
14
|
+
attr_reader :asset, :request, :params
|
13
15
|
|
14
16
|
def initialize(asset, request)
|
15
17
|
@asset = asset
|
16
18
|
@request = request
|
17
19
|
@params = request.params
|
20
|
+
end
|
18
21
|
|
19
|
-
|
22
|
+
def data
|
23
|
+
@data ||= read_data
|
20
24
|
end
|
21
25
|
|
22
26
|
def json?
|
@@ -104,5 +108,12 @@ module Ckeditor
|
|
104
108
|
:default
|
105
109
|
end
|
106
110
|
end
|
111
|
+
|
112
|
+
def read_data
|
113
|
+
data = Ckeditor::Http.normalize_param(file, request)
|
114
|
+
return if data.size.zero? || data.original_filename.blank?
|
115
|
+
|
116
|
+
data
|
117
|
+
end
|
107
118
|
end
|
108
119
|
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ckeditor
|
4
|
+
module Backend
|
5
|
+
module ActiveStorage
|
6
|
+
def self.included(base)
|
7
|
+
base.send(:include, Rails.application.routes.url_helpers)
|
8
|
+
base.send(:include, InstanceMethods)
|
9
|
+
base.send(:extend, ClassMethods)
|
10
|
+
end
|
11
|
+
|
12
|
+
module ClassMethods
|
13
|
+
def self.extended(base)
|
14
|
+
base.class_eval do
|
15
|
+
before_save :apply_data
|
16
|
+
validate do
|
17
|
+
if data.nil? || file.nil?
|
18
|
+
errors.add(:data, :not_data_present, message: "data must be present")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
module InstanceMethods
|
26
|
+
def url
|
27
|
+
rails_blob_path(self.storage_data, only_path: true)
|
28
|
+
end
|
29
|
+
|
30
|
+
def path
|
31
|
+
rails_blob_path(self.storage_data, only_path: true)
|
32
|
+
end
|
33
|
+
|
34
|
+
def styles
|
35
|
+
end
|
36
|
+
|
37
|
+
def content_type
|
38
|
+
self.storage_data.content_type
|
39
|
+
end
|
40
|
+
def content_type=(_content_type)
|
41
|
+
self.storage_data.content_type = _content_type
|
42
|
+
end
|
43
|
+
protected
|
44
|
+
|
45
|
+
def file
|
46
|
+
@file ||= storage_data
|
47
|
+
end
|
48
|
+
|
49
|
+
def blob
|
50
|
+
@blob ||= ::ActiveStorage::Blob.find(file.attachment.blob_id)
|
51
|
+
end
|
52
|
+
|
53
|
+
def apply_data
|
54
|
+
if data.is_a?(Ckeditor::Http::QqFile)
|
55
|
+
storage_data.attach(io: data, filename: data.original_filename)
|
56
|
+
else
|
57
|
+
storage_data.attach(data)
|
58
|
+
end
|
59
|
+
|
60
|
+
self.data_file_name = storage_data.blob.filename
|
61
|
+
self.data_content_type = storage_data.blob.content_type
|
62
|
+
self.data_file_size = storage_data.blob.byte_size
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'mini_magick'
|
2
4
|
|
3
5
|
module Ckeditor
|
@@ -11,7 +13,6 @@ module Ckeditor
|
|
11
13
|
module ClassMethods
|
12
14
|
def self.extended(base)
|
13
15
|
base.class_eval do
|
14
|
-
process :extract_content_type
|
15
16
|
process :extract_size
|
16
17
|
end
|
17
18
|
end
|
@@ -36,21 +37,10 @@ module Ckeditor
|
|
36
37
|
end
|
37
38
|
end
|
38
39
|
|
39
|
-
def extract_content_type
|
40
|
-
model.data_content_type = Utils::ContentTypeDetector.new(file.path).detect
|
41
|
-
end
|
42
|
-
|
43
40
|
def extract_size
|
44
41
|
model.data_file_size = file.size
|
45
42
|
end
|
46
43
|
|
47
|
-
def extract_dimensions
|
48
|
-
if model.image? && model.has_dimensions?
|
49
|
-
model.width = magick[:width]
|
50
|
-
model.height = magick[:height]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
44
|
def magick
|
55
45
|
@magick ||= ::MiniMagick::Image.new(current_path)
|
56
46
|
end
|