[
https://issues.apache.org/jira/browse/JSPWIKI-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17841502#comment-17841502
]
Alex O'Ree commented on JSPWIKI-1191:
-------------------------------------
some research on this. the ImageDecorator class in the WYSIWYG library
translates the pasted image (as a data url) to the wiki. That's probably the
culprit here.
I think the logic needs to be changed to...
if it's a data url, detach the image into the wiki storage, then spit out the
correct syntax for the link to the newly saved image.
> Wysiwyg editor, pasting in an image produces a data url, but renders an error
> -----------------------------------------------------------------------------
>
> Key: JSPWIKI-1191
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1191
> Project: JSPWiki
> Issue Type: Bug
> Reporter: Alex O'Ree
> Priority: Major
> Attachments: image-2024-03-31-12-37-49-281.png
>
>
> I'm in search of an easy way for users to put images into wiki content
> besides the attachments upload option, then manually linking them. So i tried
> to just paste in some content to the wysiwyg editor. which worked in the
> editor, however after viewing the page, i got this. note: this happens with
> markdown syntax or with the default syntax
>
> No InterWiki reference defined in properties for Wiki called "data"!
> !image-2024-03-31-12-37-49-281.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)