[BUGFIX] Indent/outdent does not work if formatblock button is disabled
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 14 Aug 2011 15:41:25 +0000 (11:41 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 16 Aug 2011 19:53:14 +0000 (21:53 +0200)
commit7d45a2f40f6e7fa2bdf7a606ae6e3d3202de9e27
tree093bc268d047f4a727213246bec69b5daeef97ad
parent7f0ca59f514c72a6d1d78ba18650daacc5eb197c
[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: Ib5d3087198904bb86a4901c57f5e0f2292f4b36e
Resolves: #28903
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/4321
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