# Document Editor

> Program the Document Editor with its JavaScript API: architecture, loading and saving, editing, formatting, tables, fields, forms, protection and events.

- **Product:** TX Text Control .NET Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET Server > Document Editor
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/llms-full.txt

---

## On This Page

- [How You Work With the Editor](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/#how-you-work-with-the-editor)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/#find-the-right-page)
- [Where to Start](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/#where-to-start)
- [Related Sections](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/#related-sections)

---

## In This Section

- [Architecture](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/architecture/llms.txt): Follow a Document Editor session through the frontend, WebSocket middleware and TXTextControl.Web.Server.Core backend: reconnection, ports, logging, scaling.
- [Charts and Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/charts-barcodes/llms.txt): Charts and barcodes in the Document Editor: chart events and frames, and inserting, changing, exporting and removing barcodes such as QR codes from JavaScript.
- [Comments](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/comments/llms.txt): Comments in the Document Editor: add comments and replies from JavaScript, list them with author and time, remove them, show the sidebar and react to events.
- [Content Controls](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/content-controls/llms.txt): Load MS Word content controls into the Document Editor as form fields, save them back to DOCX and read tags on the server with ContentControlFieldAdapter.
- [Editing Text](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/editing-text/llms.txt): Edit text in the Document Editor from JavaScript: select and insert text, find and replace, undo and redo, clipboard, overwrite mode and keyboard shortcuts.
- [Events](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/events/llms.txt): Attach Document Editor event handlers with addEventListener, follow the initialization order and find every JavaScript event with its argument object.
- [Fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/fields/llms.txt): Work with fields in the Document Editor from JavaScript: text fields, MS Word fields such as MERGEFIELD, hyperlinks, bookmarks and links, and field events.
- [Footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/footnotes/llms.txt): Footnotes in the Document Editor: insert footnotes from JavaScript, set the number format and start number, highlight, list and remove them, footnote events.
- [Form Fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/form-fields/llms.txt): Create fillable forms in the Document Editor: text, check box, drop-down and date fields from JavaScript, form protection, validation, values and PDF export.
- [Text and Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/formatting/llms.txt): Format text in the Document Editor from JavaScript: fonts and colors with Selection, alignment and spacing with ParagraphFormat, lists, tab stops and styles.
- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/headers-footers/llms.txt): Add headers and footers in the Document Editor from JavaScript: for all or single sections, first and even pages, their text, distance and page number fields.
- [Images](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/images/llms.txt): Insert images into the Document Editor from JavaScript: inline, anchored or at a fixed position from Base64 data, then scale, align, describe and remove them.
- [JavaScript API](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/javascript-api/llms.txt): Use the Document Editor's global TXTextControl object in every frontend: init settings, textControlLoaded, callbacks, error handling, promises and collections.
- [Loading and Saving Documents](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/load-save/llms.txt): Load documents into the Document Editor and save them: LoadText in the view, loadDocument and saveDocument in JavaScript, a controller that stores DOCX files.
- [Document Properties](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/properties/llms.txt): Set the title, author, keywords and user-defined properties of the Document Editor's document from JavaScript, and embed files such as invoice XML in PDF.
- [Document Protection](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/protection/llms.txt): Protect documents in the Document Editor: edit modes, document permissions, passwords and editable regions for single users, set from the ribbon or JavaScript.
- [Ribbon and UI](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/ribbon-ui/llms.txt): Adapt the user interface of the Document Editor: change the ribbon, add custom tabs and buttons, customize context menus and set the language of the interface.
- [Sections](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/sections/llms.txt): Use sections in the Document Editor from JavaScript: insert section breaks, set landscape orientation, columns, page margins and borders, restart page numbers.
- [Shapes](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/shapes/llms.txt): Handle drawings with MS Word shapes in the Document Editor from JavaScript: drawing events, frames and marker lines, plus adding text frames with borders.
- [Signature Fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/signature-fields/llms.txt): Prepare documents for signing in the Document Editor: insert and name signature fields from JavaScript, set signer data and images, and hand them to signing.
- [Spell Checking](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/spell-checking/llms.txt): Add TX Spell .NET spell checking to the Document Editor: TXTextControl.TXSpell.Core.SDK, languages, user dictionaries, misspelled words and hyphenation.
- [Subtext Parts](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/subtext-parts/llms.txt): Mark parts of a document as subtext parts in the Document Editor: add, read, save and remove them from JavaScript, store data with them and use their events.
- [Tables of Contents](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/tables-of-contents/llms.txt): Tables of contents in the Document Editor: mark headings with structure levels, insert, update and remove tables of contents from JavaScript, use their events.
- [Tables](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/tables/llms.txt): Insert, format and remove tables in the Document Editor from JavaScript: borders and colors, rows and columns, merged cells, formulas and number formats.
- [Track Changes](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/track-changes/llms.txt): Track changes in the Document Editor: set the author, turn tracking on from JavaScript, list, accept and reject tracked changes and show the sidebar.
- [Viewing and Printing](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/viewing-printing/llms.txt): Control how the Document Editor shows documents: page view, zoom, ribbon, rulers and status bar, control characters, colors and printing from JavaScript.

---

## Nearby

- **Previous:** [Digitally Sign a PDF](https://docs.textcontrol.com/tx-text-control-dotnet-server/getting-started/pdf/sign/llms.txt)
- **Next:** [Architecture](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-editor/architecture/llms.txt)
