Skip to content

Commit

Permalink
create a template tinymce config file so we could change it in there …
Browse files Browse the repository at this point in the history
…instead. installs it on the system.
  • Loading branch information
maleko committed Jun 15, 2012
1 parent d629e1b commit c65b352
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/generators/spree_editor/install_generator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module SpreeEditor
module Generators
class InstallGenerator < Rails::Generators::Base
source_root File.expand_path("../../../templates", __FILE__)

def add_javascripts
append_file "app/assets/javascripts/admin/all.js", "//= require admin/spree_editor\n"
Expand All @@ -10,6 +11,9 @@ def add_stylesheets
inject_into_file "app/assets/stylesheets/admin/all.css", " *= require admin/spree_editor\n", :before => /\*\//, :verbose => true
end

def copy_tinymce_file
copy_file "config/tinymce.yml", "config/tinymce.yml"
end
end
end
end
File renamed without changes.
4 changes: 2 additions & 2 deletions spree_editor.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_editor'
s.version = '1.0.0'
s.version = '1.0.1'
s.summary = 'Adds support of several WYSIWYG editors to Spree'
s.description = 'Atm supported: YUIRichEditor, WYMEditor, TinyMCE'
s.required_ruby_version = '>= 1.8.7'

s.authors = ['Alexander Shuhin', 'Roman Smirnov', 'divineforest']
s.authors = ['Alexander Shuhin', 'Roman Smirnov', 'divineforest', 'Marc Lee']
# s.email = '[email protected]'
s.homepage = 'http://github.com/spree/spree_editor'
# s.rubyforge_project = 'actionmailer'
Expand Down

0 comments on commit c65b352

Please sign in to comment.