edit.getCountPages()//总页数
editor.asc_findText(“对计算机的数据进行分析处理”) //找到文本
goToPage//跳转页
api.GetDocument().GetAllImages() //所有图片
api.GetDocument().GetAllCharts() //所有图表
etDocument().Document.GetAllTables() //表格
api.asc_GetAllFootNoteParagraphs() //脚
asc_GetAllEndNoteParagraphs() //尾注
bCanUndo[2].Value.Class.Paragraph.RemoveHyperlink() //移除超链接
api.GetDocument().Document.GetCurrentParagraph().GetText() //获取当前段落
api.GetDocument().Document.GetCurrentParagraph().GetFirstRun().GetText() //获取当前第一段
api.GetDocument().Document.GoToBookmark //跳转书签
api.GetDocument().Document.GetCurrentParagraph().GetOutlineLvl() //判断是否事目录
api.GetDocument().GetFinalSection().RemoveHeader(“default”) //关闭页眉
api.GetCurrentVisiblePage() //获取当前页
api.asc_nativeGetHtml() //获取全文的HTML
//获取鼠标位置
var oDocument = api.GetDocument();
let oParagraph = oDocument.Document.GetCurrentParagraph();
var contents = oParagraph.Content;
var curpos = oParagraph.CurPos;
var index=contents[curpos.ContentPos].State.ContentPos
edit.getCountPages()//总页数editor.asc_findText(“对计算机的数据进行分析处理”) //找到文本goToPage//跳转页api.GetDocument().GetAllImages() //所有图片api.GetDocument().GetAllCharts() //所有图表etDocument().Document.GetAllTables() //表格api.asc_GetAllFootNoteParagraphs() //脚asc_GetAl
后台服务主要作用是接受文件处理请求,然后对文档进行下载、转码、缓存等操作
前端sdk库起到承上启下的作用,封装对后台服务的操作,并为前端应用和插件提供可访问的API
前端应用会按照用户需求展示页面,并根据用户操作对后台服务发出请求。针对三种文档类型会有三个应用组合,每个应用组合中都有支持内嵌、web、移动端的入口
前端插件提供了方便扩展的在线处理系统的入口,可以按照需求增加各种插件。注
ONLYOFFICE,简单地说,就是将 Word 、Excel、PPT 3 大办公套件搬到了云端,只需要一个浏览器即可以在线使用 Office 的各种功能。
ONLYOFFICE套件包括三个基本组件:
文字处理(Word)
电子表格(Excel)
演示文稿(PPT)
ONLYOFFICE文档服务分为客户端和服务端两部分。
客服端包括:
文档管理器(Document manager)
文档编辑器(Document editor)
服务端包括:
文档存储服务(Document storage service)
<script type="text/javascript" src="http://192.168.58.138:9001/web-apps/apps/api/documents/api.js"></script>
</head>
<div id="placeholder"></div>
</body>
var docEd
Added theeditorConfig.customization.spellcheckfield.
Conversiondocument,spreadsheet,presentationtopdfaformat.
Added theevents.onRequestCompareFileevent.
Added the...
CSDN-Ada助手:
onlyOffice常用api整理(1)
youyaoquwangming:
onlyOffice常用api整理(1)
youyaoquwangming:
onlyOffice常用api整理(1)
一种状态:
onlyOffice常用api整理(1)
a836222080: