Mercurial > defr > drupal > scald > mee
comparison mee.js @ 19:75106ee96c1e
Library: Deals with <img /> that aren't linked to atoms
| author | Franck Deroche <defr@ows.fr> |
|---|---|
| date | Wed, 25 Nov 2009 15:51:40 +0000 |
| parents | 50a57b1517cb |
| children |
comparison
equal
deleted
inserted
replaced
| 18:7ac5a50a9db5 | 19:75106ee96c1e |
|---|---|
| 19 $(tiny_instance.editor_id) | 19 $(tiny_instance.editor_id) |
| 20 .find('iframe') | 20 .find('iframe') |
| 21 .unbind('dnd_drop') | 21 .unbind('dnd_drop') |
| 22 .bind('dnd_drop', function(e, data) { | 22 .bind('dnd_drop', function(e, data) { |
| 23 var rep = Drupal.settings.dndEditorRepresentations[data.representation_id]; | 23 var rep = Drupal.settings.dndEditorRepresentations[data.representation_id]; |
| 24 if (!rep) return; | |
| 24 $(this) | 25 $(this) |
| 25 .parents('div.mee-wrap-editor-library.mee-processed') | 26 .parents('div.mee-wrap-editor-library.mee-processed') |
| 26 .find('table.mee-ressource-manager') | 27 .find('table.mee-ressource-manager') |
| 27 .each(function(i) { | 28 .each(function(i) { |
| 28 $(this).append(Drupal.mee.generate( | 29 $(this).append(Drupal.mee.generate( |
