-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Preview images on editor #1633
Preview images on editor #1633
Conversation
…l/Boostnote into display-image-in-editor
@forestail This doesn't work on my mac. What should I do to see the preview? And, could you fix the conflicts? |
@Rokt33r Sorry. I tested it on only MS-Windows. |
@forestail I'll do it this weekends. Sorry for my late answer. |
I've tried it again. But, still have no idea how can I see the preview. Is it supposed to display when hovering the image link?? |
@Rokt33r I thought it was previewed when a image pasted. |
const lastline = editor.lineCount() | ||
for (let i = 0; i < lastline; ++i) { | ||
const lineValue = editor.getLine(i) | ||
var imageMdRe = /\!\[.+\]\(\\:storage\\(.+?)\)/g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not platform independent. I tried to develope something platform indepnendent in #1852
Close this now. Let us know when you can start working again. 😄 |
This makes it possible to preview images on editor.