Auto Complete | Community
Skip to main content
July 11, 2022
Solved

Auto Complete

  • July 11, 2022
  • 1 reply
  • 1066 views

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.
Best answer by Jagadeesh_Prakash

@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 

1 reply

Jagadeesh_Prakash
Community Advisor
Community Advisor
July 11, 2022

@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

 

 

arvind-1Author
July 11, 2022

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

Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
July 11, 2022

@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