New Year Sale 2026! 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 6 Question 36 Discussion

Actual exam question for Adobe's AD0-E134 exam
Question #: 36
Topic #: 6
[All AD0-E134 Questions]

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?

Show Suggested Answer Hide Answer
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

Contribute your Thoughts:

0/2000 characters
Royal
3 months ago
I disagree, C seems more appropriate for this scenario.
upvoted 0 times
...
Chantay
3 months ago
Wait, can you really just strip all formatting like that? Sounds risky.
upvoted 0 times
...
Jackie
3 months ago
B is correct, no doubt about it!
upvoted 0 times
...
Jeanice
4 months ago
I think A might work too, but not sure.
upvoted 0 times
...
Patria
4 months ago
Definitely B, plaintext is the way to go!
upvoted 0 times
...
Alline
4 months ago
I vaguely recall that "pasteMode-plaintext" was mentioned in a practice question, but I can't remember if it was the correct syntax.
upvoted 0 times
...
Arleen
4 months ago
I feel like "defaultPasteMode=text" might be the right choice, but it seems too similar to the other options.
upvoted 0 times
...
Tanesha
4 months ago
I think the option we practiced was about setting the paste mode to plaintext. That sounds like it could be option B.
upvoted 0 times
...
Jutta
5 months ago
I remember we discussed how to handle paste options in the RTE, but I'm not completely sure which one strips all formatting.
upvoted 0 times
...
Brock
5 months ago
I think the answer is B. The question specifically says we need to strip the formatting, and "defaultPasteMode=plaintext" sounds like the right option to achieve that.
upvoted 0 times
...
Phuong
5 months ago
I'm a little confused by the wording of the question. Does "defaultPasteMode" mean the same thing as "pasteMode"? I'll have to double-check the documentation to make sure I understand the difference before answering.
upvoted 0 times
...
Royal
5 months ago
Hmm, I'm a bit unsure about this one. I know we need to strip the formatting, but I'm not sure if the "defaultPasteMode" option is the right way to do it. I'll have to think this through carefully.
upvoted 0 times
...
Arminda
5 months ago
This looks like a straightforward question about overriding the default paste behavior in a rich text editor. I think the answer is B - defaultPasteMode=plaintext.
upvoted 0 times
...
Wenona
5 months ago
Okay, I've got this. The key is to override the RTE plugin implementation and change the default paste behavior. Based on the options given, B seems like the correct choice to achieve that.
upvoted 0 times
...
Roy
1 year ago
Option C is the way to go, no doubt. 'pasleMode=text' - it's like the developer is saying, 'Paste? More like PASTE SMASH!'
upvoted 0 times
Lavonda
1 year ago
User 4: Definitely, 'pasleMode=text' is the way to go for stripping styling and formatting.
upvoted 0 times
...
Rocco
1 year ago
User 3: I agree, it seems like the developer wants to smash that paste button.
upvoted 0 times
...
Rickie
1 year ago
User 2: Yeah, 'pasleMode=text' sounds like the right one.
upvoted 0 times
...
Irene
1 year ago
User 1: I think option C is the best choice.
upvoted 0 times
...
...
Ashlyn
1 year ago
This question is giving me flashbacks to that time I accidentally pasted some formatted text into my boss's presentation. It was a real 'plain text or die' situation! I'm gonna go with Option B to avoid that kind of drama.
upvoted 0 times
Audra
1 year ago
Let's go with defaultPasteMode=plaintext then.
upvoted 0 times
...
Britt
1 year ago
Yeah, plain text is definitely safer.
upvoted 0 times
...
Shaunna
1 year ago
I think Option B is the way to go.
upvoted 0 times
...
...
Rikki
1 year ago
Hmm, tough one. I'm leaning towards Option D, 'pasteMode-plaintext', just because it seems more specific and descriptive. But Option B is a close second for me.
upvoted 0 times
...
Nu
1 year ago
I'm going with Option A. 'defaultPasteMode=text' sounds like it would do the trick and strip the formatting, right?
upvoted 0 times
Kenda
1 year ago
I agree, let's go with Option A.
upvoted 0 times
...
Chan
1 year ago
Yeah, 'defaultPasteMode=text' seems like it would strip the formatting.
upvoted 0 times
...
Glenn
1 year ago
I think Option A is the way to go.
upvoted 0 times
...
...
Margarita
1 year ago
I'm not sure, but I think option B makes the most sense based on the client's request.
upvoted 0 times
...
Lizette
1 year ago
I agree with Jesus. Using plaintext will strip all styling and formatting from the pasted text.
upvoted 0 times
...
Domitila
1 year ago
Option B looks like the correct answer here. It's clearly stated that the developer needs to override the default paste behavior, and 'defaultPasteMode=plaintext' seems to be the way to achieve that.
upvoted 0 times
Cora
1 year ago
Great, let's go with option B then.
upvoted 0 times
...
Harley
1 year ago
That makes sense, it would strip all styling and formatting from the pasted text.
upvoted 0 times
...
Leonor
1 year ago
I agree, 'defaultPasteMode=plaintext' seems to be the correct option.
upvoted 0 times
...
Kirk
1 year ago
I think option B is the right choice.
upvoted 0 times
...
...
Jesus
1 year ago
I think the developer should add option B) defaultPasteMode=plaintext.
upvoted 0 times
...

Save Cancel