rails_admin_ui_layout_taris 1.2.17 → 1.2.18

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: ec81e20595e33a192a6e616e2f9042b69cc862f0
4
- data.tar.gz: 1eb37934ae963bc72e75eeca5a9ec1d9ed79432c
3
+ metadata.gz: 426b4b2796ced50d1a8c3662b7945914a42fef8b
4
+ data.tar.gz: 2b5ade06d609239f001cad1549f9ef9a85e7fe83
5
5
  SHA512:
6
- metadata.gz: 9de7d0de4af4898fe9ad85c49b1cfbfffe9a1b32b63345d1b755b434f1f90af96a8e6f27a73bfa2a6d1073f38b9a703d7fc9009bff982df555f648a1a4c95f4d
7
- data.tar.gz: 41d0fb806d4afa8a5121c39fb4a15c304af684af0f09309b296c9aec9b2d55b7522570ce1e065c35a62b0a10c9f0d5e059eac03dade80dea6f3d991d1066f503
6
+ metadata.gz: 259da2a44281f1947f4847efffeb21cf379204be57a7a4c90a2bc2a54887f0ed861f78392fc0d7630af5733aeb86cc6ca5471ad224196a6c9cffee9bd89bfceb
7
+ data.tar.gz: 37560b6667ac80f90d04ac33bf1b459a84ad3009b4e10222f693d3467b06697b2ac3733641f4551904e78ef83dc42c40b9e9fe83a9c9a8edf4ce7c1f6517cf6e
@@ -9,6 +9,21 @@ base_path << Rails.application.config.assets.prefix
9
9
  base_path << '/ckeditor/'
10
10
  %>
11
11
  <script>
12
- window.CKEDITOR_BASEPATH = '<%= base_path %>';
13
- console.log(window.CKEDITOR_BASEPATH)
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_bpathM
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
+ }
14
29
  </script>
@@ -12,7 +12,6 @@
12
12
  div#wrapper div#sidebar-wrapper { overflow: hidden }
13
13
 
14
14
  = stylesheet_link_tag "rails_admin/rails_admin.css", media: :all
15
- = render "layouts/rails_admin/ckeditor_base_path"
16
15
  = javascript_include_tag "rails_admin/rails_admin.js"
17
16
 
18
17
  = favicon_link_tag 'apple-touch-icon.png', rel: 'apple-touch-icon', sizes: "180x180"
@@ -44,6 +43,7 @@
44
43
  = Settings.app_name rescue "Thecore"
45
44
  .content{:'data-pjax-container' => true}
46
45
  = render template: 'layouts/rails_admin/pjax'
46
+ = render "layouts/rails_admin/ckeditor_base_path"
47
47
  = render "rails_admin/main/modal_interaction"
48
48
  -# -# Initialize JS simple i18n
49
49
  -# :javascript
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUiLayoutTaris
2
- VERSION = '1.2.17'.freeze
2
+ VERSION = '1.2.18'.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.17
4
+ version: 1.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni