<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,19 @@
 jQuery(document).ready(function(){
     
     //sorteable
-    jQuery(&quot;.write_panel_wrapper&quot;).sortable({
+    jQuery(&quot;.write_panel_wrapper&quot;).sortable({ 
         handle: &quot;.sortable_mf&quot;,
+		// function fix the problem of block of the editor visual textareas
+		start: function() { 
+			id =  jQuery(this).attr(&quot;id&quot;);
+			jQuery(&quot;#&quot;+id+&quot; :input[type='textarea'].mf_editor&quot;).each( function(inputField){
+				var editor_text = jQuery(this).attr('id');
+				if(tinyMCE.get(editor_text)){
+					tinyMCE.execCommand('mceRemoveControl', false, editor_text);
+					jQuery('#'+editor_text).addClass('temp_remove_editor');
+				}
+			});
+		},
         stop : function(){
             id =  jQuery(this).attr(&quot;id&quot;).split(&quot;_&quot;)[3];
             kids =  jQuery(&quot;#write_panel_wrap_&quot;+id).children().filter(&quot;.magicfield_group&quot;);
@@ -12,6 +23,12 @@ jQuery(document).ready(function(){
                 jQuery(&quot;#order_&quot;+groupCounter+&quot;_&quot;+ids).val(i+1);
                 jQuery(&quot;#counter_&quot;+groupCounter+&quot;_&quot;+ids).text(i+1);
             }
+			//add the editor visual in textareas
+			jQuery(&quot;#&quot;+jQuery(this).attr(&quot;id&quot;)+&quot; :input[type='textarea'].temp_remove_editor&quot;).each( function(inputField){
+				var editor_text = jQuery(this).attr('id');
+				tinyMCE.execCommand('mceAddControl', false, editor_text);
+				jQuery('#'+editor_text).removeClass('temp_remove_editor');
+			});
         }
     });
 </diff>
      <filename>js/groups.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>99e79cfcc8229e9ed78c5a9c793efac3ad59a904</id>
    </parent>
  </parents>
  <author>
    <name>hunk</name>
    <email>ing.edgar@gmail.com</email>
  </author>
  <url>http://github.com/gnuget/Magic-Fields/commit/bba47b8d744a368a967ff04dc00c2f004a96e724</url>
  <id>bba47b8d744a368a967ff04dc00c2f004a96e724</id>
  <committed-date>2009-11-06T14:36:50-08:00</committed-date>
  <authored-date>2009-11-06T14:36:50-08:00</authored-date>
  <message>fix editor visual block when drag group</message>
  <tree>a488e45e4bbf22e2f866ea88954a9a7e1d59934f</tree>
  <committer>
    <name>hunk</name>
    <email>ing.edgar@gmail.com</email>
  </committer>
</commit>
