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.
In CKeditor this is used to determine what block formats should be used for formatting text. Hence no user action is required to spam divs all over the node content, some of them containing non breaking spaces for good measure.
I systematically remove this option from all my wysiwyg module deployments. I propose removing it at the source if others are amenable to it. Requires just changing one line in admin.inc:
'block_formats' => 'p,address,pre,h2,h3,h4,h5,h6,div',
Comment | File | Size | Author |
---|---|---|---|
#2 | wysiwyg-withdraw-div-from-default-block-formats-1876278-1.patch | 862 bytes | sfyn |
#1 | wysiwyg-withdraw-div-from-default-block-formats-1876278-1.patch | 862 bytes | sfyn |
Comments
Comment #1
sfyn CreditAttribution: sfyn commentedPatch attached
Comment #2
sfyn CreditAttribution: sfyn commentedDuplicate comment, please ignore.
Comment #3
kienan CreditAttribution: kienan commentedPatch applies and works.
Comment #4
kienan CreditAttribution: kienan commented