Active
Project:
Wysiwyg ImageField
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2010 at 10:32 UTC
Updated:
5 Jun 2011 at 09:08 UTC
Jump to comment: Most recent file
Comments
Comment #1
decipheredHi Carlitus,
The classes and styles of your output are up to the formatters you choose to use.
Your best option i to create a formatter that does exactly what you want using the Custom Formatters module, with a basic formatter.
Hope this helps.
Cheers,
Deciphered.
Comment #2
carlitus commentedUmmm..i know the module but...what happen if i have 5 imagecache presets that i want in the insert and also i want to have the colorbox module (or lightbox) plus the custom formarters to float to left, right, center o do nothing?
5 (presets) * 2 (colorbox) * 4 (positioning) = 40 options! too many. It's a lot more intuitive (and we can use images) to have to positioning options apart like in the screenshot i've attached.
Comment #3
carlitus commentedUppss...i didn't attach any file...
Comment #4
decipheredI do see your point.
This will definitely need some thought, because your idea may scratch your itch, but may not scratch others, so if I were to go down this track I could end up with an extremely overly complicated form.
Some sort of options per formatter solution would suit me.
Another option would be to use the imageField Extended module to add fields to your widget and use them in colaboration with a Custyom Formatter, so you could have a position field that your formatter used.
Will have a play and think on these ideas.
Cheers,
Deciphered.
Comment #5
pkej commentedWouldn't it be just as easy to just click on the image afterwards and use the wysiwygs image formatting options to do this?
Comment #6
agileware commentedThis is a very necessary feature.
It has been available in modules like image assist for some time.
As pkej mentioned in #5 though, a work around is to:
1. Also add the normal image button to your wysiwyg profile.
2. Upload your image using the wysiwyg_imagefield button.
3. Click the image in your text area.
4. Click the normal image button in your wysiwyg toolbar.
5. Select what you want from the alignment settings.
Comment #7
decipheredWhile I don't doubt that it's a necessity for some, it's not for others. For my own purposes I would only ever use a few formatters, and they personally control there own css properties.
I have been granted CVS access to Imagefield Extended and I intend to make the necessary improvements to come up with a generic solution for any who needs extra configuration fields without adding unnecessary clutter to others, but I have been allowing my overused brain some downtime of late, so I can't provide a time frame for this.
Cheers,
Deciphered.
Comment #8
agileware commentedI find it pretty hard to believe that there isn't at least as many people who would require floating images as those who don't. Or at least an enormous amount of people.
Floating images within text has been a requirement for a great number of people on the internet for many years now.
And with this module potentially being the best solution in drupal for inserting images within text (potentially a very large user base) I would say that at least float left and right would be base functionality that people would expect.
People coming to this module from any other wysiwyg image insertion methods would expect this functionality to exist.
Although I suppose the solution in #6 does work so people could be given instruction on that process but it still wouldn't be what users would expect to have to do.
Wouldn't having to use imagefield_extended and custom_formatters just to get this functionality be overkill and more complicated than having more options on the wysiwyg imagefield dialog?
Comment #9
decipheredAgileware,
My point isn't that floating isn't something that people want, but where do I draw the line? If I add every single possible field that someone may want to the form it'll end up being something overly complex and cluttered, which is exactly what this module was created to get away from.
Currently the ALT and Title field are options provided by the ImageField module, and the Insert style dropdown will only appear if it's been setup with multiple formatters, so if someone wants no fields other than the Insert and remove button they can do so, so I'm certainly not going to force users to have a float field if they don't want it.
It will be available in some form if users want it, but it will be an option. By using ImageField Extended to provide the field I don't have to re-invent the same functionality, which is exactly what this module is all about, leveraging other fantastic modules to do the work.
Comment #10
agileware commentedI see your point I suppose.
I will have a look at going to custom formatters route. The fact that custom formatters supports features makes things a bit easier.
Comment #11
eugenmayer commented@deciphered: you might have a look at ihttp://drupal.org/project/imagefield_extended . you might be able to use it to implement floating and all those things as options. Eventhough this still has an issue, as those style are on all images of this type, not only on the one "inplace". But its a handy API to extend imagefield, might be useful.
In the end, it all goes down to the question, how to combine formatters, which is not trivial as they act like pipe&filters and you need to ensure the output is in a formate the other formatter expects, which will be quiet impossible due to the fact, that the formatter takes a assoc array and returns html, which cannot be used as input for other formatters.
I also ran into this before and could not dig a solution for this.
For the others, if you depend on those floating / extended options like style (borders), imagecache preset and you dont want to have this styles x presets x option1 x option1 aproach, you could look into http://drupal.org/project/wysiwyg_imageupload which has a OOTB integration of those + an api to extend it.
Comment #12
philbar commentedI would like some image placement options as well? Not sure how many options exactly, because I agree that we don't want to clutter the interface. But it's not exactly ideal to have imagecache presets for:
1px-border-float-right
1px-border-float-left
no-border-float-right
no-border-float-left
...
I think this is something that Insert should handle anyways. Maybe we should make an issue there.
Comment #13
protools commented@Carlitus offers a very very best idea !!! and this is really not enough for end users, this will be very convenient
and this http://drupal.org/files/issues/wysiwyg_imagefield_float.png look very good :)
this http://drupal.org/project/wysiwyg_imageupload look good, but it not a field, and it can't be used in Views ...
Wysiwyg ImageField - more powerful!
make experiments with this module 7 dev, but don't understand how to use custom formatters, can somebody help me, any example ?
but in any case, this http://drupal.org/files/issues/wysiwyg_imagefield_float.png look very cool !!!
Comment #14
eugenmayer commented@13: WYSIWYG image upload images can be used in views, it has a complete views integration. Wont matter it is a field or not :) It has exact the same integration-leve then a normal CCK field like a filefield / imagefield has
Comment #15
protools commentedthanks, WYSIWYG image upload - not for 7, maybe Media ...
Comment #16
eugenmayer commentedWUI D7 will be based on Media, being more an easy-to-user User-Interface. But see the issue queue for more details, dont want to hijack this issue :)
Comment #17
decipheredWysiwyg Fields (the successor to Wysiwyg ImageField) will not only allow for floating, but being 100% CCK based it will allow for any additional controls that anyone wishes to provide, it will also allow for Image Nodes to be used in conjunction with modules like the Node relationships module to provide fully customizable Image Libraries, and much much more.
The reason why this request hasn't been fulfilled is because it's a very restrictive request, while floats may be good out of the box for some, others may not want them, this module is all about choice. It is possible to add floats now. I will however be packaging some features for Wysiwyg FIelds that pre-configure it in specific ways, so users can get the exact functionality they want out of the box without forcing it down others throats.
Cheers,
Deciphered.
Comment #18
alexbk66- commentedI agree, would be good to have. Plus padding options too.