Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Multiple in-place editors for non-RTE fields

Brumoon_Ahamat
Level 2
Level 2

Greetings forum members,

I was following the steps provided in [1] to create multiple inline editors. The problem I face, is that all of these give the RTE interface, and considers the text as rich, and adds <p> tag.

Does any one have advice on how to create multiple inplace editing option for non-RTE text fields in touch UI. I am using 6.2?

  1. https://docs.adobe.com/docs/en/aem/6-1/develop/components/multiple-inplace-editors.html
1 Accepted Solution
kautuk_sahni
Correct answer by
Community Manager
Community Manager

Hi 

Please have a look at this community article :

Link:-http://freakyrajput.blogspot.in/2015/07/remove-p-tag-from-rte-in-aem.html  [Not Tested on AEM 6.1 but it should work]

// Remove p tag from RTE in AEM

    You can keep the RTE from surrounding your text with <p> tags by setting the removeSingleParagraphContainer property to true as long as you only create one paragraph.

    With Chrome on Mac OS X (at least), holding shift while pressing enter inserts line breaks instead of paragraph breaks so you can still create text with multiple lines.

    <rtePlugins jcr:primaryType="nt:unstructured">
        ...
    </rtePlugins>
    <htmlRules jcr:primaryType="nt:unstructured">
        <docType jcr:primaryType="nt:unstructured">
            ...
        </docType>
        <blockHandling
            jcr:primaryType="nt:unstructured"
            removeSingleParagraphContainer="{Boolean}true"/>

    </htmlRules>

Reference Forum Post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// rte remove tag p

Try this, if this comes to you as some rescue. Else i will try to get some RTE Expert to help you on this./

~kautuk

View solution in original post

2 Replies
kautuk_sahni
Correct answer by
Community Manager
Community Manager

Hi 

Please have a look at this community article :

Link:-http://freakyrajput.blogspot.in/2015/07/remove-p-tag-from-rte-in-aem.html  [Not Tested on AEM 6.1 but it should work]

// Remove p tag from RTE in AEM

    You can keep the RTE from surrounding your text with <p> tags by setting the removeSingleParagraphContainer property to true as long as you only create one paragraph.

    With Chrome on Mac OS X (at least), holding shift while pressing enter inserts line breaks instead of paragraph breaks so you can still create text with multiple lines.

    <rtePlugins jcr:primaryType="nt:unstructured">
        ...
    </rtePlugins>
    <htmlRules jcr:primaryType="nt:unstructured">
        <docType jcr:primaryType="nt:unstructured">
            ...
        </docType>
        <blockHandling
            jcr:primaryType="nt:unstructured"
            removeSingleParagraphContainer="{Boolean}true"/>

    </htmlRules>

Reference Forum Post:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// rte remove tag p

Try this, if this comes to you as some rescue. Else i will try to get some RTE Expert to help you on this./

~kautuk

View solution in original post