From 39b62fc41129672417475f0781fb567a43faf628 Mon Sep 17 00:00:00 2001 From: Mika Tuupola Date: Fri, 6 Nov 2009 16:28:18 +0200 Subject: [PATCH] Fix issue #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. --- jquery.jeditable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.jeditable.js b/jquery.jeditable.js index 5bfc097..bdc8a0d 100644 --- a/jquery.jeditable.js +++ b/jquery.jeditable.js @@ -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(''); }