123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <style>
- body, html {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- }
- </style>
- <div class="recruit_container clearfix" id="preview">
- </div>
- <script src="https://office.jinjianghc.com/web-apps/apps/api/documents/api.js"></script>
- <script>
- let title = "{{ $title }}",url = "{{ $url }}";
- const index = title.lastIndexOf('.');
- const fileType = title.substr(index + 1);
- const config = {
- document: {
- permissions: {
- comment: false,
- fillForms: false,
- download: false,
- edit: false,
- upload: false,
- },
- fileType: fileType,
- title: title,
- url: url,
- },
- width: '100%',
- editorConfig: {
- mode: 'view',
- lang: "zh-CN",
- permissions: {
- edit: false,
- download: false,
- upload: false,
- comment: false,
- }
- }
- };
- console.info(config)
- document.title = title;
- const docEditor = new window.DocsAPI.DocEditor("preview", config);
- </script>
|