configuration
Less than 1 minute
update record
- Ver1.0-20231116 added
dataSource:{dynamicListUrl: '' }
; - Ver1.0-20231109 modified
dictionary
related configuration methods, refer to Knowledge Base;
Specific configuration
//If the configuration item is not set, the default settings will be used.
let option = {
license: 'xxxxxxxxxxxx', //Authorization code (wrong authorization code or expired authorization code will affect the medical record printing function)
lang:'zh-cn', //Language zh-cn Simplified Chinese (default), zh-tw Traditional Chinese, en-us English, zh-bo: Tibetan, zh-ug: Uyghur
mode:'form', //readonly: read-only mode, form: form mode, design: design mode
scale: .9, //Scale ratio
container:'#editor', //Editor container object ID
baseUrl:'./', //Basic URL
docStyle:'https://www.x-emr.cn/js/doc.css', //Document style path, default: the same directory as editor.js
pdfUrl:'https://www.x-emr.cn/pdf/post', //pdf generation service (can be modified to local path)
tag: false, //Tag switch
revision: false, //revision switch
remark: false, //remark switch
showPageLine: true, //Whether to display paging lines
withDictLabel: false, //Double-click the knowledge base to bring the label
onlyPasteText: false, //Whether to paste only text
dictionary: false, //Whether to display the knowledge base (display configuration reference
dataSource:{ //Data source configuration
dynamicListUrl: '/icd.json', //Dynamic list data source
},
toolbar: { //Hide toolbar: toolbar: false
file: true, //display file
edit: true, //Show edit
insert: true, //display insertion
expression: true, //display expression
table: true, //display table
revision: true, //Show revision
view: true, //Show view
print: true, //display printing
import: true, //Show import
export: true, //display export
develop: true, //Show development tools
help: true //Display help
},
statusbar: true, //Whether to display the status bar
disableCommand:['template','save'] //Shield the document command and hide the toolbar button corresponding to the command.
}
//Editor initialization
editor.init(option)