Jquery plugin initialise conflict

I am using this
<script type="text/javascript">
$(document).ready(function() {
to initialise my plugin. However, if I put the code in the head OR the footer it conflicts with the edit bar script so I lose my editing button at the top.
Any ideas how to solve please?

View Replies:
Gondwana replied on at Permalink Reply
$().ready is probably overwriting (replacing) the system's event handler. Try adding your handler to the existing chain.