editables 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.textile +3 -4
- data/VERSION +1 -1
- data/app/helpers/editables/application_helper.rb +7 -2
- data/editables.gemspec +2 -2
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/README.textile
CHANGED
@@ -3,16 +3,15 @@ http://edgeguides.rubyonrails.org/engines.html
|
|
3
3
|
h1. Installation
|
4
4
|
|
5
5
|
gem 'editables'
|
6
|
-
|
7
|
-
|
6
|
+
|
7
|
+
rake editables:install:migrations
|
8
|
+
rake db:migrate
|
8
9
|
|
9
10
|
add this to ApplicationController.rb
|
10
11
|
|
11
12
|
class ApplicationController < ActionController::Base
|
12
13
|
helper Editables::Engine.helpers
|
13
14
|
end
|
14
|
-
|
15
|
-
rake editables:install:migrations
|
16
15
|
|
17
16
|
<!-- add this to the top of your layout file right after the body tag
|
18
17
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -9,9 +9,14 @@ module Editables
|
|
9
9
|
def wysiwyg
|
10
10
|
if !@wysiwyg
|
11
11
|
@wysiwyg = true
|
12
|
+
if FileTest.exists?(Rails.root.join('public', 'ckeditor', "ckeditor.js"))
|
13
|
+
base_dir = "/ckeditor"
|
14
|
+
else
|
15
|
+
base_dir = "/assets/ckeditor"
|
16
|
+
end
|
12
17
|
return [
|
13
|
-
'<script src="/
|
14
|
-
'<script src="/
|
18
|
+
'<script src="'+base_dir+'/ckeditor.js" ></script>',
|
19
|
+
'<script src="'+base_dir+'/adapters/jquery.js" ></script>',
|
15
20
|
'<script>$(function(){ $("textarea.editor").ckeditor(); })</script>'
|
16
21
|
].join(" ").html_safe
|
17
22
|
else
|
data/editables.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "editables"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gabe Coyne"]
|
12
|
-
s.date = "2013-04-
|
12
|
+
s.date = "2013-04-26"
|
13
13
|
s.description = "Easy wysiwyg editing of website content and images"
|
14
14
|
s.email = "gabe@killitcreative.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: editables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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-04-
|
12
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash:
|
146
|
+
hash: 3448543127757088296
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|