i've been beating my head against the wall on this one!! right now the button for images allows a user to set H and W - that's fine, could actually remove it too (would prefer to, makes it easier i think)

BUT i'm trying to figure out how to set a max H and W (really W!) to avoid breaking a theme

i've seen this discussion: http://drupal.org/node/120889 and also this clever idea for adding lightbox (which would be awesome) http://drupal.org/node/276379#comment-902105

...but i'm trying to find the most sane and bueditor-compliant way to do this - not sure if this should happen in the theme's style sheet, or within bueditor though i'm now inclined to believe that bueditor could handle this well

i'm bringing this up specific to ONLY links to external images (using imagefield/cck/imagecache presets for images attached to node directly via upload

any thoughts? ideas? thanks in advance for any sample code, suggestions, resources or whatever!

Comments

pribeh’s picture

bump

Rosamunda’s picture

subscribing!

drupdruppalpal’s picture

subscribing!

ufku’s picture

you may limit width of your images in your theme's css

img {//make site-wide limitation
  max-width: 800px !important;
}
.node img {//make node content limitation.
  max-width: 600px !important;
}
...

BUEditor may enter image code that has the limited values, however it would be easily changed by the user.

Fayna’s picture

thanks ufku! that code worked great. made a max height and width for my forum images :)

ufku’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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