refinerycms-wymeditor 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/app/assets/javascripts/wymeditor/prototypes.js.erb +2 -0
- data/lib/generators/refinery/wymeditor/templates/config/initializers/refinery/wymeditor.rb.erb +7 -1
- data/lib/refinery/wymeditor/configuration.rb +2 -1
- data/readme.md +20 -6
- data/refinerycms-wymeditor.gemspec +2 -2
- metadata +4 -4
- metadata.gz.sig +0 -0
- data/config/initializers/refinery/wymeditor.rb.erb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d8a5a5bfcdf9a4164c01c6f621814cf160e8fa
|
4
|
+
data.tar.gz: 536e8062394ee3e28d0a3613a794c537955c557c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbff1287b96f08cf2442a4b48db4bada01320286864d49e75bec98cd7712ece7799bb815aac0c3535c6827f3b086ca206c481ebbe230f3a5f36cde84211186ac
|
7
|
+
data.tar.gz: 82eb770ca02778a316de2a17839c8749037473fceeb4af75b9b615ef6f6320d4d69b771cbd3609b7979a3369f1793030964e8e0b7434d2a2f1f94c1221a853e6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -268,12 +268,14 @@ WYMeditor.editor.prototype.html = function(html) {
|
|
268
268
|
* @description Catch the browser paste action and open the appropriate dialog instead
|
269
269
|
*/
|
270
270
|
WYMeditor.editor.prototype.intercept_paste = function(e) {
|
271
|
+
<% if Refinery::Wymeditor.config.intercept_paste %>
|
271
272
|
var wym = WYMeditor.INSTANCES[this.title];
|
272
273
|
wym.format_block();
|
273
274
|
wym.exec(WYMeditor.PASTE);
|
274
275
|
if (e) {
|
275
276
|
e.preventDefault();
|
276
277
|
}
|
278
|
+
<% end %>
|
277
279
|
};
|
278
280
|
|
279
281
|
/* @name xhtml
|
data/lib/generators/refinery/wymeditor/templates/config/initializers/refinery/wymeditor.rb.erb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
Refinery::Wymeditor.configure do |config|
|
3
|
-
# Add extra tags to the wymeditor whitelist e.g. = {'
|
3
|
+
# Add extra tags to the wymeditor whitelist e.g. = {'a' => {'attributes': '1': 'href'}} or just {'a' => {}}
|
4
4
|
# config.whitelist_tags = <%= Refinery::Wymeditor.whitelist_tags.inspect %>
|
5
|
+
|
6
|
+
# Toggle the paste dialog when using browser paste.
|
7
|
+
# You will have to clear your asset cache after changing this setting.
|
8
|
+
# In development mode: this is as simple as: `rm -rf tmp/cache/assets`.
|
9
|
+
# In production mode: hopefully you recompile assets every time you deploy.
|
10
|
+
# config.intercept_paste = <%= Refinery::Wymeditor.intercept_paste.inspect %>
|
5
11
|
end
|
data/readme.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
# WYMeditor (the visual editor)
|
1
|
+
# Refinery CMS WYMeditor (the visual editor)
|
2
2
|
|
3
|
-
|
3
|
+
[](https://travis-ci.org/parndt/refinerycms-wymeditor)
|
4
|
+
|
5
|
+
Refinery CMS is backed by [WYMeditor](http://www.wymeditor.org/)
|
4
6
|
|
5
7
|
It's a standards compliant editor that we've trimmed to only have what we feel
|
6
8
|
is absolutely necessary. When you're editing the content in a page part you're
|
@@ -11,9 +13,23 @@ features like our custom dialogues however it is all based on the release: WYMed
|
|
11
13
|
|
12
14
|
You can also switch to "source" view and edit HTML manually if the visual editor is not playing nice.
|
13
15
|
|
14
|
-
## Custom Selectable Styles in WYMeditor
|
15
16
|
|
16
|
-
|
17
|
+
## Installation
|
18
|
+
|
19
|
+
Simply put this in the Gemfile of your Refinery application:
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
gem 'refinerycms-wymeditor', ['~> 1.0', '>= 1.0.7']
|
23
|
+
```
|
24
|
+
|
25
|
+
Now, run `bundle install`
|
26
|
+
|
27
|
+
Next, to install the WYMeditor extension run:
|
28
|
+
|
29
|
+
rails generate refinery:wymeditor
|
30
|
+
|
31
|
+
|
32
|
+
## Custom Selectable Styles in WYMeditor
|
17
33
|
|
18
34
|
Some sites require a little more than just your standard bold and heading controls.
|
19
35
|
This is where the "css" style drop down comes in handy.
|
@@ -91,8 +107,6 @@ var custom_visual_editor_boot_options = {
|
|
91
107
|
|
92
108
|
## Dialogs that show from WYMeditor
|
93
109
|
|
94
|
-

|
95
|
-
|
96
110
|
### Page Link dialog
|
97
111
|
|
98
112
|
The link dialog lets you link in several different ways:
|
@@ -2,11 +2,11 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = %q{refinerycms-wymeditor}
|
5
|
-
s.version = '1.0
|
5
|
+
s.version = '1.1.0'
|
6
6
|
s.summary = %q{WYMeditor support for Refinery CMS}
|
7
7
|
s.description = %q{This extension adds WYMeditor support to Refinery CMS for visual editing.}
|
8
8
|
s.email = %q{gems@p.arndt.io}
|
9
|
-
s.homepage = %q{
|
9
|
+
s.homepage = %q{https://manuka.co}
|
10
10
|
s.authors = ['Philip Arndt']
|
11
11
|
s.license = %q{MIT}
|
12
12
|
s.require_paths = %w(lib)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-wymeditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
+wsbjPvdIWsjWQMn6MasZYIVTnenwP2jg+z9HSNxW0NL2vZx8VabpsWGWfrb+koj
|
31
31
|
rE1h12GTgwaC3r9FOkdnSpClgPYAzTTCJ8kD74qO2zC9pGegrUXdWFM6
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-
|
33
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: refinerycms-core
|
@@ -185,7 +185,6 @@ files:
|
|
185
185
|
- app/views/refinery/admin/dialogs/show.html.erb
|
186
186
|
- app/views/refinery/wymiframe.html.erb
|
187
187
|
- bin/rails
|
188
|
-
- config/initializers/refinery/wymeditor.rb.erb
|
189
188
|
- config/routes.rb
|
190
189
|
- lib/generators/refinery/wymeditor/templates/config/initializers/refinery/wymeditor.rb.erb
|
191
190
|
- lib/generators/refinery/wymeditor/wymeditor_generator.rb
|
@@ -202,7 +201,7 @@ files:
|
|
202
201
|
- spec/features/refinery/admin/wymeditor_feature_spec.rb
|
203
202
|
- spec/models/refinery/page_spec.rb
|
204
203
|
- spec/spec_helper.rb
|
205
|
-
homepage:
|
204
|
+
homepage: https://manuka.co
|
206
205
|
licenses:
|
207
206
|
- MIT
|
208
207
|
metadata: {}
|
@@ -231,3 +230,4 @@ test_files:
|
|
231
230
|
- spec/features/refinery/admin/wymeditor_feature_spec.rb
|
232
231
|
- spec/models/refinery/page_spec.rb
|
233
232
|
- spec/spec_helper.rb
|
233
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|