-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: table head is missing when pasting the table from ms word #1857
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.
리뷰완료합니다.
if (startFromBody) { | ||
return schema.nodes.table.create(null, [createTableBody(rows, columnCount, schema)]); | ||
if (isInTable) { | ||
return schema.nodes.table.create(null, [createTableBody(rows, columnCount, schema)]); | ||
} | ||
} |
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.
if (startFromBody && isInTable)
은 어떤가요?
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 dummyCell = tableHeadCell.createAndFill()!; | ||
|
||
cells.push(dummyCell); |
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 dummyCell = tableHeadCell.createAndFill()!; | |
cells.push(dummyCell); | |
cells.push(tableHeadCell.createAndFill()); |
바로 사용해도 되지 않나요?
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.
리뷰 완료합니다. 수고하셨습니다.
@@ -97,6 +97,19 @@ function creatTableBodyDummyRow(columnCount: number, schema: Schema) { | |||
return tableRow.create({ dummyRowForPasting: true }, cells); | |||
} | |||
|
|||
function creatTableHeadDummyRow(columnCount: number, schema: Schema) { |
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.
이 함수 쓰는데가 PR에서는 안 보이는데요. 사용처가 있는거죠?
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.
제거 예정입니다!
|
||
if (items) { | ||
if (items?.length === 1) { |
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.
넵 워드에서 복사한 클립보드 데이터 종류가 여러 가지 타입으로 존재하는데 그 중에 이미지 데이터도 있어서 조건을 추가하였습니다! 해당 조건을 추가하지 않으면 테이블이 무조건 이미지 형태로만 복사가 되어서 문제가 됩니다.
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.
넵 확인하였습니다.
ff7f1e8
to
d6259d3
Compare
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)Description
as-is
to-be
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨