rails_admin_ui_layout_taris 1.3.1 → 1.3.2

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: 73dd94e72b924eeb3392d200413688823113b24d
4
- data.tar.gz: db88f5031d8d5d2db20b7f8f4780ac1563b858e6
3
+ metadata.gz: c3a78ed686e1d4948720f580788db7886a1a7565
4
+ data.tar.gz: 5b41cd67851b2466c3f1d791090a72cae6dd4da9
5
5
  SHA512:
6
- metadata.gz: 26eabeafc885685ed3498fd52289e251fed6d7f83ba6a393fca1308dce2462456cd1a0aa170d071d51fbf2c13007a88267fa54583948793424dfc786feefdbcb
7
- data.tar.gz: 66e89dbc6d101a4778544704bdf875b4156dd320e0be120b9f3fbe27fc52113cd392383e37c37fc401603e180f8a6a199f486413c49592a67ab7c6c83c015782
6
+ metadata.gz: d321268adfb77ee0f25d34db317419ba5b7d580c37e7d6dc71bb2617be9f3cf544ac28aee04125a4ed5fd8816199af52e56578aff382884893ecb0ec59adea34
7
+ data.tar.gz: 10b8e0f06d63ebcce6f0b2757cadf7ff4a5e50708f5783b2ee2db7f41ff92bdb9adce9da70fe98b0ce3f333384e2a09481ad669259f636cc6ba6ace13c17cff2
@@ -0,0 +1,58 @@
1
+ /*
2
+ Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+
6
+ CKEDITOR.editorConfig = function( config )
7
+ {
8
+ // Define changes to default configuration here. For example:
9
+ // config.language = 'fr';
10
+ // config.uiColor = '#AADC6E';
11
+
12
+ /* Filebrowser routes */
13
+ // The location of an external file browser, that should be launched when "Browse Server" button is pressed.
14
+ config.filebrowserBrowseUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/attachment_files";
15
+
16
+ // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Flash dialog.
17
+ config.filebrowserFlashBrowseUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/attachment_files";
18
+
19
+ // The location of a script that handles file uploads in the Flash dialog.
20
+ config.filebrowserFlashUploadUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/attachment_files";
21
+
22
+ // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Link tab of Image dialog.
23
+ config.filebrowserImageBrowseLinkUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/pictures";
24
+
25
+ // The location of an external file browser, that should be launched when "Browse Server" button is pressed in the Image dialog.
26
+ config.filebrowserImageBrowseUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/pictures";
27
+
28
+ // The location of a script that handles file uploads in the Image dialog.
29
+ config.filebrowserImageUploadUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/pictures?";
30
+
31
+ // The location of a script that handles file uploads.
32
+ config.filebrowserUploadUrl = "<%=ENV['RAILS_URL'].presence.to_s+ENV['RAILS_RELATIVE_URL_ROOT'].presence.to_s%>/ckeditor/attachment_files";
33
+
34
+ config.allowedContent = true;
35
+
36
+ // Toolbar groups configuration.
37
+ config.toolbar = [
38
+ { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source'] },
39
+ { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
40
+ // { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
41
+ // { name: 'forms', items: [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
42
+ { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
43
+ { name: 'insert', items: [ 'Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar' ] },
44
+ { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
45
+ '/',
46
+ { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
47
+ { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
48
+ { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] }
49
+ ];
50
+
51
+ config.toolbar_mini = [
52
+ { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
53
+ { name: 'styles', items: [ 'Font', 'FontSize' ] },
54
+ { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
55
+ { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
56
+ { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] }
57
+ ];
58
+ };
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUiLayoutTaris
2
- VERSION = '1.3.1'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_ui_layout_taris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-24 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore
@@ -76,6 +76,7 @@ files:
76
76
  - MIT-LICENSE
77
77
  - README.md
78
78
  - Rakefile
79
+ - app/assets/javascripts/ckeditor/config.js.erb
79
80
  - app/assets/javascripts/rails_admin/custom/ckeditor_ajax.js.coffee
80
81
  - app/assets/javascripts/rails_admin/custom/timer.js
81
82
  - app/assets/javascripts/rails_admin/custom/ui.js
@@ -89,7 +90,6 @@ files:
89
90
  - app/views/layouts/rails_admin/_user_navigation.html.haml
90
91
  - app/views/layouts/rails_admin/application.html.haml
91
92
  - app/views/layouts/rails_admin/pjax.html.haml
92
- - app/views/rails_admin/main/_form_ck_editor.html.haml.old
93
93
  - app/views/rails_admin/main/_modal_interaction.html.erb
94
94
  - config/locales/en.main.yml
95
95
  - config/locales/it.main.yml
@@ -1,13 +0,0 @@
1
- :ruby
2
- url = (ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000/assets/ckeditor/" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}/assets/ckeditor/"
3
- js_data = {
4
- # jspath: field.location ? field.location : url + field.base_location + "ckeditor.js",
5
- jspath: url + "ckeditor.js",
6
- base_location: url,
7
- options: {
8
- # customConfig: field.config_js ? field.config_js : url + field.base_location + "config.js"
9
- customConfig: url + "config.js"
10
- }
11
- }
12
-
13
- = form.text_area field.method_name, field.html_attributes.reverse_merge(data: { richtext: 'ckeditor', options: js_data.to_json }).reverse_merge({ value: field.form_value })