disabled HTML in comments since it does not add supportable features

This commit is contained in:
csoler 2020-11-01 22:53:12 +01:00
parent 7be387993b
commit 5efe472055
2 changed files with 7 additions and 7 deletions

View File

@ -60,8 +60,8 @@ void GxsCreateCommentDialog::createComment()
{ {
RsGxsComment comment; RsGxsComment comment;
QString text = ui->commentTextEdit->toHtml(); QString text = ui->commentTextEdit->toPlainText();
RsHtml::optimizeHtml(text); // RsHtml::optimizeHtml(text);
std::string msg = text.toUtf8().constData(); std::string msg = text.toUtf8().constData();
comment.mComment = msg; comment.mComment = msg;

View File

@ -157,8 +157,11 @@ p, li { white-space: pre-wrap; }
<property name="styleSheet"> <property name="styleSheet">
<string notr="true"/> <string notr="true"/>
</property> </property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<property name="placeholderText"> <property name="placeholderText">
<string>Type your comment</string> <string>Type in your comment</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -241,9 +244,6 @@ p, li { white-space: pre-wrap; }
<container>1</container> <container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources> <resources/>
<include location="../icons.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>