Uploaded image for project: 'Wiki Editor Tools'
  1. Wiki Editor Tools
  2. WIKIEDITOR-46

URLs to load codemirror contains double slashes which fail the load

    XMLWordPrintable

    Details

    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      All the Javascript resources are loaded with a URL similar to:
      http://localhost:8080/xwiki/webjars/codemirror/5.8//lib/codemirror.js

      This is a Jetty/HSQLDB XWiki 7.4.2 instance. Has been tested on:

      • Firefox Developer Edition (47.0a2 (2016-03-25))
      • Chromium (49.0.2623.108)

      One possible fix is to modify a line in SyntaxHighlighting.SyntaxHighlighting, in the JavascriptExtension object. The line to change is

      SyntaxHighlighting_cm : codeMirrorWebjarHome
      

      into

      SyntaxHighlighting_cm : codeMirrorWebjarHome.substr(0, codeMirrorWebjarHome.length - 1)
      

        Attachments

          Activity

            People

            Assignee:
            enygma Eduard Moraru
            Reporter:
            jsimard Jean SIMARD
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: