adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
744 stars 750 forks source link

[Text] Set lang attribute in blockquote paragraph style #669

Closed patrycjakurkowiak closed 5 years ago

patrycjakurkowiak commented 5 years ago

Bug Report

Current Behavior As an author I would like to add information about language used in blockquote in Text component. When I try to configure Text component I can choose 'blockquote' paragraph style but cannot configure this to define the used language. Cannot see possibility for that in policy of this component.

Expected behavior/code When I add blockquote paragraph style (by Text component) on my page I would like to define the language for this quote (lang attribute). It is related to 3.1.2 WCAG 2.0 accessibility standard https://www.w3.org/TR/WCAG20/#meaning-other-lang-id Is there any alternative way to do this?

Environment AEM version 6.5.0 Core Components 2.5.0

richardhand commented 5 years ago

@patrickheinzelmann - I believe this is possible if the sourceedit feature of the misctools plugin in the richtext editor is enabled. That way you can enter source editing mode and add the lang attribute as you require:

Source Edit

Screenshot 2019-07-18 at 13 39 52

Dialog Result

Screenshot 2019-07-18 at 13 38 49

Markup Result

Screenshot 2019-07-18 at 13 40 34

The core component depends on / uses the AEM richtext editor in its dialog, more info on the rich text editor and its options at https://helpx.adobe.com/experience-manager/6-5/sites/administering/using/rich-text-editor.html.

patrycjakurkowiak commented 5 years ago

Thanks for your answer. I checked that and I can add this attribute in this way. Thanks.