Skip to content

Commit 39b62fc

Browse files
committed
Fix issue NicolasCARPi#7
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.
1 parent e6ed202 commit 39b62fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.jeditable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@
165165
}
166166

167167
/* Remove placeholder text, replace is here because of IE. */
168-
if ($(this).html().toLowerCase().replace(/(;|")/g, '') ==
169-
settings.placeholder.toLowerCase().replace(/(;|")/g, '')) {
168+
if ($(this).html().toLowerCase().replace(/(;|"|\/)/g, '') ==
169+
settings.placeholder.toLowerCase().replace(/(;|"|\/)/g, '')) {
170170
$(this).html('');
171171
}
172172

0 commit comments

Comments
 (0)