Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.2
-
Fix Version/s: 2.0.8
-
Component/s: HTML Editor
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_20_STABLE
Description
It would be great to be able to "save as draft" forum posts. Particularly helpful when composing long posts. User should be able to save when in the editor; if you come back to the post the saved content is there.
Issue Links
| This issue will be resolved by: | ||||
| MDL-18014 | Automatically and periodically save WYSIWYG editor content as a draft/concept |
|
|
|
This could surely be done in an AJAX-like way directly in the editor, so that the editor knew how to regularly post the content (every minute?) to a Moodle draft script with parameters (page path, editor element id)
Then, whenever an editor is loaded without content, the same plugin sends parameters to the draft script to fetch existing content (if there is any) and pre-populate the text with it.
The final component would be a cron job to clean up old drafts (older than 48 hours or so).