gollum_editor 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gollum_editor.rb +12 -1
- data/lib/gollum_editor/form_helper.rb +2 -1
- data/lib/gollum_editor/version.rb +1 -1
- metadata +3 -3
data/lib/gollum_editor.rb
CHANGED
@@ -1,3 +1,14 @@
|
|
1
1
|
require "gollum_editor/version"
|
2
2
|
require "gollum_editor/form_builder"
|
3
|
-
require "gollum_editor/form_helper"
|
3
|
+
require "gollum_editor/form_helper"
|
4
|
+
|
5
|
+
puts "send"
|
6
|
+
ActionView::Helpers::FormHelper.send(:include, GollumEditor::FormHelper)
|
7
|
+
|
8
|
+
module Rails
|
9
|
+
class GollumEditor < Engine
|
10
|
+
initializer :assets do |config|
|
11
|
+
Rails.application.config.assets.precompile += %w( gollum_editor/gollum.js gollum_editor/gollum.css )
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module GollumEditor
|
2
2
|
module FormHelper
|
3
3
|
def gollum_editor(object_name, method, options = {})
|
4
|
-
|
4
|
+
puts "gollum called"
|
5
5
|
controls = '<div id="gollum-editor-function-bar">
|
6
6
|
<div id="gollum-editor-function-buttons">
|
7
7
|
<a href="#" id="function-bold" class="function-button" title="Bold">
|
@@ -63,6 +63,7 @@ module GollumEditor
|
|
63
63
|
|
64
64
|
<span class="jaws"><br></span>'
|
65
65
|
input = text_area(object_name, method, options)
|
66
|
+
puts "After input"
|
66
67
|
content_tag(:div, (controls.html_safe + input), { :id => 'gollum-editor' })
|
67
68
|
end
|
68
69
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum_editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
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: 2012-
|
12
|
+
date: 2012-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Use the Gollum wiki text editor for text areas
|
15
15
|
email:
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project: gollum_editor
|
56
|
-
rubygems_version: 1.8.
|
56
|
+
rubygems_version: 1.8.24
|
57
57
|
signing_key:
|
58
58
|
specification_version: 3
|
59
59
|
summary: Gollum text editor
|