2012-11-28 5 views
1

자리 표시 자의 이미지가 표시되지만 클릭하면 jEditable 입력에 <img/> 태그가 표시됩니다. 누구나 제거 방법을 알고 있습니까? 당신은 img 태그를 제거하려면 당신이 그 후이 코드를 추가 할 수 있습니다 settings.placeholderjEditable 자리 표시 자에 이미지를 저장하는 방법은 무엇입니까?

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

동일한 경우

$(document).ready(function() { 
    $('#Video3').editable(function (value, settings) { 
     companyName(value, "Video3"); 
     return value; 
    }, 
     { 
      cancel: 'Cancel', 
      submit: 'OK', 
      style: 'inherit', 
      tooltip: 'Add video', 
      placeholder: '<img class="placeholder" alt="edit" src="/UserControlsAdmin/ExhibitorZone/img/Add_Video.png" />" 
      }); 
}); 

답변

2

나는 source code 확인했습니다 line 167는 자리의 내용을 제거

if ($(this).html().toLowerCase().indexOf('img') > -1) 
{ 
    $(this).html(''); 
} 
+0

감사합니다. 당신은 내 하루를 저장 :) 추신 : 내 평판이 낮은 답변을 캔트)) – Corequatro

관련 문제