On Dec 4, 2008, at 5:45 PM, Laurent Lunati wrote:
Le 4 déc. 08 à 16:40, Thomas Mortagne a écrit :
On Thu, Dec 4, 2008 at 4:16 PM, Jean-Vincent Drean <[email protected]> wrote:
Hi XWikiers,
I've made mockups for the WYSIWYG Image dialogs, you can see them at : http://dev.xwiki.org/xwiki/bin/view/Design/NewWysiwygEditorInterface#HImage
Votes for internal image insertion :
1) Image size ------------------
In the mockup you can see a dropdown allowing to set some predefined sizes to the image (inspired by google docs). We could rely on the browser's image resizing feature for this and drop this setting. I'm in favor of keeping it (see my votes below) since it allow to keep size consistency between multiple images (screenshots for example) in the same page. Also, IE and FF have this resizing feature but we can't assume that it'll be the same for all the browsers we will target in the future.
2) Image size option ---------------------------
a) Allow to edit only the image width (guarantee that the image width/height ratio won't be affected by the resize). b) Allow to edit both image width and height.
3) Text flow ---------------
I think it's a must have but since it'll rely on a touchy parameter I prefer that we vote for it. Generated wiki syntax example : [[image:awsome.jpg|| style="float:right"]] Notes : - for the moment using this will cause issues with titles, see : http://www.jean-vincent.org/xwiki/bin/view/Main/Image - I'm not sure that we'll be able to combine position center + text flow.
4) Preview --------------
I've put an image preview in the mockup, we've multiple choices: a) Drop it since it makes the dialog heavy. a) Keep it stupid simple, the image is represented by a placeholder and the 6 possible states are "prerecorded" (could be images). d) Make it an advanced preview, the image is the selected image, the preview takes the size of the image into account (by calculating what the selected size would look like compared to the page content in a predefined resolution, like 1024x768).
Votes for external image insertion :
5) Number of wizard steps -----------------------------------
Like for the link insertion dialogs we have a major difference between internal and external stuff. We could : a) Have 2 steps to be consistent with the internal insertion. First step : image URL, second step : image options. b) Ease the edit work and have all the settings in the same screen, this is how I've presented it in the mockup.
My votes : 1) +1 2) +1 for a) 3) +1 4) +1 for d) if possible 5) +1 for b)
Thanks, JV. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
1) +1 2) +1 for b), sometime you dont want fit the image ratio 3) +0 4) d) would be great but I doubt we need to go that far, I would say +1 for b) unless d) is not too tricky. Anyway -1 for a), we need it IMO. 5) +1 for b)
1) +1 2) +1 for a) changing image ratio is bad :)
I change my vote. I'm ok for 2 a) since the user can use the browser feature if he really wants to change the ratio.
3) +1 4) +1 for b) Keep it stupid simple -0 for d) if the image is the selected image, what about the text, the skin, what about the ratio beetwen text size/img size/ layout size...
4 b) is fine with me too.
5) +1 for b)
Laurent Lunati