From 9e9c55d18fd1a0604ae1b18cec128b3b59082401 Mon Sep 17 00:00:00 2001 From: Issac Kelly Date: Wed, 16 Mar 2011 01:44:36 -0400 Subject: [PATCH] Save on form submit. --- servee/wysiwyg/tinymce/static/servee/wysiwyg/js/tinymce.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servee/wysiwyg/tinymce/static/servee/wysiwyg/js/tinymce.js b/servee/wysiwyg/tinymce/static/servee/wysiwyg/js/tinymce.js index dba5096..ccea490 100644 --- a/servee/wysiwyg/tinymce/static/servee/wysiwyg/js/tinymce.js +++ b/servee/wysiwyg/tinymce/static/servee/wysiwyg/js/tinymce.js @@ -64,6 +64,11 @@ function load_wysiwyg($par){ }); } }); + $par.submit(function(e){ + for (edId in tinyMCE.editors) { + tinyMCE.editors[edId].save(); + } + }); } function srv_wysiwyg_insert_html_at_cursor(h){