-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: the editor cannot apply empty string attributes to wysiwyg node #1781
Conversation
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.
리뷰완료합니다.
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.
리뷰 완료합니다. 수고하셨습니다.
|
||
const result = oneLineTrim` | ||
<iframe width="" height="" src="" class="html-block"></iframe> | ||
<p>test</p> |
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.
속성의 빈값을 확인 하는 것 외에 다른 컨텐츠가 들어가야 할 필요가 있었어요?
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.
딱히 의미가 없네요. 해당 텍스트는 제거하겠습니다~
@@ -864,6 +864,25 @@ describe('editor', () => { | |||
|
|||
expect(wwEditor.innerHTML).toContain(result); | |||
}); | |||
|
|||
it('should keep the html block attributes with an empty string after changing the mode', () => { |
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.
설명에 block이 들어갈 필요는 없는 거죠?
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.
제가 보기에도 굳이 언급 안해도 될 것 같은 단어네요.
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.
리뷰 완료합니다.
ebc207a
to
ae87ad1
Compare
…hn#1781) * fix: add controls attribute for video * fix: set attritutes properly with empty string * chore: add test case(empty string attributes) * fix: remove attribute when value is null or undefined * chore: apply code review
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)Description
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨