morrigan_editor_rails 0.0.11 → 0.0.12
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.
- checksums.yaml +4 -4
- data/lib/morrigan_editor_rails/version.rb +1 -1
- data/lib/morrigan_editor_rails.rb +2 -2
- data/test/dummy/log/development.log +70 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 213aa860f47ef0f027b88399c86ced7e7abe7f79
|
|
4
|
+
data.tar.gz: ea4af3ee1d455306dc5561bc45a7ec5f070f8839
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58110fcf076585a0b158c13ad7e811f0bbeaf816e5e49092572a167c4e7bd1a06e2b7a02c39936dc935bc633a93efd0eaf861ec780ced8056a54c553e8135573
|
|
7
|
+
data.tar.gz: f11a04972efab0ccd8927b5dcef6a0e3d6940ca336a5ef69d79015df3d41bbdb7a00d988aea19fb0b810bba2454f13260ae47dc3a73a31fea2f3413fce3f6496
|
|
@@ -22,12 +22,12 @@ module MorriganEditorRails
|
|
|
22
22
|
relaxed_conf.merge({
|
|
23
23
|
elements: (WHITELIST_ELEMENTS + relaxed_conf[:elements]).uniq,
|
|
24
24
|
|
|
25
|
-
attributes:
|
|
25
|
+
attributes: relaxed_conf[:attributes].merge(
|
|
26
26
|
'iframe' => ['width', 'height', 'src', 'frameborder', 'allowfullscreen', 'wmode', 'style'],
|
|
27
27
|
'div' => ['contenteditable', 'class']
|
|
28
28
|
),
|
|
29
29
|
|
|
30
|
-
protocols:
|
|
30
|
+
protocols: relaxed_conf[:protocols].merge(
|
|
31
31
|
'a' => {'href' => ['http', 'https', 'mailto', 'ftp']}
|
|
32
32
|
)
|
|
33
33
|
})
|
|
@@ -12209,3 +12209,73 @@ Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-08-18 13:16:44 +04
|
|
|
12209
12209
|
|
|
12210
12210
|
|
|
12211
12211
|
Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-08-18 13:16:44 +0400
|
|
12212
|
+
|
|
12213
|
+
|
|
12214
|
+
Started GET "/" for 127.0.0.1 at 2014-08-18 13:32:29 +0400
|
|
12215
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
12216
|
+
Processing by TestController#index as HTML
|
|
12217
|
+
Rendered test/index.html.erb within layouts/application (7.2ms)
|
|
12218
|
+
Completed 500 Internal Server Error in 12ms
|
|
12219
|
+
|
|
12220
|
+
ActionView::Template::Error (undefined method `merge' for MorriganEditorRails::Editor:Class):
|
|
12221
|
+
1: <!--<%= asset_path('morrigan_editor_rails/iframe.css') %>-->
|
|
12222
|
+
2: <%= MorriganEditorRails::Editor.preview_sanitize '<h2>asd</h2><p><b><a href="http://foo.com/">foo</a></b><img src="bar.jpg">' %>
|
|
12223
|
+
3: <%= MorriganEditorRails::Editor.sanitize '<h2>asd</h2><p><b><a href="http://foo.com/">foo</a></b><img src="bar.jpg">' %>
|
|
12224
|
+
4: <form id="form">
|
|
12225
|
+
5: <div class="has-error"><textarea id="textarea"><p>ads</p><p>fgh</p></textarea></div>
|
|
12226
|
+
6: <div morrigan-editor="true" id="editor" editor-width="100%" editor-height="300px" editor-bound-textarea="#textarea"></div>
|
|
12227
|
+
app/views/test/index.html.erb:3:in `_app_views_test_index_html_erb___648171083_81113380'
|
|
12228
|
+
|
|
12229
|
+
|
|
12230
|
+
Rendered /home/salkar/.rvm/gems/ruby-2.1.0/gems/actionpack-4.1.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
|
|
12231
|
+
Rendered /home/salkar/.rvm/gems/ruby-2.1.0/gems/actionpack-4.1.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (13.7ms)
|
|
12232
|
+
Rendered /home/salkar/.rvm/gems/ruby-2.1.0/gems/actionpack-4.1.4/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
|
|
12233
|
+
|
|
12234
|
+
|
|
12235
|
+
Started GET "/" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12236
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
12237
|
+
Processing by TestController#index as HTML
|
|
12238
|
+
Rendered test/index.html.erb within layouts/application (6.6ms)
|
|
12239
|
+
Completed 200 OK in 208ms (Views: 207.7ms | ActiveRecord: 0.0ms)
|
|
12240
|
+
|
|
12241
|
+
|
|
12242
|
+
Started GET "/assets/editor_iframe.css?body=1" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12243
|
+
|
|
12244
|
+
|
|
12245
|
+
Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.css?body=1" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12246
|
+
|
|
12247
|
+
|
|
12248
|
+
Started GET "/assets/font-awesome.css?body=1" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12249
|
+
|
|
12250
|
+
|
|
12251
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12252
|
+
|
|
12253
|
+
|
|
12254
|
+
Started GET "/assets/morrigan_editor_rails/application.css?body=1" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12255
|
+
|
|
12256
|
+
|
|
12257
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:49 +0400
|
|
12258
|
+
|
|
12259
|
+
|
|
12260
|
+
Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12261
|
+
|
|
12262
|
+
|
|
12263
|
+
Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12264
|
+
|
|
12265
|
+
|
|
12266
|
+
Started GET "/assets/morrigan_editor_rails/main.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12267
|
+
|
|
12268
|
+
|
|
12269
|
+
Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12270
|
+
|
|
12271
|
+
|
|
12272
|
+
Started GET "/assets/morrigan_editor_rails/application.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12273
|
+
|
|
12274
|
+
|
|
12275
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12276
|
+
|
|
12277
|
+
|
|
12278
|
+
Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
12279
|
+
|
|
12280
|
+
|
|
12281
|
+
Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-08-18 13:33:50 +0400
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8964
|