New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hocgin/marks

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hocgin/marks

A React Marks

latest
npmnpm
Version
0.0.17
Version published
Maintainers
1
Created
Source

@hocgin/marks

文本标注

草稿


let [list, {save, remove}] = useMarksStorage();

let {mark, unmark, unmarkAll} = useMarksSelector({
  el,
  defaultValue: list,
  onMarked: (item) => {
    save(item);
  },
  onUnMarked: (item) => {
    remove(item.uid);
  }
});

let uid = mark([{text, offset, storeRenderOther}])

unmark(uid)


依赖或参考 lib

incubator-annotator

Pkg: https://github.com/apache/incubator-annotator Demo: https://annotator.apache.org/demo/ Demo.Source: https://github.com/apache/incubator-annotator/blob/b52460a94ea91587ea96ecb77debc827d71b2920/web/index.js

js-mark

Pkg: https://github.com/BigCoal/js-mark Demo: http://webviews.cn/js-mark/

mark.js

Pkg: https://github.com/julkue/mark.js Demo: https://www.cnblogs.com/yangyukeke/p/17730681.html

参考资料

react-mark

FAQs

Package last updated on 11 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts