Wiki Editor Tools
  1. Wiki Editor Tools
  2. WIKIEDITOR-48

Disabling Syntax Highlighting from Administration requires a clear of the browser cache

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 4.0
    • Component/s: Syntax Highlighting
    • Labels:
      None
    • Similar issues:

      Description

      Because Syntax Highlighting is enabled through an Always Use JSX that inspects the configuration using parsed velocity, the result of the parsing gets cached together with the JSX's code so a change in the configuration is not noticed by the javascript which is now cached with the old value.

      The document version parameter is not helping us either, since it's the Configuration page that gets updated and not the code page, so the code page's version is never incremented to trigger a re-fetch of the server-side JS code.

      Workaround: Refresh/Clear the browser's cache.

        Activity

        Hide
        Eduard Moraru added a comment -

        There would be different approaches, but the best (as discussed with Marius Dumitru Florea) seems to be to use an UIX implementing a well known UIXP as main activator that would inspect the configuration and decide if the Syntax Highlighting JSX and SSX need to be included or not (together with other configuration parameters, such as the theme or highlightColor).

        Show
        Eduard Moraru added a comment - There would be different approaches, but the best (as discussed with Marius Dumitru Florea ) seems to be to use an UIX implementing a well known UIXP as main activator that would inspect the configuration and decide if the Syntax Highlighting JSX and SSX need to be included or not (together with other configuration parameters, such as the theme or highlightColor).

          People

          • Assignee:
            Eduard Moraru
            Reporter:
            Eduard Moraru
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: