Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When attempting to add 'display:inline-block' to some elements, I found that it was being entirely stripped out even though the display property was enabled in the filter. I did not find it in wysiwyg_filter_get_style_property_groups()
, so I've added it. Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#1 | wysiwyg_filter-allow_display_inline_block-1821084-2.patch | 1.11 KB | vinmassaro |
Comments
Comment #1
vinmassaro CreditAttribution: vinmassaro commentedComment #2
golddragon007 CreditAttribution: golddragon007 commentedYes, this patch allow inline-block, however, I think this is not the right way, good solution. I don't know what want to do this: '(?:inline-)?table' (I think this allow only inline-table and table), but I'm nearly sure all inline-* are filtered out. So more likely you need to create an expression like this:
table-(?:(?:row|header|group|column)-group|row|column|cell|caption)
And also I think we can allow all inline-* attributes...
Comment #3
geek-merlin#1 only adds inline-block to the line so #2 does not talk about the patch.
Comment #6
geek-merlin