effective_ckeditor 1.7.12 → 1.7.13

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: ccbfa72f2137737d8a11a1618a61265bd35db4b2
4
- data.tar.gz: 5a3aed33fa1858d7116491e615c6340607181061
3
+ metadata.gz: 7abab1efa76d59c0cd272c0e1ba16d5984e2bf4f
4
+ data.tar.gz: df68003269e9eb94944f32ca94878c4bd6470fac
5
5
  SHA512:
6
- metadata.gz: d37f565bea92127a8d8a735bfea22c6b62c512da47c9050bd85be018c91fbe40e557f57d83b9270d36e4d72c3e1cf7f4b53e44585476448a4b36bbda87f859ba
7
- data.tar.gz: f2db63eecf1bf3e1924e13ddc14012040f2b901aca68ba45df7a909bd742f91c414b88ea2395e2805abc80827adadc54b04af2d60f2f62ce85789bd1d14634e6
6
+ metadata.gz: 30a70cc0c7a5e62b1842a11f5967f05db8d5f4d645be8b59b6ee364724c8a357ee0977d79525f63240e801a5c7f679a8f76ea6208e3cda1a0b7718e18447d5b2
7
+ data.tar.gz: d8a6a0dbda271a991ea73667819b57ac9ed34f2b5c7aa088568f801d6f7324372923f8dde9d42482c90a69c213c121663f41b0f49bec3682b58a7fd489e1658b
@@ -1,7 +1,5 @@
1
1
  SaveAll = {
2
2
  instanceData: (instance) ->
3
- instance.resetDirty()
4
-
5
3
  snippets = {} # This is the Data we're going to post to the server
6
4
  snippet_ids = [] # This keeps track html classes we need to later replace
7
5
 
@@ -30,14 +28,8 @@ SaveAll = {
30
28
 
31
29
  exec: (editor) ->
32
30
  # Show a checkmark on the Save button
33
- try
34
- button = $("##{this.uiItems[0]._.id}").find('.cke_button__save_icon')
35
-
36
- button.addClass('saving')
37
- setTimeout(
38
- -> button.removeClass('saving')
39
- 2000
40
- )
31
+ button = $("##{this.uiItems[0]._.id}").find('.cke_button__save_icon')
32
+ try button.addClass('saving')
41
33
 
42
34
  url = window.location.protocol + '//' + window.location.host + '/edit' + window.location.pathname
43
35
 
@@ -55,9 +47,17 @@ SaveAll = {
55
47
  dataType: 'json'
56
48
  data: { effective_regions: regionData, effective_menus: menuData }
57
49
  async: false
58
- complete: (response) ->
50
+ complete: (response) =>
51
+ instance.resetDirty() for name, instance of CKEDITOR.instances
52
+
59
53
  data = response['responseJSON'] || {}
60
54
  $('.effective-menu').effectiveMenuEditor('saveComplete', data['effective_menus'])
55
+
56
+ setTimeout(
57
+ -> button.removeClass('saving')
58
+ 200
59
+ )
60
+
61
61
  location.reload(true) if data['refresh'] == true
62
62
  }
63
63
 
@@ -73,7 +73,8 @@ initEditor = (editor_div) ->
73
73
  templates_replaceContent: false
74
74
  filebrowserWindowHeight: 600
75
75
  filebrowserWindowWidth: 800
76
- filebrowserBrowseUrl: '/effective/assets?only=images'
76
+ filebrowserBrowseUrl: '/effective/assets'
77
+ filebrowserImageBrowseUrl: '/effective/assets?only=images'
77
78
  referencesEditorSelector:"'#' + editor.name"
78
79
  toolbar_full: [
79
80
  { name: 'save', items: ['Save', '-', 'NewPage'] },
@@ -1,3 +1,3 @@
1
1
  module EffectiveCkeditor
2
- VERSION = '1.7.12'.freeze
2
+ VERSION = '1.7.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.12
4
+ version: 1.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails