Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

New Feature [Closed] "Close window" warning when there's text in the editor

8 Posts
3 Users
5 Reactions
1,437 Views
Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 7 years ago

Hey,

would it be possible to trigger a "Are you sure you want to close this window" warning when there is text typed into an editor and the user tries to close the window or tab?

Topic Tags
7 Replies
Posts: 393
(@anonymous3542)
Honorable Member
Joined: 8 years ago

@florian possible, yes, but I think you'd need the TinyMCE plugin to accomplish this. I started work on this so it's definitely possible, but I landed up with an issue where the editor thought that it was empty as the ID of the woForo field appeared to change via JavaScript.

I didn't have time to work through this and so abandoned it. However, I expect the same can be achieved with a simple function that targets the ID of the editor 

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 7 years ago

Thank you for your answer. I was hoping the wpForo developers could bake that right into the plugin since it seems universally useful.

1 Reply
(@anonymous3542)
Joined: 8 years ago

Honorable Member
Posts: 393

I agree with that. I'd also like to see the auto height expanding plugin implemented.

Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

Thank you Florian, we'll add this in our to-do list.

2 Replies
(@anonymous3542)
Joined: 8 years ago

Honorable Member
Posts: 393
Posted by: Robert

Thank you Florian, we'll add this in our to-do list.

And the auto expand height plugin @robert ?

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10616

Sure, we'll try this to add this.

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 7 years ago

Great, thank you!