[
https://issues.apache.org/jira/browse/JSPWIKI-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18139830#comment-18139830
]
ASF subversion and git services commented on JSPWIKI-1130:
----------------------------------------------------------
Commit 3a41a6de687102ab3dda3b7462f133ee6823f3fe in jspwiki's branch
refs/heads/dependabot/maven/org.codehaus.cargo-cargo-maven3-plugin-1.10.30 from
Alex O'Ree
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=3a41a6de6 ]
Merge branch 'master' into bug/JSPWIKI-1130
# Conflicts:
# ChangeLog.md
> Preview doesn't handle embedded JavaScript correctly
> ----------------------------------------------------
>
> Key: JSPWIKI-1130
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1130
> Project: JSPWiki
> Issue Type: Bug
> Components: Editors
> Affects Versions: 2.11.0-M6
> Reporter: Ulf Dittmer
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.0.1
>
>
> If "jspwiki.translatorReader.allowHTML = true", JavaScript can be inserted
> into a page and executed like this:
> [{If page='SandBox' exists='true'
> <script language="javascript">document.writeln("<b>User Agent: </b>" +
> navigator.userAgent);</script>}]
> However, if preview is turned on during editing, executing the JavaScript
> interferes with the editor, replacing the editor page with the output of the
> code execution. I'm not sure whether it's possible to fix this while still
> trying to execute JavaScript. If not, disabling JavaScript during preview
> seems fine.
> [https://jspwiki-wiki.apache.org/Wiki.jsp?page=TESTEST] also shows this.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)