-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
1499 lines (1343 loc) · 61 KB
/
index.html
File metadata and controls
1499 lines (1343 loc) · 61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LiteEditor 데모</title>
<!-- ✅ LiteEditor CSS 로드 -->
<link rel="stylesheet" href="css/core.css">
<link rel="stylesheet" href="css/plugins/plugins.css">
<!-- 새로 추가할 링크 -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet">
<style>
/* 페이지 레이아웃 스타일 */
body.demo-page {
background-color: #f5f5f7;
color: #333;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.5;
margin: 0;
padding: 20px;
}
.demo-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.demo-header {
margin-bottom: 2rem;
text-align: center;
}
.demo-header h1 {
color: #333;
font-size: 2rem;
margin-bottom: 0.5rem;
}
.demo-header p {
color: #666;
font-size: 1.1rem;
margin-top: 0;
}
.demo-section {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-bottom: 2rem;
overflow: hidden;
padding: 1.5rem;
}
.demo-section h2 {
color: #333;
font-size: 1.5rem;
margin-top: 0;
padding-bottom: 0.5rem;
}
.demo-section p {
line-height: 1.6;
}
/* 에디터 컨테이너 스타일 */
.editor-container {
margin-bottom: 2rem;
}
/* 툴바 테두리 스타일 */
#lite-editor-toolbar {
border: 1px solid #d0d7de;
border-radius: 6px 6px 0 0;
background-color: #f6f8fa;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
/* 탭 영역 스타일 - 테두리 없음 */
.editor-tab-space {
display: flex !important;
align-items: center !important;
border: none !important; /* 테두리 제거 */
}
/* 콘텐츠 영역 테두리 스타일 - 상단 테두리 추가 */
#lite-editor-content {
border: 1px solid #d0d7de !important;
border-radius: 0 0 6px 6px !important;
background-color: #ffffff !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
min-height: 400px !important;
padding: 15px !important;
}
/* 전체 에디터 컨테이너 정리 */
.lite-editor {
overflow: hidden;
}
/* ✅ 에디터 콘텐츠 내 헤딩 스타일 */
#lite-editor-content h1 {
font-size: 28px;
font-weight: bold;
margin: 0.5em 0;
color: #333;
padding-bottom: 0.3em;
}
#lite-editor-content h2 {
font-size: 22px;
font-weight: bold;
margin: 0.4em 0;
color: #333;
padding-bottom: 0.2em;
}
#lite-editor-content h3 {
font-size: 16px;
font-weight: bold;
margin: 0.3em 0;
color: #333;
}
/* 기능 목록 스타일 */
.features-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
margin: 1.5rem 0;
}
.feature-item {
background-color: #f8f9fa;
border-radius: 4px;
padding: 1rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.feature-item h3 {
color: #333;
margin-top: 0;
margin-bottom: 0.5rem;
font-size: 1.1rem;
display: flex;
align-items: center;
}
.feature-item h3 .material-icons {
margin-right: 8px;
color: #1a73e8;
font-size: 1.2rem;
}
.feature-item p {
color: #666;
font-size: 0.9rem;
margin-bottom: 0;
}
/* 코드 블록 스타일 */
.code-block {
background-color: #f5f5f5;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.4;
overflow-x: auto;
padding: 1rem;
white-space: pre;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.demo-container {
padding: 10px;
}
.features-list {
grid-template-columns: 1fr;
}
}
/* ✅ 단축키 치트시트 스타일 - 레이아웃 통일성 개선 */
.shortcuts-category {
margin-bottom: 40px;
max-width: 1080px;
margin-left: auto;
margin-right: auto;
}
.shortcuts-category h3 {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
font-size: 1.3em;
color: #333;
border-bottom: 2px solid #e0e0e0;
padding-bottom: 10px;
width: 100%;
}
.shortcuts-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
align-items: flex-start;
}
/* ✅ 단축키 아이템 - 한줄 구조 */
.shortcut-item {
width: 240px !important;
min-width: 240px;
max-width: 240px;
height: 60px;
padding: 15px;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 8px;
transition: all 0.2s ease;
box-sizing: border-box;
flex-shrink: 0;
}
.shortcut-item:hover {
background: #e7f3ff;
border-color: #007bff;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}
/* ✅ 아이콘 + 설명 부분 */
.shortcut-item-top {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
}
.shortcut-item .material-icons {
font-size: 18px;
color: #007bff;
flex-shrink: 0;
}
.shortcut-desc {
font-size: 13px;
color: #333;
font-weight: 500;
}
/* ✅ 단축키 부분 */
.shortcut-key {
background: #495057 !important;
color: white !important;
padding: 4px 8px !important;
border-radius: 4px !important;
font-family: 'Courier New', monospace !important;
font-size: 11px !important;
font-weight: bold !important;
white-space: nowrap !important;
flex-shrink: 0 !important;
display: flex !important;
align-items: center !important;
gap: 4px !important;
min-width: 80px !important; /* 최소 너비 보장 */
}
.shortcut-key .material-icons {
font-size: 14px !important;
color: white !important;
}
/* ✅ 강제 우선순위 적용 */
.example .lite-editor-content ul,
.example .lite-editor-content ol {
margin-top: 0 !important;
margin-bottom: 0.2em !important;
padding-left: 2em !important;
list-style: initial !important;
}
.example .lite-editor-content ul {
list-style-type: disc !important;
}
.example .lite-editor-content ol {
list-style-type: decimal !important;
}
.example .lite-editor-content li + li {
margin-top: 0.25em !important;
}
/* ✅ Pro Tips 스타일 추가 */
.pro-tips {
display: flex;
flex-direction: column;
gap: 15px;
margin-top: 20px;
}
.tip-item {
display: flex;
align-items: center;
gap: 12px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
}
.tip-item .material-icons {
color: #007bff;
font-size: 20px;
flex-shrink: 0;
}
.tip-item span:last-child {
color: #333;
font-size: 14px;
line-height: 1.4;
}
/* ✅ 그리드 레이아웃 개선 */
.shortcuts-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
align-items: flex-start;
}
/* ✅ 반응형 개선 */
@media (max-width: 1200px) {
.shortcuts-grid {
justify-content: center;
}
}
@media (max-width: 768px) {
.shortcut-item {
width: 100% !important;
max-width: 300px;
}
.shortcuts-grid {
justify-content: center;
}
}
/* 탭 버튼 컨테이너 */
.editor-tabs {
display: flex;
gap: 2px;
}
/* 탭 버튼 스타일 */
.tab-button {
width: 100px;
height: 32px;
border: 1px solid #d0d7de;
border-radius: 4px;
background-color: #f6f8fa;
color: #656d76;
font-size: 12px;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
transition: all 0.2s ease;
outline: none;
}
.tab-button:hover {
background-color: #f3f4f6;
border-color: #8c959f;
}
.tab-button.active {
background-color: #f6f8fa; /* 배경색 동일하게 */
font-weight: 600;
}
.tab-button .material-icons {
font-size: 14px;
}
</style>
</head>
<body class="demo-page">
<div class="demo-container">
<div class="demo-header">
<h1>LiteEditor 플러그인 데모 <span id="version-display" style="font-size: 0.6em; color: #666; font-weight: normal;"></span></h1>
</div>
<div class="demo-section">
<div class="editor-container">
<div class="lite-editor" id="main-editor">
<!-- 툴바 영역 (상단 둥근 테두리) -->
<div id="lite-editor-toolbar"></div>
<!-- 탭 영역 -->
<div class="editor-tab-space" style="height: 5px;">
</div>
<!-- 콘텐츠 영역 (하단 둥근 테두리) -->
<div id="lite-editor-content" contenteditable="true">
<p>첫 번째 항목<br>두 번째 항목<br>세 번째 항목<br>네 번째 항목</p>
<p>LiteEditor 소개, 이 크기는 h1 태그입니다.</p>
<p>LiteEditor는 웹 페이지에 쉽게 통합할 수 있는 고정형 리치 텍스트 에디터 플러그인입니다. 사용자가 다양한 서식을 적용할 수 있는 직관적인 도구 모음을 제공합니다.</p>
<p></p>
<pre>
📋 LiteEditor 단축키 가이드 (v1.0.85 기준)
// ✅ 텍스트 서식 (정상 동작)
- bold: { key: 'b', ctrl: true, meta: true }, // ⌘+B / Ctrl+B
- italic: { key: 'i', ctrl: true, meta: true }, // ⌘+I / Ctrl+I
- underline: { key: 'u', ctrl: true, meta: true }, // ⌘+U / Ctrl+U
- strike: { key: 's', meta: true, shift: true }, // ⌘+Shift+S / Ctrl+Shift+S
// ✅ 헤딩 (정상 동작)
- heading1: { key: '1', ctrl: true, alt: true }, // ⌘+⌥+1 / Ctrl+Alt+1
- heading2: { key: '2', ctrl: true, alt: true }, // ⌘+⌥+2 / Ctrl+Alt+2
- heading3: { key: '3', ctrl: true, alt: true }, // ⌘+⌥+3 / Ctrl+Alt+3
- paragraph: { key: '4', ctrl: true, alt: true }, // ⌘+⌥+4 / Ctrl+Alt+4 (본문)
// ✅ 리스트 (정상)
- bulletList: { key: '8', ctrl: true, shift: true }, // ⌘+Shift+8 / Ctrl+Shift+8
- numberedList: { key: '7', ctrl: true, shift: true }, // ⌘+Shift+7 / Ctrl+Shift+7
- checkList: { key: '9', ctrl: true, shift: true }, // ⌘+Shift+9 / Ctrl+Shift+9
// ✅ 편집 (정상 동작)
- undo: { key: 'z', ctrl: true }, // ⌘+Z / Ctrl+Z
- redo: { key: 'z', ctrl: true, shift: true }, // ⌘+Shift+Z / Ctrl+Shift+Z
// ✅ 들여쓰기 (정상 동작)
- indent: { key: 'Tab' }, // Tab
- outdent: { key: 'Tab', shift: true }, // Shift+Tab
// ✅ 서식 제거 (정상 동작)
- reset: { key: '\\', ctrl: true, shift: true }, // ⌘+Shift+\ / Ctrl+Shift+\
// ✅ 삽입 (정상 동작)
- code: { key: 'c', alt: true, shift: true }, // ⌥+Shift+C / Alt+Shift+C
- blockquote: { key: 'b', alt: true, shift: true }, // ⌥+Shift+B / Alt+Shift+B
- line: { key: 'h', alt: true, shift: true }, // ⌥+Shift+H / Alt+Shift+H (새로 추가)
// ✅ 정렬 (정상 동작)
- alignLeft: { key: 'l', ctrl: true, shift: true }, // ⌘+Shift+L / Ctrl+Shift+L
- alignCenter: { key: 'e', ctrl: true, shift: true }, // ⌘+Shift+E / Ctrl+Shift+E
- alignRight: { key: 'r', ctrl: true, shift: true }, // ⌘+Shift+R / Ctrl+Shift+R
- alignJustify: { key: 'j', ctrl: true, shift: true }, // ⌘+Shift+J / Ctrl+Shift+J
// ✅ 레이어 기능 (단축키 지원)
- 링크: ⌘+Shift+K, 이미지: ⌘+Shift+I, 미디어: ⌘+Shift+M, 코드블록: ⌘+Shift+C
- 테이블은 클릭으로만 사용 가능
</pre>
<br>
<br>https://raw.githubusercontent.com/villainscode/tech-interview-for-junior/main/image/comment.png<br>
<p>LiteEditor 기능 테스트용 샘플 텍스트, 이 크기는 h2 태그입니다.</p>
<p>기본 서식 테스트, 이 크기는 h3 태그입니다.</p>
<p>안녕하세요! 이 텍스트는 굵게 서식을 테스트하기 위한 문장입니다. 기울임체로 작성된 부분도 확인해보세요.
또한 밑줄과 취소선 기능도 테스트해볼 수 있습니다. 물론 다 적용해볼 수도 있죠.</p>
<p>제목 스타일</p>
<p>에디터의 Heading 기능을 사용하여 이 텍스트를 다양한 크기의 제목으로 변경해보세요. H1부터 H3까 크기를 적용할 수 있습니다. 기본값은 일반 Paragraph로 텍스트가 채워집니다. </p>
<p>글자 색상 및 하이라이트</p>
<p>이 부분은 글자 색상을 변경해보세요. 다양한 색상을 선택하여 텍스트에 적용할 수 있습니다. 또한 텍스트 배경에 하이라이트 효과를 주고 싶다면 해당 텍스트를 선택한 후 하이라이트 도구를 사용해보세요.</p>
<p>글꼴 변경</p>
<p>이 문장의 글꼴을 변경해보세요. 에디터에서 제공하는 다양한 글꼴(굴림체, 바탕체, Noto Sans KR, 나눔고딕, Black Han Sans, 도현체 등)을 적용해볼 수 있습니다.</p>
- 도현체 <br>
- 나눔고딕 <br>
- 바탕체 <br>
- 굴림체 <br>
- Noto Sans KR <br>
- Black Han Sans <br>
<br>
코딩 폰트도 적용할 수 있어요. <br>
- Hack<br>
- JetBrains Mono<br><br>
영문도 적용합니다.<br><br>
arial <br>
Courier new <br>
블록쿼트도 적용합니다.<br>
블록쿼트 아이콘을 누르세요. 엔터를 치면 밖으로 빠져나옵니다.<br><br>
<h3>이미지 추가</h3>
<p>이미지를 추가하려면 아래 이미지 URL을 복사하고 Image 버튼을 클릭한 후 URL을 붙여넣으세요:</p>
이미지 주소는 <br>https://raw.githubusercontent.com/haru-note/harunote.github/main/image/book.jpg <br>입니다.
<br><br>
<h3>동영상 링크</h3>
<p>동영상을 추가하려면 아래 유튜브 URL을 복사하여 Link 버튼을 클릭한 후 URL을 붙여넣으세요:</p>
<p>https://youtube.com/shorts/CuL-8CsrMZw?si=rZiyYB0sNegg6m5O</p>
<p>순서 있는 리스트</p>
<p>이 부분을 선택하고 순서 있는 리스트(Numbered List) 버튼을 클릭하세요:</p>
<p>첫 번째 항목<br>
두 번째 항목<br>
세 번째 항목<br>
네 번째 항목</p>
<p>순서 없는 리스트</p>
<p>이 부분을 선택하고 순서 없는 리스트(Bullet List) 버튼을 클릭하세요:</p>
<p>과일 항목<br>
채소 항목<br>
육류 항목<br>
유제품 항목</p>
<p>체크리스트 </p>
<p>체크리스트를 테스트하려면 이 부분을 선택하고 CheckList 버튼을 클릭하세요.</p>
<p>첫 번째 항목<br>
두 번째 항목<br>
세 번째 항목<br>
네 번째 항목</p>
<h3>코드 및 코드블럭 하일라이팅, 자동 Syntax 하일라이팅 적용</h3>
<p>인라인 코드를 테스트하려면 이 부분을 선택하고 Code 버튼을 클릭하세요.</p>
<div class="example">
이 함수는 <code>console.log()</code>를 사용합니다.
</div>
<div>
function testFunction() {<br>
console.log("Hello, LiteEditor!");<br>
return true;<br>
}
</div>
<br>
<br>
const result = testFunction();<br>
핵심 포인트
📌 ⭐ ❗
단계 표시
🔹 🔸 ◾ ▪
섹션 구분
───────
순서/단계
① ② ③ 🔢
예시/샘플
📋 📝 📄
문서/코드
📄 🧾 🗒️
링크
🔗 🌐
성공/정상
✅ ✔️ 🟢
실패/에러
❌ ⚠️ 🔴
참고/주의
⚠️ 🔔 🟡
정보
ℹ️ 💡 🔍
완료
🏁 🟢 ✅
진행 중
⏳ 🔄 🕐
코드
💻 🧑💻 🧾
설정
⚙️ 🔧 🛠
경로
📁 📂
서버
🖥️ 🌐 🧱
인증
🔐 🔑
API 호출
📡 🔄
버그/오류
🐛 ❌
패키지/라이브러리
📦
통계
📊 📈 📉
로그
📜 🧾
모니터링
🔎 👀
메트릭
📏 🧮
<h3>링크 추가</h3>
<p>링크를 추가하려면 이 텍스트를 선택하고 Link 버튼을 클릭한 후 http://www.google.com 을 입력하세요.</p>
<h3>테이블 추가</h3>
<p>테이블을 추가하려면 Table 버튼을 클릭하고 원하는 행과 열 수를 선택하세요. 예를 들어, 3x3 테이블을 만들어 제품 정보를 표시할 수 있습니다.</p>
<h3>서식 지우기</h3>
<p>모든 서식을 제거하려면 위의 내용을 선택한 후 Reset Format 버튼을 클릭하세요. 모든 서식(굵게, 기울임, 밑줄, 색상 등)이 제거되고 일반 텍스트로 변환됩니다.</p>
<h3>실행 취소 및 재실행</h3>
<p>텍스트를 편집한 후 Undo 버튼을 클릭하여 이전 상태로 되돌리거나, Redo 버튼을 클릭하여 취소한 작업을 다시 적용해보세요.</p>
</div>
</div>
</div>
</div>
<div class="demo-section">
<h2>기능 목록</h2>
<p>LiteEditor는 플러그인 기반 구조로 다양한 기능을 확장할 수 있습니다.</p>
<div class="features-list">
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_bold</span>
굵게 (Bold)
</h3>
<p><strong>중요한 텍스트를 강조</strong>할 때 사용합니다. <br>단축키: Ctrl+B / ⌘+B</p>
<div class="example">
<strong>이 텍스트는 굵게 표시</strong>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_italic</span>
기울임 (Italic)
</h3>
<p><em>강조나 인용</em>에 사용되는 기울임 서식 <br>단축키: Ctrl+I / ⌘+I</p>
<div class="example">
<em>이 텍스트는 기울임으로 표시</em>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_underlined</span>
밑줄 (Underline)
</h3>
<p><u>텍스트에 밑줄</u>을 추가하여 강조합니다. <br>단축키: Ctrl+U / ⌘+U</p>
<div class="example">
<u>이 텍스트에는 밑줄이 그어짐</u>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_strikethrough</span>
취소선 (Strikethrough)
</h3>
<p><s>삭제된 내용이나 수정사항</s>을 표시할 때 사용합니다. <br>단축키: Ctrl+Shift+S / ⌘+Shift+S</p>
<div class="example">
<s>이 텍스트는 취소선 처리</s>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">title</span>
제목 (Heading)
</h3>
<p>문서의 계층 구조를 만들기 위한 제목 스타일입니다.<br>단축키: Ctrl+Alt+1~4 / ⌘+⌥+1~4</p>
<div class="example lite-editor-content">
<h1>제목 1 (H1)</h1>
<h2>제목 2 (H2)</h2>
<h3>제목 3 (H3)</h3>
<p>본문 텍스트 (Paragraph)</p>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_quote</span>
인용구 (Blockquote)
</h3>
<p>다른 사람의 말이나 중요한 인용문을 표시할 때 사용합니다.<br>단축키: Alt+Shift+B</p>
<div class="example lite-editor-content">
<blockquote>
"혁신은 1%의 영감과 99%의 노력으로 이루어진다" - 토마스 에디슨
</blockquote>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_align_justify</span>
정렬 (Alignment)
</h3>
<p>텍스트의 정렬 방향을 설정할 수 있습니다.<br>단축키: Ctrl+Shift+L/E/R/J / ⌘+Shift+L/E/R/J</p>
<div class="example">
<p style="text-align: left;">← 왼쪽 정렬</p>
<p style="text-align: center;">중앙 정렬</p>
<p style="text-align: right;">오른쪽 정렬 →</p>
</div>
</div>
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_indent_increase</span>
들여쓰기 (Indent), 내어쓰기 (Outdent)
</h3>
<p>텍스트나 목록의 들여쓰기를 조정할 수 있습니다.<br>단축키: Tab / Shift+Tab</p>
<div class="example">
<p>기본 들여쓰기</p>
<p style="margin-left: 20px;">1단계 들여쓰기</p>
<p style="margin-left: 40px;">2단계 들여쓰기</p>
</div>
</div>
<!-- 글꼴 선택 (Font Family) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">font_download</span>
글꼴 (Font Family)
</h3>
<p>다양한 글꼴을 선택하여 텍스트 스타일을 변경할 수 있습니다.</p>
<div class="example lite-editor-content">
<div style="font-family: 'Do Hyeon';">도현체 글꼴로 작성된 텍스트</div>
<div style="font-family: 'Times New Roman';">Times New Roman 글꼴로 작성된 텍스트</div>
</div>
</div>
<!-- 글자색 (Font Color) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_color_text</span>
글자색 (Font Color)
</h3>
<p>텍스트 색상을 변경하여 시각적 효과를 줄 수 있습니다.</p>
<div class="example lite-editor-content">
<span style="color: #ff0000;">빨간색 텍스트</span> |
<span style="color: #0000ff;">파란색 텍스트</span> |
<span style="color: #00aa00;">초록색 텍스트</span>
</div>
</div>
<!-- 형광펜 (Highlight) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_color_fill</span>
형광펜 (Highlight)
</h3>
<p>중요한 내용에 배경색을 추가하여 강조할 수 있습니다.</p>
<div class="example lite-editor-content">
<mark style="background-color: #ffff00;">노란색 형광펜</mark> |
<mark style="background-color: #ffaa00;">주황색 형광펜</mark>
</div>
</div>
<!-- 불릿 목록 (Bullet List) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_list_bulleted</span>
불릿 목록 (Bullet List)
</h3>
<p>순서가 없는 항목들을 나열할 때 사용합니다.<br>단축키: Ctrl+Shift+8 / ⌘+Shift+8</p>
<div class="example">
<div class="lite-editor-content">
<ul>
<li>첫 번째 항목</li>
<li>두 번째 항목</li>
<li>세 번째 항목</li>
</ul>
</div>
</div>
</div>
<!-- 번호 목록 (Numbered List) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_list_numbered</span>
번호 목록 (Numbered List)
</h3>
<p>순서가 있는 항목들을 나열할 때 사용합니다.<br>단축키: Ctrl+Shift+7 / ⌘+Shift+7</p>
<div class="example">
<div class="lite-editor-content">
<ol>
<li>첫 번째 단계</li>
<li>두 번째 단계</li>
<li>세 번째 단계</li>
</ol>
</div>
</div>
</div>
<!-- 체크리스트 (Check List) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">checklist</span>
체크리스트 (Check List)
</h3>
<p>할 일 목록이나 완료 체크가 필요한 항목에 사용합니다.<br>단축키: Ctrl+Shift+9 / ⌘+Shift+9</p>
<div class="example lite-editor-content">
<div>☑️ <s>완료된 작업</s></div>
<div>☐ 진행 중인 작업</div>
<div>☐ 대기 중인 작업</div>
</div>
</div>
<!-- 이미지 업로드 (Image Upload) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">photo_camera</span>
이미지 업로드 (link & file)
</h3>
<p>이미지를 업로드하거나 URL로 삽입할 수 있습니다.<br>단축키: Ctrl+Shift+I / ⌘+Shift+I<br>- 이미지 리사이즈<br>- Copy & Paste<br>- Drag & Drop</p>
<div class="example">
<div style="border: 2px dashed #ccc; padding: 20px; text-align: center;">
📷 이미지 업로드 영역
</div>
</div>
</div>
<!-- 테이블 (Table) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">grid_on</span>
테이블 (Table)
</h3>
<p>정형화된 데이터를 표 형태로 구성할 수 있습니다.</p>
<div class="example lite-editor-content">
<table style="border-collapse: collapse; border: 1px solid #ddd;">
<tr>
<th style="border: 1px solid #ddd; padding: 8px;">제목 1</th>
<th style="border: 1px solid #ddd; padding: 8px;">제목 2</th>
</tr>
<tr>
<td style="border: 1px solid #ddd; padding: 8px;">데이터 1</td>
<td style="border: 1px solid #ddd; padding: 8px;">데이터 2</td>
</tr>
</table>
</div>
</div>
<!-- 링크 (Link) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">link</span>
링크 (Link)
</h3>
<p>외부 사이트나 내부 페이지로 연결되는 링크를 생성합니다.<br>단축키: Ctrl+Shift+K / ⌘+Shift+K</p>
<div class="example">
<a href="#" style="color: #1a73e8; text-decoration: underline;">이것은 링크입니다</a>
</div>
</div>
<!-- 미디어 (Media) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">video_library</span>
미디어 (Media)
</h3>
<p>유튜브등 동영상 미디어 링크를 삽입할 수 있습니다.<br>단축키: Ctrl+Shift+M / ⌘+Shift+M</p>
<div class="example">
<div style="border: 2px solid #ddd; padding: 20px; text-align: center;">
🎬 동영상 플레이어 영역
</div>
</div>
</div>
<!-- 인라인 코드 (Inline Code) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">code</span>
인라인 코드 (Inline Code)
</h3>
<p>문장 내에서 짧은 코드나 명령어를 표시할 때 사용합니다.<br>단축키: Alt+Shift+C</p>
<div class="example lite-editor-content">
이 함수는 <code>console.log()</code>를 사용합니다.
</div>
</div>
<!-- 코드 블록 (Code Block) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">code_blocks</span>
코드 블록 (Code Block)
</h3>
<p>여러 줄의 코드를 구문 강조와 함께 표시할 수 있습니다.<br>단축키: Ctrl+Shift+C / ⌘+Shift+C</p>
<pre class="example lite-editor-content">function hello() {
console.log("Hello, World!");
return true;
}</pre>
</div>
<!-- 수평선 (Horizontal Line) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">horizontal_rule</span>
수평선 (Horizontal Line)
</h3>
<p>문서 내용을 구분하는 수평선을 삽입할 수 있습니다.<br>단축키: Alt+Shift+H</p>
<div class="example">
<p>위쪽 내용</p>
<hr style="border: 1px solid #ddd; margin: 10px 0;">
<p>아래쪽 내용</p>
</div>
</div>
<!-- 실행 취소/되돌리기 (Undo/Redo) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">undo</span>
<span class="material-symbols-outlined">redo</span>
실행 취소/되돌리기 (Undo/Redo)
</h3>
<p>작업을 취소하거나 다시 실행할 수 있습니다.<br>단축키: Ctrl+Z / Ctrl+Shift+Z / ⌘+Z / ⌘+Shift+Z</p>
<div class="example">
<button style="margin-right: 5px;">← 되돌리기</button>
<button>앞으로 →</button>
</div>
</div>
<!-- 서식 지우기 (Clear Format) -->
<div class="feature-item">
<h3>
<span class="material-symbols-outlined">format_clear</span>
서식제거
</h3>
<p>선택된 텍스트의 모든 서식을 제거하고 기본 텍스트로 되돌립니다.<br>단축키: Ctrl+Shift+\ / ⌘+Shift+\</p>
<div class="example">
<span style="color: #666;">서식이 적용된 텍스트</span> → 일반 텍스트
</div>
</div>
</div>
</div>
<div class="demo-section">
<h2>사용 방법</h2>
<p>다음과 같은 완전한 코드로 LiteEditor를 추가할 수 있습니다.</p>
<p>에디터 Toolbar의 영역과 편집이 가능한 content 영역을 분리할 수 있습니다</p><br>
<br><br>
<p><strong>📋 완전한 설치 예시:</strong></p>
<h4>🔹 분리 모드 (Separated Mode) - 권장</h4>
<p><strong>특징:</strong> 툴바와 콘텐츠 영역을 별도로 배치 가능, 레이아웃 자유도 높음</p>
<pre class="code-block">
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>LiteEditor 분리 모드</title>
</head>
<body>
<!-- 에디터 컨테이너 (히스토리 시스템을 위해 필요) -->
<div class="lite-editor" id="main-editor">
<!-- 툴바 영역 (원하는 위치에 배치 가능) -->
<div id="lite-editor-toolbar"></div>
<!-- 에디터 콘텐츠 영역 -->
<div id="lite-editor-content" contenteditable="true">
<p>여기에 내용을 입력하세요...툴바에서 클릭된 기능이 이곳에 적용됩니다.</p>
</div>
</div>
<!-- JavaScript 로더 -->
<script src="js/loader.js"></script>
<script>
// 모든 스크립트 로드 완료 후 에디터 초기화
document.addEventListener('lite-editor-loaded', function() {