文档命令

文档命令

X-EMR主页用户手册开发指南源码下载更新记录关于简体中文English搜索CtrlK开发指南

快速引用配置项知识库加载文档保存文档数据绑定元数据插入组件文档命令模式审阅(留痕)打印存储导出缩放控件表格计算式二次开发API文档命令大约 2 分钟此页内容模式审阅(留痕)打印存储导出缩放控件表格# 模式//只读模式

editor.execCommand('readonly')

//表单模式

editor.execCommand('form')

//设计模式

editor.execCommand('design')

# 审阅(留痕)//切换修订模式

editor.execCommand('revision')

//切换批注模式

editor.execCommand('remark')

//接受全部修订

editor.execCommand('acceptAll')

//拒绝全部修订

editor.execCommand('rejectAll')

//修订留痕打印预览

editor.execCommand('previewRevision')

//修订留痕打印

editor.execCommand('printRevision')

//导入历史修订数据

editor.execCommand('importHistory')

# 打印//打开分页设置面板

editor.execCommand('pagesize')

//打印预览

editor.execCommand('preview')

//打印

editor.execCommand('print')

//免弹出对话框打印(需要本地启动x-printer/x-browser)

editor.execCommand('directPrint')

//续打遮罩

editor.execCommand('printStart')

//退出续打模式

editor.execCommand('cancelPrintStart')

//清除续打遮罩

editor.execCommand('clearPrintStart')

# 存储//新建文档

editor.execCommand('new')

//保存到服务器

editor.execCommand('save')

//清楚本地缓存

editor.execCommand('clearLocal')

# 导出//导出模板(html)

editor.execCommand('exportHtml')

//导出数据(json)

editor.execCommand('exportJson')

//导出数据(xml)

editor.execCommand('exportXml')

//导出元数据

editor.execCommand('exportMetaData')

//导出可读模板(html)

editor.execCommand('exportHtmlWithStyle')

//导出文档(pdf)

editor.execCommand('exportPdf')

//导出文档(word)

editor.execCommand('exportWord')

//以上命令支持指定文件名导出

editor.execCommand('exportPdf', {'fileName':'病案首页'})

editor.execCommand('exportWord', {'fileName':'病案首页'})

...

# 缩放//缩小10%

editor.execCommand('zoomin')

//放大10%

editor.execCommand('zoomout')

//还原到100%

editor.execCommand('zoom')

//全屏

editor.execCommand('fullscreen')

# 控件//插入文本控件

editor.execCommand('insertText')

//插入日期控件

editor.execCommand('insertDate')

//插入下拉框控件

editor.execCommand('insertDropdown')

//插入动态数据控件

editor.execCommand('insertDataList')

//插入复选框

editor.execCommand('insertCheckbox')

//插入单选框

editor.execCommand('insertRadio')

//插入复选框组

editor.execCommand('insertCheckboxGroup')

//插入单选框组

editor.execCommand('insertRadioGroup')

//插入图片

editor.execCommand('insertImage')

//插入条形码

editor.execCommand('insertBarcode')

//插入二维码

editor.execCommand('insertQRcode')

//插入签名

editor.execCommand('insertSignate')

//插入月经表达式

editor.execCommand('insertMenstruation')

//插入牙位图

editor.execCommand('insertTooth')

//插入胎心位置图

editor.execCommand('insertFetalHeart')

//插入特殊符号

editor.execCommand('insertSymbol')

//插入横线

editor.execCommand('insertLine')

# 表格//插入表格行

editor.execCommand('insertRow')

//插入表格列

editor.execCommand('insertCol')

//删除表格行

editor.execCommand('deleteRow')

//删除表格列

editor.execCommand('deleteCol')

//重置表格:重置行高和列宽

editor.execCommand('resetTable')

//合并选中单元格

editor.execCommand('mergeCell')

编辑此页open in new window上次编辑于: 贡献者: bensenplus上一页插入组件下一页计算式

相关推荐