Comments (5)
Hi, hm - sounds like something else might go wrong. Because once the annotation is created and the character offsets are stored in the annotation.target
, it would re-generate correctly. Are there any errors in the console?
FWIW: if your goal is to guild collaborative realtime annotation, you might want to look into the Text Annotator, the upcoming successor to RecogitoJS. It's built exactly for these use cases in mind. Caveat: it's not very well documented yet. But would probably provide built-in handling of many of the concurrency issues you'd be facing along the road.
from recogito-js.
Ah wait - or do you mean the position of the popup (rather than the annotation highlight)? Yes, this might not actually handle the case correctly if you delete or replace and annotation programmatically, if the user has currently opened it.
from recogito-js.
Sorry that I didn't express myself very clearly. I meant the popup. This will be re-rendered. The actual annotation remains in place.
Can the new library handle something like this?
from recogito-js.
Well, sort of. The vanilla JS version doesn't have a popup. (Since everyone pretty much ended up building their own popups anyway, I left it out of scope this time.) The React wrapper package has a utility, however, which does essentially handle the case. (Or, more precisely, the way React works means that the popup doesn't fully re-render just because the annotation changes.)
from recogito-js.
We found a solutions. We swichted to some sort of notification if there are new annotations. The user then can re-load the annotation on his own.
from recogito-js.
Related Issues (20)
- Using custom formatters HOT 4
- Prevent overlapping annotations HOT 5
- Raise error when double clicking at the end of the paragraph HOT 1
- Unknown file extension ".css" HOT 4
- Not recognizing specific characters such as ยง HOT 2
- Choose annotatable items, not all wrapped items
- ERROR in ./node_modules/@recogito/recogito-js/dist/recogito.min.css HOT 1
- Support for Vue and Typescript? HOT 1
- getAnnotations doesn't work when annotating content in iframe
- Highlighting collapses completely HOT 5
- Two annotations on the exact same piece of text HOT 4
- Tags as buttons HOT 2
- Dropdown closes even if the input has content HOT 3
- Raise external 'cancelAnnotation' event
- "mouseup" event considered even for context menu action HOT 1
- Prevent creation of zero-width SPANs HOT 2
- Rendering highlights becomes painfully slow for longer documents HOT 1
- Autocomplete for relations does not work as intended HOT 1
- Adding read-only mode in the demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recogito-js.