diff --git a/fckeditor.utils.js b/fckeditor.utils.js index 6aca7ed552ef17625681d60452dff65e2f62db53..e3192fc5e2d3048c3bb9a1450306665651cd85fa 100644 --- a/fckeditor.utils.js +++ b/fckeditor.utils.js @@ -9,6 +9,13 @@ var fckTeaser = { lookup : {}, lookupSetup : false, cache : {} }; * Drupal behavior that adds FCKeditors to textareas */ Drupal.behaviors.fckeditor = function(context) { + // make sure the textarea behavior is run first, to get a correctly sized grippie + // the textarea behavior requires the teaser behavior, so load that one as well + if (Drupal.behaviors.teaser && Drupal.behaviors.textarea) { + Drupal.behaviors.teaser(context); + Drupal.behaviors.textarea(context); + } + $('textarea.fckeditor:not(.fckeditor-processed)', context).each(function() { var textarea = $(this).addClass('fckeditor-processed');