OpenXML ↔ HTML Conversion
Uses DocumentFormat.OpenXml to parse Word documents (headings, paragraphs, tables, formatting, embedded drawings) into HTML and vice-versa.
- Style mapping: Word styles → CSS classes
- Table conversion with merged cell support
- List handling (numbered, bulleted, multi-level)
- Header/footer extraction
- Comment and revision tracking preservation
Quill Editor in WebView2
Hosts Quill rich-text editor in WPF WebView2 embedded via ElementHost.
- Dynamic theme integration extends CSS variables from
IThemeService.Colors - Toolbar customization for code-friendly editing
- Paste handling with smart cleanup (removes MS Office markup)
- Real-time sync with OpenXML model
Image Editing & Serialization
Interactive image resize handles (aspect-ratio locked) and drag-to-reposition.
- Click image → resize handles appear
- Drag corners to resize, drag center to reposition
- On Save: extracts base64 payloads, creates OpenXml
ImagePartpackages - Constructs
Drawingelements with proper relationships