Can this module be tweaked so that it can accept formatting within the accordions. Currently only br tags are being accepted. P tags, bullet points, and headings are not accepted by the module.

CommentFileSizeAuthor
#1 formatting_issues-2400515-1.patch930 bytesjohnjw59

Comments

johnjw59’s picture

StatusFileSize
new930 bytes

Changing the accordion wrapper from a <span> to a <h5>(or anything else that isn't inline) fixes the issue.

S Payne’s picture

This works for me, thanks.

I'd solved the problem in a different way by wrapping initial contents of the ready accordion div in <p> tags which also allows users to add block-level elements to the accordion, but I think it makes more sense for the header element itself to be block-level.

zwerg’s picture

The patch doesn't work for me (7.x-1.0-beta1) because <h5> won't be inserted. Is there any solution yet?

S Payne’s picture

That's a good point about the h5. We should probably use a non-header element for a wrapper as inserting a heading can create the wrong document outline or, if some kind of accessibility check is being enforced, be impossible to insert.