From ba1009340e49e9c1c94c876862794ba1cd06b5de Mon Sep 17 00:00:00 2001 From: dinedine Date: Wed, 1 Sep 2010 00:12:37 +0200 Subject: [PATCH] turn any html textarea into a WYSIWYG when saving a page in ajax --- public/javascripts/admin/editable_elements.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/javascripts/admin/editable_elements.js b/public/javascripts/admin/editable_elements.js index 132e18c2..1fc3d016 100644 --- a/public/javascripts/admin/editable_elements.js +++ b/public/javascripts/admin/editable_elements.js @@ -20,6 +20,8 @@ $(document).ready(function() { if (data.editable_elements != '') { $('#editable-elements').replaceWith(data.editable_elements); enableNav(); + + $('textarea.html').tinymce(TinyMceDefaultSettings); } }, []);