How to sticky nicedit panel?
问题 I think you know it, you have a larger text and the panel is at the top of your edit area and if you will use the panel you must scroll. It would be nice, if the panel sticky at the top of the window, instead of going away. Any idea, how to sticky the panel? 回答1: Easier than I thought. var sticky_panelContain_offset_top = $('div.nicEdit-panelContain').offset().top; var sticky_panelContainer = function(){ var scroll_top = $(window).scrollTop(); if (scroll_top > sticky_panelContain_offset_top)