jquery - How can I enable 'draggable' on a element with contentEditable? -


i'd have div @ same time editable , draggable, using jquery ui. content editability seems work if draggable not enabled. missing something? i'm using jquery 1.4.4 , jquery ui 1.8.9

javascript:

$(function(){     $('#draggable').draggable(); });   

html:

<div contenteditable="true" id="draggable">text</div> 

it working jquery draggable hijacking click event. can still tab it. quick fix.

$('#draggable').draggable().bind('click', function(){   $(this).focus(); }) 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -