Hopefully easy question. I use CKEditor 4 as a module for Drupal 7. I would like to make the CKEditor toolbar persistent so that when it scrolls to the top of the window it sticks there.
I know the jQuery code could go something like this:
$(document).ready(function()
{
var $top1= $('.cke_2_top').offset().top + 20;
var $mid1 = Math.floor($(window).height() / 2);
$(window).scroll(function()
{
if ($(window).scrollTop()>$top1)
{
$('.cke_2_toolbox').addClass('floater');
}
else
{
$('.cke_2_toolbox').removeClass('floater');
}
});
});
but I have no idea where to put it. Any help gratefully appreciated.
Regards
Andrew
