refinerycms-wymeditor 1.0.7 → 1.1.0

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: ef1631d0fc032d8b29f7b3f6d2d24792b5c9919e
4
- data.tar.gz: 7da06a9747c6016d2fa8356038ec773a160354b3
3
+ metadata.gz: 83d8a5a5bfcdf9a4164c01c6f621814cf160e8fa
4
+ data.tar.gz: 536e8062394ee3e28d0a3613a794c537955c557c
5
5
  SHA512:
6
- metadata.gz: df8a46418240ea3839ff4bfb9b477001f6920281b964e102390b19badbf38220180d90edda6db42f4e1887c63991bf6756ea3bfed146220ac5bef67e95278b66
7
- data.tar.gz: a3174d259aebd783c7cc96153367172e47e97ad0f973a541d8fe2d9a6c70bba48484bfac413482367bcf7115f40cc00c20dede1bef132bcace475e1f379e99ae
6
+ metadata.gz: fbff1287b96f08cf2442a4b48db4bada01320286864d49e75bec98cd7712ece7799bb815aac0c3535c6827f3b086ca206c481ebbe230f3a5f36cde84211186ac
7
+ data.tar.gz: 82eb770ca02778a316de2a17839c8749037473fceeb4af75b9b615ef6f6320d4d69b771cbd3609b7979a3369f1793030964e8e0b7434d2a2f1f94c1221a853e6
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
@@ -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. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}}
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
@@ -2,9 +2,10 @@ module Refinery
2
2
  module Wymeditor
3
3
  include ActiveSupport::Configurable
4
4
 
5
- config_accessor :whitelist_tags
5
+ config_accessor :whitelist_tags, :intercept_paste
6
6
 
7
7
  self.whitelist_tags = {}
8
+ self.intercept_paste = true
8
9
 
9
10
  end
10
11
  end
data/readme.md CHANGED
@@ -1,6 +1,8 @@
1
- # WYMeditor (the visual editor) [![Build Status](https://travis-ci.org/parndt/refinerycms-wymeditor.svg?branch=master)](https://travis-ci.org/parndt/refinerycms-wymeditor)
1
+ # Refinery CMS WYMeditor (the visual editor)
2
2
 
3
- Refinery is backed by [WYMeditor](http://www.wymeditor.org/)
3
+ [![Build Status](https://travis-ci.org/parndt/refinerycms-wymeditor.svg?branch=master)](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
- ![Refinery Page Editor Styles](http://refinerycms.com/system/images/0000/0596/editing-page-style.png)
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
- ![Refinery Page Editor Link Dialog](http://refinerycms.com/system/images/0000/0636/link-dialog.png)
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.7'
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{http://refinerycms.com}
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.7
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-06-22 00:00:00.000000000 Z
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: http://refinerycms.com
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
@@ -1,4 +0,0 @@
1
- Refinery::Wymeditor.configure do |config|
2
- # Add extra tags to the wymeditor whitelist e.g. = {'a' => {'attributes': '1': 'href'}} or just {'a' => {}}
3
- # config.whitelist_tags = <%= Refinery::Wymeditor.whitelist_tags.inspect %>
4
- end