Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Oct 4, 2024
1 parent c054f26 commit 8404e0c
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 125 deletions.
7 changes: 6 additions & 1 deletion public/assets/backend/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,12 @@ App.editor.markdown = function (editorElement, uploadUrl, options) {
crossDomainUpload: true,
uploadCallbackURL: path + 'plugins/image-dialog/upload_callback.htm',
dialogLockScreen: false,
onload: function () { }
onload: function () {
var editor=this;
editormd.loadPlugin(path+"plugins/drop-or-paste-upload/drop-or-paste-upload", function(){
editor.dropOrPasteUpload();
});
}
};
if (typeof(window.THEME_COLOR)=='string'&&window.THEME_COLOR=='dark') {
defaults.theme = "dark"; // ambiance
Expand Down
Loading

0 comments on commit 8404e0c

Please sign in to comment.