diff --git a/CHANGES.md b/CHANGES.md index 4b6d69f1b50c95e752d7db28678e9c8dc70c0fe4..0a025d6e8878de20efa84048b929906c367f8549 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## Development (): + +* **Bugfix**: Update the TEI editor dependency + ## 0.8.10 (05.12.2019): * **Bugfix**: Updated the config to actually enable the deduplication diff --git a/editor/static/editor/js/tei-editor.js b/editor/static/editor/js/tei-editor.js index b3cd75c24d11d8d87a225fd9102cd80bfa8ae798..1536902db3449b4f29fadf629f1222883c55236a 100644 --- a/editor/static/editor/js/tei-editor.js +++ b/editor/static/editor/js/tei-editor.js @@ -4873,7 +4873,7 @@ r&&(t[e.children[n].tag.substring(e.children[n].tag.indexOf(":")+1)]=r)}e.dedupl if(e.multiple){if(e.deduplicate){let t=[] r.forEach(n=>{let r=!1 e.deduplicate.merge.forEach(t=>{let e=Xi([n,t.tag.substring(t.tag.indexOf(":")+1)]) -e&&e.length>1&&(r=!0)}),r?t=t.concat(this.duplicateNode(n,e.deduplicate.merge)):t.append(n)}),r=t}return r}return r[0]}parseHeader(t){let e=this.xpath.firstNode(this.dom.documentElement,t.tag),n={} +e&&e.length>1&&(r=!0)}),r?t=t.concat(this.duplicateNode(n,e.deduplicate.merge)):t.push(n)}),r=t}return r}return r[0]}parseHeader(t){let e=this.xpath.firstNode(this.dom.documentElement,t.tag),n={} for(let r=0;r<t.schema.length;r++){let i=this.parseHeaderNode(e,t.schema[r]) i&&(n[t.schema[r].tag.substring(4)]=i)}return n}parseMultiText(t){let e=this.xpath.firstNode(this.dom.documentElement,t.parser.selector) if(e){let n=[],r=this.xpath.nodeIterator(e,t.parts.parser.selector),i=r.iterateNext() diff --git a/yarn.lock b/yarn.lock index 4c3c368d6f83a8ab581324440a2882172a7122af..1d5e45dedbca77adc92193cb1c9ab2a1bc7a78a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2890,9 +2890,9 @@ tar@^4: yallist "^3.0.3" tei-editor@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/tei-editor/-/tei-editor-0.4.0.tgz#19956b9be21326fba0c8c7c06fe322e5123ad181" - integrity sha512-8/vwtzsEoKHX6cBjTV6X5gubEbl7zgq7BaVeqgtVKw38NsUdIjEpOGeXEuOzTAUKzPawtE+K66iHcIj9LpcUcA== + version "0.4.1" + resolved "https://registry.yarnpkg.com/tei-editor/-/tei-editor-0.4.1.tgz#ec92fa25ede82d25c24e413179660a24f9130345" + integrity sha512-vXuAZgEBiH+og4KwSQfdshrRZiEodYwejFF80ED4Ndf+uj6lQVx1+vL6H/NzF8j37bLxCj+S2L0vuVhtn3MPXQ== through2-filter@^3.0.0: version "3.0.0"