Skip to content
Snippets Groups Projects
Commit 266e3cff authored by chris's avatar chris
Browse files

images fix

parent 8cbda913
No related branches found
No related tags found
1 merge request!240Inline custom tags
...@@ -21,7 +21,7 @@ const ImageUpload = ({ item, fileUpload, view }) => { ...@@ -21,7 +21,7 @@ const ImageUpload = ({ item, fileUpload, view }) => {
const inputRef = useRef(null); const inputRef = useRef(null);
const placeholderPlugin = app.PmPlugins.get('imagePlaceHolder'); const placeholderPlugin = app.PmPlugins.get('imagePlaceHolder');
const imageServiceConfig = app.config.get('config.ImageServie'); const imageServiceConfig = app.config.get('config.ImageService');
const handleMouseDown = () => { const handleMouseDown = () => {
if (imageServiceConfig && imageServiceConfig.handleAssetManager) { if (imageServiceConfig && imageServiceConfig.handleAssetManager) {
......
...@@ -30,7 +30,7 @@ const insertImage = (urls, view, placeholderPlugin) => { ...@@ -30,7 +30,7 @@ const insertImage = (urls, view, placeholderPlugin) => {
pos, pos,
pos, pos,
view.state.schema.nodes.image.create({ view.state.schema.nodes.image.create({
src: urls[i], src: urls[i].source,
}), }),
) )
.setMeta(placeholderPlugin, { remove: { id } }), .setMeta(placeholderPlugin, { remove: { id } }),
......
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