minimal support for txt documents
This commit is contained in:
parent
3c69c0c101
commit
94d57028cd
10 changed files with 761 additions and 5 deletions
|
|
@ -87,6 +87,16 @@ pandora.ui.document = function() {
|
|||
width: that.width(),
|
||||
zoom: 'fit'
|
||||
})
|
||||
: item.extension == 'txt'
|
||||
? Ox.TXTViewer({
|
||||
height: that.height() - 16,
|
||||
page: pandora.user.ui.documents[item.id]
|
||||
? pandora.user.ui.documents[item.id].position
|
||||
: 1,
|
||||
url: '/documents/' + item.id + '/' + pandora.safeDocumentName(item.title) + '.' + item.extension + '?' + item.modified,
|
||||
width: that.width(),
|
||||
zoom: 'fit'
|
||||
})
|
||||
: item.extension == 'html'
|
||||
? pandora.$ui.textPanel = pandora.ui.textPanel(item, $toolbar)
|
||||
: Ox.ImageViewer({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue