Config

Config对象配置文档编辑器基本信息包含平台类型,文档显示大小及文档类型

参数名称 描述 类型 示例
documentType 设置打开的文档类型:文字处理(text)电子表格(spreadsheet)演示文稿(presentation) string "text"
height 设置文档编辑器在浏览器中的高度,默认100% string "100%"
type 设置平台类型:PC端(desktop)手机端(mobile) string "desktop"
width 设置文档编辑器在浏览器中的宽度,默认100% string "100%"

示例:

var docEditor = new KlinDocsAPI.DocEditor("placeholder", {
    "documentType": "word",
    "height": "100%",
    "type": "desktop",
    "width": "100%",
    ...
});

results matching ""

    No results matching ""