🚧 ondelete to editor

This commit is contained in:
Timur Ercan
2023-02-14 17:04:53 +01:00
parent 6a1c75b165
commit 2f0fd4757e
3 changed files with 57 additions and 29 deletions

View File

@ -12,6 +12,10 @@ export default function PDFViewer(props) {
props.onPositionChanged(position, id);
}
function onDeleteHandler(id) {
props.onDelete(id);
}
function onFileChange(event) {
setFile(event.target.files[0]);
}
@ -62,6 +66,7 @@ export default function PDFViewer(props) {
field={item}
className="absolute"
onPositionChanged={onPositionChangedHandler}
onDelete={onDeleteHandler}
></Field>
))}
</div>