synyi/poplar

构造函数第一个参数使用字符串报错

Opened this issue · 1 comments

let originString = "hello world"
let annotator = new Annotator(originString, document.getElementById("test"))
annotator.on("textSelected", () => {
console.log(111)
})

使用api文档中的一段代码,运行时报错'unexpeted token h in JSON at position 0'

这个应该是版本问题,master分支下的代码 里面有ts的东西,我切换了一个分支,纯vue写的. "poplar-annotation": "^1.2.5"然后就好了。