|
2 | 2 | category: cloud-services |
3 | 3 | order: 30 |
4 | 4 | meta-title: Cloud Services Server-side Editor API | CKEditor 5 Documentation |
5 | | -meta-description: Learn how to use server-side API to manage content and collaboration data easily without running the editor. |
| 5 | +meta-description: Learn how to use server-side API to manage content and collaboration data easily without running the editor on the client. |
6 | 6 | modified_at: 2025-06-05 |
7 | 7 | badges: [ premium ] |
8 | 8 | --- |
9 | 9 |
|
10 | 10 | # Server-side editor API |
11 | 11 |
|
12 | | -Server-side Editor API enables deep and complex integration of your application with all document data, enabling you to manipulate content and manage collaborative data such as suggestions, comments, and revision history, and much more, directly from your server-side code. |
| 12 | +Server-side Editor API enables deep and complex integration of your application with all document data, enabling you to manipulate content and manage collaborative data such as suggestions, comments, and revision history, and much more, directly from your server-side code (without running editor instance on the client). |
13 | 13 |
|
14 | | -The remote script REST API endpoint allows you to execute any JavaScript code that uses the CKEditor 5 API, that could be executed by a browser, but without a need to open the editor by a human user. Instead, the script is executed on the Cloud Services server. |
| 14 | +The server-side editor REST API endpoint allows you to execute any JavaScript code that uses the CKEditor 5 API, that could be executed by a browser, but without a need to open the editor by a human user. Instead, the script is executed on the Cloud Services server. |
15 | 15 |
|
16 | 16 | ## Why use server-side editor API? |
17 | 17 |
|
@@ -285,7 +285,7 @@ for ( const item of items ) { |
285 | 285 |
|
286 | 286 | #### Working with annotations |
287 | 287 |
|
288 | | -Each suggestion in the editor is always connected with an annotation. Sometimes, you may want to gather additional data for suggestions based on their annotations, such as the suggestion label or the content in the document on which the suggestion is made, which are not available in the database. |
| 288 | +Each suggestion in the editor is always connected with an annotation. Sometimes, you may want to gather additional data for suggestions based on their annotations, such as the suggestion label or the content in the document on which the suggestion is made, which are not available through REST API. |
289 | 289 |
|
290 | 290 | The following example demonstrates retrieving suggestion data: |
291 | 291 |
|
@@ -329,7 +329,7 @@ for ( const annotation of annotations ) { |
329 | 329 | } |
330 | 330 | } |
331 | 331 |
|
332 | | -return JSON.stringify( results ); |
| 332 | +return results; |
333 | 333 | ``` |
334 | 334 |
|
335 | 335 | ### Working with comments |
|
0 commit comments