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
BedrockMission!

Learn More

View all

Sign in to view all badges

Multiple in-place editors for non-RTE fields

Avatar

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Brumoon_Ahamat
Level 1

19-12-2016

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,121 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,121 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

20-12-2016

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Brumoon_Ahamat
Level 1

22-12-2016

Awesome! That worked!! Thanks kautuksahni