administrate-field-froala 0.1.3 → 0.1.4

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: 150aa298cab738adf4be52831730b9f347b355ae
4
- data.tar.gz: 7696a4962012b2689be7db52fbac73a72f606038
3
+ metadata.gz: 2ad674f53ce0f5b58a3e0e811fec264ffa36ebf4
4
+ data.tar.gz: bc345a80f98e44fd3a518a3651fec7fa28096238
5
5
  SHA512:
6
- metadata.gz: 4ef93b8ef9fb316d166f8ce93a04d4aef7ba0babd85f68cab3f364c78376eda3c58c21b34c2788dfe3ed3c9f07621e7dff3efb36836c4475ec4a0b1b0bedda7d
7
- data.tar.gz: f310e73b87cf6ec1f3c9ead9bf313df1e952bf61fc4e242d3b1f373e501bce04186c6ea1f423547385e85c35164e56c35b04d5ba94583c529b2a004ddc7bc1aa
6
+ metadata.gz: 3db5acd1f5fffee8499cfc8b7c8cf28eb53d45f79338a345bd39c92362e1e7db072c576f20305921619c3b0b82056e9bb8d7a0d5c483a2cfca04928e5af634a1
7
+ data.tar.gz: 4f246e24d6ba400c8071c82a51a2afcb807d9a41a98adc99cdc7d9315c03f015f7b7538fdab4eca3267984e9c9c3f1474b0dd02159c1f15a124e8a2eca613bc9
data/README.md CHANGED
@@ -25,6 +25,27 @@ ATTRIBUTE_TYPES = [
25
25
  ]
26
26
  ```
27
27
 
28
+ In your `application.js` require and initialize the Froala editor (and plugins if needed):
29
+ ```javascript
30
+ //= require froala_editor.min.js
31
+
32
+ $(function () {
33
+ // initialize Froala editor on all Froala fields (Field::Froala)
34
+ $('.field-unit--froala textarea').froalaEditor();
35
+ });
36
+ ```
37
+
38
+ Similarly require the stylesheets for Froala and it's plugins in your `application.css`:
39
+ ```css
40
+ /*
41
+ *= require froala_editor.min.css
42
+ *= require froala_style.min.css
43
+ */
44
+ ```
45
+
46
+ See [wysiwyg-rails](https://github.com/froala/wysiwyg-rails#include-in-your-assets) documentation for list of all available Froala plugins.
47
+
48
+
28
49
  [Froala]: https://github.com/froala/wysiwyg-editor
29
50
  [Administrate]: https://github.com/thoughtbot/administrate
30
51
 
@@ -1,5 +1,3 @@
1
1
  /*
2
- *= require froala_editor.min.css
3
- *= require froala_style.min.css
4
2
  *= require font-awesome
5
3
  */
@@ -6,10 +6,9 @@ require "wysiwyg-rails"
6
6
  module Administrate
7
7
  module Field
8
8
  class Froala < Administrate::Field::Text
9
- VERSION = "0.1.3"
9
+ VERSION = "0.1.4"
10
10
 
11
11
  class Engine < ::Rails::Engine
12
- Administrate::Engine.add_javascript "administrate-field-froala/application"
13
12
  Administrate::Engine.add_stylesheet "administrate-field-froala/application"
14
13
  end
15
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-froala
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Valasek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-28 00:00:00.000000000 Z
12
+ date: 2016-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: administrate
@@ -63,7 +63,6 @@ extra_rdoc_files: []
63
63
  files:
64
64
  - README.md
65
65
  - administrate-field-froala.gemspec
66
- - app/assets/javascripts/administrate-field-froala/application.js
67
66
  - app/assets/stylesheets/administrate-field-froala/application.scss
68
67
  - app/views/fields/froala/_form.html.erb
69
68
  - app/views/fields/froala/_index.html.erb
@@ -1,5 +0,0 @@
1
- //= require froala_editor.min.js
2
-
3
- $(function () {
4
- $('.field-unit--froala textarea').froalaEditor();
5
- });