Skip to content

Implement rich text editor for blog posts#14

Merged
jhash merged 1 commit intomainfrom
rich-content
Jul 26, 2025
Merged

Implement rich text editor for blog posts#14
jhash merged 1 commit intomainfrom
rich-content

Conversation

@jhash
Copy link
Copy Markdown
Owner

@jhash jhash commented Jul 26, 2025

Summary

  • Integrated Rails Action Text to enable rich text editing for blog post content
  • Migrated from plain text content field to Action Text rich content
  • Updated all views and controllers to support rich text display and editing

Changes

  • Added Action Text to the BlogPost model using has_rich_text :content
  • Removed the plain text content column from the blog_posts table
  • Updated the blog post form to use rich_text_area for content editing
  • Modified all blog post views (public and admin) to properly render rich text content
  • Updated RSS and Atom feeds to handle Action Text content properly
  • Fixed admin search functionality to work with Action Text content
  • Resolved all rubocop style issues

Test Plan

  • Create a new blog post with rich text formatting (bold, italic, links, images)
  • Verify rich text displays correctly on the public blog post page
  • Verify rich text displays correctly on the admin blog post show page
  • Test editing an existing blog post with rich text
  • Confirm RSS and Atom feeds work correctly
  • Test admin search functionality for content within blog posts

🤖 Generated with Claude Code

- Add Action Text to blog posts for rich content editing
- Update BlogPost model to use has_rich_text :content
- Remove content column from blog_posts table
- Update forms to use rich_text_area for content editing
- Update all views to properly display rich text content
- Update RSS/Atom feeds to handle Action Text content
- Update admin controller to search within Action Text content
- Fix all rubocop issues in schema.rb

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jhash jhash marked this pull request as ready for review July 26, 2025 00:09
@jhash jhash merged commit c5f6803 into main Jul 26, 2025
4 checks passed
jhash added a commit that referenced this pull request Jul 26, 2025
- Add Action Text to blog posts for rich content editing
- Update BlogPost model to use has_rich_text :content
- Remove content column from blog_posts table
- Update forms to use rich_text_area for content editing
- Update all views to properly display rich text content
- Update RSS/Atom feeds to handle Action Text content
- Update admin controller to search within Action Text content
- Fix all rubocop issues in schema.rb

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant