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

Reactivate code

parent a385589e
...@@ -245,15 +245,21 @@ void PostEntry::slotSetPostPreview() ...@@ -245,15 +245,21 @@ void PostEntry::slotSetPostPreview()
QString PostEntry::htmlContent() const QString PostEntry::htmlContent() const
{ {
#ifdef QTWEBENGINE_SUPPORT_OPTION #ifdef QTWEBENGINE_SUPPORT_OPTION
//TODO
return {};
#else
if (d->tabWidget->currentIndex() == 1) { if (d->tabWidget->currentIndex() == 1) {
d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text()); d->wysiwygEditor->editor()->setHtmlContent(d->htmlEditor->document()->text());
} else { } else {
#if 0
d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent()); d->htmlEditor->document()->setText(d->wysiwygEditor->editor()->htmlContent());
#endif
} }
return d->htmlEditor->document()->text(); 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 #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