프로젝트
GitHub에서 보기
fouita/tailwind-editor
소개
notion like tailwindcss editor built with svelte
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTailwind Editor
Svelte component to generate tailwindcss html from a notion like wysiwyg editor.
This component is under development, don't use it in production yet!

Installation
$npm i tailwind-editor
Import to use in a svelte project, you need also tailwind installed (or imported) in order for this to work
<script>
import Editor from 'tailwind-editor'
let html = ''
</script>
<div class="flex">
<Editor bind:html={html} />
<div>
{html}
</div>
</div>
Add initial HTML
If you want to add custom html when you load the component you can pass an array of elements like the following
this is not recommended if the code is not previously generated by the editor
<script>
import Editor from 'tailwind-editor'
let arr_html = [
{html: 'Hello <span class="font-bold">world!</span>', klass: 'p-2 text-3xl'}
]
let html = ''
</script>
<Editor bind:html={html} {arr_html} editable />
TODO
- embed media (image, video)
- add lists
- drag and drop positions
- code highlighter with tailwindcss
Contribution
All contribution are welcome!
About
관련 프로젝트 살펴보기
불러오는 중…