tinymce-rails 3.5.8.1 → 3.5.8.2
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.
- data/README.md +7 -3
- data/lib/tinymce/rails/engine.rb +12 -1
- data/lib/tinymce/rails/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
Rails
|
|
2
|
-
|
|
1
|
+
Rails Integration for TinyMCE
|
|
2
|
+
=============================
|
|
3
3
|
|
|
4
|
-
The `tinymce-rails` gem integrates the [TinyMCE](http://www.tinymce.com/) editor with the Rails
|
|
4
|
+
The `tinymce-rails` gem integrates the [TinyMCE](http://www.tinymce.com/) editor with the Rails asset pipeline.
|
|
5
|
+
|
|
6
|
+
This gem is compatible with Rails 3.1.1 and higher. Support for TinyMCE 4 is currently under development in the [tinymce-4 branch](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4).
|
|
7
|
+
|
|
8
|
+
[](https://travis-ci.org/spohlenz/tinymce-rails)
|
|
5
9
|
|
|
6
10
|
|
|
7
11
|
Instructions
|
data/lib/tinymce/rails/engine.rb
CHANGED
|
@@ -20,7 +20,18 @@ module TinyMCE::Rails
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def self.default_base
|
|
23
|
-
File.join(
|
|
23
|
+
File.join(relative_url_root || "", Rails.application.config.assets.prefix || "/", "tinymce")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.relative_url_root
|
|
27
|
+
config = Rails.application.config
|
|
28
|
+
|
|
29
|
+
if config.respond_to?(:relative_url_root)
|
|
30
|
+
config.relative_url_root
|
|
31
|
+
else
|
|
32
|
+
# Fallback for Rails 3.1
|
|
33
|
+
config.action_controller.relative_url_root
|
|
34
|
+
end
|
|
24
35
|
end
|
|
25
36
|
end
|
|
26
37
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tinymce-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.8.
|
|
4
|
+
version: 3.5.8.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: railties
|
|
@@ -308,7 +308,7 @@ files:
|
|
|
308
308
|
- vendor/assets/javascripts/tinymce/utils/form_utils.js
|
|
309
309
|
- vendor/assets/javascripts/tinymce/utils/mctabs.js
|
|
310
310
|
- vendor/assets/javascripts/tinymce/utils/validate.js
|
|
311
|
-
homepage:
|
|
311
|
+
homepage: https://github.com/spohlenz/tinymce-rails
|
|
312
312
|
licenses: []
|
|
313
313
|
post_install_message:
|
|
314
314
|
rdoc_options: []
|