A context tab is a hidden ribbon tab that is displayed when a corresponding element (such as an image or a table) is selected. One element can correspond to several context tabs. Therefore, the tabs are combined into categories. The collection of categories is accessible by the RibbonContextTabCategories property.
By default, HtmlEditor provides a Layout context tab that contains table-related commands and is displayed when a selection is in a table.
You can create custom context tabs and manually change tab visibility based on a selected element using the SetRibbonContextTabCategoryVisible method.
In this demo, a default Layout and custom Format tabs are provided for HtmlEditor.
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxHTMLEditorDemos