Revize b5f60842
Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)
webapp/components/annotation/DocumentAnnotationView.tsx | ||
---|---|---|
15 | 15 |
|
16 | 16 |
return ( |
17 | 17 |
<div> |
18 |
<Button |
|
19 |
onClick={() => { |
|
20 |
console.log(window.getSelection()); |
|
21 |
}} |
|
22 |
> |
|
23 |
Test |
|
24 |
</Button> |
|
25 |
<div dangerouslySetInnerHTML={{ __html: annotation.documentText ?? '' }} /> |
|
18 |
<div |
|
19 |
dangerouslySetInnerHTML={{ __html: annotation.documentToRender ?? '' }} |
|
20 |
/> |
|
26 | 21 |
</div> |
27 | 22 |
); |
28 | 23 |
} |
Také k dispozici: Unified diff
Document preview on frontend