active_admin_editor 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. data/README.md +6 -0
  2. data/app/assets/javascripts/active_admin/editor.js +1 -1
  3. data/app/assets/stylesheets/active_admin/editor/{_wysiwyg.css.scss → wysiwyg.css} +0 -0
  4. data/lib/active_admin/editor/version.rb +1 -1
  5. data/lib/generators/active_admin/editor/editor_generator.rb +14 -0
  6. data/lib/generators/active_admin/editor/templates/wysiwyg.css +130 -0
  7. data/test/dummy/app/assets/javascripts/active_admin.js +1 -0
  8. data/test/dummy/app/assets/stylesheets/active_admin.css.scss +1 -0
  9. data/test/dummy/app/assets/stylesheets/application.css +1 -0
  10. data/test/dummy/db/development.sqlite3 +0 -0
  11. data/test/dummy/log/development.log +301 -0
  12. data/test/dummy/public/assets/wysiwyg.css +130 -0
  13. data/test/dummy/tmp/cache/assets/CDB/040/sprockets%2Fc732474e67003a4eb840eb44c5ca9385 +0 -0
  14. data/test/dummy/tmp/cache/assets/D00/490/sprockets%2F60ff8fc770f770b47a563e8cd4696994 +0 -0
  15. data/test/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db +0 -0
  16. data/test/dummy/tmp/cache/assets/D41/2F0/sprockets%2Fe5d704d8dc364cb7e3e822bb4e253916 +0 -0
  17. data/test/dummy/tmp/cache/assets/D48/640/sprockets%2F9f4f18d910b678b1d0777e04cdaf6f24 +0 -0
  18. data/test/dummy/tmp/cache/assets/D59/D70/sprockets%2Fed9f0de1b65ae8d7ef89087c83728461 +0 -0
  19. data/test/dummy/tmp/cache/assets/D93/4C0/sprockets%2F857ecd2092cee11f740b3cf2e373ad2a +0 -0
  20. data/test/dummy/tmp/cache/assets/DDE/420/sprockets%2Ffb8b186d5bf0307f86f65fc787d2adeb +0 -0
  21. data/test/dummy/tmp/cache/sass/2c5767f8b54c235968e95862ab983eb40c635a92/active_admin.css.scssc +0 -0
  22. data/test/dummy/tmp/cache/sass/52b571e0119322d02c8cc7bb4b050bea8f5bcd4d/wysiwyg.cssc +0 -0
  23. data/test/dummy/tmp/cache/sass/81344752c8bed34a2e2b1a10124f3a9949022145/editor.css.scssc +0 -0
  24. metadata +19 -13
data/README.md CHANGED
@@ -32,6 +32,12 @@ And the following to your active\_admin.css.scss and active\_admin.js:
32
32
  @import 'active_admin/editor';
33
33
  ```
34
34
 
35
+ And finally install the wysiwyg css file:
36
+
37
+ ```bash
38
+ $ rails g active_admin:editor
39
+ ```
40
+
35
41
  ## Usage
36
42
  This gem provides you with a custom formtastic input called `:html_editor` to build out an html editor.
37
43
  All you have to do is specify the `:as` option for your inputs.
@@ -13,7 +13,7 @@
13
13
 
14
14
  var editor = new wysihtml5.Editor(textarea_id, {
15
15
  toolbar: toolbar_id,
16
- stylesheets: "/assets/active_admin/editor/wysiwyg",
16
+ stylesheets: "/assets/wysiwyg.css",
17
17
  parserRules: wysihtml5ParserRules
18
18
  });
19
19
 
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Editor
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -0,0 +1,14 @@
1
+ module ActiveAdmin
2
+ module Generators
3
+ class EditorGenerator < Rails::Generators::NamedBase
4
+ desc "Installs the wysiwyg css file for the editor"
5
+ argument :name, type: :string, default: 'none'
6
+
7
+ source_root File.expand_path('../templates', __FILE__)
8
+
9
+ def copy_wysiwyg_css
10
+ template 'wysiwyg.css', 'public/assets/wysiwyg.css'
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,130 @@
1
+
2
+ .wysiwyg-font-size-smaller {
3
+ font-size: smaller;
4
+ }
5
+
6
+ .wysiwyg-font-size-larger {
7
+ font-size: larger;
8
+ }
9
+
10
+ .wysiwyg-font-size-xx-large {
11
+ font-size: xx-large;
12
+ }
13
+
14
+ .wysiwyg-font-size-x-large {
15
+ font-size: x-large;
16
+ }
17
+
18
+ .wysiwyg-font-size-large {
19
+ font-size: large;
20
+ }
21
+
22
+ .wysiwyg-font-size-medium {
23
+ font-size: medium;
24
+ }
25
+
26
+ .wysiwyg-font-size-small {
27
+ font-size: small;
28
+ }
29
+
30
+ .wysiwyg-font-size-x-small {
31
+ font-size: x-small;
32
+ }
33
+
34
+ .wysiwyg-font-size-xx-small {
35
+ font-size: xx-small;
36
+ }
37
+
38
+ .wysiwyg-color-black {
39
+ color: black;
40
+ }
41
+
42
+ .wysiwyg-color-silver {
43
+ color: silver;
44
+ }
45
+
46
+ .wysiwyg-color-gray {
47
+ color: gray;
48
+ }
49
+
50
+ .wysiwyg-color-white {
51
+ color: white;
52
+ }
53
+
54
+ .wysiwyg-color-maroon {
55
+ color: maroon;
56
+ }
57
+
58
+ .wysiwyg-color-red {
59
+ color: red;
60
+ }
61
+
62
+ .wysiwyg-color-purple {
63
+ color: purple;
64
+ }
65
+
66
+ .wysiwyg-color-fuchsia {
67
+ color: fuchsia;
68
+ }
69
+
70
+ .wysiwyg-color-green {
71
+ color: green;
72
+ }
73
+
74
+ .wysiwyg-color-lime {
75
+ color: lime;
76
+ }
77
+
78
+ .wysiwyg-color-olive {
79
+ color: olive;
80
+ }
81
+
82
+ .wysiwyg-color-yellow {
83
+ color: yellow;
84
+ }
85
+
86
+ .wysiwyg-color-navy {
87
+ color: navy;
88
+ }
89
+
90
+ .wysiwyg-color-blue {
91
+ color: blue;
92
+ }
93
+
94
+ .wysiwyg-color-teal {
95
+ color: teal;
96
+ }
97
+
98
+ .wysiwyg-color-aqua {
99
+ color: aqua;
100
+ }
101
+
102
+ .wysiwyg-text-align-right {
103
+ text-align: right;
104
+ }
105
+
106
+ .wysiwyg-text-align-center {
107
+ text-align: center;
108
+ }
109
+
110
+ .wysiwyg-text-align-left {
111
+ text-align: left;
112
+ }
113
+
114
+ .wysiwyg-float-left {
115
+ float: left;
116
+ margin: 0 8px 8px 0;
117
+ }
118
+
119
+ .wysiwyg-float-right {
120
+ float: right;
121
+ margin: 0 0 8px 8px;
122
+ }
123
+
124
+ .wysiwyg-clear-right {
125
+ clear: right;
126
+ }
127
+
128
+ .wysiwyg-clear-left {
129
+ clear: left;
130
+ }
@@ -1 +1,2 @@
1
1
  //= require active_admin/base
2
+ //= require active_admin/editor
@@ -1,6 +1,7 @@
1
1
  // Active Admin CSS Styles
2
2
  @import "active_admin/mixins";
3
3
  @import "active_admin/base";
4
+ @import "active_admin/editor";
4
5
 
5
6
  // To customize the Active Admin interfaces, add your
6
7
  // styles here:
@@ -10,4 +10,5 @@
10
10
  *
11
11
  *= require_self
12
12
  *= require_tree .
13
+ *= require wysiwyg
13
14
  */
Binary file
@@ -2374,3 +2374,304 @@ Served asset /active_admin/editor/wysiwyg.css - 304 Not Modified (0ms)
2374
2374
 
2375
2375
  Started GET "/assets/active_admin/editor/wysiwyg" for 127.0.0.1 at 2012-05-01 09:26:23 -0700
2376
2376
  Served asset /active_admin/editor/wysiwyg - 304 Not Modified (0ms)
2377
+
2378
+
2379
+ Started GET "/" for 127.0.0.1 at 2012-05-09 14:59:37 -0700
2380
+
2381
+ ActionController::RoutingError (No route matches [GET] "/"):
2382
+ actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2383
+ actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2384
+ railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
2385
+ railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
2386
+ actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
2387
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
2388
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
2389
+ activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2390
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
2391
+ actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
2392
+ railties (3.2.3) lib/rails/engine.rb:479:in `call'
2393
+ railties (3.2.3) lib/rails/application.rb:220:in `call'
2394
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
2395
+ railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
2396
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
2397
+ /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
2398
+ /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
2399
+ /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
2400
+
2401
+
2402
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (13.4ms)
2403
+
2404
+
2405
+ Started GET "/admin" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2406
+ Processing by Admin::DashboardController#index as HTML
2407
+ Completed 401 Unauthorized in 2ms
2408
+
2409
+
2410
+ Started GET "/admin/login" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2411
+ Processing by ActiveAdmin::Devise::SessionsController#new as HTML
2412
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/devise/shared/_links.erb (1.1ms)
2413
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (131.9ms)
2414
+ Completed 200 OK in 284ms (Views: 270.0ms | ActiveRecord: 0.5ms)
2415
+
2416
+
2417
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2418
+ Served asset /active_admin/application.js - 200 OK (1ms)
2419
+
2420
+
2421
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2422
+ Served asset /active_admin.css - 200 OK (7ms)
2423
+
2424
+
2425
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2426
+ Served asset /jquery.js - 200 OK (4ms)
2427
+
2428
+
2429
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2430
+ Served asset /active_admin.js - 200 OK (11ms)
2431
+
2432
+
2433
+ Started GET "/assets/active_admin/base.js?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2434
+ Served asset /active_admin/base.js - 200 OK (6ms)
2435
+
2436
+
2437
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2438
+ Served asset /jquery-ui.js - 200 OK (2ms)
2439
+
2440
+
2441
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-09 14:59:40 -0700
2442
+ Served asset /jquery_ujs.js - 200 OK (2ms)
2443
+
2444
+
2445
+ Started POST "/admin/login" for 127.0.0.1 at 2012-05-09 14:59:46 -0700
2446
+ Processing by ActiveAdmin::Devise::SessionsController#create as HTML
2447
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"/t3h6GEok5Bf8455bD0Q55X4wQrvgCcUCA4iC2+AdbA=", "admin_user"=>{"email"=>"admin@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Login"}
2448
+ AdminUser Load (18.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'admin@example.com' LIMIT 1
2449
+  (0.1ms) begin transaction
2450
+  (0.3ms) UPDATE "admin_users" SET "current_sign_in_at" = '2012-05-09 21:59:46.872814', "sign_in_count" = 2, "updated_at" = '2012-05-09 21:59:46.873710' WHERE "admin_users"."id" = 1
2451
+  (2.8ms) commit transaction
2452
+ Redirected to http://localhost:3000/admin
2453
+ Completed 302 Found in 208ms (ActiveRecord: 0.0ms)
2454
+
2455
+
2456
+ Started GET "/admin" for 127.0.0.1 at 2012-05-09 14:59:46 -0700
2457
+ Processing by Admin::DashboardController#index as HTML
2458
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2459
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/dashboard/index.html.arb (13.9ms)
2460
+ Completed 200 OK in 29ms (Views: 27.7ms | ActiveRecord: 0.2ms)
2461
+
2462
+
2463
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 14:59:47 -0700
2464
+ Served asset /active_admin.js - 200 OK (0ms)
2465
+
2466
+
2467
+ Started GET "/admin/pages" for 127.0.0.1 at 2012-05-09 14:59:48 -0700
2468
+ Processing by Admin::PagesController#index as HTML
2469
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2470
+ Page Exists (68.8ms) SELECT 1 FROM "pages" LIMIT 1 OFFSET 0
2471
+  (0.1ms) SELECT COUNT(*) FROM "pages"
2472
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "pages" LIMIT 30 OFFSET 0) subquery_for_count 
2473
+ Page Load (0.1ms) SELECT "pages".* FROM "pages" ORDER BY "pages"."id" desc LIMIT 30 OFFSET 0
2474
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/index.html.arb (222.2ms)
2475
+ Completed 200 OK in 231ms (Views: 155.0ms | ActiveRecord: 69.6ms)
2476
+
2477
+
2478
+ Started GET "/assets/active_admin/orderable.png" for 127.0.0.1 at 2012-05-09 14:59:49 -0700
2479
+ Served asset /active_admin/orderable.png - 200 OK (16ms)
2480
+
2481
+
2482
+ Started GET "/assets/active_admin/datepicker/datepicker-input-icon.png" for 127.0.0.1 at 2012-05-09 14:59:49 -0700
2483
+ Served asset /active_admin/datepicker/datepicker-input-icon.png - 200 OK (11ms)
2484
+
2485
+
2486
+ Started GET "/assets/active_admin/datepicker/datepicker-nipple.png" for 127.0.0.1 at 2012-05-09 14:59:49 -0700
2487
+ Served asset /active_admin/datepicker/datepicker-nipple.png - 200 OK (2ms)
2488
+
2489
+
2490
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 14:59:50 -0700
2491
+ Processing by Admin::PagesController#edit as HTML
2492
+ Parameters: {"id"=>"1"}
2493
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2494
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2495
+ Page Load (0.1ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2496
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (29.0ms)
2497
+ Completed 200 OK in 45ms (Views: 42.3ms | ActiveRecord: 0.4ms)
2498
+
2499
+
2500
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 14:59:55 -0700
2501
+ Processing by Admin::PagesController#edit as HTML
2502
+ Parameters: {"id"=>"1"}
2503
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2504
+ Page Load (0.1ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2505
+ Page Load (0.1ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2506
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (17.8ms)
2507
+ Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.3ms)
2508
+
2509
+
2510
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 14:59:55 -0700
2511
+ Served asset /active_admin.css - 304 Not Modified (2ms)
2512
+
2513
+
2514
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 14:59:55 -0700
2515
+ Served asset /active_admin.js - 304 Not Modified (0ms)
2516
+
2517
+
2518
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:00:30 -0700
2519
+ Processing by Admin::PagesController#edit as HTML
2520
+ Parameters: {"id"=>"1"}
2521
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2522
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2523
+ Page Load (3.0ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2524
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (77.9ms)
2525
+ Completed 200 OK in 135ms (Views: 83.9ms | ActiveRecord: 4.0ms)
2526
+
2527
+
2528
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:00:30 -0700
2529
+ Served asset /active_admin.css - 304 Not Modified (8ms)
2530
+
2531
+
2532
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:00:30 -0700
2533
+ Served asset /active_admin.js - 304 Not Modified (9ms)
2534
+
2535
+
2536
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:01:54 -0700
2537
+ Processing by Admin::PagesController#edit as HTML
2538
+ Parameters: {"id"=>"1"}
2539
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2540
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2541
+ Page Load (2.7ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2542
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (80.5ms)
2543
+ Completed 200 OK in 137ms (Views: 108.7ms | ActiveRecord: 3.8ms)
2544
+
2545
+
2546
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:01:54 -0700
2547
+ Served asset /active_admin.css - 304 Not Modified (6ms)
2548
+
2549
+
2550
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:01:54 -0700
2551
+ Served asset /active_admin.js - 304 Not Modified (34ms)
2552
+
2553
+
2554
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:02:25 -0700
2555
+ Processing by Admin::PagesController#edit as HTML
2556
+ Parameters: {"id"=>"1"}
2557
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2558
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2559
+ Page Load (2.7ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2560
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (97.9ms)
2561
+ Completed 200 OK in 133ms (Views: 104.3ms | ActiveRecord: 3.7ms)
2562
+
2563
+
2564
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:02:25 -0700
2565
+ Served asset /active_admin.css - 304 Not Modified (9ms)
2566
+
2567
+
2568
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:02:25 -0700
2569
+ Served asset /active_admin.js - 304 Not Modified (33ms)
2570
+
2571
+
2572
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:02:45 -0700
2573
+ Processing by Admin::PagesController#edit as HTML
2574
+ Parameters: {"id"=>"1"}
2575
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2576
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2577
+ Page Load (3.5ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2578
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (158.6ms)
2579
+ Completed 200 OK in 214ms (Views: 163.6ms | ActiveRecord: 4.5ms)
2580
+
2581
+
2582
+ Started GET "/assets/active_admin/editor.css?body=1" for 127.0.0.1 at 2012-05-09 15:02:46 -0700
2583
+ Served asset /active_admin/editor.css - 200 OK (8ms)
2584
+
2585
+
2586
+ Started GET "/assets/active_admin/editor/wysiwyg.css?body=1" for 127.0.0.1 at 2012-05-09 15:02:46 -0700
2587
+ Served asset /active_admin/editor/wysiwyg.css - 200 OK (3ms)
2588
+
2589
+
2590
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:02:46 -0700
2591
+ Served asset /active_admin.css - 304 Not Modified (6ms)
2592
+
2593
+
2594
+ Started GET "/assets/active_admin/editor.js" for 127.0.0.1 at 2012-05-09 15:02:46 -0700
2595
+ Served asset /active_admin/editor.js - 200 OK (22ms)
2596
+
2597
+
2598
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:02:46 -0700
2599
+ Served asset /active_admin.js - 304 Not Modified (11ms)
2600
+
2601
+
2602
+ Started GET "/assets/active_admin/editor/wysiwyg" for 127.0.0.1 at 2012-05-09 15:02:46 -0700
2603
+ Served asset /active_admin/editor/wysiwyg - 200 OK (3ms)
2604
+
2605
+
2606
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:05:10 -0700
2607
+ Processing by Admin::PagesController#edit as HTML
2608
+ Parameters: {"id"=>"1"}
2609
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2610
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2611
+ Page Load (26.4ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2612
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (102.7ms)
2613
+ Completed 200 OK in 162ms (Views: 85.0ms | ActiveRecord: 27.6ms)
2614
+
2615
+
2616
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:05:10 -0700
2617
+ Served asset /active_admin.css - 304 Not Modified (7ms)
2618
+
2619
+
2620
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:05:10 -0700
2621
+ Served asset /active_admin.js - 304 Not Modified (88ms)
2622
+
2623
+
2624
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:05:15 -0700
2625
+ Served asset /active_admin.js - 304 Not Modified (0ms)
2626
+
2627
+
2628
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:08:05 -0700
2629
+ Processing by Admin::PagesController#edit as HTML
2630
+ Parameters: {"id"=>"1"}
2631
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2632
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2633
+ Compiled active_admin.css (1452ms) (pid 29240)
2634
+ Page Load (2.8ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2635
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (1542.7ms)
2636
+ Completed 200 OK in 1602ms (Views: 1548.8ms | ActiveRecord: 3.9ms)
2637
+
2638
+
2639
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:08:06 -0700
2640
+ Served asset /active_admin.css - 200 OK (7ms)
2641
+
2642
+
2643
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:08:06 -0700
2644
+ Compiled active_admin.js (6ms) (pid 29240)
2645
+ Served asset /active_admin.js - 200 OK (47ms)
2646
+
2647
+
2648
+ Started GET "/assets/active_admin/editor/wysiwyg" for 127.0.0.1 at 2012-05-09 15:08:06 -0700
2649
+ Served asset /active_admin/editor/wysiwyg - 304 Not Modified (3ms)
2650
+
2651
+
2652
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:08:33 -0700
2653
+ Served asset /active_admin.js - 304 Not Modified (0ms)
2654
+
2655
+
2656
+ Started GET "/admin/pages/1/edit" for 127.0.0.1 at 2012-05-09 15:09:55 -0700
2657
+ Processing by Admin::PagesController#edit as HTML
2658
+ Parameters: {"id"=>"1"}
2659
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
2660
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", "1"]]
2661
+ Page Load (26.5ms) SELECT "pages".* FROM "pages" WHERE "pages"."id" = ? LIMIT 1 [["id", 1]]
2662
+ Rendered /Users/ejholmes/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/resource/edit.html.arb (101.8ms)
2663
+ Completed 200 OK in 160ms (Views: 83.9ms | ActiveRecord: 27.6ms)
2664
+
2665
+
2666
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2012-05-09 15:09:55 -0700
2667
+ Served asset /active_admin.css - 304 Not Modified (8ms)
2668
+
2669
+
2670
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:09:55 -0700
2671
+ Compiled active_admin/editor.js (34ms) (pid 29411)
2672
+ Compiled active_admin.js (3ms) (pid 29411)
2673
+ Served asset /active_admin.js - 200 OK (96ms)
2674
+
2675
+
2676
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-05-09 15:10:05 -0700
2677
+ Served asset /active_admin.js - 304 Not Modified (1ms)
@@ -0,0 +1,130 @@
1
+
2
+ .wysiwyg-font-size-smaller {
3
+ font-size: smaller;
4
+ }
5
+
6
+ .wysiwyg-font-size-larger {
7
+ font-size: larger;
8
+ }
9
+
10
+ .wysiwyg-font-size-xx-large {
11
+ font-size: xx-large;
12
+ }
13
+
14
+ .wysiwyg-font-size-x-large {
15
+ font-size: x-large;
16
+ }
17
+
18
+ .wysiwyg-font-size-large {
19
+ font-size: large;
20
+ }
21
+
22
+ .wysiwyg-font-size-medium {
23
+ font-size: medium;
24
+ }
25
+
26
+ .wysiwyg-font-size-small {
27
+ font-size: small;
28
+ }
29
+
30
+ .wysiwyg-font-size-x-small {
31
+ font-size: x-small;
32
+ }
33
+
34
+ .wysiwyg-font-size-xx-small {
35
+ font-size: xx-small;
36
+ }
37
+
38
+ .wysiwyg-color-black {
39
+ color: black;
40
+ }
41
+
42
+ .wysiwyg-color-silver {
43
+ color: silver;
44
+ }
45
+
46
+ .wysiwyg-color-gray {
47
+ color: gray;
48
+ }
49
+
50
+ .wysiwyg-color-white {
51
+ color: white;
52
+ }
53
+
54
+ .wysiwyg-color-maroon {
55
+ color: maroon;
56
+ }
57
+
58
+ .wysiwyg-color-red {
59
+ color: red;
60
+ }
61
+
62
+ .wysiwyg-color-purple {
63
+ color: purple;
64
+ }
65
+
66
+ .wysiwyg-color-fuchsia {
67
+ color: fuchsia;
68
+ }
69
+
70
+ .wysiwyg-color-green {
71
+ color: green;
72
+ }
73
+
74
+ .wysiwyg-color-lime {
75
+ color: lime;
76
+ }
77
+
78
+ .wysiwyg-color-olive {
79
+ color: olive;
80
+ }
81
+
82
+ .wysiwyg-color-yellow {
83
+ color: yellow;
84
+ }
85
+
86
+ .wysiwyg-color-navy {
87
+ color: navy;
88
+ }
89
+
90
+ .wysiwyg-color-blue {
91
+ color: blue;
92
+ }
93
+
94
+ .wysiwyg-color-teal {
95
+ color: teal;
96
+ }
97
+
98
+ .wysiwyg-color-aqua {
99
+ color: aqua;
100
+ }
101
+
102
+ .wysiwyg-text-align-right {
103
+ text-align: right;
104
+ }
105
+
106
+ .wysiwyg-text-align-center {
107
+ text-align: center;
108
+ }
109
+
110
+ .wysiwyg-text-align-left {
111
+ text-align: left;
112
+ }
113
+
114
+ .wysiwyg-float-left {
115
+ float: left;
116
+ margin: 0 8px 8px 0;
117
+ }
118
+
119
+ .wysiwyg-float-right {
120
+ float: right;
121
+ margin: 0 0 8px 8px;
122
+ }
123
+
124
+ .wysiwyg-clear-right {
125
+ clear: right;
126
+ }
127
+
128
+ .wysiwyg-clear-left {
129
+ clear: left;
130
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-01 00:00:00.000000000 Z
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70247710084020 !ruby/object:Gem::Requirement
16
+ requirement: &70324197678660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70247710084020
24
+ version_requirements: *70324197678660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: carrierwave
27
- requirement: &70247710082640 !ruby/object:Gem::Requirement
27
+ requirement: &70324197696660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70247710082640
35
+ version_requirements: *70324197696660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70247710081320 !ruby/object:Gem::Requirement
38
+ requirement: &70324197696200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70247710081320
46
+ version_requirements: *70324197696200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70247710098060 !ruby/object:Gem::Requirement
49
+ requirement: &70324197695780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70247710098060
57
+ version_requirements: *70324197695780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: activeadmin
60
- requirement: &70247710097080 !ruby/object:Gem::Requirement
60
+ requirement: &70324197695360 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70247710097080
68
+ version_requirements: *70324197695360
69
69
  description: Rich text editor for Active Admin using wysihtml5.
70
70
  email:
71
71
  - eric@ejholmes.net
@@ -76,13 +76,15 @@ files:
76
76
  - app/assets/images/active_admin/editor/icons.png
77
77
  - app/assets/javascripts/active_admin/editor/quicksave.js
78
78
  - app/assets/javascripts/active_admin/editor.js
79
- - app/assets/stylesheets/active_admin/editor/_wysiwyg.css.scss
79
+ - app/assets/stylesheets/active_admin/editor/wysiwyg.css
80
80
  - app/assets/stylesheets/active_admin/editor.css.scss
81
81
  - app/inputs/html_editor_input.rb
82
82
  - lib/active_admin/editor/rails/engine.rb
83
83
  - lib/active_admin/editor/version.rb
84
84
  - lib/active_admin/editor.rb
85
85
  - lib/active_admin_editor.rb
86
+ - lib/generators/active_admin/editor/editor_generator.rb
87
+ - lib/generators/active_admin/editor/templates/wysiwyg.css
86
88
  - lib/tasks/active_admin_editor_tasks.rake
87
89
  - vendor/assets/javascripts/active_admin/editor/wysihtml5/parser_rules.js
88
90
  - vendor/assets/javascripts/active_admin/editor/wysihtml5.min.js
@@ -140,6 +142,7 @@ files:
140
142
  - test/dummy/public/404.html
141
143
  - test/dummy/public/422.html
142
144
  - test/dummy/public/500.html
145
+ - test/dummy/public/assets/wysiwyg.css
143
146
  - test/dummy/public/favicon.ico
144
147
  - test/dummy/Rakefile
145
148
  - test/dummy/README.rdoc
@@ -193,6 +196,7 @@ files:
193
196
  - test/dummy/tmp/cache/assets/E2E/A70/sprockets%2F74bbb7a81546bbbd8dd7cdf128fba84c
194
197
  - test/dummy/tmp/cache/assets/E8D/A20/sprockets%2F0d9efcac5ff6e3dc1d79ad04dd2e60fc
195
198
  - test/dummy/tmp/cache/sass/2c5767f8b54c235968e95862ab983eb40c635a92/active_admin.css.scssc
199
+ - test/dummy/tmp/cache/sass/52b571e0119322d02c8cc7bb4b050bea8f5bcd4d/wysiwyg.cssc
196
200
  - test/dummy/tmp/cache/sass/673f56dad1dad173d9d03084181896c36c0dbf78/_animation.scssc
197
201
  - test/dummy/tmp/cache/sass/673f56dad1dad173d9d03084181896c36c0dbf78/_appearance.scssc
198
202
  - test/dummy/tmp/cache/sass/673f56dad1dad173d9d03084181896c36c0dbf78/_background-image.scssc
@@ -339,6 +343,7 @@ test_files:
339
343
  - test/dummy/public/404.html
340
344
  - test/dummy/public/422.html
341
345
  - test/dummy/public/500.html
346
+ - test/dummy/public/assets/wysiwyg.css
342
347
  - test/dummy/public/favicon.ico
343
348
  - test/dummy/Rakefile
344
349
  - test/dummy/README.rdoc
@@ -392,6 +397,7 @@ test_files:
392
397
  - test/dummy/tmp/cache/assets/E2E/A70/sprockets%2F74bbb7a81546bbbd8dd7cdf128fba84c
393
398
  - test/dummy/tmp/cache/assets/E8D/A20/sprockets%2F0d9efcac5ff6e3dc1d79ad04dd2e60fc
394
399
  - test/dummy/tmp/cache/sass/2c5767f8b54c235968e95862ab983eb40c635a92/active_admin.css.scssc
400
+ - test/dummy/tmp/cache/sass/52b571e0119322d02c8cc7bb4b050bea8f5bcd4d/wysiwyg.cssc
395
401
  - test/dummy/tmp/cache/sass/673f56dad1dad173d9d03084181896c36c0dbf78/_animation.scssc
396
402
  - test/dummy/tmp/cache/sass/673f56dad1dad173d9d03084181896c36c0dbf78/_appearance.scssc
397
403
  - test/dummy/tmp/cache/sass/673f56dad1dad173d9d03084181896c36c0dbf78/_background-image.scssc