when try control+v for pasting from system clipboard.sent a post request.
ajax-helper.js:55
POST http://localhost:3000/ead/definition/form/SystemClipboard 404 (Not Found)
XmlHttpRequestHandler.sendRequest @ ajax-helper.js:55
XmlHttpRequestHandler.send @ ajax-helper.js:41
Editor.pasteAjax @ editor.js:4143
Editor.pasteInternal @ editor.js:4072
DocumentHelper.onPaste @ viewer.js:472
react_devtools_backend.js:4026 404 'Not Found'
overrideMethod @ react_devtools_backend.js:4026
Editor.onPasteFailure @ editor.js:4168
XmlHttpRequestHandler.failureHandler @ ajax-helper.js:100
XmlHttpRequestHandler.stateChange @ ajax-helper.js:81
xmlHttpRequest.onreadystatechange @ ajax-helper.js:30
XMLHttpRequest.send (async)
XmlHttpRequestHandler.sendRequest @ ajax-helper.js:55
XmlHttpRequestHandler.send @ ajax-helper.js:41
Editor.pasteAjax @ editor.js:4143
Editor.pasteInternal @ editor.js:4072
DocumentHelper.onPaste @ viewer.js:472
Hi Umut,
Can you please confirm have you included "SystemClipboard" API in your controller files?
Please check below documentation for code snippet:
https://ej2.syncfusion.com/documentation/document-editor/web-services/core/#paste-with-formatting
DocumentEditor depends on server side interaction for below listed operations can be written in ASP.NET Core or MVC or java.
Documentation link: https://ej2.syncfusion.com/react/documentation/document-editor/web-services/
Please let us know if you still facing issues.
Regards,
Suriya M.
i have followed all the above mentioned step but still facing the error , the call to systemClipboard is taking place with status of 302 found but after that an error is coming . Please help me out with the issue it is production critical !!!!
EX::
Hi Umut,
We suspect that the error may occur due to either the cross-origin policy or authentication custom headers.
If you are using the cross-origin policy, please refer to example from GitHub and set them serviceUrl.
If your running web service URL is http://localhost:62869/, set the service URL like below:
container.serviceUrl = "http://localhost:62869/api/documenteditor/";
If you are using authentication custom headers, please refer to the Documentation API reference below.
UG Link: https://ej2.syncfusion.com/react/documentation/api/document-editor/#headers
Regards,
Kavitha M