Skip to content

The Open Source DocuSign Alternative.

field placement cursor

Timur Ercan96c6a592f468
diff --git a/apps/web/components/editor/pdf-editor.tsx b/apps/web/components/editor/pdf-editor.tsx
index 00cd892e4..da2f3f9ff 100644
--- a/apps/web/components/editor/pdf-editor.tsx
+++ b/apps/web/components/editor/pdf-editor.tsx
@@ -48,6 +48,9 @@ export default function PDFEditor(props: any) {
<>
<div>
<PDFViewer
+ style={{
+ cursor: `url("https://place-hold.it/110x64/37f095/FFFFFF&text=${selectedFieldType}") 55 32, auto`,
+ }}
readonly={false}
document={props.document}
fields={fields}
diff --git a/apps/web/components/editor/pdf-viewer.jsx b/apps/web/components/editor/pdf-viewer.jsx
index fbabf2d61..2f8cd17f5 100644
--- a/apps/web/components/editor/pdf-viewer.jsx
+++ b/apps/web/components/editor/pdf-viewer.jsx
@@ -60,8 +60,7 @@ export default function PDFViewer(props) {
key={short.generate().toString()}
style={{
position: "relative",
- cursor:
- 'url("https://place-hold.it/110x64/37f095/FFFFFF&text=Signature"), auto',
+ ...props.style,
}}
className="mx-auto w-fit"
>