simple_form_extension 1.4.3 → 1.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f067022aa0f322e2f5b7d2fa18aed43c248e166e
4
- data.tar.gz: 4aea2263c95ac54dd7035da275b67a1ec26258f2
3
+ metadata.gz: 40fbec443efaab587eaab9a367d11c9f84f48731
4
+ data.tar.gz: 1172dbd58841a6e555484d3b6e46a5f5b95faaaa
5
5
  SHA512:
6
- metadata.gz: 6301b946eb69ccbe0b4b45c41b26375fad1fefa36f8de4903bae4d8750e8b8635dcf2545822fb8b4061b25aa2175ab87be32f260863a4a6e104be8673341f296
7
- data.tar.gz: 1c8f46710311e278f5d2787fe4819547eb2b6ea5294441633e7e597fdb6a74bff86e080e4e409bc52a77fee35c15dbda8a93d96506f9e9fef2f8bf3b9544af83
6
+ metadata.gz: 6500c1baa1234eaa0c3c802c2c4145b2353fed3e330de5c1c1b99ef9e1aedbddc9621f80130d4442c3baa11537ae0efb88452e07f71f50686b3f352e0f6f94fa
7
+ data.tar.gz: c021c7c719ea62860ef1b99cc547b5c9dd9042cea39575b25525a0c2abf09336831bb82523fd07ffaa40eecdca6785268d278bbfc70c69569449b81c7553bdd2
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
@@ -1,47 +1,46 @@
1
1
  class Redactor
2
- DEFAULT_OPTIONS: {
2
+ DEFAULT_OPTIONS: (params) ->
3
+ imageUpload: ["/redactor_rails/pictures", params].join('?')
4
+ imageManagerJson: "/redactor_rails/pictures"
5
+ fileUpload: ["/redactor_rails/documents", params].join('?')
6
+ fileManagerJson: "/redactor_rails/documents"
7
+ buttons: ['html', 'formatting', 'bold', 'italic', 'underline', 'deleted',
8
+ 'unorderedlist', 'orderedlist', 'outdent', 'indent',
9
+ 'image', 'file','link', 'alignment', 'horizontalrule']
10
+ removeEmpty: ['strong', 'em', 'span', 'p', 'h1', 'h2', 'h3', 'h4', 'div']
3
11
  min_height: 250
4
- }
12
+ buttonSource: true
13
+ replaceDivs: false
14
+ linebreaks: false
15
+ toolbarFixed: false
16
+ formattingAdd: [
17
+ {
18
+ tag: 'img'
19
+ title: 'Image 100%'
20
+ class: 'img-responsive'
21
+ }
22
+ ]
23
+ plugins: [
24
+ "clips"
25
+ "filemanager"
26
+ "imagemanager"
27
+ "video"
28
+ "table"
29
+ "fontcolor"
30
+ "fontsize"
31
+ "fontfamily"
32
+ "scriptbuttons"
33
+ "imagepx"
34
+ ]
35
+ path: "/assets/redactor-rails"
36
+ lang: "fr"
5
37
 
6
38
  constructor: (@$el) ->
7
39
  params = @params()
8
- config = $.extend({}, @DEFAULT_OPTIONS, @$el.data('redactor-config'))
40
+ config = $.extend({}, @DEFAULT_OPTIONS(params), @$el.data('redactor-config'))
9
41
 
10
- @$el.redactor
11
- buttons: ['html', 'formatting', 'bold', 'italic', 'underline', 'deleted',
12
- 'unorderedlist', 'orderedlist', 'outdent', 'indent',
13
- 'image', 'file','link', 'alignment', 'horizontalrule']
14
- removeEmpty: ['strong', 'em', 'span', 'p', 'h1', 'h2', 'h3', 'h4', 'div']
15
- minHeight: config.min_height
16
- buttonSource: true
17
- replaceDivs: false
18
- linebreaks: false
19
- toolbarFixed: false
20
- formattingAdd: [
21
- {
22
- tag: 'img'
23
- title: 'Image 100%'
24
- class: 'img-responsive'
25
- }
26
- ]
27
- imageUpload: ["/redactor_rails/pictures", params].join('?')
28
- imageManagerJson: "/redactor_rails/pictures"
29
- fileUpload: ["/redactor_rails/documents", params].join('?')
30
- fileManagerJson: "/redactor_rails/documents"
31
- plugins: [
32
- "clips"
33
- "filemanager"
34
- "imagemanager"
35
- "video"
36
- "table"
37
- "fontcolor"
38
- "fontsize"
39
- "fontfamily"
40
- "scriptbuttons"
41
- "imagepx"
42
- ]
43
- path: "/assets/redactor-rails"
44
- lang: "fr"
42
+ @$el.redactor(config)
43
+
45
44
 
46
45
  params: ->
47
46
  csrf_token = $('meta[name=csrf-token]').attr('content')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glyph-fr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails