comparison js/dnd-library.js @ 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
comparison
equal deleted inserted replaced
51:5cf2b262b9e4 52:482aa8971743
249 // Decrement counter on delete 249 // Decrement counter on delete
250 $(target).bind('dnd_delete', function(e, data) { 250 $(target).bind('dnd_delete', function(e, data) {
251 Drupal.behaviors.dndLibrary.countElements(target, $(data.node).attr('dnd_id'), true); 251 Drupal.behaviors.dndLibrary.countElements(target, $(data.node).attr('dnd_id'), true);
252 }); 252 });
253 $('head', $(this).contents()).append('<style type="text/css">img.drop { display: none; } div.dnd-drop-wrapper {background: #efe; border: 1px #090 solid;}</style>'); 253 $('head', $(this).contents()).append('<style type="text/css">img.drop { display: none; } div.dnd-drop-wrapper {background: #efe; border: 1px #090 solid;}</style>');
254 $('body', $(this).contents()).addClass($('body').attr('class'));
254 return this; 255 return this;
255 }); 256 });
256 }, 257 },
257 processIframeDrop: function(drop, id_selector) { 258 processIframeDrop: function(drop, id_selector) {
258 var representation_id = id_selector.call(this, drop); 259 var representation_id = id_selector.call(this, drop);