Commit bd9f8fc8 by Яков

add pdf to text

parent ed18ec99
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.1.20", "version": "1.1.21",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -641,10 +641,14 @@ const QEditor = ({ ...@@ -641,10 +641,14 @@ const QEditor = ({
accept={accept} accept={accept}
action={custom_url.length > 0 ? custom_url : url} action={custom_url.length > 0 ? custom_url : url}
errorMessage={uploadOptions.errorMessage} errorMessage={uploadOptions.errorMessage}
onSuccess={(file) => { onSuccess={(file, html) => {
const _uploadedPaths = [...uploadedPaths] if (typeof file !== "undefined") {
_uploadedPaths.push(file) const _uploadedPaths = [...uploadedPaths]
setUploadedPaths(_uploadedPaths) _uploadedPaths.push(file)
setUploadedPaths(_uploadedPaths)
} else {
setEmbedContent(html);
}
}} }}
onDelete={(deleteFile) => { onDelete={(deleteFile) => {
let deleteIdx = null let deleteIdx = null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment