changeset 52:482aa8971743

Add all the body classes to the RTE iframe
author Franck Deroche <franck@defr.org>
date Tue, 20 Jul 2010 14:20:01 +0200
parents 5cf2b262b9e4
children 4e975bbf1bfe
files js/dnd-library.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/js/dnd-library.js	Tue Jul 20 14:19:32 2010 +0200
+++ b/js/dnd-library.js	Tue Jul 20 14:20:01 2010 +0200
@@ -251,6 +251,7 @@
           Drupal.behaviors.dndLibrary.countElements(target, $(data.node).attr('dnd_id'), true); 
         });
         $('head', $(this).contents()).append('<style type="text/css">img.drop { display: none; } div.dnd-drop-wrapper {background: #efe; border: 1px #090 solid;}</style>');
+        $('body', $(this).contents()).addClass($('body').attr('class'));
         return this;
       });
     },