Forum closed. New forum available at http://community.wymeditor.org/

Has Text Changed Function?

Support forum for WYMeditor.

Has Text Changed Function?

Postby tremmo on Fri May 28, 2010 1:45 pm

What is the best way to tell if a user has edited something in wymeditor?

If they change something and click off the editor, I want to display a message box saying something like 'you are about to lose your changes. do you want to save your work?'

And the user can save their work if they wish.

Any chance there's something built in?

I can compare the original text to what's currently in the editor if push comes to shove.
tremmo
 
Posts: 7
Joined: Fri May 28, 2010 1:40 pm

Re: Has Text Changed Function?

Postby mr_lundis on Mon May 31, 2010 7:46 am

There's no such functionallity built in to WYMeditor. I think just storing the original content in memory on page load, and then compare it to the editor content when the user "clicks off the editor" is the easiest solution.

Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron