Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We need the ability to insert images and apply default styles to uploaded images.
Comments
Comment #1
notzach CreditAttribution: notzach commentedTodo:
Add back in the default html filters and make filtered html the defaultAdd tinymce source and other entries to the .make filesConfigure tinymce wysiwyg profileComment #2
notzach CreditAttribution: notzach commentedI'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
Comment #3
notzach CreditAttribution: notzach commentedComment #4
notzach CreditAttribution: notzach commentedThanks 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.
Comment #5
notzach CreditAttribution: notzach commentedHey 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:
Thoughts?
Comment #6
tlattimore CreditAttribution: tlattimore commentedhttp://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.
Comment #7
notzach CreditAttribution: notzach commentedLooks like everything is working as expected.
Comment #8.0
(not verified) CreditAttribution: commentedThis issue's topic has changed, it's no longer about wysiwyg. We're going with the Insert module and file field.