Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E134 Exam - Topic 2 Question 59 Discussion

Posted by Tasia on Apr 04, 2026 at 09:52 PM

A developer is working on a project based on core components. The client requests that text pasted inside the Text component should be stripped of all styling and formatting.

The developer needs to override RTE plugin implementation and change the default paste (CTRL+V) behavior.

Which paste option should the developer add to achieve this?

Suggested Answer: B

To ensure that text pasted inside the Text component in AEM is stripped of all styling and formatting, you need to override the RTE (Rich Text Editor) plugin implementation and change the default paste behavior. The correct option to achieve this is defaultPasteMode=plaintext.

Steps to configure the RTE plugin for plain text pasting:

Locate the RTE Configuration: Find the existing configuration for the RTE or create a new one in the /apps directory of your AEM project.

Modify the Plugin Configuration: Add or update the configuration to include the defaultPasteMode parameter. The configuration might look something like this:

{

'jcr:primaryType': 'nt:unstructured',

'features': '[text]',

'defaultPasteMode': 'plaintext'

}

Apply the Configuration: Ensure that this configuration is applied to the Text component. This typically involves updating the component dialog or design dialog to reference the updated RTE configuration.

Test the Configuration: In the AEM author instance, open the page with the Text component and paste text using CTRL+V. The pasted text should now be stripped of all styling and formatting, adhering to the plaintext mode.

By setting defaultPasteMode to plaintext, you ensure that the RTE only accepts plain text input, removing any formatting that might come from external sources.


AEM Rich Text Editor (RTE) Documentation

Configuring the Rich Text Editor in AEM

Get Premium AD0-E134 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
16 comments · newest first
LI
Lizbeth 2 months ago
True! A and C are also not ideal. B is the way to go!
CA
Catalina 2 months ago
D looks wrong. It’s not even formatted correctly.
KE
Kelvin 2 months ago
Exactly! We need clean text for the client.
LI
Lizbeth 3 months ago
I’m leaning towards B too. It’s clear and straightforward.
CA
Catalina 3 months ago
Agreed! A would still keep some formatting, right?
KE
Kelvin 3 months ago
I feel like B is the best choice. Plaintext makes sense for stripping styles.
CA
Catalina 3 months ago
This question is tricky. I think it’s about understanding paste modes.
LA
Lashawn 3 months ago
Not so sure about that. What if it messes with other features?
EM
Emilio 3 months ago
Wait, is that really the only way to strip formatting?
DA
Danilo 4 months ago
Definitely B) for sure!
JO
Joanna 5 months ago
I think A) defaultPasteMode=text could work too.
IS
Isidra 5 months ago
B) defaultPasteMode=plaintext is the way to go!
LU
Luther 6 months ago
I thought "defaultPasteMode=text" was the standard way to handle pasting, but now I'm questioning if "plaintext" is more appropriate for stripping styles.
EN
Ena 6 months ago
I might be mixing things up, but I recall that "pasteMode" was mentioned in a few examples. Could it be one of the options?
CO
Cortney 6 months ago
I'm not entirely sure, but I feel like "defaultPasteMode" is the right prefix. It seems familiar from our practice sessions.
ER
Erinn 7 months ago
I think the option we're looking for is related to how the text is handled when pasted. I remember something about "plaintext" being a common term in similar questions.
0/2000 characters

Save Cancel