Fixing issues with webkit and the contenteditable attribute