[TYPO3-hci] Autosaving of rte texts
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon May 7 10:51:48 CEST 2007
Martin Kutschker schrieb:
> Andreas Balzer schrieb:
>> Hi!
>> I'm sure it's somewhere to download, but if not.. An autosaving tool
>> via ajax for the rtehtmlarea BE fields would be nice. So that it saves
>> the field somewhere every 2 mins or so in case that the user closes
>> his browser window. I just had a phone call with someone who had this
>> problem and I don't know a way to solve it yet.
>
> I wouldn't try save just the RTes content but the whole edited content
> element. Otherwise the state of the content is inconsistent.
>
> You could try to send the whole form in the background with AJAX except
> any file upload fields. In this case you could use a simple submit of
> the real form.
Another idea is to store only the RTE contents in a "temporary table"
(rather a table with temporary content). The real save (but also a click on
close!) will remove the temporary data from that table. TCEform will have
to look for temporary data in this table when it loads a record for editing.
Mind that you need a UI for this: The users should be asked if they want to
reinstate from auto-save data. And it should be possible to get rid of this
data without using phpMyAdmin.
Masi
More information about the TYPO3-team-hci
mailing list