- Developer home
- Embed MR Office's editors in your app
Embed MR Office's editors in your app
Put MR Office's Word, Excel, PowerPoint, PDF, Code and Handwriting editors in your own web app: session tokens, a small JavaScript SDK, signed save callbacks, and files written back with Office fidelity. See the live demo →
This page is not yet translated into your language; it is shown in English.
Overview
MR Office's editors for Word (.docx), Excel (.xlsx), PowerPoint (.pptx) and PDF files, and its Code editor (.py, .js, .ts, .json, .sql… source files) and Handwriting editor (.mrink), can run inside your own website, the way Microsoft's Office for the web runs in a WOPI host or OnlyOffice Docs in an integrator's app. Your users edit in place; your server keeps the file.
- Your server signs a short-lived session token for one person and one file, with your app's secret key.
- Your page loads embed.js and calls MROffice.open(): it frames the editor and hands it the token by postMessage (never in a URL).
- MR Office fetches the file (from your URL, or an upload), opens it in the same editor and Office engine as mroffice.ai, and everyone given a token for the same file key edits it together.
- When the file is saved, MR Office writes it back the way MR Office saves an Office file — what nobody changed stays byte for byte as it came — and POSTs a signed callback to your server with a link to the new version.
Embedding is self-serve: sign in with any MR Office account and create an app in the developer console, no application needed. Free plan: each app gets 100 sessions a month on your own domains and 1,000 on localhost while you build (up to 2 apps per account); past 100, new sessions on your domains are refused until next month. Paid plans: Starter, $29 a month with 5,000 sessions included, and Pro, $149 with 40,000; sessions past those cost $5 or $3 per 1,000.