View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
15863Bug reportsSurvey editingpublic2022-06-06 14:57
ReporterMazi Assigned Togabrieljenik  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
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.
Attached Files
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)   
Bug heat6
Complete LimeSurvey version number (& build)Version 4.1.4+200214
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Ubuntu 18
Webserver software & version (if known)Apache 2
PHP Version7.2.26

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2020-02-13 15:05

updater   ~55956

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

tpartner

tpartner

2020-02-13 16:09

partner   ~55971

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

gabrieljenik

gabrieljenik

2022-06-06 14:57

manager   ~70234

Hello Mazi,
I checked this with the latest version and could not reproduce, so this is most likely fixed for good.
Therefore, I am closing this issue. If you still can reproduce the issue using the latest version, please feel free to re-open the issue.
Thank you!

gabrieljenik

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
2021-02-03 19:11 cdorin Status new => acknowledged
2021-02-03 19:11 cdorin Steps to Reproduce Updated
2022-06-06 14:57 gabrieljenik Assigned To => gabrieljenik
2022-06-06 14:57 gabrieljenik Status acknowledged => closed
2022-06-06 14:57 gabrieljenik Resolution open => fixed
2022-06-06 14:57 gabrieljenik Note Added: 70234
2022-06-06 14:57 gabrieljenik Bug heat 4 => 6