[ 
https://issues.apache.org/jira/browse/JSPWIKI-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18138252#comment-18138252
 ] 

ASF subversion and git services commented on JSPWIKI-1191:
----------------------------------------------------------

Commit 1181259987b600218e8c54d18ae3e2e0baa0f70b in jspwiki's branch 
refs/heads/dependabot/maven/tomcat.version-11.0.27 from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=118125998 ]

JSPWIKI-1191 Show pasted images that are data URLs

Pasting an image in the WYSIWYG editor stores it as [data:image/png;base64,...].
The parser took the data: prefix for an InterWiki name and reported that no
InterWiki reference called data exists, and the Image plugin replaced any src
starting with data with an invalid URL.

When inline images are enabled, a base64 data URL of a PNG, GIF, JPEG or WebP
image is now rendered as an inline image, with an empty alt text unless one is
given. Other data URLs, SVG included, are still not rendered, and the link of
the Image plugin is still sanitized.


> 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
>              Labels: pull-request-available
>             Fix For: 3.0.1
>
>         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
(v10.3.26#10030026)

Reply via email to