Issue Bug Closed

#33457Can't remove block format "Container" in RTE

Sven Burkert 01/26/12, 10:04 updated 10/24/17, 20:19

Description

I want to remove the format option “Container” which wraps a text with a div-tag. Editors do not know what this is and are irritated. I thought it could be removed with this configuration:

RTE.default.buttons.formatblock.removeItems = div

But the block format is shown in the selectbox, because I use the button “indent”:

typo3\sysext\rtehtmlarea\extensions\BlockElements\class.tx_rtehtmlarea_blockelements.php, line 137 – 140

// Add div element if indent is configured in the toolbar
if (in_array('indent', $this->toolbar) || in_array('outdent', $this->toolbar)) {
    $blockElementsOrder = array_merge($blockElementsOrder, array('div'));
}

When I remove this code, the “Container” disappears, and the indent option still works (for normal text and for lists). But I doubt this is the solution ;)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.