-
-
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
replace selection with pasted image #1119
Conversation
Can someone with knowledge about the tests have a look at my failing build, because I don't know why it's failing, it succeeded on my pc. This test is failing |
@mslourens Thank you for your contribution! We will review this pull request! |
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.
@mslourens Thanks for your PR, and please check the comment!
browser/components/CodeEditor.js
Outdated
@@ -214,8 +214,7 @@ export default class CodeEditor extends React.Component { | |||
|
|||
insertImageMd (imageMd) { | |||
const textarea = this.editor.getInputField() |
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.
Could you delete this line?
textarea
is not used I think.
@kohei-takata I fixed my code according to your review comment, you can review it again. |
Thank you @mslourens :) |
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.
LGTM
fixes issue #1086 - only paste the created image tag over the current selection, not the start and end of the whole textarea.