View Issue Details

IDProjectCategoryView StatusLast Update
14035Bug reportsPluginspublic2021-03-10 22:02
Reporterkemweb Assigned Tomarkusfluer 
Status assignedResolutionopen 
Product Version3.19.2 
Summary14035: Problem with inserting variables in email template editor
Description1. Open the email template editor /index.php/admin/emailtemplates/sa/index/surveyid/1
2. Click the insert variable lemon
=> the editor resizes

This is caused because the ajax request from the ckeditor plugin is missing the XMLHttpRequest header.

This causes AdminTheme.php to added JS and styles in registerStylesAndScripts().

I tried to rewrite the plugin to use jQuery.ajax but could not make it work to load asynchron.

Anyway I think this is a ckeditor issue. So I opened a ticket there:

Maybe you have a better solution or like to add the fix.

In /assets/packages/ckeditor/plugins/ajax/plugin.js add after the line:
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
TagsNo tags attached.
Complete LimeSurvey version number (& build)Release 3.7.0+180418
I will donate to the project if issue is resolvedNo
Database & DB-Version*
Server OS (if known)Debian
Webserver software & version (if known)Apache 2.4.25
PHP Version7.0.27-0+deb9u1




2018-09-06 11:26

reporter   ~48982

I forgot you also have to look at
polls/application/models/AdminTheme.php Line 140

and replace:
if (!Yii::app()->request->getQuery('isAjax', false)) {

if (!Yii::app()->request->getIsAjaxRequest()) {

Issue History

Date Modified Username Field Change
2018-09-06 10:59 kemweb New Issue
2018-09-06 11:26 kemweb Note Added: 48982
2018-09-10 10:57 LouisGac Assigned To => markusfluer
2018-09-10 10:57 LouisGac Status new => assigned
2021-03-10 22:02 ollehar Product Version => 3.19.2