Auto Complete | Community
Skip to main content
Level 5
Jul 11, 2022 1:57 PM UTC
Solved

Auto Complete

Hello Team,

 

We have a requirement of having autocomplete feature in Component Dialog Fields (be it TEXTFIELD/RICH TEXT/TEXT AREA).

E.g.

There is list of 100 items like $ab, $bc,$ac ...........$nn.

 

Now in Rich text/Text field, when Editor Type $, it lists out all as a part of suggestions, when editor types $a, Editor able to see $ab,$ac etc.

 

Any leads would be really appreciated. Thanks.

 

Regards,

KAP

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jagadeesh_Prakash
Jagadeesh_PrakashAccepted solution
New Participant
Jul 11, 2022 4:47 PM UTC

@arvind-1 

It is some thing that we migth need to drill down. I don't have any reference links/exampls for this.

 

Ideally it is not recommanded to overwrite the RTE kernal editors functionality. Just suggesting you to write your own function with autocomplete function and call the function in editorkernal.js 

3 replies

Jagadeesh_Prakash
New Participant
Jul 11, 2022 2:32 PM UTC

@arvind-1 Where are the list items saved ? $ab, $bc,$ac ...........$nn

 

And also you are talking about the auto complete in RTE editor right? If yes in below editorkernal location you can see the events getting triggered on typing some thing in the editor. On top of that file you can write your custom functionality

 

/libs/clientlibs/granite/richtext/core/js/plugins/editorkernal.js

 

 

Translate
arvind-1Author
Level 5
Jul 11, 2022 2:42 PM UTC

Hi Prakash,

 

Thank you very much for your reply. List of Items to be fetched from external APIs.

 

BTW, do you have reference link/examples somewhere for similar cases that might help us?

 

Thanks in advance.

 

Regards,

KAP

Translate
Jagadeesh_Prakash
Jagadeesh_PrakashAccepted solution
New Participant
Jul 11, 2022 4:47 PM UTC

@arvind-1 

It is some thing that we migth need to drill down. I don't have any reference links/exampls for this.

 

Ideally it is not recommanded to overwrite the RTE kernal editors functionality. Just suggesting you to write your own function with autocomplete function and call the function in editorkernal.js 

Translate