This repository has been archived by the owner on Jan 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Otstar Lin edited this page May 11, 2019
·
2 revisions
所有的设置都在
settingProps
传入xkeditor或者settingApi
将setting.json的地址传入
Setting Key | Setting Value | 功能 |
---|---|---|
apiBaseUrl | url | 暂时无用 |
previewCss | markdown css url | 预览的Markdown CSS的地址 |
previewClass | class name | 预览div标签的class |
delayToHtml | number | 当用户录入后延迟渲染的时间(ms) |
scrollBind |
both orleft orright
|
滚动绑定 |
imgUpload | boolean | 是否开启图片上传功能 |
有关aceSetting的设置请前往ACE doc查阅。
有关tinymceSetting的设置内容请前往TinyMCE doc查阅。
{
"tinymceSetting":{
"language_url":"/static/tinymce/langs/zh_CN.js",
"language":"zh_CN",
"skin_url":"/static/tinymce/skins/ui/oxide",
"body_class":"markdown-body",
"content_css":"/static/github-markdown.css",
"plugins":"print preview fullpage searchreplace autolink directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern",
"toolbar":"formatselect | fontsizeselect | bold italic underline strikethrough blockquote forecolor backcolor prismjs | link image media pageembed | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | tex-$ tex-math flow seq gantt mermaid | removeformat code toMarkdownEditor | undo redo",
"image_advtab":true,
"importcss_append":true,
"height":"100%",
"template_cdate_format":"[CDATE: %m/%d/%Y : %H:%M:%S]",
"template_mdate_format":"[MDATE: %m/%d/%Y : %H:%M:%S]",
"image_caption":true,
"spellchecker_dialog":true,
"spellchecker_whitelist":[
"Ephox",
"Moxiecode"
]
},
"aceSetting":{
"minLines":10,
"fontSize":"17px",
"theme":"ace/theme/solarized_light",
"mode":"ace/mode/markdown",
"tabSize":4,
"wrap":true,
"enableSnippets":true,
"enableLiveAutocompletion":true,
"enableBasicAutocompletion":true,
"value":"# XK-Editor"
},
"xkSetting":{
"apiBaseUrl": "",
"previewCss":"/static/github-markdown.css",
"previewClass":"markdown-body",
"delayToHtml":500,
"scrollBind":"both",
"imgUpload":false
}
}