I'm having a problem in Firefox (other browsers seem to work fine) with dynamically generated elements containing a contenteditable="true"
attribute:
If I selectAll
(either dynamically, or with my mouse), Firefox won't allow keyboard input.
Please see my jsFiddle Example for reference. This appears to only affect Firefox.
$(document).ready(function(){
$('.edit').live('dblclick', function () {
document.execCommand('selectAll',false,null);
});
$('#live').append('<p class="edit" contenteditable="true">This content is generated. Firefox will not allow keyboard input when "ALL" is selected.</p>');
});
EDIT: Here is the actual app I'm working on (pardon the dust): cr8.me/app/ff.html - What I'm wanting is to click (double-click to select all text) a Note, Category, or Plan Title to edit it. Does it work for anyone? Maybe it's just my configuration - or poor scripting. Lines 137, 572 are relevant.