@template-editor/native
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

@template-editor/native

基于CodeMirror实现的模板编辑器,一般用来作为短信编辑器或者微信模板编辑器使用。

Features:

  • 配置简单易用
  • 支持自定义的占位符(Placeholder)
  • 原生Javascript实现,可以任意框架中使用,比如 ReactVueAngular

安装

npm i @template-editor/native

使用

import { TemplateEditor } from '@template-editor/native';

const editor = new TemplateEditor(container, {
  initialValue: 'Dear {{nickname}}...',
  placeholders: []
});

Readme

Keywords

none

Package Sidebar

Install

npm i @template-editor/native

Weekly Downloads

1

Version

0.4.0

License

MIT

Unpacked Size

57.7 kB

Total Files

11

Last publish

Collaborators

  • pickerlee