hyelie
hyelie
Hyeil Jeong
       
글쓰기    관리    수식입력
  • 전체보기 (495)
    • PS (283)
      • Algorithm (28)
      • PS Log (244)
      • Contest (6)
      • Tips (5)
    • Development (52)
      • Java (14)
      • Spring (23)
      • SQL (2)
      • Node.js (2)
      • Socket.io (3)
      • Study (4)
      • Utils (4)
    • DevOps (36)
      • Git (5)
      • Docker (4)
      • Kubernetes (2)
      • GCP (3)
      • Environment Set Up (8)
      • Tutorial (12)
      • Figma (2)
    • CS (74)
      • OOP (7)
      • OS (24)
      • DB (2)
      • Network (24)
      • Architecture (0)
      • Security (2)
      • Software Design (0)
      • Parallel Computing (15)
    • Project (15)
      • Project N2T (5)
      • Project ASG (0)
      • Project Meerkat (1)
      • Model Checking (7)
      • Ideas (2)
    • 내가 하고싶은 것! (34)
      • Plan (16)
      • Software Maestro (10)
      • 취준 (8)
hELLO · Designed By 정상우.
hyelie

hyelie

[N2T] 네이버 에디터와 티스토리 에디터 분석
Project/Project N2T

[N2T] 네이버 에디터와 티스토리 에디터 분석

1. 네이버 에디터

 html을 뜯어 보면 아래와 같다.

 제일 상위에 se-main-container가 있고, 그 아래에 각각 글, 코드, 이미지 단락들이 존재한다.

네이버 블로그의 html

 

 좀 더 상세하게 뜯어본 결과, 네이버 블로그 본문의 구조는 아래와 같다.

se-main-conatiner
┗ se-component se-text ... (글인 경우)
┗ se-component se-code {코드블럭 종류} (코드인 경우)
┗ se-component se-image ... (이미지인 경우)
┗ se-component se-quotation ... (인용구인 경우)
┗ se-component se-horizontalLine {구분선 종류} (구분선인 경우)
┗ se-component se-table (표인 경우)

 

 네이버 블로그에서 자주 쓰는 기능은 [글, 코드블럭, 이미지, 인용구, 구분선, 링크, 바로가기]일 것이다. 수식이나 글자 크기와 같은 요소들도 있겠지만 당장은 이 7가지 기능을 옮기려 한다.

 이 component들은 모두 component-content가 아래에 있고, 그 아래에 section이 존재한다. section 아래에 필요한 정보들이 있다. 대부분 module을 사용하지만 인용구인 경우, 표인 경우에는 container를 사용해서 그 안에 값을 넣어 준다. 구조도는 아래와 같다.

se-component se-[TYPE]
┗ se-component-content
  ┗ se-section se-section-[TYPE]
    ┗ se-module se-module-text (글인 경우)
      ┗ se-text-paragraph (한 문단)
        ┗ a href (링크인 경우)
    ┗ se-module se-module-code (코드인 경우)
    ┗ se-module se-module-image (이미지인 경우)
      se-module se-module-caption (이미지에 캡션이 있는 경우)
    ┗ se-quotation-container (인용구인 경우)
      ┗ se-module se-module-text se-quote (인용구)
        ┗ se-text-paragraph
      ┗ se-module se-module-text se-site (인용구 출처)
        ┗ se-text-paragraph
    ┗ se-module se-module-horizontalLine (구분선인 경우)
    ┗ se-module se-module-oglink (링크 바로가기 정보인 경우)
    ┗ se-table-container (표인 경우)
      ┗ se-table-content

 

 

 

2. 티스토리 에디터

 반면 티스토리 에디터는 HTML로 글 쓰기를 지원하고 있고, 글 쓴 것을 바로바로 볼 수 있다. 

 

 

'Project > Project N2T' 카테고리의 다른 글

[N2T] 리팩토링 기록  (0) 2023.09.06
[N2T] Naver2Tistory 리팩토링 시작  (0) 2023.03.22
[N2T] Tistory Open API 앱 등록  (0) 2022.09.15
[N2T] N2T - 네이버 블로그 이사 프로그램  (2) 2022.08.15
    hyelie
    hyelie

    티스토리툴바