Commit caa1363f authored by Laurent Montel's avatar Laurent Montel 😁

Reactivate code

parent a385589e
......@@ -245,15 +245,21 @@ void PostEntry::slotSetPostPreview()
QString PostEntry::htmlContent() const
{
#ifdef QTWEBENGINE_SUPPORT_OPTION
//TODO
return {};
#else
if (d->tabWidget->currentIndex() == 1) {
d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
} else {
#if 0
d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
#endif
}
return d->htmlEditor->document()->text();
#else
if (d->tabWidget->currentIndex() == 1) {
d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
} else {
d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
}
return d->htmlEditor->document()->text();
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment