# X15 Sneak Peek: Upcoming JavaScript API Improvements in the HTML5-based Editor for ASP.NET MVC and Web Forms

> TX Text Control X15 extends the JavaScript API for the HTML5-based ASP.NET editor with clipboard mode toggling between client and server, text field manipulation for MS Word merge fields and form fields, SubTextPart access for user-defined document regions, and spell check dictionaries.

- **Author:** Bjoern Meyer
- **Published:** 2017-10-20
- **Modified:** 2026-03-05
- **Description:** TX Text Control X15 extends the JavaScript API for the HTML5-based ASP.NET editor with clipboard mode toggling between client and server, text field manipulation for MS Word merge fields and form fields, SubTextPart access for user-defined document regions, and spell check dictionaries.
- **5 min read** (818 words)
- **Tags:**
  - ASP.NET
  - Release
- **Web URL:** https://www.textcontrol.com/blog/2017/10/20/upcoming-javascript-improvements-in-the-html5-based-editor/
- **LLMs URL:** https://www.textcontrol.com/blog/2017/10/20/upcoming-javascript-improvements-in-the-html5-based-editor/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2017/10/20/upcoming-javascript-improvements-in-the-html5-based-editor/llms-full.txt

---

We are working on many improvements of the JavaScript API to manipulate documents client-side using the HTML5-based editor for ASP.NET MVC and Web Forms.

### Clipboard

In version X15 of TX Text Control, it will be possible to switch between the two different clipboards using a toggle button or the JavaScript API. In case, the local clipboard is activated, an HTML form element is simulated and content can be pasted into the control and copied from the control to the local clipboard.

| Property | Value Type | Description |
|---|---|---|
| TXTextControl.clipboardMode | integer | Gets or sets the clipboard mode (client or server). The clipboard mode determines if the key combinations Ctrl+C, Ctrl+V and Ctrl+X copy to and from the client clipboard or if content is copied to and from the server clipboard. Possible values for this property are defined in class TXTextControl.ClipboardMode. |

| Event | Value Type | Description |
|---|---|---|
| clipboardModeChanged | ClipboardModeChangedEventArgs | Is fired when the clipboard mode has changed. |
| clipboardDataTransferStart | clipboardDataTransferStartEventArgs | Is fired when a clipboard data transfer starts. |
| clipboardDataTransferProgress | clipboardDataTransferProgressEventArgs | Is fired for each transfered clipboard data packet. |
| clipboardDataTransferComplete | clipboardDataTransferCompleteEventArgs | Is fired when a clipboard data transfer is completed. |
| clipboardDataTransferAborted | clipboardDataTransferAbortedEventArgs | Is fired when an ongoing clipboard data transfer is aborted. |

Read more about the typical applications for these features in this article:

[Sneak Peek X15: Copy to Local Clipboard Support in ASP.NET Version](https://www.textcontrol.com/blog/2017/07/13/sneak-peek-x15-copy-to-local-clipboard-support-in-aspnet-version/llms-full.txt)

### Text Fields

TX Text Control X15 will provide a general interface to add, remove and modify all text field types including MS Word merge fields (TXTextControl.DocumentServer.Fields.FieldAdapter class), form fields and TX Text Control text fields.

| Class | Description |
|---|---|
| TXTextControl.DateField | Represents an MS Word specific DATEFIELD field. |
| TXTextControl.FieldType | Determines the possible MS Word specific merge field types supported by the TX Text Control JavaScript API. |
| TXTextControl.IfField | Represents an MS Word specific IFFIELD field. |
| TXTextControl.IncludeTextField | Represents an MS Word specific INCLUDETEXT field. |
| TXTextControl.MergeField | Represents an MS Word specific MERGEFIELD field. |
| TXTextControl.MergeFieldTextFormat | Determines the possible text formats for merge fields containing text. |
| TXTextControl.NextField | Represents an MS Word specific NEXT field. |
| TXTextControl.NextIfField | Represents an MS Word specific NEXTIF field. |
| TXTextControl.TextField | Represents a Text Control TextField. |
| TXTextControl.ApplicationField | Represents a Text Control ApplciationField. |

| Method | Description |
|---|---|
| TXTextControl.addMergeField | Inserts a merge field at the current input position. |
| TXTextControl.addTextField | Inserts a new ApplicationField or TextField at the current input position. |
| TXTextControl.getTextFields | Requests a collection of either all text fields the current text part contains or only the text field containing the input position from the server and returns the collection by calling a callback function which has to be provided as a parameter to the function. |
| TXTextControl.removeTextField | The removeTextField method removes a text field from the document. |
| TXTextControl.showMergeFieldDialog | Opens a field dialog either for changing properties of an existing merge field or for creating a new merge field. |
| TXTextControl.TextPart.addTextField | Inserts a new ApplicationField or TextField into the TextPart at the current input position. |
| TXTextControl.TextPart.getTextFields | Requests a collection of either all text fields in the text part or only the text field containing the input position from the server and returns the collection by calling a callback function which has to be provided as a parameter to the function. |

Read more about the typical applications for these features in this article:

[Sneak Peek X15: Custom Field Overlays in HTML5-based Text Control](https://www.textcontrol.com/blog/2017/06/21/sneak-peek-x15-custom-field-overlays-in-html5-based-text-control/llms-full.txt)

### SubTextParts

The JavaScript API allows manipulations of TXTextControl.SubTextPart class. A SubTextPart object represents a user-defined part of a TX Text Control document.

| Class | Description |
|---|---|
| TXTextControl.SubTextPart | The callback function argument for the getSubTextParts function. |

| Method | Description |
|---|---|
| TXTextControl.getSubTextParts | Requests a collection of either all SubTextParts the current text part contains or only the SubTextPart containing the input position from the server and returns the collection by calling a callback function which has to be provided as a parameter to the function. |
| TXTextControl.TextPart.getSubTextParts | Requests a collection of either all SubTextParts the current text part contains or only the SubTextPart containing the input position from the server and returns the collection by calling a callback function which has to be provided as a parameter to the function. |

### Spell Checking

A JavaScript object has been introduced to act as a namespace for all proofing and spell checking methods and properties. Now it is possible to load, remove and save user dictionaries and add and remove custom words to these dictionaries. These user dictionaries can be added per user session as the list of words is given as a string array.

| Class | Description |
|---|---|
| TXTextControl.UserDictionaryInfo | This class contains read only information about a user dictionary. |
| TXTextControl.Proofing | A JavaScript object which was introduced to act as a namespace for all proofing and spell checking methods and properties. |

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [TX Spell .NET 11.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/04/08/tx-spell-net-11-0-sp1-is-now-available/llms.txt)
- [TX Text Control 34.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/02/18/tx-text-control-34-0-sp2-is-now-available/llms.txt)
- [TX Text Control 34.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/12/03/tx-text-control-34-0-sp1-is-now-available/llms.txt)
- [Introducing TX Text Control 34.0: Your Next Leap in Document Processing](https://www.textcontrol.com/blog/2025/11/10/introducing-tx-text-control-34-0-your-next-leap-in-document-processing/llms.txt)
- [PDF/UA vs. PDF/A-3a: Which Format Should You Use for Your Business Application?](https://www.textcontrol.com/blog/2025/10/24/pdf-ua-vs-pdf-a-3a-which-format-should-you-use-for-your-business-application/llms.txt)
- [Validating PDF/UA Documents in .NET C#](https://www.textcontrol.com/blog/2025/10/21/validating-pdf-ua-documents-in-dotnet-csharp/llms.txt)
- [Sneak Peek: TX Text Control 34.0 Coming November 2025](https://www.textcontrol.com/blog/2025/10/02/sneak-peek-tx-text-control-34-0-coming-november-2025/llms.txt)
- [TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/08/14/tx-text-control-33-0-sp3-is-now-available/llms.txt)
- [High-Performance Text Replacement in Large DOCX Files using C# .NET](https://www.textcontrol.com/blog/2025/07/30/high-performance-text-replacement-in-large-docx-files-using-csharp-dotnet/llms.txt)
- [Document Viewer 33.2.1 Released: New Event and Bug Fixes](https://www.textcontrol.com/blog/2025/07/30/document-viewer-33-2-1-released-new-event-and-bug-fixes/llms.txt)
- [Upcoming Support for PDF/UA Compliance and Tagged PDF Generation in Version 34.0](https://www.textcontrol.com/blog/2025/07/24/upcoming-support-for-pdf-ua-compliance-and-tagged-pdf-generation-in-version-34-0/llms.txt)
- [TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/06/18/tx-text-control-33-0-sp2-is-now-available/llms.txt)
- [Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5](https://www.textcontrol.com/blog/2025/05/07/service-pack-releases-whats-new-in-tx-text-control-33-0-sp1-and-32-0-sp5/llms.txt)
- [Introducing DS Server 4.0: Linux-Ready and Container-Friendly](https://www.textcontrol.com/blog/2025/04/30/introducing-ds-server-4-linux-ready-and-container-friendly/llms.txt)
- [The Wait is Over: TX Text Control for Linux is Officially Here](https://www.textcontrol.com/blog/2025/03/12/the-wait-is-over-tx-text-control-for-linux-is-officially-here/llms.txt)
- [Full .NET 9 Support in Text Control .NET Components for ASP.NET Core, Windows Forms, and WPF](https://www.textcontrol.com/blog/2024/11/11/full-net-9-support-in-text-control-net-components-for-asp-net-core-windows-forms-and-wpf/llms.txt)
- [DS Server 3.5.0 Released](https://www.textcontrol.com/blog/2024/09/24/ds-server-3-5-0-released/llms.txt)
- [Using the Document Editor in SPA Applications using the removeFromDom Method](https://www.textcontrol.com/blog/2024/09/02/using-the-document-editor-in-spa-applications-using-the-removefromdom-method/llms.txt)
- [TX Text Control 32.0 Service Pack 4 Released](https://www.textcontrol.com/blog/2024/09/02/tx-text-control-32-0-service-pack-4-released/llms.txt)
- [Service Pack 3: MailMerge Supports SVG Images](https://www.textcontrol.com/blog/2024/04/29/service-pack-3-mailmerge-supports-svg-images/llms.txt)
- [TX Text Control 32.0 Service Pack 3 Released](https://www.textcontrol.com/blog/2024/04/29/tx-text-control-32-0-service-pack-3-released/llms.txt)
- [Document Viewer: Long Polling Support for Loading Documents](https://www.textcontrol.com/blog/2024/04/25/document-viewer-long-polling-support-for-loading-documents/llms.txt)
- [TX Text Control React Packages Released](https://www.textcontrol.com/blog/2024/02/29/tx-text-control-react-packages-released/llms.txt)
- [DS Server 3.3.0 Released](https://www.textcontrol.com/blog/2024/02/16/ds-server-3-3-0-released/llms.txt)
- [32.0 Service Pack 2: Licensing, Unit Testing, and Azure DevOps](https://www.textcontrol.com/blog/2024/01/05/32-0-service-pack-2-licensing-unit-testing-and-azure-devops/llms.txt)
