| layout | post |
|---|---|
| title | webAPI reference for ejRTE |
| description | webAPI reference for ejRTE |
| documentation | ug |
| platform | js |
| keywords | RTE, ejRTE, syncfusion, RTE webapi |
[POST] /Api/RTE/Import
It is used to Import a Word document into RTE
| Parameter | Description |
|---|---|
| RTEId | RTE ID will send to server as query string and it is used in server side to extract fileName. |
Code: 200
Content-Type: application/json; charset=utf-8
Response: Returns the string containing the contents of the imported document.
{% highlight js %}
{% endhighlight %}
In the above example we have used the import option to import the Word document into RTE.
[POST] /Api/RTE/WordExport
It is used for exporting the contents of RTE into a Word document.
| Parameter | Description |
|---|---|
| RTEId | RTE ID will send to server as query string and it is used in server side to extract fileName and contents of RTE. |
Code: 200
Content-Type: application/json; charset=utf-8
{% highlight js %}
{% endhighlight %}
The above example shows that the RTE content has been exported in Word file.
[POST] /Api/RTE/PdfExport
It is used for exporting the contents of RTE into a PDF document.
| Parameter | Description |
|---|---|
| RTEId | RTE ID will send to server as query string and it is used in server side to extract fileName and contents of RTE. |
Code: 200
Content-Type: application/json; charset=utf-8
{% highlight js %}
{% endhighlight %}
The above example shows that the RTE content has been exported in PDF file.