Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Nov 8, 2024
1 parent cb5867c commit 2f72f23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions public/assets/backend/js/editor/markdown/editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3360,10 +3360,15 @@
fontAwesome : /:(fa-([\w]+)(-(\w+)){0,}):/g,
pageBreak : /^\[[=]{8,}\]$/
};

editormd.getPath = function () {
if(typeof(ASSETS_URL)!='undefined') return ASSETS_URL + '/js/editor/markdown/';
var jsPath = document.currentScript ? document.currentScript.src : '';
if(!jsPath) jsPath = $('script[src*="/editormd."]:first').attr('src');
return jsPath.substring(0, jsPath.lastIndexOf('/') + 1);
};
// Emoji graphics files url path
editormd.emoji = {
path : "https://www.webpagefx.com/tools/emoji-cheat-sheet/graphics/emojis/",
path : editormd.getPath()+'images/emojis/',
ext : ".png"
};

Expand Down
Loading

0 comments on commit 2f72f23

Please sign in to comment.