View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
09830Bug reportsTheme editorpublic2015-12-08 17:34
Reporterhokascha Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version2.06+ 
Summary09830: HTML-Editor in Template Editor doesn't work
Description

When trying to edit a template, the HTML editor ist not loaded completly, see attached screenshot. Chrome console logs:
Uncaught SyntaxError: Unexpected token <
source: mode-html.js

The network tab of chrome console reveals it's trying to load mode-html.js from:
http://myserver/index.php/admin/templates/sa/view/editfile/startpage.pstpl/screenname/welcome/templatename/mode-html.js

The content of this file is HTML not JS. Looks like it is the main template editor page. This explains the error mentioned above.

The file is actually located at:
/third_party/ace/mode-html.js

So maybe there is a failure in mapping the url to the actual file.

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)Version 2.06+ Build 150812
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql5
Server OS (if known)ubuntu linux
Webserver software & version (if known)apache
PHP Version5

Relationships

duplicate of 09944 closedc_schmitz Find button or Ctrl+F feature not working within code field of Template Editor 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2015-08-14 09:42

administrator   ~32946

I cannot reproduce. Please clear your browser cache and try again.

hokascha

hokascha

2015-08-14 15:34

reporter   ~32964

Last edited: 2015-08-14 15:37

Cleared cache (and cookies) in both Firefox and Chrome, still the same behaviour. My installation is almost fresh, I upgraded during 09818 leaving only /upload and /application/config/config.php.

Mazi

Mazi

2015-09-24 12:11

updater   ~33150

I can reproduce the problem using Chrome. Denis reported the same issue when using IE.

DenisChenu

DenisChenu

2015-09-24 12:13

developer   ~33151

I'm not sure for IE .... client by phone ... we deactivate the ACE editor

DenisChenu

DenisChenu

2015-09-24 12:19

developer   ~33152

Last edited: 2015-09-24 12:29

combinejs issue:

With debug at 2:
'clientScript'=>array(
'combineJs'=>true,
),

Do th issue

with debug at 0:
'clientScript'=>array(
'combineJs'=>false,
),
fix the issue

We can add ace.js to excludeFiles
'clientScript'=>array(
'combineJs'=>true,
'excludeFiles'=>array(
'/third_party/ace/ace.js',
),
in internal

BUT : i think Yii compress js is bugguy here :

  • Must add a line break at end of each js file (if not exist)
  • Must add the js file combined somewhere

Issue History

Date Modified Username Field Change
2015-08-13 16:14 hokascha New Issue
2015-08-13 18:15 hokascha File Added: Bildschirmfoto vom 2015-08-13 18:13:26.png
2015-08-14 09:42 c_schmitz Note Added: 32946
2015-08-14 09:42 c_schmitz Assigned To => c_schmitz
2015-08-14 09:42 c_schmitz Status new => feedback
2015-08-14 15:34 hokascha Note Added: 32964
2015-08-14 15:34 hokascha Status feedback => assigned
2015-08-14 15:37 hokascha Note Edited: 32964
2015-09-24 12:11 Mazi Note Added: 33150
2015-09-24 12:13 DenisChenu Note Added: 33151
2015-09-24 12:19 DenisChenu Note Added: 33152
2015-09-24 12:29 DenisChenu Note Edited: 33152
2015-12-08 17:34 c_schmitz Relationship added duplicate of 09944
2015-12-08 17:34 c_schmitz Status assigned => closed
2015-12-08 17:34 c_schmitz Resolution open => duplicate
2015-12-11 14:40 c_schmitz Category Templates => Theme editor