active_admin_editor 1.0.6 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. data/README.md +38 -3
  2. data/app/assets/javascripts/active_admin/editor.js +0 -1
  3. data/app/assets/javascripts/active_admin/editor/config.js.erb +1 -0
  4. data/app/assets/javascripts/active_admin/editor/templates/toolbar.jst.ejs +2 -0
  5. data/lib/active_admin/editor.rb +1 -0
  6. data/lib/active_admin/editor/config.rb +4 -0
  7. data/lib/active_admin/editor/parser_rules.rb +550 -0
  8. data/lib/active_admin/editor/version.rb +1 -1
  9. data/spec/dummy/app/admin/dashboard.rb +33 -0
  10. data/spec/dummy/app/admin/pages.rb +1 -1
  11. data/spec/dummy/config/initializers/active_admin.rb +3 -0
  12. data/spec/dummy/config/initializers/devise.rb +0 -7
  13. data/spec/dummy/db/development.sqlite3 +0 -0
  14. data/spec/dummy/log/development.log +1631 -0
  15. data/spec/dummy/log/test.log +1162 -0
  16. data/spec/dummy/tmp/cache/assets/C17/7E0/sprockets%2F10282a65710402dd907a870692e08e54 +0 -0
  17. data/spec/dummy/tmp/cache/assets/C4C/360/sprockets%2F72117b2727aba75092e90773336f414e +0 -0
  18. data/spec/dummy/tmp/cache/assets/C55/FB0/sprockets%2F12d25fa97a62a49735017b39155987e0 +0 -0
  19. data/spec/dummy/tmp/cache/assets/C62/EB0/sprockets%2F11e66b9d26e35c6644e690739d767108 +0 -0
  20. data/spec/dummy/tmp/cache/assets/C7A/500/sprockets%2F1f1d4d009502fd535845b5459a83f340 +0 -0
  21. data/spec/dummy/tmp/cache/assets/C7E/A00/sprockets%2F792b6f07a3b1f6e7f7020544633d6163 +0 -0
  22. data/spec/dummy/tmp/cache/assets/C81/E20/sprockets%2F0b927ca32a706e522c5958878d7145a1 +0 -0
  23. data/spec/dummy/tmp/cache/assets/C8D/BD0/sprockets%2Fb7f30a05e9483519378748810c6b57ec +0 -0
  24. data/spec/dummy/tmp/cache/assets/C8F/100/sprockets%2F43f25b46ba5b45b6886d5672d5163797 +0 -0
  25. data/spec/dummy/tmp/cache/assets/C9D/E70/sprockets%2F4a5d05f556354e305a5184b065c62ac0 +0 -0
  26. data/spec/dummy/tmp/cache/assets/C9F/170/sprockets%2F5d65e155aad3374ae12771242be22580 +0 -0
  27. data/spec/dummy/tmp/cache/assets/CB0/480/sprockets%2F770d002c3b3fb7a27d7862f788702a91 +0 -0
  28. data/spec/dummy/tmp/cache/assets/CB2/5A0/sprockets%2F4e7c202a6f2335881a86d6fc17329d08 +0 -0
  29. data/spec/dummy/tmp/cache/assets/CB7/160/sprockets%2F9b2ab958728324ca63e77600c53e934e +0 -0
  30. data/spec/dummy/tmp/cache/assets/CC3/E30/sprockets%2F0911249a810f39f82185eef9e0959a9d +0 -0
  31. data/spec/dummy/tmp/cache/assets/CC7/830/sprockets%2F10abd9e76d16838868b873632597e4eb +0 -0
  32. data/spec/dummy/tmp/cache/assets/CCB/120/sprockets%2Fb9500896df13a12225b836bda0b7320e +0 -0
  33. data/spec/dummy/tmp/cache/assets/CCD/EC0/sprockets%2F9694fc1ad28709775e7a7f82369ed721 +0 -0
  34. data/spec/dummy/tmp/cache/assets/CD1/ED0/sprockets%2F242b4a53a4a4446f07c4a0e04e77847b +0 -0
  35. data/spec/dummy/tmp/cache/assets/CD6/810/sprockets%2F901ca591b49d076903b08128b26cbdb7 +0 -0
  36. data/spec/dummy/tmp/cache/assets/CDB/040/sprockets%2Fc732474e67003a4eb840eb44c5ca9385 +0 -0
  37. data/spec/dummy/tmp/cache/assets/CF4/BB0/sprockets%2Fd2509ee195cff97ad94e74257853b064 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D00/490/sprockets%2F60ff8fc770f770b47a563e8cd4696994 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D03/CD0/sprockets%2Ff025a9441aa20929b3175d8d6ab3c18e +0 -0
  40. data/spec/dummy/tmp/cache/assets/D2E/800/sprockets%2F4f418afd1d357065fa7bb580041a28aa +0 -0
  41. data/spec/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db +0 -0
  42. data/spec/dummy/tmp/cache/assets/D39/DF0/sprockets%2F1351e4754ff46cdca7cc05f72a1f1780 +0 -0
  43. data/spec/dummy/tmp/cache/assets/D3A/B20/sprockets%2F536a8c3e16caff754bd9a9216f51e101 +0 -0
  44. data/spec/dummy/tmp/cache/assets/D3D/E80/sprockets%2F4bcb20ff58693fa41b8729a79400dcb3 +0 -0
  45. data/spec/dummy/tmp/cache/assets/D41/2F0/sprockets%2Fe5d704d8dc364cb7e3e822bb4e253916 +0 -0
  46. data/spec/dummy/tmp/cache/assets/D46/3F0/sprockets%2F45e4032f9ee82213f32b98dae1e859cc +0 -0
  47. data/spec/dummy/tmp/cache/assets/D48/170/sprockets%2Fbc5e81bc580d8c262d3e9d7e984051b7 +0 -0
  48. data/spec/dummy/tmp/cache/assets/D48/640/sprockets%2F9f4f18d910b678b1d0777e04cdaf6f24 +0 -0
  49. data/spec/dummy/tmp/cache/assets/D4E/8C0/sprockets%2Ffa56f431b696af04ff09e2d98e286e32 +0 -0
  50. data/spec/dummy/tmp/cache/assets/D53/0B0/sprockets%2F4b2b0082dbfd4ae3f0af30c22612865c +0 -0
  51. data/spec/dummy/tmp/cache/assets/D59/D70/sprockets%2Fed9f0de1b65ae8d7ef89087c83728461 +0 -0
  52. data/spec/dummy/tmp/cache/assets/D5F/930/sprockets%2F0611d8badac9f948b70aaa227109bb29 +0 -0
  53. data/spec/dummy/tmp/cache/assets/D6D/FA0/sprockets%2Fa1bbb309c8c629a282e3f4f9ad3d4961 +0 -0
  54. data/spec/dummy/tmp/cache/assets/D72/9D0/sprockets%2Fdafb56b16522a94a679e5e35ff1f8b12 +0 -0
  55. data/spec/dummy/tmp/cache/assets/D76/730/sprockets%2Fd1699d0cbcfe965c5c51a95e31580df2 +0 -0
  56. data/spec/dummy/tmp/cache/assets/D79/890/sprockets%2F48245259266fbda2cbb676f6f8a91dae +0 -0
  57. data/spec/dummy/tmp/cache/assets/D93/4C0/sprockets%2F857ecd2092cee11f740b3cf2e373ad2a +0 -0
  58. data/spec/dummy/tmp/cache/assets/DA7/CD0/sprockets%2F63efd46c5c9b462b90a52bdfbf25b779 +0 -0
  59. data/spec/dummy/tmp/cache/assets/DBA/6B0/sprockets%2F4acc06bba5e909e9aab90dab06b19503 +0 -0
  60. data/spec/dummy/tmp/cache/assets/DBF/0B0/sprockets%2F1aacf4a74e2d4d026ee99e320d5b03ec +0 -0
  61. data/spec/dummy/tmp/cache/assets/DC5/910/sprockets%2F9afa316098cef0a0bdd49b93caa057f2 +0 -0
  62. data/spec/dummy/tmp/cache/assets/DCE/D40/sprockets%2F3c3feb2b696842feaff8cf3264c103ae +0 -0
  63. data/spec/dummy/tmp/cache/assets/DD5/C40/sprockets%2F7c17ce947d82be9ccfd0af20ea78930c +0 -0
  64. data/spec/dummy/tmp/cache/assets/DDE/420/sprockets%2Ffb8b186d5bf0307f86f65fc787d2adeb +0 -0
  65. data/spec/dummy/tmp/cache/assets/E0A/D60/sprockets%2Fc7e9f2f9555aafbec9bea658c1d6a047 +0 -0
  66. data/spec/dummy/tmp/cache/assets/E0D/340/sprockets%2Ffd1a919b3fcbf5838bfd543d2ced9f47 +0 -0
  67. data/spec/dummy/tmp/cache/assets/E2E/CD0/sprockets%2Fb7a4e9baedef6f6e60234cb94cd0d83a +0 -0
  68. data/spec/spec_helper.rb +0 -3
  69. metadata +7 -97
  70. data/app/assets/javascripts/active_admin/editor/parser_rules.js +0 -560
  71. data/spec/dummy/db/test.sqlite3 +0 -0
  72. data/spec/dummy/tmp/cache/assets/C94/D20/sprockets%2F3397997b6066dfc6995b0eaa23913907 +0 -0
  73. data/spec/dummy/tmp/cache/assets/C9F/4B0/sprockets%2Fad8482516a116a14c2049944dc5800cc +0 -0
  74. data/spec/dummy/tmp/cache/assets/CAB/5D0/sprockets%2Fae6053e1f832b219519600e978f40b1e +0 -0
  75. data/spec/dummy/tmp/cache/assets/CB7/940/sprockets%2F6d7c27e22691733a4db6968177c22d3c +0 -0
  76. data/spec/dummy/tmp/cache/assets/CCC/BA0/sprockets%2F0e0e79da1b5b3033c89cfa8211306074 +0 -0
  77. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  78. data/spec/dummy/tmp/cache/assets/CD9/350/sprockets%2F32028818c2c71992ada5fba5846a570a +0 -0
  79. data/spec/dummy/tmp/cache/assets/CDA/710/sprockets%2F62127bc83fb039a235ab75167b866cb5 +0 -0
  80. data/spec/dummy/tmp/cache/assets/CDF/420/sprockets%2F0be8c2291b745181fd56b7c4770a7d08 +0 -0
  81. data/spec/dummy/tmp/cache/assets/CE0/970/sprockets%2Fc9f200ae739b9f7b288228ac18346c20 +0 -0
  82. data/spec/dummy/tmp/cache/assets/CEE/C80/sprockets%2F18515cf2523bdc58f32fe536665ff657 +0 -0
  83. data/spec/dummy/tmp/cache/assets/CF2/380/sprockets%2Fb7f95440782366509acb6ddd5f6938a5 +0 -0
  84. data/spec/dummy/tmp/cache/assets/CF4/AE0/sprockets%2F764571ead1c1995d83a95d9269da457c +0 -0
  85. data/spec/dummy/tmp/cache/assets/CF7/570/sprockets%2F172af7030e61fae1056ee122c8f0a533 +0 -0
  86. data/spec/dummy/tmp/cache/assets/CF8/0B0/sprockets%2F1fc42b20103cc98d433f230c9e84b10d +0 -0
  87. data/spec/dummy/tmp/cache/assets/D08/C10/sprockets%2F1905d76e0c7ba5c68fad2376d44d1105 +0 -0
  88. data/spec/dummy/tmp/cache/assets/D10/420/sprockets%2Fa4dc298af1d087c33871f077b0f16f17 +0 -0
  89. data/spec/dummy/tmp/cache/assets/D23/ED0/sprockets%2F77308cdf3281f5ef8b5d188bf8e74036 +0 -0
  90. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  91. data/spec/dummy/tmp/cache/assets/D34/C90/sprockets%2Fda1e05e39683311b61cb095c6c2fdd63 +0 -0
  92. data/spec/dummy/tmp/cache/assets/D3C/DF0/sprockets%2Ff432a7e254a9b296d3dfa02ce86903a5 +0 -0
  93. data/spec/dummy/tmp/cache/assets/D3E/E70/sprockets%2F038e0e6d5f82f9562663ac2611bbedd4 +0 -0
  94. data/spec/dummy/tmp/cache/assets/D44/C10/sprockets%2F2266669d5531ceb6da3418dd26e7d2df +0 -0
  95. data/spec/dummy/tmp/cache/assets/D49/DA0/sprockets%2Fff38d1c9e2d93d45642fed29d3e30372 +0 -0
  96. data/spec/dummy/tmp/cache/assets/D5A/070/sprockets%2Fd8818fa8a8ef79eab35083ed7747366b +0 -0
  97. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  98. data/spec/dummy/tmp/cache/assets/D5D/520/sprockets%2Fbee57aef677100ff765e815f994b689b +0 -0
  99. data/spec/dummy/tmp/cache/assets/D60/5A0/sprockets%2Fa0350de718dad460b2072ddaee54d981 +0 -0
  100. data/spec/dummy/tmp/cache/assets/D76/DA0/sprockets%2F30e9a50c62e4c0e692f6ecd996ea319c +0 -0
  101. data/spec/dummy/tmp/cache/assets/D77/460/sprockets%2Fe55bb3a682bfa8d973ed7da8075f0760 +0 -0
  102. data/spec/dummy/tmp/cache/assets/D7A/060/sprockets%2F77ca5dbe828fbf2ffd35b5a246726483 +0 -0
  103. data/spec/dummy/tmp/cache/assets/D7C/C30/sprockets%2Ffff7e9e07a287afd2545a319a51e8c74 +0 -0
  104. data/spec/dummy/tmp/cache/assets/D84/5F0/sprockets%2F00b3982f58c6eccfe3eee6487b52f758 +0 -0
  105. data/spec/dummy/tmp/cache/assets/D8B/B30/sprockets%2F4dba4514d3a98322b21d72c8eab42cdd +0 -0
  106. data/spec/dummy/tmp/cache/assets/D97/B00/sprockets%2F6320e6270ecefff1d38a7e2ac651c45b +0 -0
  107. data/spec/dummy/tmp/cache/assets/D9E/100/sprockets%2Fa9bd0212de7fa8673e1b643ffb72e4a8 +0 -0
  108. data/spec/dummy/tmp/cache/assets/DA3/CB0/sprockets%2Feed56563f89ef40af5dc3446faa01a75 +0 -0
  109. data/spec/dummy/tmp/cache/assets/DB1/170/sprockets%2F39ccab8b246a72889ae697c84df5a4ce +0 -0
  110. data/spec/dummy/tmp/cache/assets/DC4/410/sprockets%2Fd83e593eb29628c1ce0cda1bb52bd3b6 +0 -0
  111. data/spec/dummy/tmp/cache/assets/DCF/600/sprockets%2F8da546237ce6e75da190e3b092eabeef +0 -0
  112. data/spec/dummy/tmp/cache/assets/DDC/320/sprockets%2F5da6cc4cce8f2187c3c329fdd752f69c +0 -0
  113. data/spec/dummy/tmp/cache/assets/DEC/8B0/sprockets%2F5cccef02565cd21f12b277c63abbfe1c +0 -0
  114. data/spec/dummy/tmp/cache/assets/E02/970/sprockets%2Fa5d6fd3fd2a6d81fbccd14cc929f8145 +0 -0
  115. data/spec/dummy/tmp/cache/assets/E3B/4F0/sprockets%2Fe52b61cae0b3e9ecd57a884f7eefe85b +0 -0
  116. data/spec/dummy/tmp/cache/assets/E54/600/sprockets%2Fec46dd83126fcd2afef6ac23c2c6cc1e +0 -0
@@ -3,12 +3,9 @@ require File.expand_path('../dummy/config/environment.rb', __FILE__)
3
3
  require 'rspec/rails'
4
4
  require 'rspec/autorun'
5
5
  require 'factory_girl_rails'
6
- require 'capybara/poltergeist'
7
6
  require 'faker'
8
7
  require 'database_cleaner'
9
8
 
10
- Capybara.javascript_driver = :poltergeist
11
-
12
9
  Rails.backtrace_cleaner.remove_silencers!
13
10
 
14
11
  # Load support files
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: 1.0.6
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-11 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -277,7 +277,6 @@ files:
277
277
  - app/assets/images/active_admin/editor/loader.gif
278
278
  - app/assets/javascripts/active_admin/editor/config.js.erb
279
279
  - app/assets/javascripts/active_admin/editor/editor.js
280
- - app/assets/javascripts/active_admin/editor/parser_rules.js
281
280
  - app/assets/javascripts/active_admin/editor/templates/toolbar.jst.ejs
282
281
  - app/assets/javascripts/active_admin/editor/templates/uploader.jst.ejs
283
282
  - app/assets/javascripts/active_admin/editor.js
@@ -286,6 +285,7 @@ files:
286
285
  - app/inputs/html_editor_input.rb
287
286
  - lib/active_admin/editor/config.rb
288
287
  - lib/active_admin/editor/engine.rb
288
+ - lib/active_admin/editor/parser_rules.rb
289
289
  - lib/active_admin/editor/policy.rb
290
290
  - lib/active_admin/editor/version.rb
291
291
  - lib/active_admin/editor.rb
@@ -296,6 +296,7 @@ files:
296
296
  - MIT-LICENSE
297
297
  - Rakefile
298
298
  - README.md
299
+ - spec/dummy/app/admin/dashboard.rb
299
300
  - spec/dummy/app/admin/pages.rb
300
301
  - spec/dummy/app/assets/javascripts/active_admin.js
301
302
  - spec/dummy/app/assets/javascripts/application.js
@@ -332,7 +333,6 @@ files:
332
333
  - spec/dummy/db/migrate/20121224200148_devise_create_admin_users.rb
333
334
  - spec/dummy/db/migrate/20121224200305_create_pages.rb
334
335
  - spec/dummy/db/schema.rb
335
- - spec/dummy/db/test.sqlite3
336
336
  - spec/dummy/log/development.log
337
337
  - spec/dummy/log/test.log
338
338
  - spec/dummy/public/404.html
@@ -351,94 +351,49 @@ files:
351
351
  - spec/dummy/tmp/cache/assets/C81/E20/sprockets%2F0b927ca32a706e522c5958878d7145a1
352
352
  - spec/dummy/tmp/cache/assets/C8D/BD0/sprockets%2Fb7f30a05e9483519378748810c6b57ec
353
353
  - spec/dummy/tmp/cache/assets/C8F/100/sprockets%2F43f25b46ba5b45b6886d5672d5163797
354
- - spec/dummy/tmp/cache/assets/C94/D20/sprockets%2F3397997b6066dfc6995b0eaa23913907
355
354
  - spec/dummy/tmp/cache/assets/C9D/E70/sprockets%2F4a5d05f556354e305a5184b065c62ac0
356
355
  - spec/dummy/tmp/cache/assets/C9F/170/sprockets%2F5d65e155aad3374ae12771242be22580
357
- - spec/dummy/tmp/cache/assets/C9F/4B0/sprockets%2Fad8482516a116a14c2049944dc5800cc
358
- - spec/dummy/tmp/cache/assets/CAB/5D0/sprockets%2Fae6053e1f832b219519600e978f40b1e
359
356
  - spec/dummy/tmp/cache/assets/CB0/480/sprockets%2F770d002c3b3fb7a27d7862f788702a91
360
357
  - spec/dummy/tmp/cache/assets/CB2/5A0/sprockets%2F4e7c202a6f2335881a86d6fc17329d08
361
358
  - spec/dummy/tmp/cache/assets/CB7/160/sprockets%2F9b2ab958728324ca63e77600c53e934e
362
- - spec/dummy/tmp/cache/assets/CB7/940/sprockets%2F6d7c27e22691733a4db6968177c22d3c
363
359
  - spec/dummy/tmp/cache/assets/CC3/E30/sprockets%2F0911249a810f39f82185eef9e0959a9d
364
360
  - spec/dummy/tmp/cache/assets/CC7/830/sprockets%2F10abd9e76d16838868b873632597e4eb
365
361
  - spec/dummy/tmp/cache/assets/CCB/120/sprockets%2Fb9500896df13a12225b836bda0b7320e
366
- - spec/dummy/tmp/cache/assets/CCC/BA0/sprockets%2F0e0e79da1b5b3033c89cfa8211306074
367
362
  - spec/dummy/tmp/cache/assets/CCD/EC0/sprockets%2F9694fc1ad28709775e7a7f82369ed721
368
363
  - spec/dummy/tmp/cache/assets/CD1/ED0/sprockets%2F242b4a53a4a4446f07c4a0e04e77847b
369
364
  - spec/dummy/tmp/cache/assets/CD6/810/sprockets%2F901ca591b49d076903b08128b26cbdb7
370
- - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
371
- - spec/dummy/tmp/cache/assets/CD9/350/sprockets%2F32028818c2c71992ada5fba5846a570a
372
- - spec/dummy/tmp/cache/assets/CDA/710/sprockets%2F62127bc83fb039a235ab75167b866cb5
373
365
  - spec/dummy/tmp/cache/assets/CDB/040/sprockets%2Fc732474e67003a4eb840eb44c5ca9385
374
- - spec/dummy/tmp/cache/assets/CDF/420/sprockets%2F0be8c2291b745181fd56b7c4770a7d08
375
- - spec/dummy/tmp/cache/assets/CE0/970/sprockets%2Fc9f200ae739b9f7b288228ac18346c20
376
- - spec/dummy/tmp/cache/assets/CEE/C80/sprockets%2F18515cf2523bdc58f32fe536665ff657
377
- - spec/dummy/tmp/cache/assets/CF2/380/sprockets%2Fb7f95440782366509acb6ddd5f6938a5
378
- - spec/dummy/tmp/cache/assets/CF4/AE0/sprockets%2F764571ead1c1995d83a95d9269da457c
379
366
  - spec/dummy/tmp/cache/assets/CF4/BB0/sprockets%2Fd2509ee195cff97ad94e74257853b064
380
- - spec/dummy/tmp/cache/assets/CF7/570/sprockets%2F172af7030e61fae1056ee122c8f0a533
381
- - spec/dummy/tmp/cache/assets/CF8/0B0/sprockets%2F1fc42b20103cc98d433f230c9e84b10d
382
367
  - spec/dummy/tmp/cache/assets/D00/490/sprockets%2F60ff8fc770f770b47a563e8cd4696994
383
368
  - spec/dummy/tmp/cache/assets/D03/CD0/sprockets%2Ff025a9441aa20929b3175d8d6ab3c18e
384
- - spec/dummy/tmp/cache/assets/D08/C10/sprockets%2F1905d76e0c7ba5c68fad2376d44d1105
385
- - spec/dummy/tmp/cache/assets/D10/420/sprockets%2Fa4dc298af1d087c33871f077b0f16f17
386
- - spec/dummy/tmp/cache/assets/D23/ED0/sprockets%2F77308cdf3281f5ef8b5d188bf8e74036
387
369
  - spec/dummy/tmp/cache/assets/D2E/800/sprockets%2F4f418afd1d357065fa7bb580041a28aa
388
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
389
- - spec/dummy/tmp/cache/assets/D34/C90/sprockets%2Fda1e05e39683311b61cb095c6c2fdd63
390
370
  - spec/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db
391
371
  - spec/dummy/tmp/cache/assets/D39/DF0/sprockets%2F1351e4754ff46cdca7cc05f72a1f1780
392
372
  - spec/dummy/tmp/cache/assets/D3A/B20/sprockets%2F536a8c3e16caff754bd9a9216f51e101
393
- - spec/dummy/tmp/cache/assets/D3C/DF0/sprockets%2Ff432a7e254a9b296d3dfa02ce86903a5
394
373
  - spec/dummy/tmp/cache/assets/D3D/E80/sprockets%2F4bcb20ff58693fa41b8729a79400dcb3
395
- - spec/dummy/tmp/cache/assets/D3E/E70/sprockets%2F038e0e6d5f82f9562663ac2611bbedd4
396
374
  - spec/dummy/tmp/cache/assets/D41/2F0/sprockets%2Fe5d704d8dc364cb7e3e822bb4e253916
397
- - spec/dummy/tmp/cache/assets/D44/C10/sprockets%2F2266669d5531ceb6da3418dd26e7d2df
398
375
  - spec/dummy/tmp/cache/assets/D46/3F0/sprockets%2F45e4032f9ee82213f32b98dae1e859cc
399
376
  - spec/dummy/tmp/cache/assets/D48/170/sprockets%2Fbc5e81bc580d8c262d3e9d7e984051b7
400
377
  - spec/dummy/tmp/cache/assets/D48/640/sprockets%2F9f4f18d910b678b1d0777e04cdaf6f24
401
- - spec/dummy/tmp/cache/assets/D49/DA0/sprockets%2Fff38d1c9e2d93d45642fed29d3e30372
402
378
  - spec/dummy/tmp/cache/assets/D4E/8C0/sprockets%2Ffa56f431b696af04ff09e2d98e286e32
403
379
  - spec/dummy/tmp/cache/assets/D53/0B0/sprockets%2F4b2b0082dbfd4ae3f0af30c22612865c
404
380
  - spec/dummy/tmp/cache/assets/D59/D70/sprockets%2Fed9f0de1b65ae8d7ef89087c83728461
405
- - spec/dummy/tmp/cache/assets/D5A/070/sprockets%2Fd8818fa8a8ef79eab35083ed7747366b
406
- - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
407
- - spec/dummy/tmp/cache/assets/D5D/520/sprockets%2Fbee57aef677100ff765e815f994b689b
408
381
  - spec/dummy/tmp/cache/assets/D5F/930/sprockets%2F0611d8badac9f948b70aaa227109bb29
409
- - spec/dummy/tmp/cache/assets/D60/5A0/sprockets%2Fa0350de718dad460b2072ddaee54d981
410
382
  - spec/dummy/tmp/cache/assets/D6D/FA0/sprockets%2Fa1bbb309c8c629a282e3f4f9ad3d4961
411
383
  - spec/dummy/tmp/cache/assets/D72/9D0/sprockets%2Fdafb56b16522a94a679e5e35ff1f8b12
412
384
  - spec/dummy/tmp/cache/assets/D76/730/sprockets%2Fd1699d0cbcfe965c5c51a95e31580df2
413
- - spec/dummy/tmp/cache/assets/D76/DA0/sprockets%2F30e9a50c62e4c0e692f6ecd996ea319c
414
- - spec/dummy/tmp/cache/assets/D77/460/sprockets%2Fe55bb3a682bfa8d973ed7da8075f0760
415
385
  - spec/dummy/tmp/cache/assets/D79/890/sprockets%2F48245259266fbda2cbb676f6f8a91dae
416
- - spec/dummy/tmp/cache/assets/D7A/060/sprockets%2F77ca5dbe828fbf2ffd35b5a246726483
417
- - spec/dummy/tmp/cache/assets/D7C/C30/sprockets%2Ffff7e9e07a287afd2545a319a51e8c74
418
- - spec/dummy/tmp/cache/assets/D84/5F0/sprockets%2F00b3982f58c6eccfe3eee6487b52f758
419
- - spec/dummy/tmp/cache/assets/D8B/B30/sprockets%2F4dba4514d3a98322b21d72c8eab42cdd
420
386
  - spec/dummy/tmp/cache/assets/D93/4C0/sprockets%2F857ecd2092cee11f740b3cf2e373ad2a
421
- - spec/dummy/tmp/cache/assets/D97/B00/sprockets%2F6320e6270ecefff1d38a7e2ac651c45b
422
- - spec/dummy/tmp/cache/assets/D9E/100/sprockets%2Fa9bd0212de7fa8673e1b643ffb72e4a8
423
- - spec/dummy/tmp/cache/assets/DA3/CB0/sprockets%2Feed56563f89ef40af5dc3446faa01a75
424
387
  - spec/dummy/tmp/cache/assets/DA7/CD0/sprockets%2F63efd46c5c9b462b90a52bdfbf25b779
425
- - spec/dummy/tmp/cache/assets/DB1/170/sprockets%2F39ccab8b246a72889ae697c84df5a4ce
426
388
  - spec/dummy/tmp/cache/assets/DBA/6B0/sprockets%2F4acc06bba5e909e9aab90dab06b19503
427
389
  - spec/dummy/tmp/cache/assets/DBF/0B0/sprockets%2F1aacf4a74e2d4d026ee99e320d5b03ec
428
- - spec/dummy/tmp/cache/assets/DC4/410/sprockets%2Fd83e593eb29628c1ce0cda1bb52bd3b6
429
390
  - spec/dummy/tmp/cache/assets/DC5/910/sprockets%2F9afa316098cef0a0bdd49b93caa057f2
430
391
  - spec/dummy/tmp/cache/assets/DCE/D40/sprockets%2F3c3feb2b696842feaff8cf3264c103ae
431
- - spec/dummy/tmp/cache/assets/DCF/600/sprockets%2F8da546237ce6e75da190e3b092eabeef
432
392
  - spec/dummy/tmp/cache/assets/DD5/C40/sprockets%2F7c17ce947d82be9ccfd0af20ea78930c
433
- - spec/dummy/tmp/cache/assets/DDC/320/sprockets%2F5da6cc4cce8f2187c3c329fdd752f69c
434
393
  - spec/dummy/tmp/cache/assets/DDE/420/sprockets%2Ffb8b186d5bf0307f86f65fc787d2adeb
435
- - spec/dummy/tmp/cache/assets/DEC/8B0/sprockets%2F5cccef02565cd21f12b277c63abbfe1c
436
- - spec/dummy/tmp/cache/assets/E02/970/sprockets%2Fa5d6fd3fd2a6d81fbccd14cc929f8145
437
394
  - spec/dummy/tmp/cache/assets/E0A/D60/sprockets%2Fc7e9f2f9555aafbec9bea658c1d6a047
438
395
  - spec/dummy/tmp/cache/assets/E0D/340/sprockets%2Ffd1a919b3fcbf5838bfd543d2ced9f47
439
396
  - spec/dummy/tmp/cache/assets/E2E/CD0/sprockets%2Fb7a4e9baedef6f6e60234cb94cd0d83a
440
- - spec/dummy/tmp/cache/assets/E3B/4F0/sprockets%2Fe52b61cae0b3e9ecd57a884f7eefe85b
441
- - spec/dummy/tmp/cache/assets/E54/600/sprockets%2Fec46dd83126fcd2afef6ac23c2c6cc1e
442
397
  - spec/dummy/tmp/cache/sass/0b728c6412c3ae2714d00cd8348a3fb5087889d5/_base.css.scssc
443
398
  - spec/dummy/tmp/cache/sass/0b728c6412c3ae2714d00cd8348a3fb5087889d5/_forms.css.scssc
444
399
  - spec/dummy/tmp/cache/sass/0b728c6412c3ae2714d00cd8348a3fb5087889d5/_header.css.scssc
@@ -546,7 +501,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
546
501
  version: '0'
547
502
  segments:
548
503
  - 0
549
- hash: 1756098660650636128
504
+ hash: 3199613305810419671
550
505
  required_rubygems_version: !ruby/object:Gem::Requirement
551
506
  none: false
552
507
  requirements:
@@ -555,7 +510,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
555
510
  version: '0'
556
511
  segments:
557
512
  - 0
558
- hash: 1756098660650636128
513
+ hash: 3199613305810419671
559
514
  requirements: []
560
515
  rubyforge_project:
561
516
  rubygems_version: 1.8.23
@@ -563,6 +518,7 @@ signing_key:
563
518
  specification_version: 3
564
519
  summary: Rich text editor for Active Admin using wysihtml5.
565
520
  test_files:
521
+ - spec/dummy/app/admin/dashboard.rb
566
522
  - spec/dummy/app/admin/pages.rb
567
523
  - spec/dummy/app/assets/javascripts/active_admin.js
568
524
  - spec/dummy/app/assets/javascripts/application.js
@@ -599,7 +555,6 @@ test_files:
599
555
  - spec/dummy/db/migrate/20121224200148_devise_create_admin_users.rb
600
556
  - spec/dummy/db/migrate/20121224200305_create_pages.rb
601
557
  - spec/dummy/db/schema.rb
602
- - spec/dummy/db/test.sqlite3
603
558
  - spec/dummy/log/development.log
604
559
  - spec/dummy/log/test.log
605
560
  - spec/dummy/public/404.html
@@ -618,94 +573,49 @@ test_files:
618
573
  - spec/dummy/tmp/cache/assets/C81/E20/sprockets%2F0b927ca32a706e522c5958878d7145a1
619
574
  - spec/dummy/tmp/cache/assets/C8D/BD0/sprockets%2Fb7f30a05e9483519378748810c6b57ec
620
575
  - spec/dummy/tmp/cache/assets/C8F/100/sprockets%2F43f25b46ba5b45b6886d5672d5163797
621
- - spec/dummy/tmp/cache/assets/C94/D20/sprockets%2F3397997b6066dfc6995b0eaa23913907
622
576
  - spec/dummy/tmp/cache/assets/C9D/E70/sprockets%2F4a5d05f556354e305a5184b065c62ac0
623
577
  - spec/dummy/tmp/cache/assets/C9F/170/sprockets%2F5d65e155aad3374ae12771242be22580
624
- - spec/dummy/tmp/cache/assets/C9F/4B0/sprockets%2Fad8482516a116a14c2049944dc5800cc
625
- - spec/dummy/tmp/cache/assets/CAB/5D0/sprockets%2Fae6053e1f832b219519600e978f40b1e
626
578
  - spec/dummy/tmp/cache/assets/CB0/480/sprockets%2F770d002c3b3fb7a27d7862f788702a91
627
579
  - spec/dummy/tmp/cache/assets/CB2/5A0/sprockets%2F4e7c202a6f2335881a86d6fc17329d08
628
580
  - spec/dummy/tmp/cache/assets/CB7/160/sprockets%2F9b2ab958728324ca63e77600c53e934e
629
- - spec/dummy/tmp/cache/assets/CB7/940/sprockets%2F6d7c27e22691733a4db6968177c22d3c
630
581
  - spec/dummy/tmp/cache/assets/CC3/E30/sprockets%2F0911249a810f39f82185eef9e0959a9d
631
582
  - spec/dummy/tmp/cache/assets/CC7/830/sprockets%2F10abd9e76d16838868b873632597e4eb
632
583
  - spec/dummy/tmp/cache/assets/CCB/120/sprockets%2Fb9500896df13a12225b836bda0b7320e
633
- - spec/dummy/tmp/cache/assets/CCC/BA0/sprockets%2F0e0e79da1b5b3033c89cfa8211306074
634
584
  - spec/dummy/tmp/cache/assets/CCD/EC0/sprockets%2F9694fc1ad28709775e7a7f82369ed721
635
585
  - spec/dummy/tmp/cache/assets/CD1/ED0/sprockets%2F242b4a53a4a4446f07c4a0e04e77847b
636
586
  - spec/dummy/tmp/cache/assets/CD6/810/sprockets%2F901ca591b49d076903b08128b26cbdb7
637
- - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
638
- - spec/dummy/tmp/cache/assets/CD9/350/sprockets%2F32028818c2c71992ada5fba5846a570a
639
- - spec/dummy/tmp/cache/assets/CDA/710/sprockets%2F62127bc83fb039a235ab75167b866cb5
640
587
  - spec/dummy/tmp/cache/assets/CDB/040/sprockets%2Fc732474e67003a4eb840eb44c5ca9385
641
- - spec/dummy/tmp/cache/assets/CDF/420/sprockets%2F0be8c2291b745181fd56b7c4770a7d08
642
- - spec/dummy/tmp/cache/assets/CE0/970/sprockets%2Fc9f200ae739b9f7b288228ac18346c20
643
- - spec/dummy/tmp/cache/assets/CEE/C80/sprockets%2F18515cf2523bdc58f32fe536665ff657
644
- - spec/dummy/tmp/cache/assets/CF2/380/sprockets%2Fb7f95440782366509acb6ddd5f6938a5
645
- - spec/dummy/tmp/cache/assets/CF4/AE0/sprockets%2F764571ead1c1995d83a95d9269da457c
646
588
  - spec/dummy/tmp/cache/assets/CF4/BB0/sprockets%2Fd2509ee195cff97ad94e74257853b064
647
- - spec/dummy/tmp/cache/assets/CF7/570/sprockets%2F172af7030e61fae1056ee122c8f0a533
648
- - spec/dummy/tmp/cache/assets/CF8/0B0/sprockets%2F1fc42b20103cc98d433f230c9e84b10d
649
589
  - spec/dummy/tmp/cache/assets/D00/490/sprockets%2F60ff8fc770f770b47a563e8cd4696994
650
590
  - spec/dummy/tmp/cache/assets/D03/CD0/sprockets%2Ff025a9441aa20929b3175d8d6ab3c18e
651
- - spec/dummy/tmp/cache/assets/D08/C10/sprockets%2F1905d76e0c7ba5c68fad2376d44d1105
652
- - spec/dummy/tmp/cache/assets/D10/420/sprockets%2Fa4dc298af1d087c33871f077b0f16f17
653
- - spec/dummy/tmp/cache/assets/D23/ED0/sprockets%2F77308cdf3281f5ef8b5d188bf8e74036
654
591
  - spec/dummy/tmp/cache/assets/D2E/800/sprockets%2F4f418afd1d357065fa7bb580041a28aa
655
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
656
- - spec/dummy/tmp/cache/assets/D34/C90/sprockets%2Fda1e05e39683311b61cb095c6c2fdd63
657
592
  - spec/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db
658
593
  - spec/dummy/tmp/cache/assets/D39/DF0/sprockets%2F1351e4754ff46cdca7cc05f72a1f1780
659
594
  - spec/dummy/tmp/cache/assets/D3A/B20/sprockets%2F536a8c3e16caff754bd9a9216f51e101
660
- - spec/dummy/tmp/cache/assets/D3C/DF0/sprockets%2Ff432a7e254a9b296d3dfa02ce86903a5
661
595
  - spec/dummy/tmp/cache/assets/D3D/E80/sprockets%2F4bcb20ff58693fa41b8729a79400dcb3
662
- - spec/dummy/tmp/cache/assets/D3E/E70/sprockets%2F038e0e6d5f82f9562663ac2611bbedd4
663
596
  - spec/dummy/tmp/cache/assets/D41/2F0/sprockets%2Fe5d704d8dc364cb7e3e822bb4e253916
664
- - spec/dummy/tmp/cache/assets/D44/C10/sprockets%2F2266669d5531ceb6da3418dd26e7d2df
665
597
  - spec/dummy/tmp/cache/assets/D46/3F0/sprockets%2F45e4032f9ee82213f32b98dae1e859cc
666
598
  - spec/dummy/tmp/cache/assets/D48/170/sprockets%2Fbc5e81bc580d8c262d3e9d7e984051b7
667
599
  - spec/dummy/tmp/cache/assets/D48/640/sprockets%2F9f4f18d910b678b1d0777e04cdaf6f24
668
- - spec/dummy/tmp/cache/assets/D49/DA0/sprockets%2Fff38d1c9e2d93d45642fed29d3e30372
669
600
  - spec/dummy/tmp/cache/assets/D4E/8C0/sprockets%2Ffa56f431b696af04ff09e2d98e286e32
670
601
  - spec/dummy/tmp/cache/assets/D53/0B0/sprockets%2F4b2b0082dbfd4ae3f0af30c22612865c
671
602
  - spec/dummy/tmp/cache/assets/D59/D70/sprockets%2Fed9f0de1b65ae8d7ef89087c83728461
672
- - spec/dummy/tmp/cache/assets/D5A/070/sprockets%2Fd8818fa8a8ef79eab35083ed7747366b
673
- - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
674
- - spec/dummy/tmp/cache/assets/D5D/520/sprockets%2Fbee57aef677100ff765e815f994b689b
675
603
  - spec/dummy/tmp/cache/assets/D5F/930/sprockets%2F0611d8badac9f948b70aaa227109bb29
676
- - spec/dummy/tmp/cache/assets/D60/5A0/sprockets%2Fa0350de718dad460b2072ddaee54d981
677
604
  - spec/dummy/tmp/cache/assets/D6D/FA0/sprockets%2Fa1bbb309c8c629a282e3f4f9ad3d4961
678
605
  - spec/dummy/tmp/cache/assets/D72/9D0/sprockets%2Fdafb56b16522a94a679e5e35ff1f8b12
679
606
  - spec/dummy/tmp/cache/assets/D76/730/sprockets%2Fd1699d0cbcfe965c5c51a95e31580df2
680
- - spec/dummy/tmp/cache/assets/D76/DA0/sprockets%2F30e9a50c62e4c0e692f6ecd996ea319c
681
- - spec/dummy/tmp/cache/assets/D77/460/sprockets%2Fe55bb3a682bfa8d973ed7da8075f0760
682
607
  - spec/dummy/tmp/cache/assets/D79/890/sprockets%2F48245259266fbda2cbb676f6f8a91dae
683
- - spec/dummy/tmp/cache/assets/D7A/060/sprockets%2F77ca5dbe828fbf2ffd35b5a246726483
684
- - spec/dummy/tmp/cache/assets/D7C/C30/sprockets%2Ffff7e9e07a287afd2545a319a51e8c74
685
- - spec/dummy/tmp/cache/assets/D84/5F0/sprockets%2F00b3982f58c6eccfe3eee6487b52f758
686
- - spec/dummy/tmp/cache/assets/D8B/B30/sprockets%2F4dba4514d3a98322b21d72c8eab42cdd
687
608
  - spec/dummy/tmp/cache/assets/D93/4C0/sprockets%2F857ecd2092cee11f740b3cf2e373ad2a
688
- - spec/dummy/tmp/cache/assets/D97/B00/sprockets%2F6320e6270ecefff1d38a7e2ac651c45b
689
- - spec/dummy/tmp/cache/assets/D9E/100/sprockets%2Fa9bd0212de7fa8673e1b643ffb72e4a8
690
- - spec/dummy/tmp/cache/assets/DA3/CB0/sprockets%2Feed56563f89ef40af5dc3446faa01a75
691
609
  - spec/dummy/tmp/cache/assets/DA7/CD0/sprockets%2F63efd46c5c9b462b90a52bdfbf25b779
692
- - spec/dummy/tmp/cache/assets/DB1/170/sprockets%2F39ccab8b246a72889ae697c84df5a4ce
693
610
  - spec/dummy/tmp/cache/assets/DBA/6B0/sprockets%2F4acc06bba5e909e9aab90dab06b19503
694
611
  - spec/dummy/tmp/cache/assets/DBF/0B0/sprockets%2F1aacf4a74e2d4d026ee99e320d5b03ec
695
- - spec/dummy/tmp/cache/assets/DC4/410/sprockets%2Fd83e593eb29628c1ce0cda1bb52bd3b6
696
612
  - spec/dummy/tmp/cache/assets/DC5/910/sprockets%2F9afa316098cef0a0bdd49b93caa057f2
697
613
  - spec/dummy/tmp/cache/assets/DCE/D40/sprockets%2F3c3feb2b696842feaff8cf3264c103ae
698
- - spec/dummy/tmp/cache/assets/DCF/600/sprockets%2F8da546237ce6e75da190e3b092eabeef
699
614
  - spec/dummy/tmp/cache/assets/DD5/C40/sprockets%2F7c17ce947d82be9ccfd0af20ea78930c
700
- - spec/dummy/tmp/cache/assets/DDC/320/sprockets%2F5da6cc4cce8f2187c3c329fdd752f69c
701
615
  - spec/dummy/tmp/cache/assets/DDE/420/sprockets%2Ffb8b186d5bf0307f86f65fc787d2adeb
702
- - spec/dummy/tmp/cache/assets/DEC/8B0/sprockets%2F5cccef02565cd21f12b277c63abbfe1c
703
- - spec/dummy/tmp/cache/assets/E02/970/sprockets%2Fa5d6fd3fd2a6d81fbccd14cc929f8145
704
616
  - spec/dummy/tmp/cache/assets/E0A/D60/sprockets%2Fc7e9f2f9555aafbec9bea658c1d6a047
705
617
  - spec/dummy/tmp/cache/assets/E0D/340/sprockets%2Ffd1a919b3fcbf5838bfd543d2ced9f47
706
618
  - spec/dummy/tmp/cache/assets/E2E/CD0/sprockets%2Fb7a4e9baedef6f6e60234cb94cd0d83a
707
- - spec/dummy/tmp/cache/assets/E3B/4F0/sprockets%2Fe52b61cae0b3e9ecd57a884f7eefe85b
708
- - spec/dummy/tmp/cache/assets/E54/600/sprockets%2Fec46dd83126fcd2afef6ac23c2c6cc1e
709
619
  - spec/dummy/tmp/cache/sass/0b728c6412c3ae2714d00cd8348a3fb5087889d5/_base.css.scssc
710
620
  - spec/dummy/tmp/cache/sass/0b728c6412c3ae2714d00cd8348a3fb5087889d5/_forms.css.scssc
711
621
  - spec/dummy/tmp/cache/sass/0b728c6412c3ae2714d00cd8348a3fb5087889d5/_header.css.scssc
@@ -1,560 +0,0 @@
1
- /**
2
- * Full HTML5 compatibility rule set
3
- * These rules define which tags and CSS classes are supported and which tags should be specially treated.
4
- *
5
- * Examples based on this rule set:
6
- *
7
- * <a href="http://foobar.com">foo</a>
8
- * ... becomes ...
9
- * <a href="http://foobar.com" target="_blank" rel="nofollow">foo</a>
10
- *
11
- * <img align="left" src="http://foobar.com/image.png">
12
- * ... becomes ...
13
- * <img class="wysiwyg-float-left" src="http://foobar.com/image.png" alt="">
14
- *
15
- * <div>foo<script>alert(document.cookie)</script></div>
16
- * ... becomes ...
17
- * <div>foo</div>
18
- *
19
- * <marquee>foo</marquee>
20
- * ... becomes ...
21
- * <span>foo</span>
22
- *
23
- * foo <br clear="both"> bar
24
- * ... becomes ...
25
- * foo <br class="wysiwyg-clear-both"> bar
26
- *
27
- * <div>hello <iframe src="http://google.com"></iframe></div>
28
- * ... becomes ...
29
- * <div>hello </div>
30
- *
31
- * <center>hello</center>
32
- * ... becomes ...
33
- * <div class="wysiwyg-text-align-center">hello</div>
34
- */
35
-
36
- ;(function(window) {
37
- window.AA = (window.AA || {})
38
- window.AA.editor_config = (window.AA.editor_config || {})
39
-
40
- var parserRules = {
41
- /**
42
- * CSS Class white-list
43
- * Following CSS classes won't be removed when parsed by the wysihtml5 HTML parser
44
- */
45
- "classes": {
46
- "wysiwyg-clear-both": 1,
47
- "wysiwyg-clear-left": 1,
48
- "wysiwyg-clear-right": 1,
49
- "wysiwyg-color-aqua": 1,
50
- "wysiwyg-color-black": 1,
51
- "wysiwyg-color-blue": 1,
52
- "wysiwyg-color-fuchsia": 1,
53
- "wysiwyg-color-gray": 1,
54
- "wysiwyg-color-green": 1,
55
- "wysiwyg-color-lime": 1,
56
- "wysiwyg-color-maroon": 1,
57
- "wysiwyg-color-navy": 1,
58
- "wysiwyg-color-olive": 1,
59
- "wysiwyg-color-purple": 1,
60
- "wysiwyg-color-red": 1,
61
- "wysiwyg-color-silver": 1,
62
- "wysiwyg-color-teal": 1,
63
- "wysiwyg-color-white": 1,
64
- "wysiwyg-color-yellow": 1,
65
- "wysiwyg-float-left": 1,
66
- "wysiwyg-float-right": 1,
67
- "wysiwyg-font-size-large": 1,
68
- "wysiwyg-font-size-larger": 1,
69
- "wysiwyg-font-size-medium": 1,
70
- "wysiwyg-font-size-small": 1,
71
- "wysiwyg-font-size-smaller": 1,
72
- "wysiwyg-font-size-x-large": 1,
73
- "wysiwyg-font-size-x-small": 1,
74
- "wysiwyg-font-size-xx-large": 1,
75
- "wysiwyg-font-size-xx-small": 1,
76
- "wysiwyg-text-align-center": 1,
77
- "wysiwyg-text-align-justify": 1,
78
- "wysiwyg-text-align-left": 1,
79
- "wysiwyg-text-align-right": 1
80
- },
81
- /**
82
- * Tag list
83
- *
84
- * The following options are available:
85
- *
86
- * - add_class: converts and deletes the given HTML4 attribute (align, clear, ...) via the given method to a css class
87
- * The following methods are implemented in wysihtml5.dom.parse:
88
- * - align_text: converts align attribute values (right/left/center/justify) to their corresponding css class "wysiwyg-text-align-*")
89
- * <p align="center">foo</p> ... becomes ... <p> class="wysiwyg-text-align-center">foo</p>
90
- * - clear_br: converts clear attribute values left/right/all/both to their corresponding css class "wysiwyg-clear-*"
91
- * <br clear="all"> ... becomes ... <br class="wysiwyg-clear-both">
92
- * - align_img: converts align attribute values (right/left) on <img> to their corresponding css class "wysiwyg-float-*"
93
- *
94
- * - remove: removes the element and its content
95
- *
96
- * - rename_tag: renames the element to the given tag
97
- *
98
- * - set_class: adds the given class to the element (note: make sure that the class is in the "classes" white list above)
99
- *
100
- * - set_attributes: sets/overrides the given attributes
101
- *
102
- * - check_attributes: checks the given HTML attribute via the given method
103
- * - url: allows only valid urls (starting with http:// or https://)
104
- * - src: allows something like "/foobar.jpg", "http://google.com", ...
105
- * - href: allows something like "mailto:bert@foo.com", "http://google.com", "/foobar.jpg"
106
- * - alt: strips unwanted characters. if the attribute is not set, then it gets set (to ensure valid and compatible HTML)
107
- * - numbers: ensures that the attribute only contains numeric characters
108
- */
109
- "tags": {
110
- "tr": {
111
- "add_class": {
112
- "align": "align_text"
113
- }
114
- },
115
- "strike": {
116
- "remove": 1
117
- },
118
- "form": {
119
- "rename_tag": "div"
120
- },
121
- "rt": {
122
- "rename_tag": "span"
123
- },
124
- "code": {},
125
- "acronym": {
126
- "rename_tag": "span"
127
- },
128
- "br": {
129
- "add_class": {
130
- "clear": "clear_br"
131
- }
132
- },
133
- "details": {
134
- "rename_tag": "div"
135
- },
136
- "h4": {
137
- "add_class": {
138
- "align": "align_text"
139
- }
140
- },
141
- "em": {},
142
- "title": {
143
- "remove": 1
144
- },
145
- "multicol": {
146
- "rename_tag": "div"
147
- },
148
- "figure": {
149
- "rename_tag": "div"
150
- },
151
- "xmp": {
152
- "rename_tag": "span"
153
- },
154
- "small": {
155
- "rename_tag": "span",
156
- "set_class": "wysiwyg-font-size-smaller"
157
- },
158
- "area": {
159
- "remove": 1
160
- },
161
- "time": {
162
- "rename_tag": "span"
163
- },
164
- "dir": {
165
- "rename_tag": "ul"
166
- },
167
- "bdi": {
168
- "rename_tag": "span"
169
- },
170
- "command": {
171
- "remove": 1
172
- },
173
- "ul": {},
174
- "progress": {
175
- "rename_tag": "span"
176
- },
177
- "dfn": {
178
- "rename_tag": "span"
179
- },
180
- "iframe": {
181
- "remove": 1
182
- },
183
- "figcaption": {
184
- "rename_tag": "div"
185
- },
186
- "a": {
187
- "check_attributes": {
188
- "href": "url" // if you compiled master manually then change this from 'url' to 'href'
189
- },
190
- "set_attributes": {
191
- "target": "_blank"
192
- }
193
- },
194
- "img": {
195
- "check_attributes": {
196
- "width": "numbers",
197
- "alt": "alt",
198
- "src": "url", // if you compiled master manually then change this from 'url' to 'src'
199
- "height": "numbers"
200
- },
201
- "add_class": {
202
- "align": "align_img"
203
- }
204
- },
205
- "rb": {
206
- "rename_tag": "span"
207
- },
208
- "footer": {
209
- "rename_tag": "div"
210
- },
211
- "noframes": {
212
- "remove": 1
213
- },
214
- "abbr": {
215
- "rename_tag": "span"
216
- },
217
- "u": {},
218
- "bgsound": {
219
- "remove": 1
220
- },
221
- "sup": {
222
- "rename_tag": "span"
223
- },
224
- "address": {
225
- "rename_tag": "div"
226
- },
227
- "basefont": {
228
- "remove": 1
229
- },
230
- "nav": {
231
- "rename_tag": "div"
232
- },
233
- "h1": {
234
- "add_class": {
235
- "align": "align_text"
236
- }
237
- },
238
- "head": {
239
- "remove": 1
240
- },
241
- "tbody": {
242
- "add_class": {
243
- "align": "align_text"
244
- }
245
- },
246
- "dd": {
247
- "rename_tag": "div"
248
- },
249
- "s": {
250
- "rename_tag": "span"
251
- },
252
- "li": {},
253
- "td": {
254
- "check_attributes": {
255
- "rowspan": "numbers",
256
- "colspan": "numbers"
257
- },
258
- "add_class": {
259
- "align": "align_text"
260
- }
261
- },
262
- "object": {
263
- "remove": 1
264
- },
265
- "div": {
266
- "add_class": {
267
- "align": "align_text"
268
- }
269
- },
270
- "option": {
271
- "rename_tag": "span"
272
- },
273
- "select": {
274
- "rename_tag": "span"
275
- },
276
- "i": {},
277
- "track": {
278
- "remove": 1
279
- },
280
- "wbr": {
281
- "remove": 1
282
- },
283
- "fieldset": {
284
- "rename_tag": "div"
285
- },
286
- "big": {
287
- "rename_tag": "span",
288
- "set_class": "wysiwyg-font-size-larger"
289
- },
290
- "button": {
291
- "rename_tag": "span"
292
- },
293
- "noscript": {
294
- "remove": 1
295
- },
296
- "svg": {
297
- "remove": 1
298
- },
299
- "input": {
300
- "remove": 1
301
- },
302
- "table": {},
303
- "keygen": {
304
- "remove": 1
305
- },
306
- "h5": {
307
- "add_class": {
308
- "align": "align_text"
309
- }
310
- },
311
- "meta": {
312
- "remove": 1
313
- },
314
- "map": {
315
- "rename_tag": "div"
316
- },
317
- "isindex": {
318
- "remove": 1
319
- },
320
- "mark": {
321
- "rename_tag": "span"
322
- },
323
- "caption": {
324
- "add_class": {
325
- "align": "align_text"
326
- }
327
- },
328
- "tfoot": {
329
- "add_class": {
330
- "align": "align_text"
331
- }
332
- },
333
- "base": {
334
- "remove": 1
335
- },
336
- "video": {
337
- "remove": 1
338
- },
339
- "strong": {},
340
- "canvas": {
341
- "remove": 1
342
- },
343
- "output": {
344
- "rename_tag": "span"
345
- },
346
- "marquee": {
347
- "rename_tag": "span"
348
- },
349
- "b": {},
350
- "q": {
351
- "check_attributes": {
352
- "cite": "url"
353
- }
354
- },
355
- "applet": {
356
- "remove": 1
357
- },
358
- "span": {},
359
- "rp": {
360
- "rename_tag": "span"
361
- },
362
- "spacer": {
363
- "remove": 1
364
- },
365
- "source": {
366
- "remove": 1
367
- },
368
- "aside": {
369
- "rename_tag": "div"
370
- },
371
- "frame": {
372
- "remove": 1
373
- },
374
- "section": {
375
- "rename_tag": "div"
376
- },
377
- "body": {
378
- "rename_tag": "div"
379
- },
380
- "ol": {},
381
- "nobr": {
382
- "rename_tag": "span"
383
- },
384
- "html": {
385
- "rename_tag": "div"
386
- },
387
- "summary": {
388
- "rename_tag": "span"
389
- },
390
- "var": {
391
- "rename_tag": "span"
392
- },
393
- "del": {
394
- "remove": 1
395
- },
396
- "blockquote": {
397
- "check_attributes": {
398
- "cite": "url"
399
- }
400
- },
401
- "style": {
402
- "remove": 1
403
- },
404
- "device": {
405
- "remove": 1
406
- },
407
- "meter": {
408
- "rename_tag": "span"
409
- },
410
- "h3": {
411
- "add_class": {
412
- "align": "align_text"
413
- }
414
- },
415
- "textarea": {
416
- "rename_tag": "span"
417
- },
418
- "embed": {
419
- "remove": 1
420
- },
421
- "hgroup": {
422
- "rename_tag": "div"
423
- },
424
- "font": {
425
- "rename_tag": "span",
426
- "add_class": {
427
- "size": "size_font"
428
- }
429
- },
430
- "tt": {
431
- "rename_tag": "span"
432
- },
433
- "noembed": {
434
- "remove": 1
435
- },
436
- "thead": {
437
- "add_class": {
438
- "align": "align_text"
439
- }
440
- },
441
- "blink": {
442
- "rename_tag": "span"
443
- },
444
- "plaintext": {
445
- "rename_tag": "span"
446
- },
447
- "xml": {
448
- "remove": 1
449
- },
450
- "h6": {
451
- "add_class": {
452
- "align": "align_text"
453
- }
454
- },
455
- "param": {
456
- "remove": 1
457
- },
458
- "th": {
459
- "check_attributes": {
460
- "rowspan": "numbers",
461
- "colspan": "numbers"
462
- },
463
- "add_class": {
464
- "align": "align_text"
465
- }
466
- },
467
- "legend": {
468
- "rename_tag": "span"
469
- },
470
- "hr": {},
471
- "label": {
472
- "rename_tag": "span"
473
- },
474
- "dl": {
475
- "rename_tag": "div"
476
- },
477
- "kbd": {
478
- "rename_tag": "span"
479
- },
480
- "listing": {
481
- "rename_tag": "div"
482
- },
483
- "dt": {
484
- "rename_tag": "span"
485
- },
486
- "nextid": {
487
- "remove": 1
488
- },
489
- "pre": {},
490
- "center": {
491
- "rename_tag": "div",
492
- "set_class": "wysiwyg-text-align-center"
493
- },
494
- "audio": {
495
- "remove": 1
496
- },
497
- "datalist": {
498
- "rename_tag": "span"
499
- },
500
- "samp": {
501
- "rename_tag": "span"
502
- },
503
- "col": {
504
- "remove": 1
505
- },
506
- "article": {
507
- "rename_tag": "div"
508
- },
509
- "cite": {},
510
- "link": {
511
- "remove": 1
512
- },
513
- "script": {
514
- "remove": 1
515
- },
516
- "bdo": {
517
- "rename_tag": "span"
518
- },
519
- "menu": {
520
- "rename_tag": "ul"
521
- },
522
- "colgroup": {
523
- "remove": 1
524
- },
525
- "ruby": {
526
- "rename_tag": "span"
527
- },
528
- "h2": {
529
- "add_class": {
530
- "align": "align_text"
531
- }
532
- },
533
- "ins": {
534
- "rename_tag": "span"
535
- },
536
- "p": {
537
- "add_class": {
538
- "align": "align_text"
539
- }
540
- },
541
- "sub": {
542
- "rename_tag": "span"
543
- },
544
- "comment": {
545
- "remove": 1
546
- },
547
- "frameset": {
548
- "remove": 1
549
- },
550
- "optgroup": {
551
- "rename_tag": "span"
552
- },
553
- "header": {
554
- "rename_tag": "div"
555
- }
556
- }
557
- };
558
-
559
- window.AA.editor_config.parserRules = parserRules
560
- })(window)