rails_admin_ui_layout_taris 1.2.19 → 1.2.20

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: 42aa76dc026e69a1a454bb6d2a8deec48efe7707
4
- data.tar.gz: 127408d22aef7990f7c95f1c4c8587a3d44cb409
3
+ metadata.gz: 4d854a7f32c33acd18d49103c3c53076c8e3a0ac
4
+ data.tar.gz: 0766e1a7f881049240960d819746a43ad2b2b3b9
5
5
  SHA512:
6
- metadata.gz: 65a36e2dad1be54f0791f7abf8da30cf1e5bcb41c950e188dfa9e36bc44a6a376d4337a29cd11c3d871e4c5396472b31317206da5f497d76bb1af32275de708e
7
- data.tar.gz: b3cfc32153695b40789b6f61fc6b139c951fc9bea7c873c3929a68f78d2b0ec4efdf252e8534a20854bf7e4bf3aa8bfb527ef082a18a075bd00bf56f29d03b90
6
+ metadata.gz: 2f8a69bdaf8f8ddee2a77d4c41424662b592315e572ea0239d4e73b1837be86beb32772f473cc6aff6a0f31ee99cf9de3fc346eaced006e3a93eeeea6560c3d6
7
+ data.tar.gz: d9e3e31b11d5f19b55762a01d9b8d2dde2fba41c75671208632a460a86c23c313236c41d93d2cda7ac4ef40f5131e03aaa29abbc9a90c3dd3e52ccd994821605
@@ -43,7 +43,6 @@
43
43
  = Settings.app_name rescue "Thecore"
44
44
  .content{:'data-pjax-container' => true}
45
45
  = render template: 'layouts/rails_admin/pjax'
46
- = render "layouts/rails_admin/ckeditor_base_path"
47
46
  = render "rails_admin/main/modal_interaction"
48
47
  -# -# Initialize JS simple i18n
49
48
  -# :javascript
@@ -0,0 +1,10 @@
1
+ :ruby
2
+ js_data = {
3
+ jspath: field.location ? field.location : field.base_location + "ckeditor.js",
4
+ base_location: (ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", #field.base_location,
5
+ options: {
6
+ customConfig: field.config_js ? field.config_js : field.base_location + "config.js"
7
+ }
8
+ }
9
+
10
+ = 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 })
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUiLayoutTaris
2
- VERSION = '1.2.19'.freeze
2
+ VERSION = '1.2.20'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_ui_layout_taris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.19
4
+ version: 1.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -83,13 +83,13 @@ files:
83
83
  - app/assets/stylesheets/rails_admin/custom/flashing.scss
84
84
  - app/assets/stylesheets/rails_admin/custom/theming.scss
85
85
  - app/assets/stylesheets/rails_admin/custom/togglable-sidebar.scss
86
- - app/views/layouts/rails_admin/_ckeditor_base_path.html.erb
87
86
  - app/views/layouts/rails_admin/_navigation.html.haml
88
87
  - app/views/layouts/rails_admin/_secondary_navigation.html.haml
89
88
  - app/views/layouts/rails_admin/_sidebar_navigation.html.haml
90
89
  - app/views/layouts/rails_admin/_user_navigation.html.haml
91
90
  - app/views/layouts/rails_admin/application.html.haml
92
91
  - app/views/layouts/rails_admin/pjax.html.haml
92
+ - 'app/views/rails_admin/main/_form_ck_editor.html.haml '
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,29 +0,0 @@
1
- <%-
2
- base_path = ''
3
- base_path << if ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?
4
- "http://localhost:3000"
5
- else
6
- "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}"
7
- end
8
- base_path << Rails.application.config.assets.prefix
9
- base_path << '/ckeditor/'
10
- %>
11
- <script>
12
- ckeditor_bpath = '<%= base_path %>';
13
- console.log(ckeditor_bpath)
14
- if (typeof(CKEDITOR) != 'undefined') {
15
- CKEDITOR.editorConfig = function( config )
16
- {
17
- config.base_location = ckeditor_bpath
18
- // config.toolbar = 'Basic';
19
- // config.toolbar_Basic =
20
- // [
21
- // ['Source', 'Bold', 'Italic', 'NumberedList', 'BulletedList', 'Link', 'Unlink']
22
- // ];
23
-
24
- // config.enterMode = CKEDITOR.ENTER_BR;
25
- // config.shiftEnterMode = CKEDITOR.ENTER_BR;
26
- // config.autoParagraph = false;
27
- }
28
- }
29
- </script>