Browse Source

Add WebODF 0.5.1

pull/78/head
Joachim Bauch 11 years ago
parent
commit
6dc5140213
  1. 641
      static/js/libs/webodf.js
  2. 13
      static/js/main.js

641
static/js/libs/webodf.js

File diff suppressed because one or more lines are too long

13
static/js/main.js

@ -52,6 +52,7 @@ require.config({ @@ -52,6 +52,7 @@ require.config({
'pdf': 'libs/pdf/pdf',
'pdf.worker': 'libs/pdf/pdf.worker',
'pdf.compatibility': 'libs/pdf/compatibility',
'webodf': 'libs/webodf',
'partials': '../partials',
'sounds': '../sounds',
@ -116,6 +117,16 @@ require.config({ @@ -116,6 +117,16 @@ require.config({
'pdf': {
deps: ['pdf.compatibility'],
exports: 'PDFJS'
},
'webodf': {
exports: 'odf',
init: function() {
return {
webodf: webodf,
odf: odf,
runtime: runtime
}
}
}
}
});
@ -217,4 +228,4 @@ if (Object.create) { @@ -217,4 +228,4 @@ if (Object.create) {
} else {
alert("Your browser does not support this application. Please update your browser to the latest version.");
}
}

Loading…
Cancel
Save