# anmiao

> 普益云富文本编辑器

Latest version **1.0.6** (published 2023-02-03) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install anmiao
pnpm add anmiao
yarn add anmiao
bun add anmiao
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-02-03 |
| First published | 2023-01-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ethan Yang |
| Maintainers | big-head-anan |
| Keywords | editor, 富文本, 编辑器 |

## Links

- npm: https://www.npmjs.com/package/anmiao
- npm.io page: https://npm.io/package/anmiao

## Dependencies (2)

- [spark-md5](https://npm.io/package/spark-md5.md) 3.0.2
- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) 2.0.943

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.6 (latest) — 2023-02-03
- 1.0.5 — 2023-02-02
- 1.0.4 — 2023-02-01
- 1.0.2 — 2023-02-01
- 1.0.1 — 2023-02-01
- 1.0.0 — 2023-01-31
- 0.0.1 — 2023-01-12

## README

#普益云富文本编辑器

pyy-editor编辑器是基于Tinymce 5.8.2进行的二次封装。

##安装
```shell
npm install pyy-editor
```
##运行脚本命令
```powershell
cd path/to/your/project
# 使用 Windows电脑 PowerShell
Copy-Item node_modules/pyy-editor/skins public/tinymce/skins -force -recurse
Copy-Item node_modules/pyy-editor/plugins/powerpaste public/tinymce/plugins/powerpaste -force -recurse
Copy-Item node_modules/pyy-editor/tinymce.vue path/to/your/conponents

# Linux
cp -rf node_modules/pyy-editor/skins public/tinymce/skins
cp -rf node_modules/pyy-editor/plugins/powerpaste public/tinymce/plugins/powerpaste
cp node_modules/pyy-editor/tinymce.vue path/to/your/conponents
```

##配置
```javascript
import tinymce from 'pyy-editor';
Vue.property.$tinymce = tinymce;

import {tinymceUtils} from "../public/tinymce/utils";  // 导入处理工具类

// 初始化 配置处理类
let tinymceConfigHandler = new tinymceUtils.ConfigHandler();
// 全局挂载
Vue.prototype.$_tinymceConfigHandler = tinymceConfigHandler;
// 初始化 文件上传处理类 api.tinymce为项目中上传接口
let uploadHandler = new tinymceUtils.UploadHandler(api.tinymce);
// 全局挂载
Vue.prototype.$_uploadHandler = uploadHandler;
```

## 主要功能

1、富文本框工具初始版本

2、组件配置重新封装

3、上传配置及相关方法重新封装

4、image插件调整：“插入/编辑图片”编辑器调整标签顺序

5、新增pdf2img插件：将pdf文件转成图片

6、media插件：动态配置“插入/编辑媒体”编辑器“内嵌”和“高级”标签

7、远程图片抓取后地址替换成本地链接

8、新增另存为模板插件：将当前正文内容保存为模板

9、其他优化

## 版本信息
1.0.0（2023年2月1日）
--  初始化

---
_Source: https://npm.io/package/anmiao · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
