To perform mathematical calculations in the RichTextEditor by using the CustomTool.
Since there is no in-built plugin for performing mathematical calculations, you have to use the CustomTool option and customize the tool for the desired math calculations. Syncfusion has prepared a sample by using this custom tool that generates a Dialog box to perform simple mathematical operations and to insert the result to the RTE content. CustomTool dialog box has the NumericTextboxes to enter the data for calculation. Based on the selected operation, the resultant value is added to the RTE content.
Follow the steps in the following link to add a CustomTool in the RTE:
Refer to the code block for CustomTool and DialogBox creation.
The following screenshot is the output on performing calculations by using the CustomTool.
Figure 1: Model Dialog to perform calculations on clicking the CustomTool button
Figure 2: Result added to the RTE Content at the cursor position and dialog closed
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|4646||04/21/2015||07/20/2017||ASP.NET Web Forms||RichTextEditor|
or the page will be automatically redirected to sign-in page in 10 seconds.