showPreview() was not working as intended; fixed.
The preview text displayed in the previewEdit widget was the text of the content opened from the wiki, and not the text entered by the user in the contentEdit widget.
This commit is contained in:
parent
6509d95659
commit
cbe44de033
1 changed files with 3 additions and 1 deletions
|
|
@ -78,5 +78,7 @@ self._currentTabChanged)
|
|||
print backtrace
|
||||
|
||||
def showPreview(self):
|
||||
self.ui.previewEdit.setHtml(self.backend.get_content_preview(self.content))
|
||||
tmp_content = self.content
|
||||
tmp_content.content=unicode(self.ui.contentEdit.toPlainText())
|
||||
self.ui.previewEdit.setHtml(self.backend.get_content_preview(tmp_content))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue