项目作者: recogito

项目描述 :
A JavaScript library for text annotation
高级语言: JavaScript
项目地址: git://github.com/recogito/recogito-js.git
创建时间: 2020-04-04T06:34:38Z
项目社区:https://github.com/recogito/recogito-js

开源协议:BSD 3-Clause "New" or "Revised" License

下载









A JavaScript library for text annotation. Use it to add annotation functionality to a web page, or as a toolbox
for building your own, completely custom annotation apps. Try the online demo
or see the API reference.


Screenshot


Installing

If you use npm, npm install @recogito/recogito-js and

  1. import { Recogito } from '@recogito/recogito-js';
  2. import '@recogito/recogito-js/dist/recogito.min.css';
  3. const r = new Recogito({ content: 'my-content' });

Otherwise download the latest release and
include it in your web page.

  1. <link href="recogito.min.css" rel="stylesheet">
  2. <script src="recogito.min.js"></script>

Using

  1. <body>
  2. <pre id="my-content">My text to annotate.</pre>
  3. <script type="text/javascript">
  4. (function() {
  5. var r = Recogito.init({
  6. content: document.getElementById('my-content') // ID or DOM element
  7. });
  8. // Add an event handler
  9. r.on('createAnnotation', function(annotation) { /** **/ });
  10. })();
  11. </script>
  12. </body>

Full documentation is on the Wiki. Questions? Feedack? Feature requests? Join the
RecogitoJS chat on Gitter.

Join the chat at https://gitter.im/recogito/recogito-js

License

BSD 3-Clause (= feel free to use this code in whatever way
you wish. But keep the attribution/license file, and if this code
breaks something, don’t complain to us :-)