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.
Hello,
I'm using CKeditor with asset module and everything works nice, but I have an issue or request.
I'm trying to get the alignment options when you select any of the available options in Display mode.
Now with the default display mode "small" you can't align your image.
But with any other you can.
I would like to align any of my display modes.
I've tried the las dev version but I have the same problem.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#4 | asset-always-align-with-class-2106381.patch | 2.42 KB | joscar |
#3 | asset-align-all-display-modes-2106381.patch | 1.36 KB | joscar |
Screen Shot 2013-10-07 at 11.33.57.png | 12.11 KB | luisrc7 | |
Screen Shot 2013-10-07 at 11.33.46.png | 7.07 KB | luisrc7 |
Comments
Comment #1
newtone CreditAttribution: newtone commentedSubscribing
Comment #2
kholloway CreditAttribution: kholloway commentedFYI, this is currently hard coded into the module itself to only allow the "align" form option to be added if the display mode is "small". Until this is changed a temporary work around is to add the following hook to a custom module:
All this does is alter the asset image form to remove the show/hide toggle condition if the display mode is "small". This worked just fine for me with other display modes/sizes of images.
Comment #3
joscar CreditAttribution: joscar commentedAttached is a patch to allow alignment options for all display modes.
Comment #4
joscar CreditAttribution: joscar commentedRevising patch to ensure CSS classes are also included in every display mode.
Comment #5
gmclelland CreditAttribution: gmclelland commentedPatch attached.. Setting to NR
Comment #6
DrColossos CreditAttribution: DrColossos commentedWe are running with the exact same solution as the posted patch to enable alignments for all modes.