mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
annotations: add tasks to AnnotationState
This commit is contained in:
parent
c0a4092205
commit
2955ef274a
@ -18,9 +18,17 @@ export class AnnotationState {
|
||||
|
||||
constructor(options: AnnotationStateOptions) {
|
||||
this.options = options
|
||||
|
||||
// TODO: Observe Y.js changes and re-render decorations
|
||||
// this.options.map.observe(e => {
|
||||
// console.log('e', e)
|
||||
// })
|
||||
}
|
||||
|
||||
findAnnotation(id: number) {
|
||||
// TODO: Get from Y.js?
|
||||
// this.decorations.get(id)
|
||||
|
||||
const current = this.decorations.find()
|
||||
|
||||
for (let i = 0; i < current.length; i += 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user