This is my first post in here, but I hope it'll be useful.
Few days ago, I was searching this forum for any solution similar to wordpress text drafts. My firend is using FCKEditor in her site and she noticed that, sometimes when she writes especially long text (for a long time) server is loging her out. Of course - all text she already wrote is gone. She asked me for some "raw text version save". Because nothing I found, made this solution on my own.
Maybe someone has the same problem and looking for help - here is the idea.
Problem: How to create rough drafts of texts typed in FCKeditor field, using AJAX? (safety copies, "just in case")
Keywords: AJAX, draft, javascript, textarea, saving, MySQL, PHP
SOLUTION
1. We need to create table in database, where drafts are going to be saved. My table looks like this:
drafts
draft_id (INT) - main index of drafts, of course with auto_increment
draft (TEXT) - field where draft is being stored (or updated).
date (DATETIME) - date and time of last draft update[/code]
2. Create FCKeditor field.
In HEAD section paste:
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>