You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/MAINTAINERS.md
+167Lines changed: 167 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,3 +65,170 @@ Before upgrading `plugins.js`, test compatibility with target EuroOffice/ONLYOFF
65
65
66
66
-`.github/workflows/ci.yml`: validation and package artifact for push/PR.
67
67
-`.github/workflows/release.yml`: build and publish assets on version tags.
68
+
69
+
## LibreSign Integration Architecture
70
+
71
+
### Overview
72
+
73
+
The LibreSign EuroOffice plugin provides a sidebar panel inside the EuroOffice editor that allows users to sign and request signatures for documents. Integration happens through:
74
+
75
+
1.**Plugin iframe** (index.html) running in ONLYOFFICE/EuroOffice plugin sandbox
76
+
2.**Nextcloud origin** hosting both the plugin and LibreSign app
77
+
3.**PostMessage API** for future cross-iframe communication
78
+
79
+
### Current Implementation: New Tab (Phase 1)
80
+
81
+
**Strategy**: Open LibreSign in a new browser tab using `window.open()`.
82
+
83
+
**Why this works**:
84
+
- ✅ No CORS issues (browser same-site policy allows cross-tab navigation)
85
+
- ✅ Simple, reliable, no DOM manipulation needed
86
+
- ✅ No Content Security Policy (CSP) conflicts
87
+
- ✅ Easy fallback if more complex modes fail
88
+
89
+
**How it works**:
90
+
91
+
```
92
+
User clicks "Sign Document" button
93
+
↓
94
+
Plugin calls getNextcloudUrl() with 3-layer fallback:
95
+
1. window.__LIBRESIGN_CONFIG__.nextcloudUrl (pre-configured by Nextcloud)
0 commit comments