View Issue Details

IDProjectCategoryView StatusLast Update
15863Bug reportsSurvey editingpublic2020-02-13 16:09
ReporterMazi Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version4.1.2 
Summary15863: Question text editor shows JS code in default mode
Description

When adding some JS in source code mode, the question editor shows some of the JS even in default mode., see attached screen shots. The old LS3.x editor did not show such code. We have to switch back to the old behavior because showing usually hidden code to the user will be pretty confusing.

Steps To Reproduce

Add e.g. this JS in source code mode at any question text:
<script type="text/javascript" charset="utf-8">
$(document).on('ready', function(){
$('#question{QID}').multiTypeArray4();
});
</script>

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 4.1.4+200214
I will donate to the project if issue is resolvedNo
BrowserChrome
Database & DB-VersionMySQL 5
Server OS (if known)Ubuntu 18
Webserver software & version (if known)Apache 2
PHP Version7.2.26

Activities

Mazi

Mazi

2020-02-13 15:05

partner  

source_code_mode.png (15,446 bytes)   
source_code_mode.png (15,446 bytes)   
editor_mode.png (9,608 bytes)   
editor_mode.png (9,608 bytes)   
Mazi

Mazi

2020-02-13 15:05

partner   ~55956

@tpartner, did you face the same issue at LS 4?

tpartner

tpartner

2020-02-13 16:09

developer   ~55971

@Mazi: Yes, I do see that and the contents of a <script> tag should not be see when in WYSIWYG mode.

Issue History

Date Modified Username Field Change
2020-02-13 15:05 Mazi New Issue
2020-02-13 15:05 Mazi File Added: source_code_mode.png
2020-02-13 15:05 Mazi File Added: editor_mode.png
2020-02-13 15:05 Mazi Note Added: 55956
2020-02-13 16:09 tpartner Note Added: 55971