Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 让Django注释能够使用粗体和斜体样式_Python_Html_Django_Tinymce - Fatal编程技术网

Python 让Django注释能够使用粗体和斜体样式

Python 让Django注释能够使用粗体和斜体样式,python,html,django,tinymce,Python,Html,Django,Tinymce,因此,我正试图让富文本为cheeserater程序工作,在该程序中,我使用tinyMCE编辑器在textarea中添加了一个评论系统。这就是它看起来的样子: <table><td align=left> {% get_comment_list for package as comment_list %} {% for comment in comment_list %} {{ comment.comment|safe }}<br> {% endfor

因此,我正试图让富文本为cheeserater程序工作,在该程序中,我使用tinyMCE编辑器在textarea中添加了一个评论系统。这就是它看起来的样子:

<table><td align=left>
 {% get_comment_list for package as comment_list %}
 {% for comment in comment_list %}
  {{ comment.comment|safe }}<br>
 {% endfor %}
</table>

{%get_comment_list作为comment_list%}
{注释列表%中的注释为%0}
{{comment.comment | safe}}
{%endfor%}
下划线和文本大小有效,但粗体和斜体样式无效。例如,我用下划线和粗体字“omg”、粗体字“wtf”、粗体字和斜体字“lol”

<p><strong><span style="text-decoration: underline;">omg</span></strong><strong> wtf <em>lol</em></strong></p>
omgwtf lol


它显示为带下划线的“omg”,但“wtf”和“lol”的格式不变。

这些标记在这里工作正常。检查您是否没有导致这些标记使用未修饰样式的样式表。

我刚刚意识到tinyMCE的所有功能都不起作用。比如奇怪的符号,笑脸,以及通常出现的任何东西。现在我想起来了,它仍然可能不是我错误的根源。而且,它似乎是一个自动转义问题,不允许弹出函数工作。不过我不确定。我保持样式表不变,因为它不是我自己制作的。我不知道如何制作/编辑样式表。cheeserater程序在这里:我发现reset.css有这样的东西。。。“{border:0;}地址、标题、引用、代码、dfn、em、strong、th、var”。我对CSS一窍不通,但看起来我得好好读一读。没关系。reset.css中缺少内容似乎没有任何作用。