RichTextBox: Optimize the performance of exporting document with fields to Docx
The display mode of all fields is changed to Code, so that the export could work correctly and nested fields would be persisted.
Consider optimizing the algorithm, so that fields take less time to be exported.