| author | raph |
| Tue, 20 Apr 2010 10:47:04 +0200 | |
| changeset 257 | 7b7ba5e47268 |
| parent 256 | adccf7c023ef |
| child 258 | a79a3c91d9b5 |
| child 260 | 9075dc2fb93c |
--- a/src/cm/templates/site/macros/text_editor.html Tue Apr 20 10:34:56 2010 +0200 +++ b/src/cm/templates/site/macros/text_editor.html Tue Apr 20 10:47:04 2010 +0200 @@ -22,7 +22,9 @@ $(document).ready(function() { adaptMarkitup = function() { - $('#id_content').markItUpRemove(); + $('#id_content').markItUpRemove(); + var o=CKEDITOR.instances['id_content']; + if (o) o.destroy() var newSet = $('#id_format').val(); switch(newSet) { case 'markdown':