emoji 默认关闭

dev_hjm
hjm 6 years ago
parent 32062a5d5e
commit cac358d896

@ -101,7 +101,7 @@ function md_elocalStorage(editor,mdu,id){
function create_editorMD(id, width, high, placeholder, imageUrl, callback, initValue,
onchange, watch, { noStorage, showNullButton }, that) {
onchange, watch, { noStorage, showNullButton, emoji }, that) {
// 还是出现了setting只有一份被共用的问题
var editorName = window.editormd(id, {
@ -115,7 +115,7 @@ function create_editorMD(id, width, high, placeholder, imageUrl, callback, initV
syncScrolling: "single",
tex: true,
tocm: true,
emoji: true,
emoji: !!emoji ,
taskList: true,
codeFold: true,
searchReplace: true,
@ -266,7 +266,8 @@ export default class TPMMDEditor extends Component {
window[__editorName.id+'_'] = __editorName;
}, initValue, this.onEditorChange,this.props.watch, {
noStorage: this.props.noStorage,
showNullButton: this.props.showNullButton
showNullButton: this.props.showNullButton,
emoji: this.props.emoji
}, this);
}

Loading…
Cancel
Save