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.
While editing content with a WYSIWYG editor, you are able to style the caption to include alignment on the caption itself. But when the node is saved, the alignment seen in the WYSIWYG editor is not there.
Is there any way to preserve the alignment settings that the WYSIWYG editor applies within the [ caption ] tag, so What you see can be what you get?
To reproduce:
- Add an image to a node, give it a caption.
- Use the insert module to insert it into the body.
- Highlight the caption, click "align left" in the WYSIWYG editor
- Save the node.
Comments
Comment #1
stevieegee CreditAttribution: stevieegee commentedComment #2
kmontyThis should be fixed for TinyMCE with the patch that was committed with #1432092: Add a caption button for TinyMCE
For CKeditor support, track #696734: Integration with CKEditor or WYSIWYG?
Comment #3.0
(not verified) CreditAttribution: commentedAdd how to reproduce