[BUGFIX] Indent/outdent does not work if formatblock button is disabled
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 14 Aug 2011 14:37:25 +0000 (10:37 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 16 Aug 2011 19:52:57 +0000 (21:52 +0200)
commit559efc2fe9bb837be7e388dc0fafc15d90037459
tree192ee3fc448709ce0d5f06df67dacb5f51b1462d
parentfc36ba851ed4d37418c28c7420153e3122e477db
[BUGFIX] Indent/outdent does not work if formatblock button is disabled

Problem: If the "formatblock" button is disabled, the current paragraph
gets a css class "indent" but a wrapping div is not created with that
css class.

Solution: When formatblock is not configured, allow all standard block
elements. When formatblock and indent are both configured, ensure div is
allowed.

Change-Id: I8f74e453f96968940f67652e075a976f0104f2c8
Resolves: #28903
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/4322
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/extensions/BlockElements/class.tx_rtehtmlarea_blockelements.php
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js