【文件属性】:
文件名称:stackedit.js:将StackEdit添加到任何网站
文件大小:62KB
文件格式:ZIP
更新时间:2021-02-03 13:16:46
editor markdown markdown-editor stackedit MarkdownJavaScript
Stackedit.js
将StackEdit添加到任何网站
构建设置
# install dependencies
npm install
# watch and build for dev
npm run dev
# build for production
npm run build
快速开始
将StackEdit绑定到textarea :
// Import the lib.
import Stackedit from 'stackedit-js' ;
// Get the textarea.
const el = document . querySelector ( 'textarea' ) ;
// Create the Stackedit object.
const stackedit = new Stackedit ( ) ;
// Open the iframe
stackedit . openFile ( {
name : 'Filename' , // with a filename
content : {
text : el . value
【文件预览】:
stackedit.js-master
----.eslintrc(95B)
----webpack.config.js(1KB)
----src()
--------index.js(6KB)
----.babelrc(92B)
----.travis.yml(54B)
----LICENSE(1KB)
----README.md(1KB)
----docs()
--------index.md(2KB)
--------lib()
--------Gemfile(73B)
--------assets()
--------Gemfile.lock(6KB)
--------_config.yml(90B)
--------index.js(1KB)
--------icon.svg(3KB)
----.editorconfig(188B)
----.gitignore(91B)
----package-lock.json(197KB)
----package.json(1KB)