View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20757Bug reportsSurvey editingpublic2026-10-07 23:33
Reportertassoman Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Summary20757: Source code editor (Codemirror) is not formatting javascript
Description

While editing question's source code by adding custom javascript inside the question text, popup renders an ugly editor.
I guess it's a regression, because I remember I've filed a similar issue for past version.

Looks like Codemirror can't be fully loaded inside SeaGreen admin interface. Font is sans-serif instead of tele-type. Also rows are not coloured.
Main editor is set to "Classic", because survey theme is a Vanilla's sub-theme looks like "new editor" is not available to Vanilla theme, yet.

Steps To Reproduce

Steps to reproduce

  1. Install 7.5.0 (also 6.16.x has same problem)
  2. create a survey
  3. edit first question
  4. click source button
  5. see ugly source code editor (attached image)

Expected result

Codemirror's attached image

Actual result

Code not formatted as source. See attached image

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)7.5.0+261001
I will donate to the project if issue is resolvedNo
Browserfirefox 157.0 (64 bit)
Database type & versionMySQL Server 5.7.44-1.el7
Server OS (if known)
Webserver software & version (if known)
PHP Version8.3

Users monitoring this issue

tassoman

Activities

c_schmitz

c_schmitz

2026-10-07 15:49

administrator   ~86227

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40688

LimeBot

LimeBot

2026-10-07 23:33

administrator   ~86235

Fixed in Release 7.5.1+261007

Related Changesets

LimeSurvey: master 93bb5861

2026-10-07 15:49

c_schmitz


Details Diff
Fixed issue 20757: Source code editor in the HTML editor showed code without syntax highlighting and in a proportional font
Dev Sea_Green no longer forces its dialog text color onto CodeMirror, and CodeMirror elements inherit the monospace font instead of the CKEditor skin reset font
Affected Issues
20757
mod - assets/admin_themes/Sea_Green/ckeditor/ckeditor.scss Diff File
mod - themes/admin/Sea_Green/css/sea_green-rtl.css Diff File
mod - themes/admin/Sea_Green/css/sea_green-rtl.min.css Diff File
mod - themes/admin/Sea_Green/css/sea_green.css Diff File
mod - themes/admin/Sea_Green/css/sea_green.min.css Diff File

Issue History

Date Modified Username Field Change
2026-10-07 15:28 tassoman New Issue
2026-10-07 15:28 tassoman File Added: Screenshot 2026-10-07 at 15-10-43 provo7 (ID 419576) - LS DEV.png
2026-10-07 15:28 tassoman File Added: Screenshot 2026-10-07 at 15-12-06 CodeMirror.png
2026-10-07 15:29 tassoman Issue Monitored: tassoman
2026-10-07 15:29 tassoman Bug heat 0 => 2
2026-10-07 15:49 c_schmitz Changeset attached => LimeSurvey master 93bb5861
2026-10-07 15:49 c_schmitz Note Added: 86227
2026-10-07 15:49 c_schmitz Assigned To => c_schmitz
2026-10-07 15:49 c_schmitz Status new => resolved
2026-10-07 15:49 c_schmitz Resolution open => fixed
2026-10-07 15:49 c_schmitz Bug heat 2 => 4
2026-10-07 23:33 LimeBot Note Added: 86235
2026-10-07 23:33 LimeBot Status resolved => closed
2026-10-07 23:33 LimeBot Bug heat 4 => 6