Skip to content

Add direct document editing - #1179

Draft
Sabrina-devops wants to merge 14 commits into
MindWorkAI:mainfrom
Sabrina-devops:feature/add-direct-document-editing
Draft

Sabrina-devops wants to merge 14 commits into
MindWorkAI:mainfrom
Sabrina-devops:feature/add-direct-document-editing

Conversation

@Sabrina-devops

@Sabrina-devops Sabrina-devops commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ability to upload entire documents into assistants and have them edited there, e.g., for translation, grammar, or rephrasing, and then export them back as documents so that formatting and structure are preserved.

Supported file formats:
Word, .docx
PowerPoint, .pptx
LaTeX, .tex
Markdown, .md
Website, .html

Related proposal or issue

How did you test it?

Wiki

What changes for users

  • Three assistants now work on whole documents as well as on texts: the Translation assistant translates them, the Grammar & Spelling assistant corrects their spelling and grammar, and the Rewrite & Improve assistant rewrites them in the chosen writing style. They take Word (.docx), PowerPoint (.pptx), Markdown (.md), web pages (.html, .htm), and LaTeX (.tex). The result is a new file of the same type, whose layout, pictures, tables, and formatting stay as in the original. When the work is done, a save dialog opens; the suggested name adds the target language, "corrected", or "improved" in the language of the app. The original stays unchanged.
  • At the start, each of these assistants asks whether to work on a document or a text. A button next to the gear icon switches between both at any time.
  • A summary afterward shows how many sections were translated, corrected, or revised, how many the prompt injection filter left unchanged, and in how many the AI model did not keep all formatting. It also says what the format leaves as it is. Grammar & Spelling and Rewrite & Improve count only sections whose text actually changed.
  • Rewrite & Improve works paragraph by paragraph: each sentence stays in its paragraph, and headings, lists, and the order of the document stay as they are.
  • When a language is chosen in Grammar & Spelling or Rewrite & Improve, the new text in Word, PowerPoint, and web pages is marked with that language; without a choice, the language marks stay as they were.
  • What each format leaves as it is:
    • Word: charts, SmartArt, comments, alternative texts of pictures, document properties. New text in a right-to-left language may need adjustments, and text boxes or table cells of a fixed size may overflow.
    • PowerPoint: charts, SmartArt, alternative texts of pictures, presentation properties, slide masters and layouts. New text in a right-to-left language may need adjustments, and text boxes may overflow.
    • Markdown: code, formulas, link targets, embedded HTML.
    • Web pages: scripts, styles, code, preformatted text, embedded graphics. Pages in an encoding older than UTF-8 may show wrong characters.
    • LaTeX: formulas, code, drawings, comments, the preamble apart from \title/\subtitle, and text in macros the document defines itself. The settings of babel or polyglossia stay unchanged. Documents in an encoding older than UTF-8 may show wrong characters.

New settings
Each has the choices "Ask every time" (default), "Always start with a document", and "Always start with a text":

  • Translation assistant: "How should the translator start?", stored as Translation.StartMode.
  • Grammar & Spelling assistant: "How should the grammar & spelling checker start?", stored as GrammarSpelling.StartMode.
  • Rewrite & Improve assistant: "How should the rewrite & improve assistant start?", stored as RewriteImprove.StartMode.

IT departments

  • No new configuration keys. Configuration plugins cannot manage the three new settings yet.

Pages

  • The pages of the Translation, Grammar & Spelling, and Rewrite & Improve assistants in the user guide, in US English and German.

Required statements

  • Review: I have reviewed every change in this pull request and can explain it when asked.
  • License: I license my contribution in this pull request, including all commits I add to it later, under the MIT License, and I agree that it is distributed as part of MindWork AI Studio under the project license or under the MIT License.
  • Right to contribute: The contribution is my own work, or I have permission to submit it, including the consent of my employer or client where needed. To the best of my knowledge, it does not infringe the rights of others, and AI-generated parts do not reproduce third-party code under incompatible terms.
  • Changes by maintainers: I understand that the maintainers will change this pull request to fit the product, and that they may close it.

Credits (optional)

  • Credit me with my GitHub username only.
  • Do not credit me.

@Sabrina-devops Sabrina-devops self-assigned this Nov 9, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant