AD0-E134 practice question 5 of 15
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?
Full set: 72 questionsTo 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.
Reference: AEM Rich Text Editor (RTE) Documentation Configuring the Rich Text Editor in AEM
Keep practicing
Take the free AD0-E134 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E134 practice questions
- Question 1A developer needs to create a workflow custom process step in AEM. In a custom process st…
- Question 2An AEM environment is cloned, and the domain and IPs ate changed. What must be reconfigur…
- Question 3A development team is starting a new AEM project that is going to integrate with the Adob…
- Question 4A developer is on an AEM application that is being used to calculate an employee's salary…
- Question 6Which practice should be used to push a code fix to make it into the current release cand…
- Question 7A customer adds third-party client libraries to add some features in an existing AEM appl…
