| changeset 257 | 7b7ba5e47268 |
| parent 256 | adccf7c023ef |
| child 414 | ef8b166a0993 |
--- 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':