Fullscreen
Loading...
 
Skip to main content

Codemirror is not showing links to switch the highlighter even if prefs is correctly set

Status
Closed
Subject
Codemirror is not showing links to switch the highlighter even if prefs is correctly set
Version
23.x
Category
  • Regression
  • Usability
  • Dogfood on a *.tiki.org site
Feature
Syntax highlighter (Codemirror)
Resolution status
Invalid
Submitted by
Xavier de Pedro
Lastmod by
Xavier de Pedro
Rating
(0)
Description

Codemirror is not showing links to switch the highlighter even if the preference is correctly set to do so.

Tried using firefox and chrome, with my user "xavi" (no admin rights) and "xavidp" (admin rights): same effect.

The preference is still set as
Configuration Wizard > Set up Text Area > Syntax highlighter (CodeMirror) Theme > "Off (but switchable)"

Solution
It was an invalid report, because the global preference for the codemirror feature was set to off, and I just looked and the second preference which applies only to tikis where the global pref of codemirror is on.
Workaround

Related: (taken from comments)

  • new pref to disable codemirror in page view mode but allow to "Off (but switchable)"
  • new pref to set codemirror lazy mode below each textarea, so that the user can click there to get the highlighting on per textarea where the interest is for that user?. See
    https://codemirror.net/demo/loadmode.htmlQuestion
  • new codemirror lazy-load (like in images). Already implemented maybe elsewhere?
    https://gist.github.com/mustafa0x/2276550Question
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7792
Created
Thursday 29 July, 2021 12:08:02 UTC
by Xavier de Pedro
LastModif
Friday 30 July, 2021 08:24:03 UTC


Show PHP error messages