Skip to content

Commit

Permalink
Fix for wysiwyg editor
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Jun 14, 2010
1 parent f73be8a commit c670725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/content/core_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class EditorField < Content::CoreField::HtmlField #:nodoc:all
content_display :html
setup_model(:required) do |cls,fld|
unless cls.superclass == HashModel
cls.before_save() { |entry| entry.send("#{fld.model_field.field}=",ContentFilter.wysiwyg_replace_images(entry.send(fld.model_field.field)) ) }
cls.before_save() { |entry| entry.send("#{fld.model_field.field}=",ContentFilter.wysiwyg_replace_images(entry.send(fld.model_field.field).to_s) ) }
end
end
# Everything the same as StringField that we want to display an editor area
Expand Down

0 comments on commit c670725

Please sign in to comment.