Skip to content

Commit

Permalink
Fix issue NicolasCARPi#7
Browse files Browse the repository at this point in the history
If I use HTML in the 'placeholder' option it is not detected correctly when editing an element and the HTML placeholder source is presented for editing for empty elements.
  • Loading branch information
tuupola committed Nov 6, 2009
1 parent e6ed202 commit 39b62fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.jeditable.js
Expand Up @@ -165,8 +165,8 @@
}

/* Remove placeholder text, replace is here because of IE. */
if ($(this).html().toLowerCase().replace(/(;|")/g, '') ==
settings.placeholder.toLowerCase().replace(/(;|")/g, '')) {
if ($(this).html().toLowerCase().replace(/(;|"|\/)/g, '') ==
settings.placeholder.toLowerCase().replace(/(;|"|\/)/g, '')) {
$(this).html('');
}

Expand Down

0 comments on commit 39b62fc

Please sign in to comment.