Document Import
This feature allows you to import Umo Editor proprietary document formats, Office and WPS documents (including: doc, docx, xls, xlsx, ppt, pptx, odp, odt, ods, rtf, wps, et, dps, etc.), Markdown, and plain text documents into the Umo Editor.
Demo Video
Use Cases
- Office migration: bring Word/WPS documents into an online editing and collaboration workflow
- Legacy system onboarding: import historical documents in batch as a knowledge base baseline
- Template bootstrapping: import existing contract/policy templates and turn them into reusable templates
- Meeting minutes cleanup: import raw notes and standardize formatting and structure
- Markdown-to-rich-text: start from Markdown, then enrich with tables, media, and layout
- Fast drafting from text: import plain text, then apply styles and components
- Reuse prior deliverables: import older proposals/reports as the starting point for new projects
- Compliance backfill: import archived docs, add metadata, then export again
- Table-heavy docs: import documents containing tables and refine them with enhanced table tools
- AI-ready preparation: import source materials first, then use AI to summarize/polish/structure
Works Well With
Collaboration
- Import first, then start collaboration on the imported document: Collaborative Editing
- With server-side storage, you can persist imported content and move directly into collaboration flows: Server
Templates and Content Locking
- Import Office templates and curate them into reusable templates: Template Management
- Lock the template skeleton and keep only fillable areas editable: Content Locking
Track Changes and Comments
- Enable Track Changes after import to review and finalize edits: Track Changes
- Use comment threads to capture discussion and decisions during review: Comments
Markdown and Tables
- Use Markdown enhancements to keep writing efficient after import: Markdown
- Normalize and polish imported tables with enhanced table tools: Tables
Configuration Example
const defaultOptions = {
// Document import related configuration
import: {
office: {
limitSize: 50, // 50 MB
},
text: {
replaceEmptyLines: false,
},
},
}Configuration Details
import.office
Description: Configuration for importing Office documents, supports importing Office and WPS documents in formats such as doc, docx, xls, xlsx, ppt, pptx, odp, odt, ods, rtf, wps, et, dps, etc. You can also extend supported formats.
Type: Object
Default:
{
limitSize: 50, // 50 MB
}Configuration Items:
limitSize: Maximum file size allowed for import, default is 50 MB.
import.markdown
Description: Configuration for importing Markdown documents. Removed in v10
This configuration was removed in v10.0. Please refer to Markdown Enhancements for the new Markdown support mechanism.
Type: Object
Default: {}
Configuration Items:
enabled: Enable importing Markdown files, default istrue.options: Configuration for MarkdownIt, see: https://markdown-it.github.io/markdown-it/#MarkdownIt.new .
import.text
Description: Configuration for importing text documents, used to configure text document import functionality.
Type: Object
Default: {}
Configuration Items:
replaceEmptyLines: Whether to replace empty lines in the document, default isfalse.
Methods
importDocument
Description: Import Umo Editor documents, supports .umo format exported by Umo Editor.
Parameters:
file:File, the.umodocument exported by Umo Editor.
Returns: Boolean, whether the import was successful.
importOffice
Description: Import Office documents, supports formats such as doc, docx, xls, xlsx, ppt, pptx, odp, odt, ods, rtf, wps, et, dps, etc.
Parameters:
file:File, the Office document file.
Returns: Boolean, whether the import was successful.
importMarkdown
Description: Import Markdown document content. Removed in v10
This configuration was removed in v10.0. Please refer to Markdown Enhancements for the new Markdown support mechanism.
Parameters:
object: Object, MarkdownIt configuration, see: https://markdown-it.github.io/markdown-it/#MarkdownIt.new , default uses import.markdown.options.
Returns: Boolean, whether the import was successful.
importText
Description: Import plain text content.
Parameters:
text:String, the text content.replaceEmptyLines:Boolean, whether to replace empty lines, default usesimport.text.replaceEmptyLines.
Returns: Boolean, whether the import was successful.