-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add links and images directly in the post editor, not via a reference at the bottom #725
Comments
Yes, sometimes it is quite confusing, to achieve this we have to edit some parts of the htmly/system/admin/editor/js/Markdown.Editor.js Line 1807 in 62cd98a
|
It seems that changing the code in that line is enough: // var num = that.addLinkDef(chunk, linkDef);
chunk.startTag = isImage ? "![" : "[";
chunk.endTag = "](" + properlyEncoded(link)+ ")"; |
Is there some sort of caching going on? I edited the line as you instructed and overwrote the file on the server, but images are still inserted with a footnote. I opened the admin in a new browser window, too, in case that would pull the admin freshly. Thanks that you're looking into this! |
Its browser caching, try to reload the page in editor, if you are using cloudflare clear the cloudflare cache. |
That worked, thanks! |
I will include it in future release |
Would you consider making it configurable, how images and links (via the toolbar) are inserted into the Markdown?
This is probably a personal preference, but I really like the
[XXX](https:…)
style more than the "footnotes style". I can at once see where the link is leading or what image I inserted, instead of having to scroll to the bottom of the editor.The text was updated successfully, but these errors were encountered: