0
我刚开始使用django-inplaceedit使用最新版本。它效果很好。django-inplace编辑删除提示顶部
但我想删除显示可编辑项目时显示的提示 - “启用编辑内联”。有没有简单的方法可以将其删除?
BTW我搜索了它的文档是有办法达到与Django的inplaceedit
我刚开始使用django-inplaceedit使用最新版本。它效果很好。django-inplace编辑删除提示顶部
但我想删除显示可编辑项目时显示的提示 - “启用编辑内联”。有没有简单的方法可以将其删除?
BTW我搜索了它的文档是有办法达到与Django的inplaceedit
相关的邮件列表,这里的文档中的relevant page,跨越这个问题没有人来的未来。
请从文档中的该页面查看以下代码示例,以便将头文件中的inplace-edit 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 0 %}
和{% inplace_js 1 1 %}
在上面的例子中{% inplace_js 1 0 %}
更换{% inplace_css 1 %}
,而且应该做的伎俩在inplaceedit的V1.3.0。