문제

방금 최신 버전을 사용하여 Django-inplaceedit을 사용하기 시작했습니다.그것은 훌륭하게 작동합니다.

그러나 편집 가능한 항목을 표시 할 때 표시되는 힌트를 제거하고 싶습니다. - '인라인 편집 사용'.쉽게 제거 할 수있는 방법이 있습니까?

btw django-inplaceedit

와 관련된 메일 링리스트에 도달하는 것이 문서를 검색했습니다.

도움이 되었습니까?

해결책

여기에 "NOFOLLOW "> 관련 페이지 문서에서 오는 누구나미래 에이 질문.

헤더의 inplace 편집에 대한 CSS를 넣는 설명서의 해당 페이지에서 다음 코드 샘플과 본문의 JS를보십시오.

{% load inplace_edit %}
   <html>
       <head>
           ...
           {% inplace_css 1 %} {% comment %} or inplace_css 0 {% endcomment %}
       </head>
       <body>
           ...
           <div id="content">
               ...
               {% inplace_edit "content.name" %}
               ...
               <div class="description">
                   {% inplace_edit "content.date_initial|date:'d m Y'" %}
                   {% inplace_edit "content.description|safe" %}
               </div>
               <div class="body">
                   {% inplace_edit "content.body|safe|truncatewords_html:15" %}
               </div>
           </div>
           ...
           <script src="{{ STATIC_URL }}js/jquery.min.js" type="text/javascript"></script>
           {% inplace_js 1 1 %} {% comment %} or inplace_js 1 0 {% endcomment %}
       </body>
   </html>
.

{% inplace_css 1 %}를 위의 예에서 {% inplace_css 0 %}{% inplace_js 1 1 %}로 대체하고, 위의 예에서 {% inplace_js 1 0 %}로 v1.3.0의 트릭을 수행해야합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top