morrigan_editor_rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10ea57dd9231d4d31922c232b7c00afce8b19bfc
4
- data.tar.gz: c558fe32d83524ba4fed855cf0404c1c8920e436
3
+ metadata.gz: 1649ccf80e56d1ceec2cba8e3d4e945b1c066f10
4
+ data.tar.gz: a0478ce43978ca46e2c8f05bb6f7436fc18e9630
5
5
  SHA512:
6
- metadata.gz: cab2b3ee9d97d78ec293cb47869c1e637c859f81da5e756c5c2932e332dfab0dd768af2f794ec5e1efbffb95ec957e73069ca4a513250539c8cb338599cfb70f
7
- data.tar.gz: 4858a5c67b3d3f9b1e53fcf730369d4a1cfdfa59c0616c5640e147bd775bf326d780409752ec53d5e4850ecb363646514f1df82d152e668f1024f2881aa5c252
6
+ metadata.gz: 58020a90006629e0127a1624ac66c7648b1f697a7b4ea6fabe7941ddd6f9c74df8f5a1d306b98f504290b282de5317ba7eb30d6a75b9c3565dea41122448dab5
7
+ data.tar.gz: 09b6e8b889f96d08c61f172b93e3b34e376b50eb0f5b6b4e24e66af486ce131c99e710b532e3719e6ff667ffe64e6ab3439d75f1aea1285d2ea84daa57d1ee1a
@@ -19,6 +19,15 @@ $(function () {
19
19
  textarea.val(editor.morrigan_editor('html'));
20
20
  return true;
21
21
  });
22
+
23
+ if (textarea.parent().hasClass('has-error')) {
24
+ container.addClass('has-error');
25
+ }
26
+
27
+ if ($.trim(textarea.val()) != '') {
28
+ editor.morrigan_editor('html', textarea.val());
29
+ }
30
+
22
31
  }
23
32
  });
24
33
  });
@@ -1,3 +1,3 @@
1
1
  module MorriganEditorRails
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  <!--<%= asset_path('morrigan_editor_rails/iframe.css') %>-->
2
2
  <!--<%= MorriganEditorRails::Editor.sanitize '<b><a href="http://foo.com/">foo</a></b><img src="bar.jpg">' %> -->
3
3
  <form id="form">
4
- <textarea id="textarea"></textarea>
4
+ <div class="has-error"><textarea id="textarea"><p>ads</p><p>fgh</p></textarea></div>
5
5
  <div morrigan-editor="true" id="editor" editor-width="100%" editor-height="300px" editor-bound-textarea="#textarea"></div>
6
6
  <input type="submit">
7
7
  </form>
@@ -10113,3 +10113,196 @@ Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-07-24 18:28:19 +04
10113
10113
 
10114
10114
 
10115
10115
  Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-07-24 18:28:19 +0400
10116
+
10117
+
10118
+ Started GET "/" for 127.0.0.1 at 2014-07-26 15:25:22 +0400
10119
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10120
+ Processing by TestController#index as HTML
10121
+ Rendered test/index.html.erb within layouts/application (6.8ms)
10122
+ Completed 200 OK in 221ms (Views: 220.6ms | ActiveRecord: 0.0ms)
10123
+
10124
+
10125
+ Started GET "/assets/editor_iframe.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10126
+
10127
+
10128
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10129
+
10130
+
10131
+ Started GET "/assets/font-awesome.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10132
+
10133
+
10134
+ Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10135
+
10136
+
10137
+ Started GET "/assets/morrigan_editor_rails/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10138
+
10139
+
10140
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10141
+
10142
+
10143
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10144
+
10145
+
10146
+ Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10147
+
10148
+
10149
+ Started GET "/assets/morrigan_editor_rails/main.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10150
+
10151
+
10152
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10153
+
10154
+
10155
+ Started GET "/assets/morrigan_editor_rails/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10156
+
10157
+
10158
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10159
+
10160
+
10161
+ Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10162
+
10163
+
10164
+ Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-07-26 15:25:23 +0400
10165
+
10166
+
10167
+ Started GET "/" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10168
+ Processing by TestController#index as HTML
10169
+ Rendered test/index.html.erb within layouts/application (1.3ms)
10170
+ Completed 200 OK in 8ms (Views: 8.3ms | ActiveRecord: 0.0ms)
10171
+
10172
+
10173
+ Started GET "/assets/editor_iframe.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10174
+
10175
+
10176
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10177
+
10178
+
10179
+ Started GET "/assets/font-awesome.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10180
+
10181
+
10182
+ Started GET "/assets/morrigan_editor_rails/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10183
+
10184
+
10185
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10186
+
10187
+
10188
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10189
+
10190
+
10191
+ Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10192
+
10193
+
10194
+ Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10195
+
10196
+
10197
+ Started GET "/assets/morrigan_editor_rails/main.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10198
+
10199
+
10200
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10201
+
10202
+
10203
+ Started GET "/assets/morrigan_editor_rails/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10204
+
10205
+
10206
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10207
+
10208
+
10209
+ Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10210
+
10211
+
10212
+ Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-07-26 15:25:55 +0400
10213
+
10214
+
10215
+ Started GET "/" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10216
+ Processing by TestController#index as HTML
10217
+ Rendered test/index.html.erb within layouts/application (3.2ms)
10218
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
10219
+
10220
+
10221
+ Started GET "/assets/editor_iframe.css?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10222
+
10223
+
10224
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10225
+
10226
+
10227
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.css?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10228
+
10229
+
10230
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10231
+
10232
+
10233
+ Started GET "/assets/font-awesome.css?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10234
+
10235
+
10236
+ Started GET "/assets/morrigan_editor_rails/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10237
+
10238
+
10239
+ Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10240
+
10241
+
10242
+ Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10243
+
10244
+
10245
+ Started GET "/assets/morrigan_editor_rails/main.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10246
+
10247
+
10248
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10249
+
10250
+
10251
+ Started GET "/assets/morrigan_editor_rails/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10252
+
10253
+
10254
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10255
+
10256
+
10257
+ Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10258
+
10259
+
10260
+ Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-07-26 15:27:15 +0400
10261
+
10262
+
10263
+ Started GET "/" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10264
+ Processing by TestController#index as HTML
10265
+ Rendered test/index.html.erb within layouts/application (0.7ms)
10266
+ Completed 200 OK in 55ms (Views: 54.5ms | ActiveRecord: 0.0ms)
10267
+
10268
+
10269
+ Started GET "/assets/editor_iframe.css?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10270
+
10271
+
10272
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.css?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10273
+
10274
+
10275
+ Started GET "/assets/font-awesome.css?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10276
+
10277
+
10278
+ Started GET "/assets/morrigan_editor_rails/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10279
+
10280
+
10281
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10282
+
10283
+
10284
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10285
+
10286
+
10287
+ Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10288
+
10289
+
10290
+ Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10291
+
10292
+
10293
+ Started GET "/assets/morrigan_editor_rails/main.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10294
+
10295
+
10296
+ Started GET "/assets/morrigan_editor_rails/morrigan-jquery-editor.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10297
+
10298
+
10299
+ Started GET "/assets/morrigan_editor_rails/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10300
+
10301
+
10302
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10303
+
10304
+
10305
+ Started GET "/assets/editor_iframe.css" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
10306
+
10307
+
10308
+ Started GET "/assets/fontawesome-webfont.woff" for 127.0.0.1 at 2014-07-26 15:28:50 +0400
@@ -1 +1 @@
1
- 19537
1
+ 20187
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morrigan_editor_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Sokolov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails