Notion.so RTL support for written text

Changes dir attribute of page's div elements to 'auto' and forcing text aligning styles on selectable blocks

2020-03-21 기준 버전입니다. 최신 버전을 확인하세요.

작성자
orenk
평점
0 0 0
버전
0.1
생성일
2020-03-21
갱신일
2020-03-21
크기
2.95KB
라이선스
해당 없음
적용 사이트

Description

Add support for writing RTL text blocks (including todo list, bullet list, headings, etc..)
Text will change direction automatically depending on the language of the first letter in a text block.
(Thus, English text will remain with the same behavior)

Disclosure

This script is not supposed to change the direction of databases views nor its inner cells

Technical description

Changes dir attribute of page's div elements to 'auto' and forcing align and unicode automatic detection style on selectable blocks. Using MutationObserver in order to listen to newly added blocks. Written with performance in mind.