Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Mar 23, 2024
1 parent 333d6e9 commit c9a168c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion public/assets/backend/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,13 @@ App.editor.codemirror = function (elem,options,loadMode) {
}
if(loadHint && (!CodeMirror.helpers.hasOwnProperty('hint') || !CodeMirror.helpers.hint.hasOwnProperty(loadHint))){
loadHint='#editor/markdown/lib/codemirror/addon/hint/'+loadHint+'-hint.js';
App.loader.includes(loadHint, true);
if(loadMode=='html'){
App.loader.includes('#editor/markdown/lib/codemirror/addon/hint/xml-hint.js', true, function(){
App.loader.includes(loadHint, true);
});
}else{
App.loader.includes(loadHint, true);
}
}
}
editor.on('keypress', function(){if(typeof(editor.showHint)=='function')editor.showHint();});
Expand Down
Loading

0 comments on commit c9a168c

Please sign in to comment.