Motive
I wanted to remove the link function in the rich text editor, and add the strikethrough function.
Working with AEM 6.1(SP1), eclipse AEM plugin.
Degree of completion: 40%
Steps for Configuration
- Remove the property configPath of cq:inplaceEditing.
- Create a node rtePlugins under node cq:inplaceEditing --> config,
Add a node styles under rtePlugins.
<styles jcr:primaryType="cq:WidgetCollection"> ... <strikethrough jcr:primaryType="nt:unstructured" cssName="strikethrough" text="StrikeThrough"/> </styles>
The entire component looks like following figure:
- Add CSS file in /etc/designs/xfleet/static/css
span.strikethrough { text-decoration:line-through; } #CQrte span.strikethrough { text-decoration:line-through; }
- Add the name of the CSS file in css.txt
Result
Although there is no link under rtePlugins, the link function is still there...
When editing, the strike line is not rendered, but it is rendered when we left the editor.