since ‎17-02-2021
Online
Prem_IB
Level 1
Re: Add styles to RTE paragraph format tags
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Prem_IB You cannot add style tag directly to paragraph like SomeText in RTE.But you can wrap the content within with a class which will be applied to a tag and the required style can be applied to the class such as: RTE:SomeText CSS:.something{ font-size: 18px;} Please refer the Text Style section in the below Adobe link:https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/configure-rich-text-editor-plug-ins.html?lang=en#textstyles Thanks!

Views

53

Like

1

Replies

0
Re: Extending RTE's Paragraph format plugin
Avatar

asutosh_jena

asutosh_jena
- Adobe Experience Manager
Hi @Prem_IB Inline styles are not supported using the plugin. There is a way that you can define additional style attributes with some predefined helper classes such as f40, f50 which will apply only font size and the same can be added to the DOM using the style attribute within the plugin. But it will apple the css class by wrapping it into a tag. It will be something like: Some Content now the css will be loaded from clientlib and will be applied on the qualified DOM elements. Please refer th...

Views

61

Likes

0

Replies

0
Re: Adding a response header to specific resources
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
There are two approaches, using sling filters or adding this in the Apache layerIf you go with the filter you need to put proper conditions because the filter executes for every request. you need to put the proper pattern and also need to put condition only to execute images files something like .svg, png, etc.check below link, it sets header location headerhttp://www.coderss.in/aem-sling-filters-2/The other way is handling this at the apache level, refer to the below articles. I prefer to use A...

Views

119

Likes

2

Replies

0
Re: Issues that might arise due to having content disposi...
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@Prem_IB the file which contains executable code is recommended to be downloaded, for example XML, SVG, txt, etc. let us take a simple use case, usually, we use a .svg file to render the images, but at the same time, you can also execute javascript within the SVG file. The problem with this is if you open the SVG within the browser then there is a chance that the attackers can run malicious code in the browser. In this case, you need to set the correct mime type that is image/svg+xml and also us...

Views

115

Like

1

Replies

0
Re: Issues that might arise due to having content disposi...
Avatar

Prem_IB

Prem_IB
- Adobe Experience Manager
Sanket, thanks for the reply. I specifically want to display some pictures that are stored under 'content/dam/*: images/png'. can i add a 'Content-Security-Policy': 'script-src none' header to those urls to stop script execution?

Views

113

Likes

0

Replies

0