Commit bd9f8fc8 by Яков

add pdf to text

parent ed18ec99
{
"name": "react-ag-qeditor",
"version": "1.1.20",
"version": "1.1.21",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -641,10 +641,14 @@ const QEditor = ({
accept={accept}
action={custom_url.length > 0 ? custom_url : url}
errorMessage={uploadOptions.errorMessage}
onSuccess={(file) => {
const _uploadedPaths = [...uploadedPaths]
_uploadedPaths.push(file)
setUploadedPaths(_uploadedPaths)
onSuccess={(file, html) => {
if (typeof file !== "undefined") {
const _uploadedPaths = [...uploadedPaths]
_uploadedPaths.push(file)
setUploadedPaths(_uploadedPaths)
} else {
setEmbedContent(html);
}
}}
onDelete={(deleteFile) => {
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