[FEATURE] Add dependencies between classes in RTE 43/29643/5
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 5 Nov 2014 15:45:29 +0000 (10:45 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 5 Nov 2014 18:48:19 +0000 (19:48 +0100)
commitd321fefe2bf6c0d2b375f3b8e0cd969e5edfb615
tree3cbd22fab34823356c508f501e21ae1eb09e029e
parenta68d66e7982e075b4e1682f181d016e6519f5fe8
[FEATURE] Add dependencies between classes in RTE

To comply with complex CSS frameworks like Twitter Bootstrap, we need
to add multiple classes on the same element. This adds complexity for
authors. With this new dependency feature, users just have to select
one style instead of many styles.

The syntax of this new property is:
    RTE.classes.[ *classname* ] {
        .requires = list of class names; list of classes that are
             required by the class;
             if this property, in combination with others, produces a
             circular relationship, it is ignored;
             when a class is added on an element, the classes it
             requires are also added, possibly recursively;
             when a class is removed from an element, any
             non-selectable class that is not required by any of the
             classes remaining on the element is also removed.
    }

Releases: master
Resolves: #51905
Change-Id: I890e6786647a4b31e759e8a3086b3bd8c7e5dd4e
Reviewed-on: http://review.typo3.org/29643
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/core/Documentation/Changelog/master/Feature-51905-AddDependenciesBetweenClassesInRte.rst [new file with mode: 0644]
typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaBase.php
typo3/sysext/rtehtmlarea/Documentation/Configuration/PageTsconfig/classes/Index.rst
typo3/sysext/rtehtmlarea/htmlarea/DOM/HTMLArea.DOM.js