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

Auto Complete

Avatar

Level 4

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

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 6

@arvind 

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 

View solution in original post

3 Replies

Avatar

Level 6

@arvind 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

 

 

Avatar

Level 4

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

Avatar

Correct answer by
Level 6

@arvind 

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