Expand my Community achievements bar.

SOLVED

trigger a function on text

Avatar

Level 4

Hi,

I need to check the text inserted into a richtext component. Is there a way to do it?

Can i do it via jsp or a js script inside a property?

For example i need a function that forces to uppercase the first letter when the user confirms the text.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Blur, Change, focus etc are the listerner that you can add to your Richtext,

Apart from that you can also add beforesubmit event listener to your dialog which will get fired when user click "Ok" on dialog.

KEEP In MIND,

Other fields like textarea, textfield contains only text, so it becomes easy to parse ...but in your case its richtext so you need to parse HTML+ TEXT

Let me know if you have any doubt.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

Blur, Change, focus etc are the listerner that you can add to your Richtext,

Apart from that you can also add beforesubmit event listener to your dialog which will get fired when user click "Ok" on dialog.

KEEP In MIND,

Other fields like textarea, textfield contains only text, so it becomes easy to parse ...but in your case its richtext so you need to parse HTML+ TEXT

Let me know if you have any doubt.