# 快速开始 ## 现代开发模式 安装: ```shell npm i aieditor ``` 使用: HTML: ```html
``` Typescript: ```typescript import {LinwitDocEditor} from "aieditor"; import "aieditor/dist/style.css" new LinwitDocEditor({ element: "#aiEditor", placeholder: "点击输入内容...", content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ', ai: { models: { spark: { appId: "***", apiKey: "***", apiSecret: "***", } } } }) ```