We need the ability to insert images and apply default styles to uploaded images.

Comments

notzach’s picture

Title: Ability to insert images into blog posts » Configure wysiwyg and all of that fun stuff
Assigned: tlattimore » notzach

Todo:

  • Add back in the default html filters and make filtered html the default
  • Add tinymce source and other entries to the .make files
  • Configure tinymce wysiwyg profile
notzach’s picture

Title: Configure wysiwyg and all of that fun stuff » Ability to insert images into blog posts
Status: Active » Needs work

I'm pretty sure we can do this with http://drupal.org/project/filefield_sources, http://drupal.org/project/insert and http://drupal.org/project/image_resize_filter and we can avoid having to add in the wysiwyg dependency.

Also, check this out: http://mustardseedmedia.com/podcast/episode29

notzach’s picture

Assigned: notzach » tlattimore
notzach’s picture

Title: Configure wysiwyg and all of that fun stuff » Ability to insert images into blog posts
Assigned: notzach » tlattimore

Thanks tlattimore for commit 4fbad94, it adds Insert and configures the image field, awesome!

I'm going to add in the image_resize_filter when I get home and that should sort this whole thing out.

notzach’s picture

Hey tlattimore,

In commit b2844b2 I changed the post image style to 800px (it broke sidebars in the 940px), this kinda got me thinking about how the blog should handle image placement and what sizes of images should be presented to the end user. Since the img element that is generated when you insert the image into the textarea always has a class that's like image-PRESET-NAME I think we could devise a few preset image style presets that could do different things and give users some flexibility in where on the page they can place images.

For instance, we could define a preset that scales the image 200px wide called post-float-right and we could have a css rule that would float the image on the right. Then, when the page rendered it would link to the image style derivative and the rules would be applied to it. I'm thinking we could do a few different sizes and positions.

So far I'm thinking:

  • post-thumb-float-left
  • post-thumb-float-right
  • post-medium-float-left
  • post-medium-float-right
  • post-large-float-left
  • post-large-float-right
  • post-full-width

Thoughts?

tlattimore’s picture

http://drupal.org/commitlog/commit/36882/c3d51fd956cbe027454c64c839e6a6e... added support filefield_sources on images in posts.

I like the idea of supported different image sizes and positions re #5. Will get working on it.

notzach’s picture

Status: Needs work » Fixed

Looks like everything is working as expected.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

This issue's topic has changed, it's no longer about wysiwyg. We're going with the Insert module and file field.