Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i cannot see highlight tags on screen when i loaded annotators (json format) #723

Open
cuiwang opened this issue Aug 4, 2023 · 0 comments

Comments

@cuiwang
Copy link

cuiwang commented Aug 4, 2023

hello,I was used annotator v2.0.3 in a base vue2 application, but a bug(maybe) confused me.
i got a RangeError{type: "start", message: "Couldn't find start node: /div[1]/div[2]/span[222]", parent: null}.

first:
i defined MyLocalStorage (mostly like node_modules/annotator/src/storage.js:function:: debug() )

partly code:
// tempArr : {quote: "建筑技术", ranges: Array(1), custom: "custom", text: "123", tags: Array(0), …}
query: function (queryObj) {
			return {results:tempArr};
		}

second:

this.annotatorApp.start().then(() => {
        this.annotatorApp.annotations.load()
      })

finally:

i got this in highlighter.js , function reanchorRange :

RangeError {type: "start", message: "Couldn't find start node: /div[1]/div[2]/span[222]", parent: null}

so, how can i correct restore localstorage annotators on screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant