type-editor

A markdown editor inspired by typecho which is tiny but perfect

Usage no npm install needed!

<script type="module">
  import typeEditor from 'https://cdn.skypack.dev/type-editor';
</script>

README

typeditor

对 typecho 自带编辑器的重新实现,寻找了很多,只有 typecho 的 markdown 标准深得我心

原版是 php + jq 实现,typeditor 使用原生 ts 来写,适配所有前端场景

Use

npm:

yarn add typeditor -S

dom:

<div id="typeditor"></div>

js:

let te = new Typeditor({
  el: '#typeditor',
})

get/set value

te.value()
te.value('念念不忘,必有回响')

License

MIT © 132yse inspired by typecho