[ https://issues.apache.org/jira/browse/JSPWIKI-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842673#comment-17842673 ]
Juan Pablo Santos Rodríguez commented on JSPWIKI-1191: ------------------------------------------------------ Hi Alex! There's a public api, documented at https://jspwiki-wiki.apache.org/Wiki.jsp?page=JSPWikiPublicAPI that you can use to grab {{Engine}} and/or {{Context}}. However, in the case of {{ImageDecorator}}, {{Engine}} and {{Context}} aren't accesible as it is now. If there's a need of uploading a file, rather than uploading it as part of the markup parsing, I'd look for a way in the editor to upload the image first, and translate to wiki code afterwards. As for the base64 string, I'm not comlpetely sure without looking into it more thoroughly (will try to do that soon), but perhaps the mangling is probably taking place at {{WysiwygEditingRenderer#getString}}? Also, not sure, but from other issues, are you using the markdown syntax when experiencing this? If yes, then probably the problem is laying in the equivalent of these classes on the jspwiki-markdown module. cheers, > 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)