raptor-editor-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +11 -11
- data/lib/raptor_editor_rails/version.rb +2 -2
- data/vendor/assets/javascripts/raptor.js +41 -23
- metadata +11 -21
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODg0ZWE0ZGM1NzRlYTcwYWYxYmE3MjNhY2Q1OTc2ZmFlMzVjOTc4Nw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDU2NzdlMDhhNzZiYmU4MTljMGVhODc0NGJiZjQ3ZjI2MjFhZDdhOQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Y2YxNmNjNTcwZDY5NzU0ZTk1ZTQ1NDdlZDgzZWE4OTBhZDk1MTFlZjc5NDlh
|
10
|
+
ZWUzMDc5NWE5OTkyMjdmNWQyZjgxNjgwYWJhODRkN2IwZTQxMjhiNjUxNjMw
|
11
|
+
ZWZjYWQyMDc3ZmNhYjU1MDJiZjAzMzRhMmI3NDgzYjQyYzdhMzE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
N2NjZmIyNzQyMzI0ZTlhYTg4OGRkMTBlMDQ1MmM2MzMxNGJkZWRmNjAzOWVm
|
14
|
+
NzJkYTIxZThjMGM3MGNlOGY3ZjNhOWM3ZmI1NTdlNDAzYTQ1ZDQyOGNmNjZk
|
15
|
+
OGY0N2ZkOGFlMmExYzE4ZTg4YTI1NDkxNzAyMDFiMzg0ZjI2MDc=
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ asset pipeline in your Rails applications.
|
|
5
5
|
|
6
6
|
## Version
|
7
7
|
|
8
|
-
Version 0.3.
|
8
|
+
Version 0.3.1 contains Raptor Editor 1.2.3.
|
9
9
|
|
10
10
|
## Usage
|
11
11
|
|
@@ -16,23 +16,23 @@ This gem comes with a pre-packaged build Raptor Editor from the options in
|
|
16
16
|
|
17
17
|
1. Add raptor-editor-rails to your `Gemfile`:
|
18
18
|
|
19
|
-
```ruby
|
20
|
-
gem "raptor-editor-rails"
|
21
|
-
```
|
19
|
+
```ruby
|
20
|
+
gem "raptor-editor-rails"
|
21
|
+
```
|
22
22
|
|
23
23
|
2. Run `bundle install`. Don't forget to restart your app!
|
24
24
|
|
25
25
|
3. Add Raptor Editor to your `app/assets/javascripts/application.js`:
|
26
26
|
|
27
|
-
```js
|
28
|
-
//= require raptor
|
29
|
-
```
|
27
|
+
```js
|
28
|
+
//= require raptor
|
29
|
+
```
|
30
30
|
|
31
31
|
4. Make elements of your site editable:
|
32
32
|
|
33
|
-
```js
|
34
|
-
$("#my_editable_element").raptor();
|
35
|
-
```
|
33
|
+
```js
|
34
|
+
$("#my_editable_element").raptor();
|
35
|
+
```
|
36
36
|
|
37
37
|
See the [Raptor Editor docs](http://www.raptor-editor.com/docs) for more.
|
38
38
|
|
@@ -61,7 +61,7 @@ to your project.
|
|
61
61
|
For all issues related to raptor-editor-rails, please raise an issue on
|
62
62
|
[GitHub](https://github.com/PANmedia/raptor-editor-rails/issues). If the issue
|
63
63
|
is related to Raptor Editor, please raise an issue
|
64
|
-
[over there]
|
64
|
+
[over there](https://github.com/PANmedia/raptor-editor/issues).
|
65
65
|
|
66
66
|
Better still, fork and contribute!
|
67
67
|
|
@@ -41925,7 +41925,7 @@ var Raptor = {
|
|
41925
41925
|
|
41926
41926
|
globalDefaults: {},
|
41927
41927
|
defaults: {},
|
41928
|
-
|
41928
|
+
|
41929
41929
|
/** @type {Boolean} True to enable hotkeys */
|
41930
41930
|
enableHotkeys: true,
|
41931
41931
|
|
@@ -42086,7 +42086,7 @@ var Raptor = {
|
|
42086
42086
|
|
42087
42087
|
this.plugins[plugin.name] = plugin;
|
42088
42088
|
},
|
42089
|
-
|
42089
|
+
|
42090
42090
|
registerPreset: function(preset, setDefault) {
|
42091
42091
|
// <strict/>
|
42092
42092
|
|
@@ -42106,20 +42106,24 @@ var Raptor = {
|
|
42106
42106
|
*/
|
42107
42107
|
persist: function(key, value, namespace) {
|
42108
42108
|
key = namespace ? namespace + '.' + key : key;
|
42109
|
-
|
42110
|
-
|
42111
|
-
if (localStorage
|
42112
|
-
storage
|
42113
|
-
|
42114
|
-
|
42115
|
-
|
42116
|
-
|
42117
|
-
|
42109
|
+
// Local storage throws an error when using XUL
|
42110
|
+
try {
|
42111
|
+
if (localStorage) {
|
42112
|
+
var storage;
|
42113
|
+
if (localStorage.uiWidgetEditor) {
|
42114
|
+
storage = JSON.parse(localStorage.uiWidgetEditor);
|
42115
|
+
} else {
|
42116
|
+
storage = {};
|
42117
|
+
}
|
42118
|
+
if (value === undefined) {
|
42119
|
+
return storage[key];
|
42120
|
+
}
|
42121
|
+
storage[key] = value;
|
42122
|
+
localStorage.uiWidgetEditor = JSON.stringify(storage);
|
42118
42123
|
}
|
42119
|
-
|
42120
|
-
localStorage.uiWidgetEditor = JSON.stringify(storage);
|
42121
|
-
}
|
42124
|
+
} catch (e) {
|
42122
42125
|
|
42126
|
+
}
|
42123
42127
|
return value;
|
42124
42128
|
}
|
42125
42129
|
|
@@ -42673,6 +42677,14 @@ var RaptorWidget = {
|
|
42673
42677
|
clean(this.getElement());
|
42674
42678
|
this.fire('enabled');
|
42675
42679
|
this.showLayout();
|
42680
|
+
|
42681
|
+
if (this.options.autoSelect) {
|
42682
|
+
if (this.options.partialEdit) {
|
42683
|
+
selectionSelectInner(this.getElement().find('[contenteditable]')[0]);
|
42684
|
+
} else {
|
42685
|
+
selectionSelectInner(this.getNode());
|
42686
|
+
}
|
42687
|
+
}
|
42676
42688
|
}
|
42677
42689
|
},
|
42678
42690
|
|
@@ -43142,7 +43154,7 @@ var RaptorWidget = {
|
|
43142
43154
|
};
|
43143
43155
|
|
43144
43156
|
$.widget('ui.raptor', RaptorWidget);
|
43145
|
-
|
43157
|
+
$.fn.raptor.Raptor = Raptor;;
|
43146
43158
|
// File end: /var/deployments/www.raptor-editor.com.3/raptor-gold/raptor-editor/src/raptor-widget.js
|
43147
43159
|
;
|
43148
43160
|
// File start: /var/deployments/www.raptor-editor.com.3/raptor-gold/raptor-editor/src/components/layout.js
|
@@ -44760,7 +44772,7 @@ ColorMenuBasic.prototype.changeColor = function(color, permanent) {
|
|
44760
44772
|
} else {
|
44761
44773
|
var uniqueId = elementUniqueId();
|
44762
44774
|
selectionToggleWrapper('span', {
|
44763
|
-
classes: this.options.
|
44775
|
+
classes: this.options.cssPrefix + 'color ' + this.options.cssPrefix + color,
|
44764
44776
|
attributes: {
|
44765
44777
|
id: uniqueId
|
44766
44778
|
}
|
@@ -44796,7 +44808,6 @@ ColorMenuBasic.prototype.menuItemMouseEnter = function(event) {
|
|
44796
44808
|
*/
|
44797
44809
|
ColorMenuBasic.prototype.menuItemMouseLeave = function(event) {
|
44798
44810
|
this.raptor.actionPreviewRestore();
|
44799
|
-
this.changeColor(this.currentColor);
|
44800
44811
|
};
|
44801
44812
|
|
44802
44813
|
/**
|
@@ -46866,7 +46877,7 @@ function PastePlugin(name, overrides) {
|
|
46866
46877
|
* @type {Array}
|
46867
46878
|
*/
|
46868
46879
|
allowedTags: [
|
46869
|
-
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', '
|
46880
|
+
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote',
|
46870
46881
|
'p', 'a', 'span', 'hr', 'br', 'strong', 'em'
|
46871
46882
|
],
|
46872
46883
|
|
@@ -49248,6 +49259,13 @@ Raptor.globalDefaults = {
|
|
49248
49259
|
*/
|
49249
49260
|
partialEdit: false,
|
49250
49261
|
|
49262
|
+
/**
|
49263
|
+
* Automatically select the editable content when editing is enabled.
|
49264
|
+
*
|
49265
|
+
* @type boolean
|
49266
|
+
*/
|
49267
|
+
autoSelect: true,
|
49268
|
+
|
49251
49269
|
/**
|
49252
49270
|
* Switch to specify if the editor should automatically enable all plugins,
|
49253
49271
|
* if set to false, only the plugins specified in the 'plugins' option
|
@@ -50150,10 +50168,6 @@ Base Style\n\
|
|
50150
50168
|
color: #333333;\n\
|
50151
50169
|
}\n\
|
50152
50170
|
\n\
|
50153
|
-
/* pan/core.scss */\n\
|
50154
|
-
*[disabled] {\n\
|
50155
|
-
pointer-events: none;\n\
|
50156
|
-
}\n\
|
50157
50171
|
\n\
|
50158
50172
|
/* Interaction states */\n\
|
50159
50173
|
/* pan/core.scss */\n\
|
@@ -52215,10 +52229,14 @@ Form Style\n\
|
|
52215
52229
|
\n\
|
52216
52230
|
/* line 28, style.scss */\n\
|
52217
52231
|
.raptor-editing-inline * {\n\
|
52218
|
-
color: inherit;\n\
|
52219
52232
|
text-shadow: inherit;\n\
|
52220
52233
|
}\n\
|
52221
52234
|
\n\
|
52235
|
+
/* line 32, style.scss */\n\
|
52236
|
+
.raptor-editing-inline *:not(.cms-color) {\n\
|
52237
|
+
color: inherit;\n\
|
52238
|
+
}\n\
|
52239
|
+
\n\
|
52222
52240
|
/**\n\
|
52223
52241
|
* Unsupported warning styles\n\
|
52224
52242
|
*\n\
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raptor-editor-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- PANmedia
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>'
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>'
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -35,49 +32,42 @@ executables: []
|
|
35
32
|
extensions: []
|
36
33
|
extra_rdoc_files: []
|
37
34
|
files:
|
38
|
-
-
|
35
|
+
- MIT-LICENSE
|
36
|
+
- README.md
|
37
|
+
- Rakefile
|
39
38
|
- lib/generators/raptor_editor_rails/copy/USAGE
|
40
|
-
- lib/generators/raptor_editor_rails/
|
39
|
+
- lib/generators/raptor_editor_rails/copy/copy_generator.rb
|
41
40
|
- lib/generators/raptor_editor_rails/install/USAGE
|
41
|
+
- lib/generators/raptor_editor_rails/install/install_generator.rb
|
42
42
|
- lib/raptor-editor-rails.rb
|
43
|
+
- lib/raptor_editor_rails.rb
|
43
44
|
- lib/raptor_editor_rails/config.rb
|
44
45
|
- lib/raptor_editor_rails/engine.rb
|
45
46
|
- lib/raptor_editor_rails/version.rb
|
46
|
-
- lib/raptor_editor_rails.rb
|
47
47
|
- lib/tasks/raptor_editor_rails_tasks.rake
|
48
48
|
- vendor/assets/javascripts/raptor.js
|
49
49
|
- vendor/assets/stylesheets/raptor-front-end.css
|
50
|
-
- MIT-LICENSE
|
51
|
-
- Rakefile
|
52
|
-
- README.md
|
53
50
|
homepage: https://www.github.com/PANmedia/raptor-editor-rails
|
54
51
|
licenses: []
|
52
|
+
metadata: {}
|
55
53
|
post_install_message:
|
56
54
|
rdoc_options: []
|
57
55
|
require_paths:
|
58
56
|
- lib
|
59
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
58
|
requirements:
|
62
59
|
- - ! '>='
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '0'
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
hash: -832327472966913062
|
68
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
63
|
requirements:
|
71
64
|
- - ! '>='
|
72
65
|
- !ruby/object:Gem::Version
|
73
66
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: -832327472966913062
|
77
67
|
requirements: []
|
78
68
|
rubyforge_project:
|
79
|
-
rubygems_version:
|
69
|
+
rubygems_version: 2.2.1
|
80
70
|
signing_key:
|
81
|
-
specification_version:
|
71
|
+
specification_version: 4
|
82
72
|
summary: Raptor Editor on the Rails Asset Pipeline
|
83
73
|
test_files: []
|