251212_01_ENH : kri-editor 1차 완성, 프로젝트 정보 저장 api연동 완료

This commit is contained in:
2025-12-12 17:27:12 +09:00
parent 1080880fba
commit d9775c8a1d
46 changed files with 2124 additions and 1668 deletions

View File

@@ -188,3 +188,68 @@
@apply bg-background text-foreground;
}
}
/*************************TipTap 이미지 Resize Node*******************************/
.ProseMirror img {
cursor: pointer;
}
.ProseMirror .ProseMirror-selectednode img {
outline: 5px solid #0ea5e9;
outline-offset: -5px;
}
/* 리사이즈 컨테이너 기본 배치 */
.ProseMirror [data-resize-container] {
position: relative;
display: inline-block;
}
/* 리사이즈 핸들 공통 스타일 */
.ProseMirror [data-resize-handle] {
position: absolute;
width: 10px;
height: 10px;
box-sizing: border-box;
background: #ffffff;
border: 1px solid #0ea5e9; /* 하늘색 테두리 */
z-index: 10;
opacity: 0; /* 안 보이게 */
pointer-events: none; /* 마우스 이벤트도 막기 */
transition: opacity 0.12s ease-out;
}
/* 이 이미지 래퍼에 마우스가 올라갔을 때만, 해당 핸들만 보이기 */
.ProseMirror [data-resize-container]:hover [data-resize-handle] {
opacity: 1;
pointer-events: auto;
}
/* 각 방향별 위치 + 커서 모양 */
.ProseMirror [data-resize-handle="bottom-right"] {
right: -5px;
bottom: -5px;
cursor: se-resize !important;
}
.ProseMirror [data-resize-handle="bottom-left"] {
left: -5px;
bottom: -5px;
cursor: sw-resize !important;
}
.ProseMirror [data-resize-handle="top-right"] {
right: -5px;
top: -5px;
cursor: ne-resize !important;
}
.ProseMirror [data-resize-handle="top-left"] {
left: -5px;
top: -5px;
cursor: nw-resize !important;
}
/* 리사이즈 중인 상태를 잡고 싶으면 */
.ProseMirror [data-resize-container][data-resize-state="resizing"] {
outline: 1px dashed #0ea5e9;
}