UNPKG

ngx-editor-sodo

Version:

WYSIWYG Editor for Angular Applications

22 lines (14 loc) 625 B
# Upload images To Upload images, you must specify an endpoint to which the image has to be uploaded. The [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) request sent is a [FORMDATA](https://developer.mozilla.org/en-US/docs/Web/API/FormData) with name `file`. ## Input The Input for the endpoint is a string can be provided directly or via `config` property ```html <app-ngx-editor imageEndPoint="http://myApiEndPoint"></app-ngx-editor> ``` ## Response The Response is a `json` and it should be in the following format ```json { "url": "https://location-of-image" } ```