v3.6.1

Vanessa219/vditorv3.6.1Nov 10, 2020by Vanessa219

AI Summary

This release introduces word selection comments in WYSIWYG mode, improves footnote and link reference handling, and adds a new API for managing comments.

Key Highlights

  • WYSIWYG mode now supports word selection comments
  • Improved footnotes and link references
  • Added tooltip support for custom preview actions

New Features

  • options.comment configuration with enable, add, and remove methods
  • getCommentIds, hlCommentIds, unHlCommentIds, and removeCommentIds methods

Full Release Notes

* [807](https://github.com/Vanessa219/vditor/issues/807) 脚注和链接引用改进 `改进功能`
* [721](https://github.com/Vanessa219/vditor/issues/721) 所见即所得模式加入划词评论 `引入特性`
* [808](https://github.com/Vanessa219/vditor/issues/808) options.preview.actions 添加的自定义 tooltip `改进功能`
* [802](https://github.com/Vanessa219/vditor/issues/802) 粘贴后需滚动到粘贴内容的末尾 `改进功能`
* [806](https://github.com/Vanessa219/vditor/pull/806) 修复201不算成功的问题  `改进功能`

### 文档修改
 * `options.preview.actions` 添加 `tooltip` 
 * 添加 `options.comment` 及 `getCommentIds`, `hlCommentIds`, `unHlCommentIds`, `removeCommentIds` 方法
     ```
     comment?: {
         enable: boolean
         add?(id: string, text: string): void
         remove?(ids: string[]): void;
     };
     ```