Notifications
Clear all

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

8 Posts
3 Users
5 Likes
1,150 Views
Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 5 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: 7 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: 5 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: 7 years ago

Honorable Member
Posts: 393

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

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

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

2 Replies
(@anonymous3542)
Joined: 7 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: 8 years ago

Support Team
Posts: 10499

Sure, we'll try this to add this.

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

Great, thank you!