Skip to content

Commit

Permalink
rename editor to rich_editor
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiaanterhorst committed Jul 6, 2012
1 parent 53bfe29 commit 84c91c2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -141,7 +141,7 @@ Rich also includes a few settings that manipulate CKEditor settings, but are a b

=== Editor styles

When you run the generator a css file is created for you in <tt>app/assets/stylesheets/rich/editor.css</tt>. Use this stylesheet to define the contents of the Styles drop down in CKEditor.
When you run the generator a css file is created for you in <tt>app/assets/stylesheets/rich/rich_editor.css</tt>. Use this stylesheet to define the contents of the Styles drop down in CKEditor.

=== Image configuration & (re)processing

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/generators/rich/install/install_generator.rb
Expand Up @@ -18,7 +18,7 @@ def setup_route
end

def install_editor_styles
copy_file '../../../../../app/assets/stylesheets/rich/editor.css', 'app/assets/stylesheets/rich/editor.css'
copy_file '../../../../../app/assets/stylesheets/rich/rich_editor.css', 'app/assets/stylesheets/rich/rich_editor.css'
end

def install_javascript
Expand Down
8 changes: 2 additions & 6 deletions lib/rich.rb
Expand Up @@ -61,7 +61,7 @@ def self.image_styles=(image_styles)
:stylesSet => [],
:extraPlugins => 'stylesheetparser,richfile,MediaEmbed',
:removePlugins => 'scayt,menubutton,contextmenu,image,forms',
:contentsCss => '/assets/rich/editor.css',
:contentsCss => '/assets/rich/rich_editor.css',
:removeDialogTabs => 'link:advanced;link:target',
:startupOutlineBlocks => true,
:forcePasteAsPlainText => true,
Expand Down Expand Up @@ -163,11 +163,7 @@ def self.setup
end

def self.insert






# manually inject into Formtastic 1. V2 is extended autmatically.
if Object.const_defined?("Formtastic")
if(Gem.loaded_specs["formtastic"].version.version[0,1] == "1")
Expand Down
2 changes: 1 addition & 1 deletion lib/rich/engine.rb
Expand Up @@ -6,7 +6,7 @@ class Engine < Rails::Engine
isolate_namespace Rich

initializer "rich.add_middleware" do |app|
app.config.assets.precompile += %w( rich/base.js rich/editor.css )
app.config.assets.precompile += %w( rich/base.js rich/rich_editor.css )
app.middleware.use 'Rack::RawUpload', :paths => ['/rich/files']
end

Expand Down
2 changes: 1 addition & 1 deletion lib/rich/version.rb
@@ -1,3 +1,3 @@
module Rich
VERSION = "1.1.0"
VERSION = "1.2.0"
end

0 comments on commit 84c91c2

Please sign in to comment.