Skip to content

Update easymde.js#118

Open
qwertygc wants to merge 1 commit into
Ionaru:masterfrom
qwertygc:patch-1
Open

Update easymde.js#118
qwertygc wants to merge 1 commit into
Ionaru:masterfrom
qwertygc:patch-1

Conversation

@qwertygc

Copy link
Copy Markdown

Remove absolute URL when we upload picture

Remove absolute URL when we upload picture
@Ionaru

Ionaru commented Sep 13, 2019

Copy link
Copy Markdown
Owner

I think this would be better as a configuration option

@qwertygc

qwertygc commented Dec 8, 2019

Copy link
Copy Markdown
Author

@Ionaru : OK, but how implante this ?

@A-312

A-312 commented Jan 26, 2020

Copy link
Copy Markdown

@qwertygc easyMDE.options.absoluteURL

@qwertygc

Copy link
Copy Markdown
Author

OK think,but concretely, how to use this function ?

@A-312

A-312 commented Jan 26, 2020

Copy link
Copy Markdown

@qwertygc

if (easyMDE.options.imageUploadAbsoluteURL) {
  onSuccess(window.location.origin + '/' + response.data.filePath);
} else {
  onSuccess(response.data.filePath);
}

https://github.com/Ionaru/easy-markdown-editor#options-example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants