# HG changeset patch # User raph # Date 1271753224 -7200 # Node ID 7b7ba5e472685e124441dcd8acef17ea9b8d80f2 # Parent adccf7c023ef956ebc19e8681c487d58e27b3c1c remove ckeditor when using other format diff -r adccf7c023ef -r 7b7ba5e47268 src/cm/templates/site/macros/text_editor.html --- 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':