If I do "jquery sortable" on a contenteditable item(s), I then can't focus mouse anywhere inside con

Posted by Matej on Stack Overflow See other posts from Stack Overflow or by Matej
Published on 2010-06-08T07:01:17Z Indexed on 2010/06/08 7:22 UTC
Read the original article Hit count: 305

Strangely this is broken only in Firefox and Opera (IE, Chrome and Safari works as it should).

Any suggestion for a quick fix?

<html>
<head>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js" type="text/javascript"></script>
  <script>
  $(document).ready(function(){
      $('#sortable').sortable();
  });
  </script>
</head>
<body>
  <span id="sortable">
    <p contenteditable="true">One apple</p>
    <p>Two pears</p>
    <p>Three oranges</p>
  </span>
</body>
</html>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery