Hello,
I'm new to this forum, wish to post on the correct subforum.
1. I'd like to know if, when adding an image by writing the image link on the field if the image can have a maxwidth auto defined.
Because when adding too large sized image (width > 700px) , my div of 700 px is showed with an image crossing over it.
2. As well, is it possible to define a default class for image added ?
Regards.
oOKaMiZuKOo
EDIT : Using CKEditor 3.4.2
Sat, 11/06/2010 - 14:16
#1
Re: Define max image width when added with editor
I think i've found, and actually, it seems to work fine :
from this autor : http://sebduggan.com/posts/customising-ckeditor-settings-in-mura
i've adapted the code to set to max width 200px
Re: Define max image width when added with editor
I am still looking for auto resize image possibility when added on the editor by a user, does anyone know how to do it in way that user see the picture auto resized with his eyes, like 200 px width max ?
Thank you for help, i really need it.
Re: Define max image width when added with editor
Re: Define max image width when added with editor
Sorry wasn't there for a while.
I really need this function to work on INPUT.
May someone please help me !?
Thanks.
Re: Define max image width when added with editor 3.4.2
Re: Define max image width when added with editor 3.4.2
If you prefer to leave the image without resizing, then you can specify maximum dimensions in your css file: img {max-width:700px} should take care of it.
If you don't want to put it in the css file, then you have a harder task ahead: you'll have to write a plugin that modifies the image dialog so it checks the dimensions and apply whatever restrictions you want.
Re: Define max image width when added with editor 3.4.2
Thank you for answer alfonsoml, i will try with CSS then.