Small fixes and changes in qwebcontentedit and ICapContent.
- content preview's html code is now cleaner - ICapContent.preview_content() renamed to ICapContent.get_content_preview() - tab "preview" was shown first when starting qwebcontentedit. Fixed.
This commit is contained in:
parent
0c5a449e5f
commit
3cbb5671d3
5 changed files with 27 additions and 20 deletions
|
|
@ -73,13 +73,11 @@ class RedmineBackend(BaseBackend, ICapContent):
|
|||
with self.browser:
|
||||
return self.browser.set_wiki_source(project, page, content.content, message)
|
||||
|
||||
def preview_content(self, content):
|
||||
def get_content_preview(self, content):
|
||||
try:
|
||||
_type, project, page = self.id2path(content.id)
|
||||
except ValueError:
|
||||
return
|
||||
|
||||
with self.browser:
|
||||
return self.browser.get_wiki_preview(project, page, content.content)
|
||||
|
||||
|
||||
return self.browser.get_wiki_preview(project, page, content.content)
|
||||
Loading…
Add table
Add a link
Reference in a new issue