Roundcube Community Forum

 

Drop-down menu problem

Started by Dragsio, September 08, 2024, 08:40:11 AM

Previous topic - Next topic

Dragsio

Hi, I'm creating a custom email signature plugin. However, I ran into the problem that in the drop-down box in the top menu, after clicking on the desired signature (button), the page wants to be redirected when I click again or change the selection.

How can I prevent this?

Thank you very much for your help.

SKaero

In your Javascript when the button is clicked call preventDefault() on the event object.

Dragsio

#2
Thank you for your advice but still nothing has been resolved. Just to clarify the problem, the fact that the website wants to be redirected is manifested by this message (image).

EDIT: I think it might have something to do with the TinyMCE editor.

Please help me

SKaero

I couldn't provide any more help without seeing the code you use for the button.